Uploaded image for project: 'vpp'
  1. vpp
  2. VPP-1973

VPP Crash when using `lcp create` with a hardware sub-interface

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Medium Medium
    • None
    • 21.06
    • linux-cp Plugin, VNET
    • None

      VPP crashes when invoking an `lcp create` on a tagged sub-interface with an IP address.

      VPP was started with 

      ./vpp -c /etc/vpp/startup.conf

      CLI Commands:

      The last line is responsible for the fault. Commands were issued through VPPCTL. The netns namespace was already existing on the linux host.

      set interface state TenGigabitEthernet2/0/1 up
      ip table add 1001
      create sub-interfaces TenGigabitEthernet2/0/1 1001 dot1q 1001 exact-match
      set interface ip table TenGigabitEthernet2/0/1.1001 1001
      set interface state TenGigabitEthernet2/0/1.1001 up
      set interface ip address TenGigabitEthernet2/0/1.1001 100.64.0.2/30
      lcp create TenGigabitEthernet2/0/1.1001 host-if tap1001 netns 1001

      /etc/vpp/startup.conf

      unix {
       nodaemon
       log /var/log/vpp/vpp.log 
       full-coredump 
       cli-listen /run/vpp/cli.sock gid vpp 
      } 
      api-trace { on } 
      api-segment { gid vpp } 
      socksvr { default } 
      cpu { } 
      dpdk { 
        dev 0000:02:00.1
        dev 0000:03:00.1 
      } 
      plugins { 
        plugin default { enable }
        plugin dpdk_plugin.so { enable }
        plugin linux_cp_plugin.so { enable }
      }
      

      Syslog:

      Mar  8 10:37:22 luna ./vpp[102412]: perfmon: skipping source 'intel-uncore' - intel_uncore_init: no uncore units found
      Mar  8 10:37:22 luna kernel: [ 8424.546625] vfio-pci 0000:02:00.1: vfio-noiommu device opened by user (vpp:102412)
      Mar  8 10:37:22 luna NetworkManager[524]: <info>  [1615217842.8482] device (enp2s0f0): carrier: link connected
      Mar  8 10:37:22 luna NetworkManager[524]: <info>  [1615217842.8483] device (enp2s0f0): state change: unavailable -> disconnected (reason 'carrier-changed', sys-iface-state: 'managed')
      Mar  8 10:37:22 luna kernel: [ 8424.763342] ixgbe 0000:02:00.0 enp2s0f0: NIC Link is Up 10 Gbps, Flow Control: RX/TX
      Mar  8 10:37:22 luna kernel: [ 8424.814807] ixgbe 0000:02:00.0 enp2s0f0: NIC Link is Down
      Mar  8 10:37:23 luna kernel: [ 8425.034726] vfio-pci 0000:03:00.1: vfio-noiommu device opened by user (vpp:102412)
      Mar  8 10:37:23 luna kernel: [ 8425.130544] ixgbe 0000:02:00.0 enp2s0f0: NIC Link is Up 10 Gbps, Flow Control: RX/TX
      Mar  8 10:37:23 luna vnet[102412]: dpdk/cryptodev: dpdk_cryptodev_init: Failed to configure cryptodev
      Mar  8 10:37:23 luna vnet[102412]: vat-plug/load: vat_plugin_register: oddbuf plugin not loaded...
      Mar  8 10:37:33 luna systemd-resolved[502]: Server returned error NXDOMAIN, mitigating potential DNS violation DVE-2018-0001, retrying transaction with reduced feature level UDP.
      Mar  8 10:37:44 luna kernel: [ 8445.925602] ixgbe 0000:02:00.0 enp2s0f0: NIC Link is Down
      Mar  8 10:37:33 luna systemd-resolved[502]: message repeated 21 times: [ Server returned error NXDOMAIN, mitigating potential DNS violation DVE-2018-0001, retrying transaction with reduced feature level UDP.]
      Mar  8 10:37:44 luna NetworkManager[524]: <info>  [1615217864.0116] device (enp2s0f0): state change: disconnected -> unavailable (reason 'carrier-changed', sys-iface-state: 'managed')
      Mar  8 10:37:44 luna vnet[102412]: interface: hw_add_del_mac_address: vnet_hw_interface_add_del_mac_address: Secondary MAC Addresses not supported for interface index 0
      Mar  8 10:37:44 luna vnet[102412]: interface: hw_add_del_mac_address: vnet_hw_interface_add_del_mac_address: Secondary MAC Addresses not supported for interface index 0
      Mar  8 10:37:45 luna vnet[102412]: received signal SIGSEGV, PC 0x7f302b4ac3c5, faulting address 0x3fffffffd0
      Mar  8 10:37:45 luna vnet[102412]: #0  0x00007f306f09f664 unix_signal_handler + 0x124
      Mar  8 10:37:45 luna vnet[102412]: #1  0x00007f306efa53c0 0x7f306efa53c0
      Mar  8 10:37:45 luna vnet[102412]: #2  0x00007f302b4ac3c5 lcp_itf_pair_create + 0x4f5
      Mar  8 10:37:45 luna vnet[102412]: #3  0x00007f302b4be66a lcp_itf_pair_create_command_fn + 0x16a
      Mar  8 10:37:45 luna vnet[102412]: #4  0x00007f306f03d0fb vlib_cli_dispatch_sub_commands + 0x84b
      Mar  8 10:37:45 luna vnet[102412]: #5  0x00007f306f03d245 vlib_cli_dispatch_sub_commands + 0x995
      Mar  8 10:37:45 luna vnet[102412]: #6  0x00007f306f03d679 vlib_cli_input + 0x99
      Mar  8 10:37:45 luna vnet[102412]: #7  0x00007f306f09cb9d unix_cli_process + 0xedd
      Mar  8 10:37:45 luna vnet[102412]: #8  0x00007f306f055b6b vlib_process_bootstrap + 0x1b
      Mar  8 10:37:45 luna vnet[102412]: #9  0x00007f306ef7fcb0 0x7f306ef7fcb0
      

      VPP Log:

      2021/03/08 10:37:22:160: ***** Start: PID 102412 ***** 
      2021/03/08 10:37:44:005[0]: set interface state TenGigabitEthernet2/0/1 up
      2021/03/08 10:37:44:163[0]: ip table add 1001 2021/03/08 10:37:44:164[0]: create sub-interfaces TenGigabitEthernet2/0/1 1001 dot1q 1001 exact-match 
      2021/03/08 10:37:44:164[0]: set interface ip table TenGigabitEthernet2/0/1.1001 1001 
      2021/03/08 10:37:44:164[0]: set interface state TenGigabitEthernet2/0/1.1001 up 
      2021/03/08 10:37:44:164[0]: set interface ip address TenGigabitEthernet2/0/1.1001 100.64.0.2/30 
      2021/03/08 10:37:45:177[0]: lcp create TenGigabitEthernet2/0/1.1001 host-if tap1001 netns 1001
      

            nranns Neale Ranns
            zfahner Zoey Fahner
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: