[Bug 217156] Kernel panic using Netmap with selected NIC queue

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Thu Feb 16 22:48:41 UTC 2017


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=217156

            Bug ID: 217156
           Summary: Kernel panic using Netmap with selected NIC queue
           Product: Base System
           Version: CURRENT
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: kern
          Assignee: freebsd-bugs at FreeBSD.org
          Reporter: milosz.kaniewski at gmail.com
                CC: freebsd-amd64 at FreeBSD.org
                CC: freebsd-amd64 at FreeBSD.org

Created attachment 180063
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=180063&action=edit
Test program which ends with kernel panic.

Hello,

when I try to use netmap with specified NIC queue (ie. when I use flag
NR_REG_ONE_NIC) I get kernel panic:

panic: Assertion slot != NULL failed at
/usr/src/sys/modules/cxgbe/if_cxgbe/../../../dev/cxgbe/t4_netmap.c:353
cpuid = 14
KDB: stack backtrace:
db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfffffe0660f53000
vpanic() at vpanic+0x186/frame 0xfffffe0660f53080
kassert_panic() at kassert_panic+0x126/frame 0xfffffe0660f530f0
cxgbe_netmap_reg() at cxgbe_netmap_reg+0x8d8/frame 0xfffffe0660f531c0
netmap_hw_reg() at netmap_hw_reg+0x2c/frame 0xfffffe0660f531f0
netmap_do_regif() at netmap_do_regif+0x2cb/frame 0xfffffe0660f53230
netmap_ioctl() at netmap_ioctl+0xa57/frame 0xfffffe0660f53620
freebsd_netmap_ioctl() at freebsd_netmap_ioctl+0x3e/frame 0xfffffe0660f53650
devfs_ioctl() at devfs_ioctl+0xc3/frame 0xfffffe0660f536a0
VOP_IOCTL_APV() at VOP_IOCTL_APV+0xe0/frame 0xfffffe0660f536d0
vn_ioctl() at vn_ioctl+0x124/frame 0xfffffe0660f537d0
devfs_ioctl_f() at devfs_ioctl_f+0x1f/frame 0xfffffe0660f537f0
kern_ioctl() at kern_ioctl+0x2b0/frame 0xfffffe0660f53850
sys_ioctl() at sys_ioctl+0x13f/frame 0xfffffe0660f53930
amd64_syscall() at amd64_syscall+0x2f9/frame 0xfffffe0660f53ab0
Xfast_syscall() at Xfast_syscall+0xfb/frame 0xfffffe0660f53ab0
--- syscall (54, FreeBSD ELF64, sys_ioctl), rip = 0x80097c97a, rsp =
0x7fffffffea88, rbp = 0x7fffffffeb20 ---
KDB: enter: panic

If the queue is not specified then everything works ok.

To repeat this error:
1. Run 'pkt-gen -i vcxl0-1' or
2. Run program netmap_test.c.

uname -a:
FreeBSD test0 12.0-CURRENT FreeBSD 12.0-CURRENT #0 r313561: Fri Feb 10 20:18:01
UTC 2017     root at releng3.nyi.freebsd.org:/usr/obj/usr/src/sys/GENERIC  amd64

network card:
Chelsio T540-CR

/boot/loader.conf content:
hw.cxgbe.num_vis=2

root at freebsd:~ # ifconfig vcxl0
vcxl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500    
  
options=ec07bb<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,TSO4,TSO6,LRO,VLAN_HWTSO,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6>
        ether 00:07:43:31:cf:52
        nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
        media: Ethernet 10Gbase-SR <full-duplex>
        status: active

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list