luigirizzo / netmap

Automatically exported from code.google.com/p/netmap
BSD 2-Clause "Simplified" License
1.86k stars 537 forks source link

igb_netmap_rxsync error #951

Open LaoshukangdaoManshijiezhaomao opened 8 months ago

LaoshukangdaoManshijiezhaomao commented 8 months ago

kernel: [18728.916721] BUG: unable to handle kernel NULL pointer dereference at 0000000000000008 kernel: [18728.924568] IP: igb_netmap_rxsync+0xb6/0x410 [igb] kernel: [18728.929364] PGD 1b0214067 P4D 1b0214067 PUD 1b0210067 PMD 0 kernel: [18728.935030] Oops: 0000 [#1] SMP NOPTI kernel: [18728.938695] Modules linked in: bridge nfnetlink_queue nfnetlink_log ip6table_mangle ip6t_REJECT nf_reject_ipv6 ip6table_nat nf_conntrack_ipv6 nf_nat_ipv6 ip6table_filter ip6table_raw ip6_tables ipt_REJECT nf_reject_ipv4 iptable_nat xt_multiport xt_tcpudp xt_CT iptable_raw i40e(OE) igb(OE) e1000(OE) ixgbe(OE) netmap(OE) nf_nat_ftp nf_conntrack_ftp ip_vs_ftp ip_vs nf_defrag_ipv6 nf_nat_tftp nf_conntrack_tftp vxlan ip6_udp_tunnel udp_tunnel ptp pps_core dca xt_recent xt_connlimit iptable_mangle xt_mark iptable_filter ip_tables x_tables nf_nat_ipv4 nf_nat nfnetlink nf_conntrack_ipv4 nf_defrag_ipv4 nf_conntrack libcrc32c 8021q garp mrp stp llc intel_rapl x86_pkg_temp_thermal intel_powerclamp coretemp kvm_intel kvm irqbypass crct10dif_pclmul crc32_pclmul ghash_clmulni_intel pcbc aesni_intel aes_x86_64 kernel: [18729.009093] crypto_simd glue_helper cryptd intel_cstate intel_rapl_perf wdat_wdt mac_hid shpchp i2c_ismt autofs4 uas usb_storage ahci libahci [last unloaded: pps_core] kernel: [18729.024127] CPU: 3 PID: 7059 Comm: snort Tainted: G OE 4.15.0-142-generic #146~16.04.1-Ubuntu kernel: [18729.033767] Hardware name: 0 0/Default string, BIOS 5.13 (Z171-009) 01/14/2022 kernel: [18729.040997] RIP: 0010:igb_netmap_rxsync+0xb6/0x410 [igb] kernel: [18729.046300] RSP: 0018:ffffb9f602883998 EFLAGS: 00010246 kernel: [18729.051523] RAX: 0000000000000000 RBX: 0000000000000002 RCX: 0000000000000002 kernel: [18729.058650] RDX: 00000000fffffc02 RSI: 0000000000000000 RDI: ffff9b832dde0130 kernel: [18729.065779] RBP: ffffb9f6028839e8 R08: 0000000000000000 R09: ffff9b832dde0000 kernel: [18729.072917] R10: 0000000000000000 R11: 00000000000003ff R12: 0000000000000000 kernel: [18729.080054] R13: ffff9b82a8737940 R14: 00000000ffffffff R15: ffff9b8335106800 kernel: [18729.087185] FS: 00007f74ec7b7740(0000) GS:ffff9b833fd80000(0000) knlGS:0000000000000000 kernel: [18729.095274] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 kernel: [18729.101025] CR2: 0000000000000008 CR3: 00000001b0212000 CR4: 00000000003406e0 kernel: [18729.108163] Call Trace: kernel: [18729.110630] netmap_poll+0x56b/0x650 [netmap] kernel: [18729.114990] ? ktime_get_ts64+0x4c/0x100 kernel: [18729.118915] linux_netmap_poll+0x3f/0x60 [netmap] kernel: [18729.123624] do_sys_poll+0x367/0x600 kernel: [18729.127212] ? get_page_from_freelist+0x270/0x11f0 kernel: [18729.132002] ? poll_initwait+0x50/0x50 kernel: [18729.135751] ? compat_poll_select_copy_remaining+0x140/0x140 kernel: [18729.141417] ? compat_poll_select_copy_remaining+0x140/0x140 kernel: [18729.147073] ? compat_poll_select_copy_remaining+0x140/0x140 kernel: [18729.152737] ? compat_poll_select_copy_remaining+0x140/0x140 kernel: [18729.158400] ? compat_poll_select_copy_remaining+0x140/0x140 kernel: [18729.164075] ? compat_poll_select_copy_remaining+0x140/0x140 kernel: [18729.169742] ? handle_mm_fault+0xe7/0x220 kernel: [18729.173750] ? ktime_get_ts64+0x4c/0x100 kernel: [18729.177681] SyS_poll+0x71/0x130 kernel: [18729.180922] ? SyS_poll+0x71/0x130 kernel: [18729.184328] do_syscall_64+0x73/0x130 kernel: [18729.187991] entry_SYSCALL_64_after_hwframe+0x41/0xa6 kernel: [18729.193041] RIP: 0033:0x7f74e9aec80d kernel: [18729.196624] RSP: 002b:00007ffe2e5f4420 EFLAGS: 00000293 ORIG_RAX: 0000000000000007 kernel: [18729.204194] RAX: ffffffffffffffda RBX: 000000000000000c RCX: 00007f74e9aec80d kernel: [18729.211332] RDX: 00000000000003e8 RSI: 000000000000000c RDI: 00007ffe2e5f4510 kernel: [18729.218461] RBP: 000000000000000c R08: 0000000000000000 R09: 000000000000007c kernel: [18729.225591] R10: 00000000000006e7 R11: 0000000000000293 R12: 0000000000000000 kernel: [18729.232718] R13: 000000000000000c R14: 0000000000000000 R15: 0000000002dc5560 kernel: [18729.239848] Code: 44 89 e3 0f 85 4f 03 00 00 48 8b 75 d0 48 c1 e0 04 89 d9 41 be ff ff ff ff 48 03 46 20 48 8d 34 49 49 8d bc f1 00 01 00 00 31 f6 <8b> 50 08 f6 c2 01 0f 84 82 01 00 00 45 89 f0 4c 89 7d c8 4d 89 kernel: [18729.258729] RIP: igb_netmap_rxsync+0xb6/0x410 [igb] RSP: ffffb9f602883998 kernel: [18729.265520] CR2: 0000000000000008 kernel: [18729.268832] ---[ end trace 730ca2c327d9545d ]---

I use igb5.3.5.20 and this happens occasionally I use netmap-master latest code(5/3/2024)

Please help me Thank you so much!

giuseppelettieri commented 8 months ago

can you load the igb driver in gdb and report the output of

list *(igb_netmap_rxsync+0xb6)

?