Using dpdk-16.04 on Intel 82599 NIC on Ubuntu 16.04. Running testpmd interactive bound to two vf interfaces from each of the two ports on the 82599 nic. While testpmd was running I decided to bind to one of the pf instead of vf. So I did a ifdown on second PF (eno2). Then I bound it to igb_uio using dpdk_nic_bind.
Then in the interactive testpmd that was still running, I did 'show port info all'. This caused it to hang. In dmesg output I could see the output pasted below. Thanks, Vinay [72782.463696] igb_uio 0000:02:00.1: uio device registered with irq 88 [72810.930135] BUG: unable to handle kernel NULL pointer dereference at 0000000000000200 [72811.017922] IP: [<ffffffffc01d24b0>] uio_release+0x20/0x60 [uio] [72811.063430] PGD 0 [72811.108121] Oops: 0000 [#1] SMP [72811.151982] Modules linked in: igb_uio(OE) vfio_pci vfio_iommu_type1 vfio_virqfd vfio uio_pci_generic uio rdma_ucm(OE) ib_ucm(OE) ib_ipoib(OE) ib_uverbs(OE) ib_umad(OE) mlx5_ib(OE) binfmt_misc mlx4_ib(OE) mlx4_en(OE) mlx4_core(OE) intel_rapl x86_pkg_temp_thermal coretemp sb_edac mei_me input_leds edac_core lpc_ich mei shpchp 8250_fintek acpi_power_meter mac_hid kvm_intel kvm irqbypass ib_iser(OE) rdma_cm(OE) ib_cm(OE) ib_sa(OE) iw_cm(OE) ib_mad(OE) ib_core(OE) ib_addr(OE) ib_netlink(OE) configfs iscsi_tcp libiscsi_tcp libiscsi scsi_transport_iscsi knem(OE) autofs4 btrfs raid10 raid456 async_raid6_recov async_memcpy async_pq async_xor async_tx xor raid6_pq libcrc32c raid1 raid0 multipath linear ixgbevf crct10dif_pclmul ixgbe hid_generic crc32_pclmul dca mlx5_core(OE) usbhid aesni_intel mlx_compat(OE) [72811.626637] aes_x86_64 vxlan lrw ip6_udp_tunnel gf128mul udp_tunnel glue_helper ahci ablk_helper ptp cryptd nvme hid libahci pps_core mdio fjes [72811.725446] CPU: 0 PID: 1020 Comm: testpmd Tainted: G OE 4.4.0-28-generic #47-Ubuntu [72811.872818] task: ffff883f61768000 ti: ffff883f48c40000 task.ti: ffff883f48c40000 [72811.970361] RIP: 0010:[<ffffffffc01d24b0>] [<ffffffffc01d24b0>] uio_release+0x20/0x60 [uio] [72812.069541] RSP: 0000:ffff883f48c43c38 EFLAGS: 00013246 [72812.118952] RAX: ffffffffc01d2490 RBX: ffff883f2fe2b2e0 RCX: 0000000000000001 [72812.169164] RDX: 0000000000000000 RSI: ffff883f14e5d500 RDI: ffff883f5efe26c8 [72812.219231] RBP: ffff883f48c43c50 R08: 0000000000000000 R09: 0000000000000000 [72812.269902] R10: ffff883f5efe26c8 R11: ffff883f14e5d510 R12: ffff883f1977a718 [72812.320260] R13: 0000000000000000 R14: ffff887f61058020 R15: ffff883ef3b40180 [72812.369816] FS: 0000000000000000(0000) GS:ffff883f7fc00000(0000) knlGS:0000000000000000 [72812.466364] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [72812.515265] CR2: 0000000000000200 CR3: 0000000001e0a000 CR4: 00000000003406f0 [72812.565332] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [72812.614347] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [72812.661745] Stack: [72812.707422] ffff883f14e5d500 0000000000000008 ffff883f5efe26c8 ffff883f48c43c98 [72812.799333] ffffffff8120eef4 ffff883f5efe26c8 ffff883f14e5d510 ffffffff82101a30 [72812.891220] ffff883f61768678 ffff883f61768000 ffff883f14e5c700 ffff887f602a0428 [72812.983148] Call Trace: [72813.027305] [<ffffffff8120eef4>] __fput+0xe4/0x220 [72813.071379] [<ffffffff8120f06e>] ____fput+0xe/0x10 [72813.114225] [<ffffffff8109ec1f>] task_work_run+0x7f/0xa0 [72813.156221] [<ffffffff81083d47>] do_exit+0x2e7/0xaf0 [72813.197338] [<ffffffff810845d3>] do_group_exit+0x43/0xb0 [72813.237513] [<ffffffff810907a2>] get_signal+0x292/0x600 [72813.276861] [<ffffffff8102e537>] do_signal+0x37/0x6f0 [72813.315143] [<ffffffff8106a194>] ? force_sig_info_fault+0x74/0x90 [72813.353045] [<ffffffff81191b20>] ? __probe_kernel_read+0x40/0x90 [72813.389918] [<ffffffff8106b35b>] ? mm_fault_error+0x11b/0x160 [72813.426312] [<ffffffff8100320c>] exit_to_usermode_loop+0x8c/0xd0 [72813.462217] [<ffffffff81003c16>] prepare_exit_to_usermode+0x26/0x30 [72813.498028] [<ffffffff818281a5>] retint_user+0x8/0x10 [72813.533326] Code: c1 18 e8 74 de 04 c1 5d c3 66 90 0f 1f 44 00 00 55 48 89 e5 41 55 41 54 53 48 8b 9e d0 00 00 00 45 31 ed 4c 8b 23 49 8b 54 24 38 <48> 8b 82 00 02 00 00 48 85 c0 74 0b 48 89 fe 48 89 d7 ff d0 41 [72813.645886] RIP [<ffffffffc01d24b0>] uio_release+0x20/0x60 [uio] [72813.682446] RSP <ffff883f48c43c38> [72813.718108] CR2: 0000000000000200 [72813.753159] ---[ end trace b949bc6dd73a075b ]--- [72813.889115] Fixing recursive fault but reboot is needed!