Created attachment 293133 [details] kernel config 5.4.15-ks-00023-gd18d22ce8f62 On a server running as a NAT gateway, after upgrade the kernel to 5.4 series, the system panic immediately after keepalived transfer it to master state. I did a git bisect on 5.4 release, and the result is: # first bad commit: [d18d22ce8f62839365c984b1df474d3975ed4eb2] net: Fix packet reordering caused by GRO and listified RX cooperation kernel 5.5.0 has no such problem. See attachment for the kernel config. Following is the message captured from serial console: [ 75.333333][ C1] stack segment: 0000 [#1] SMP PTI [ 75.338338][ C1] CPU: 1 PID: 4486 Comm: realpath Tainted: G T 5.4.15-ks-00023-gd18d22ce8f62 #4 [ 75.348586][ C1] Hardware name: Dell Inc. PowerEdge R210 II/0CP8FC, BIOS 2.10.0 05/24/2018 [ 75.357167][ C1] RIP: 0010:skb_seq_read+0x2c/0x200 [ 75.362243][ C1] Code: 44 00 00 4c 8b 4a 20 03 3a 39 7a 04 0f 86 a0 01 00 00 55 41 89 fa 53 48 8b 6a 18 65 48 8b 1c 25 c0 6b 01 00 49 89 db 8b 7a 0c <44> 8b 45 70 41 01 f8 44 2b 45 74 45 39 c2 0f 83 a1 00 00 00 4d 85 [ 75.381778][ C1] RSP: 0000:ffffb497c0114a98 EFLAGS: 00010286 [ 75.387727][ C1] RAX: 00000000000006c0 RBX: ffff9bcf38e29fc0 RCX: ffff9bcf35dfd800 [ 75.397580][ C1] RDX: ffffb497c0114b00 RSI: ffffb497c0114ab0 RDI: 0000000000000114 [ 75.407416][ C1] RBP: dead000000000100 R08: ffff9bcf35559700 R09: 0000000000000000 [ 75.417241][ C1] R10: 0000000000000114 R11: ffff9bcf38e29fc0 R12: ffffb497c0114afc [ 75.427069][ C1] R13: 0000000000000114 R14: 0000000000000114 R15: 0000000000000116 [ 75.436882][ C1] FS: 0000000000000000(0000) GS:ffff9bcf3ba40000(0000) knlGS:0000000000000000 [ 75.447650][ C1] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 75.456093][ C1] CR2: 00007f5182e735c0 CR3: 000000008f4f6002 CR4: 00000000001606e0 [ 75.465934][ C1] Call Trace: [ 75.471089][ C1] <IRQ> [ 75.475801][ C1] bm_find+0x52/0x120 [ts_bm] [ 75.482325][ C1] skb_find_text+0x77/0xd0 [ 75.488570][ C1] string_mt+0x28/0x35 [xt_string] [ 75.495496][ C1] ipt_do_table+0x29e/0x680 [ip_tables] [ 75.502843][ C1] ? update_group_capacity+0x25/0x1e0 [ 75.510002][ C1] nf_hook_slow+0x40/0xb0 [ 75.516095][ C1] ip_sublist_rcv+0x253/0x280 [ 75.522517][ C1] ? ip_rcv_finish_core.isra.0+0x390/0x390 [ 75.530054][ C1] ip_list_rcv+0x119/0x13d [ 75.536191][ C1] __netif_receive_skb_list_core+0x246/0x270 [ 75.543889][ C1] netif_receive_skb_list_internal+0x1c3/0x2f0 [ 75.551753][ C1] gro_normal_list.part.0+0x19/0x40 [ 75.558641][ C1] napi_complete_done+0x86/0x120 [ 75.565264][ C1] bnx2_poll_msix+0x9f/0xd0 [bnx2] [ 75.572065][ C1] net_rx_action+0x161/0x3b0 [ 75.578342][ C1] __do_softirq+0xee/0x2ff [ 75.584436][ C1] irq_exit+0xe6/0xf0 [ 75.590078][ C1] do_IRQ+0x58/0xe0 [ 75.595523][ C1] common_interrupt+0xf/0xf [ 75.601640][ C1] </IRQ> [ 75.606201][ C1] RIP: 0010:kthread_blkcg+0x14/0x30 [ 75.613016][ C1] Code: 8b 44 24 20 eb 83 41 b8 ea ff ff ff e9 94 fc ff ff 90 90 90 90 90 0f 1f 44 00 00 31 c0 65 48 8b 14 25 c0 6b 01 00 f6 42 72 20 <74> 10 48 8b 82 70 09 00 00 48 85 c0 74 04 48 8b 40 58 c3 66 0f 1f [ 75.636128][ C1] RSP: 0000:ffffb497c07d7d78 EFLAGS: 00000246 ORIG_RAX: ffffffffffffffda [ 75.646247][ C1] RAX: 0000000000000000 RBX: ffffb497c07d7e00 RCX: 0000000000000000 [ 75.655930][ C1] RDX: ffff9bcf38e29fc0 RSI: 0000000000000000 RDI: ffff9bcf07d0d000 [ 75.665613][ C1] RBP: 0000000000000000 R08: ffff9bcf07d0d000 R09: 0000000000000001 [ 75.675305][ C1] R10: 0000000000000002 R11: ffffed4982399b80 R12: 0000000000000cc0 [ 75.685002][ C1] R13: 0000000000000000 R14: ffff9bcf3a897080 R15: 0000000000000055 [ 75.694687][ C1] mem_cgroup_throttle_swaprate+0x25/0x11f [ 75.702197][ C1] mem_cgroup_try_charge_delay+0x33/0x40 [ 75.709515][ C1] do_fault+0x8d/0x630 [ 75.715254][ C1] __handle_mm_fault+0x451/0x700 [ 75.721843][ C1] handle_mm_fault+0xc4/0x200 [ 75.728158][ C1] do_user_addr_fault+0x202/0x460 [ 75.734793][ C1] do_page_fault+0x31/0x110 [ 75.740871][ C1] page_fault+0x3e/0x50 [ 75.746586][ C1] RIP: 0033:0x7f5182e4cef4 [ 75.752552][ C1] Code: 00 00 00 00 66 90 55 48 89 e5 41 57 49 89 ff 41 56 41 55 41 54 53 48 83 ec 38 0f 31 48 c1 e2 20 48 09 d0 48 8d 15 14 6f 02 00 <48> 89 05 c5 66 02 00 48 8b 05 06 6f 02 00 48 89 d1 48 2b 0d 7c 70 [ 75.775424][ C1] RSP: 002b:00007ffc55eacf00 EFLAGS: 00010202 [ 75.783004][ C1] RAX: 0000005c80a2b080 RBX: 0000000000000000 RCX: 0000000000000000 [ 75.792484][ C1] RDX: 00007f5182e73e08 RSI: 0000000000000000 RDI: 00007ffc55eacf70 [ 75.801944][ C1] RBP: 00007ffc55eacf60 R08: 0000000000000000 R09: 0000000000000000 [ 75.811422][ C1] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 75.820875][ C1] R13: 0000000000000000 R14: 0000000000000000 R15: 00007ffc55eacf70 [ 75.830294][ C1] Modules linked in: tcp_diag inet_diag bridge stp llc nf_conntrack_netlink xfrm_user xfrm_algo overlay af_packet cn xt_AUDIT xt_recent xt_connlimit nf_conncount xt_conntrack iptable_filter iptable_mangle xt_REDIREC T xt_nat iptable_nat nf_nat xt_comment ts_bm xt_multiport xt_addrtype xt_CT nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 libcrc32c crc32c_generic xt_string xt_set iptable_raw ip_tables x_tables bpfilter ip_set_hash_netportnet ip_set nfnet link msr binfmt_misc coretemp intel_rapl_msr intel_rapl_common x86_pkg_temp_thermal intel_powerclamp kvm_intel kvm mgag200 drm_vram_helper ttm drm_kms_helper irqbypass dm_mod crct10dif_pclmul crc32_pclmul ghash_clmulni_intel drm aesni_i ntel crypto_simd cryptd input_leds igb led_class glue_helper joydev usbkbd intel_cstate intel_uncore dcdbas agpgart iTCO_wdt iTCO_vendor_support evdev mac_hid ipmi_ssif sr_mod watchdog fb_sys_fops syscopyarea sysfillrect cdrom sysimgblt intel_rapl_perf bnx2 ipmi_si i2c_i801 pcspkr [ 75.830342][ C1] ie31200_edac hwmon ipmi_devintf dca edac_core thermal i2c_algo_bit ipmi_msghandler lpc_ich wmi rtc_cmos i2c_core ata_generic pata_acpi button fan ext4 crc16 jbd2 mbcache sd_mod hid_generic usbhid hid ata_piix ehc i_pci libata crc32c_intel ehci_hcd scsi_mod usbcore usb_common [ 75.958030][ C2] stack segment: 0000 [#2] SMP PTI [ 75.958059][ C1] ---[ end trace fa1655e994cf04d6 ]--- [ 75.963908][ C2] CPU: 2 PID: 0 Comm: swapper/2 Tainted: G D T 5.4.15-ks-00023-gd18d22ce8f62 #4 [ 75.963910][ C2] Hardware name: Dell Inc. PowerEdge R210 II/0CP8FC, BIOS 2.10.0 05/24/2018 [ 76.027718][ C1] RIP: 0010:skb_seq_read+0x2c/0x200 [ 76.037146][ C2] RIP: 0010:skb_seq_read+0x2c/0x200 [ 76.037148][ C2] Code: 44 00 00 4c 8b 4a 20 03 3a 39 7a 04 0f 86 a0 01 00 00 55 41 89 fa 53 48 8b 6a 18 65 48 8b 1c 25 c0 6b 01 00 49 89 db 8b 7a 0c <44> 8b 45 70 41 01 f8 44 2b 45 74 45 39 c2 0f 83 a1 00 00 00 4d 85 [ 76.046597][ C1] Code: 44 00 00 4c 8b 4a 20 03 3a 39 7a 04 0f 86 a0 01 00 00 55 41 89 fa 53 48 8b 6a 18 65 48 8b 1c 25 c0 6b 01 00 49 89 db 8b 7a 0c <44> 8b 45 70 41 01 f8 44 2b 45 74 45 39 c2 0f 83 a1 00 00 00 4d 85 [ 76.052566][ C2] RSP: 0018:ffffb497c0148a98 EFLAGS: 00010286 [ 76.052568][ C2] RAX: 00000000000006c0 RBX: ffff9bcf07f85f40 RCX: ffff9bcf35e9a000 [ 76.058528][ C1] RSP: 0000:ffffb497c0114a98 EFLAGS: 00010286 [ 76.079855][ C2] RDX: ffffb497c0148b00 RSI: ffffb497c0148ab0 RDI: 00000000000005c8 [ 76.079855][ C2] RBP: dead000000000100 R08: ffff9bcf36885100 R09: 0000000000000000 [ 76.079857][ C2] R10: 00000000000005c8 R11: ffff9bcf07f85f40 R12: ffffb497c0148afc [ 76.101282][ C1] RAX: 00000000000006c0 RBX: ffff9bcf38e29fc0 RCX: ffff9bcf35dfd800 [ 76.108197][ C2] R13: 00000000000005c8 R14: 00000000000005c8 R15: 00000000000005c9 [ 76.108198][ C2] FS: 0000000000000000(0000) GS:ffff9bcf3ba80000(0000) knlGS:0000000000000000 [ 76.108199][ C2] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 76.117038][ C1] RDX: ffffb497c0114b00 RSI: ffffb497c0114ab0 RDI: 0000000000000114 [ 76.123962][ C2] CR2: 00007feec4003068 CR3: 000000001220a001 CR4: 00000000001606e0 [ 76.123963][ C2] Call Trace: [ 76.132814][ C1] RBP: dead000000000100 R08: ffff9bcf35559700 R09: 0000000000000000 [ 76.141663][ C2] <IRQ> [ 76.150511][ C1] R10: 0000000000000114 R11: ffff9bcf38e29fc0 R12: ffffb497c0114afc [ 76.159360][ C2] bm_find+0x52/0x120 [ts_bm] [ 76.168209][ C1] R13: 0000000000000114 R14: 0000000000000114 R15: 0000000000000116 [ 76.178016][ C2] skb_find_text+0x77/0xd0 [ 76.185475][ C1] FS: 0000000000000000(0000) GS:ffff9bcf3ba40000(0000) knlGS:0000000000000000 [ 76.194332][ C2] string_mt+0x28/0x35 [xt_string] [ 76.194334][ C2] ipt_do_table+0x29e/0x680 [ip_tables] [ 76.203202][ C1] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 76.207386][ C2] ? ip_finish_output2+0x1ad/0x580 [ 76.207392][ C2] ? nf_confirm+0xcc/0xf0 [nf_conntrack] [ 76.216270][ C1] CR2: 00007f5182e735c0 CR3: 000000008f4f6002 CR4: 00000000001606e0 [ 76.220035][ C2] ? update_group_capacity+0x25/0x1e0 [ 76.220037][ C2] nf_hook_slow+0x40/0xb0 [ 76.228932][ C1] Kernel panic - not syncing: Fatal exception in interrupt [ 76.234539][ C2] ip_sublist_rcv+0x253/0x280 [ 76.325336][ C2] ? ip_rcv_finish_core.isra.0+0x390/0x390 [ 76.332066][ C2] ip_list_rcv+0x119/0x13d [ 76.337413][ C2] __netif_receive_skb_list_core+0x246/0x270 [ 76.344327][ C2] netif_receive_skb_list_internal+0x1c3/0x2f0 [ 76.351409][ C2] gro_normal_list.part.0+0x19/0x40 [ 76.357546][ C2] napi_complete_done+0x86/0x120 [ 76.363425][ C2] bnx2_poll_msix+0x9f/0xd0 [bnx2] [ 76.369456][ C2] net_rx_action+0x161/0x3b0 [ 76.374942][ C2] __do_softirq+0xee/0x2ff [ 76.380249][ C2] irq_exit+0xe6/0xf0 [ 76.385108][ C2] do_IRQ+0x58/0xe0 [ 76.389795][ C2] common_interrupt+0xf/0xf [ 76.395176][ C2] </IRQ> [ 76.398998][ C2] RIP: 0010:cpuidle_enter_state+0xc4/0x450 [ 76.405687][ C2] Code: e8 c1 f0 a6 ff 80 7c 24 0f 00 74 17 9c 58 0f 1f 44 00 00 f6 c4 02 0f 85 61 03 00 00 31 ff e8 53 09 ad ff fb 66 0f 1f 44 00 00 <45> 85 e4 0f 88 8c 02 00 00 49 63 cc 4c 2b 6c 24 10 48 8d 04 49 48 [ 76.427204][ C2] RSP: 0018:ffffb497c00afe68 EFLAGS: 00000246 ORIG_RAX: ffffffffffffffda [ 76.436486][ C2] RAX: ffff9bcf3baaa940 RBX: ffffffffa22c6480 RCX: 000000000000001f [ 76.445316][ C2] RDX: 0000000000000000 RSI: 000000002962566a RDI: 0000000000000000 [ 76.454125][ C2] RBP: ffff9bcf3bab4600 R08: 000000118e9c2d85 R09: 0000000000000390 [ 76.462907][ C2] R10: ffff9bcf3baa9620 R11: ffff9bcf3baa9600 R12: 0000000000000004 [ 76.471658][ C2] R13: 000000118e9c2d85 R14: 0000000000000004 R15: ffff9bcf07f85f40 [ 76.480393][ C2] ? cpuidle_enter_state+0x9f/0x450 [ 76.486333][ C2] cpuidle_enter+0x29/0x40 [ 76.491476][ C2] do_idle+0x1e1/0x270 [ 76.496265][ C2] cpu_startup_entry+0x19/0x20 [ 76.501741][ C2] start_secondary+0x173/0x1c0 [ 76.507197][ C2] secondary_startup_64+0xa4/0xb0 [ 76.512907][ C2] Modules linked in: tcp_diag inet_diag bridge stp llc nf_conntrack_netlink xfrm_user xfrm_algo overlay af_packet cn xt_AUDIT xt_recent xt_connlimit nf_conncount xt_conntrack iptable_filter iptable_mangle xt_REDIREC T xt_nat iptable_nat nf_nat xt_comment ts_bm xt_multiport xt_addrtype xt_CT nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 libcrc32c crc32c_generic xt_string xt_set iptable_raw ip_tables x_tables bpfilter ip_set_hash_netportnet ip_set nfnet link msr binfmt_misc coretemp intel_rapl_msr intel_rapl_common x86_pkg_temp_thermal intel_powerclamp kvm_intel kvm mgag200 drm_vram_helper ttm drm_kms_helper irqbypass dm_mod crct10dif_pclmul crc32_pclmul ghash_clmulni_intel drm aesni_i ntel crypto_simd cryptd input_leds igb led_class glue_helper joydev usbkbd intel_cstate intel_uncore dcdbas agpgart iTCO_wdt iTCO_vendor_support evdev mac_hid ipmi_ssif sr_mod watchdog fb_sys_fops syscopyarea sysfillrect cdrom sysimgblt intel_rapl_perf bnx2 ipmi_si i2c_i801 pcspkr [ 76.512938][ C2] ie31200_edac hwmon ipmi_devintf dca edac_core thermal i2c_algo_bit ipmi_msghandler lpc_ich wmi rtc_cmos i2c_core ata_generic pata_acpi button fan ext4 crc16 jbd2 mbcache sd_mod hid_generic usbhid hid ata_piix ehc i_pci libata crc32c_intel ehci_hcd scsi_mod usbcore usb_common [ 76.633079][ C0] stack segment: 0000 [#3] SMP PTI [ 76.639022][ C0] CPU: 0 PID: 0 Comm: swapper/0 Tainted: G D T 5.4.15-ks-00023-gd18d22ce8f62 #4 [ 76.649995][ C0] Hardware name: Dell Inc. PowerEdge R210 II/0CP8FC, BIOS 2.10.0 05/24/2018 [ 76.659513][ C0] RIP: 0010:skb_seq_read+0x2c/0x200 [ 76.665559][ C0] Code: 44 00 00 4c 8b 4a 20 03 3a 39 7a 04 0f 86 a0 01 00 00 55 41 89 fa 53 48 8b 6a 18 65 48 8b 1c 25 c0 6b 01 00 49 89 db 8b 7a 0c <44> 8b 45 70 41 01 f8 44 2b 45 74 45 39 c2 0f 83 a1 00 00 00 4d 85 [ 76.687043][ C0] RSP: 0018:ffffb497c0003a98 EFLAGS: 00010286 [ 76.693987][ C0] RAX: 00000000000006c0 RBX: ffffffffa2213780 RCX: ffff9bcf35f97000 [ 76.702842][ C0] RDX: ffffb497c0003b00 RSI: ffffb497c0003ab0 RDI: 00000000000005a0 [ 76.711687][ C0] RBP: dead000000000100 R08: ffff9bcf3a9d4000 R09: 0000000000000000 [ 76.720530][ C0] R10: 00000000000005a0 R11: ffffffffa2213780 R12: ffffb497c0003afc [ 76.729374][ C0] R13: 00000000000005a0 R14: 00000000000005a0 R15: 00000000000005a8 [ 76.738206][ C0] FS: 0000000000000000(0000) GS:ffff9bcf3ba00000(0000) knlGS:0000000000000000 [ 76.747991][ C0] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 76.755429][ C0] CR2: 000000000174b738 CR3: 000000001220a004 CR4: 00000000001606f0 [ 76.764261][ C0] Call Trace: [ 76.768399][ C0] <IRQ> [ 76.772088][ C0] bm_find+0x52/0x120 [ts_bm] [ 76.777601][ C0] skb_find_text+0x77/0xd0 [ 76.782847][ C0] string_mt+0x28/0x35 [xt_string] [ 76.788780][ C0] ipt_do_table+0x29e/0x680 [ip_tables] [ 76.795154][ C0] ? __hrtimer_run_queues+0x125/0x270 [ 76.801344][ C0] ? recalibrate_cpu_khz+0x10/0x10 [ 76.807270][ C0] nf_hook_slow+0x40/0xb0 [ 76.812418][ C0] ip_sublist_rcv+0x253/0x280 [ 76.817899][ C0] ? ip_rcv_finish_core.isra.0+0x390/0x390 [ 76.824509][ C0] ip_list_rcv+0x119/0x13d [ 76.829730][ C0] __netif_receive_skb_list_core+0x246/0x270 [ 76.836513][ C0] netif_receive_skb_list_internal+0x1c3/0x2f0 [ 76.843471][ C0] gro_normal_list.part.0+0x19/0x40 [ 76.849477][ C0] napi_complete_done+0x86/0x120 [ 76.855219][ C0] bnx2_poll_msix+0x9f/0xd0 [bnx2] [ 76.861130][ C0] net_rx_action+0x161/0x3b0 [ 76.866519][ C0] __do_softirq+0xee/0x2ff [ 76.871732][ C0] irq_exit+0xe6/0xf0 [ 76.876514][ C0] do_IRQ+0x58/0xe0 [ 76.881124][ C0] common_interrupt+0xf/0xf [ 76.886421][ C0] </IRQ> [ 76.890163][ C0] RIP: 0010:cpuidle_enter_state+0xc4/0x450 [ 76.896776][ C0] Code: e8 c1 f0 a6 ff 80 7c 24 0f 00 74 17 9c 58 0f 1f 44 00 00 f6 c4 02 0f 85 61 03 00 00 31 ff e8 53 09 ad ff fb 66 0f 1f 44 00 00 <45> 85 e4 0f 88 8c 02 00 00 49 63 cc 4c 2b 6c 24 10 48 8d 04 49 48 [ 76.918176][ C0] RSP: 0018:ffffffffa2203e58 EFLAGS: 00000246 ORIG_RAX: ffffffffffffffda [ 76.927400][ C0] RAX: ffff9bcf3ba2a940 RBX: ffffffffa22c6480 RCX: 000000000000001f [ 76.936181][ C0] RDX: 0000000000000000 RSI: 000000002962566a RDI: 0000000000000000 [ 76.944956][ C0] RBP: ffff9bcf3ba34600 R08: 000000118f7caec7 R09: 0000000000000385 [ 76.953734][ C0] R10: ffff9bcf3ba29620 R11: ffff9bcf3ba29600 R12: 0000000000000004 [ 76.962514][ C0] R13: 000000118f7caec7 R14: 0000000000000004 R15: ffffffffa2213780 [ 76.971297][ C0] ? cpuidle_enter_state+0x9f/0x450 [ 76.977307][ C0] cpuidle_enter+0x29/0x40 [ 76.982525][ C0] do_idle+0x1e1/0x270 [ 76.987390][ C0] cpu_startup_entry+0x19/0x20 [ 76.992957][ C0] start_kernel+0x549/0x566 [ 76.998261][ C0] secondary_startup_64+0xa4/0xb0 [ 77.004085][ C0] Modules linked in: tcp_diag inet_diag bridge stp llc nf_conntrack_netlink xfrm_user xfrm_algo overlay af_packet cn xt_AUDIT xt_recent xt_connlimit nf_conncount xt_conntrack iptable_filter iptable_mangle xt_REDIREC T xt_nat iptable_nat nf_nat xt_comment ts_bm xt_multiport xt_addrtype xt_CT nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 libcrc32c crc32c_generic xt_string xt_set iptable_raw ip_tables x_tables bpfilter ip_set_hash_netportnet ip_set nfnet link msr binfmt_misc coretemp intel_rapl_msr intel_rapl_common x86_pkg_temp_thermal intel_powerclamp kvm_intel kvm mgag200 drm_vram_helper ttm drm_kms_helper irqbypass dm_mod crct10dif_pclmul crc32_pclmul ghash_clmulni_intel drm aesni_i ntel crypto_simd cryptd input_leds igb led_class glue_helper joydev usbkbd intel_cstate intel_uncore dcdbas agpgart iTCO_wdt iTCO_vendor_support evdev mac_hid ipmi_ssif sr_mod watchdog fb_sys_fops syscopyarea sysfillrect cdrom sysimgblt intel_rapl_perf bnx2 ipmi_si i2c_i801 pcspkr [ 77.004103][ C0] ie31200_edac hwmon ipmi_devintf dca edac_core thermal i2c_algo_bit ipmi_msghandler lpc_ich wmi rtc_cmos i2c_core ata_generic pata_acpi button fan ext4 crc16 jbd2 mbcache sd_mod hid_generic usbhid hid ata_piix ehc i_pci libata crc32c_intel ehci_hcd scsi_mod usbcore usb_common [ 77.124963][ C3] stack segment: 0000 [#4] SMP PTI [ 77.130902][ C3] CPU: 3 PID: 0 Comm: swapper/3 Tainted: G D T 5.4.15-ks-00023-gd18d22ce8f62 #4 [ 77.141857][ C3] Hardware name: Dell Inc. PowerEdge R210 II/0CP8FC, BIOS 2.10.0 05/24/2018 [ 77.151349][ C3] RIP: 0010:skb_seq_read+0x2c/0x200 [ 77.157361][ C3] Code: 44 00 00 4c 8b 4a 20 03 3a 39 7a 04 0f 86 a0 01 00 00 55 41 89 fa 53 48 8b 6a 18 65 48 8b 1c 25 c0 6b 01 00 49 89 db 8b 7a 0c <44> 8b 45 70 41 01 f8 44 2b 45 74 45 39 c2 0f 83 a1 00 00 00 4d 85 [ 77.178755][ C3] RSP: 0018:ffffb497c017ca98 EFLAGS: 00010286 [ 77.185626][ C3] RAX: 00000000000006c0 RBX: ffff9bcf07f81fc0 RCX: ffff9bcf363d1800 [ 77.194410][ C3] RDX: ffffb497c017cb00 RSI: ffffb497c017cab0 RDI: 00000000000005a0 [ 77.203197][ C3] RBP: dead000000000100 R08: ffff9bcf3a9edb00 R09: 0000000000000000 [ 77.211973][ C3] R10: 00000000000005a0 R11: ffff9bcf07f81fc0 R12: ffffb497c017cafc [ 77.220753][ C3] R13: 00000000000005a0 R14: 00000000000005a0 R15: 00000000000005ab [ 77.229531][ C3] FS: 0000000000000000(0000) GS:ffff9bcf3bac0000(0000) knlGS:0000000000000000 [ 77.239269][ C3] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 77.246667][ C3] CR2: 000055903a118028 CR3: 000000001220a001 CR4: 00000000001606e0 [ 77.255447][ C3] Call Trace: [ 77.259544][ C3] <IRQ> [ 77.263192][ C3] bm_find+0x52/0x120 [ts_bm] [ 77.268667][ C3] skb_find_text+0x77/0xd0 [ 77.273883][ C3] string_mt+0x28/0x35 [xt_string] [ 77.279797][ C3] ipt_do_table+0x29e/0x680 [ip_tables] [ 77.280841][ C1] Shutting down cpus with NMI
since 5.4 is a longterm release, it is important to fix this
5.4 is now at 5.4.72. Please update to it and see if the problem still occurs. Problem has most likely been fixed.
(In reply to David Ahern from comment #2) > 5.4 is now at 5.4.72. Please update to it and see if the problem still > occurs. Problem has most likely been fixed. 5.4.72 had been tried, problem still exist, :(
Can you capture and attach the complete kernel log? It seems something is missing in your console log, is this a kernel NULL ptr dereference? And, can you map this "skb_seq_read+0x2c" to the source code? You can get it by running scripts/faddr2line (in kernel source code) with the vmlinux binary. Based on your bisect result, it seems related to skb->next, but it is already cleared on all call paths here, so I have no idea where it could go wrong.
Created attachment 293275 [details] kernel config 5.4.15-ks-00023-gd18d22ce8f62 w/ debug info
Created attachment 293277 [details] complete log of config 5.4.15-ks-00023-gd18d22ce8f62
see attachment for the complete kernel log captured from a serial console. Original kernel was built w/o debug info, so I recompiled the kernel w/ debug info. Following is the result for skb_seq_read+0x2c: # ./scripts/faddr2line vmlinux skb_seq_read+0x2c skb_seq_read+0x2c/0x200: skb_seq_read at net/core/skbuff.c:3480
That is odd, I still don't see whether this is a NULL-ptr-def or kernel page fault. It looks like the RIP does point to skb->next, but I don't see why this could happen, all the callers have cleared skb->next at that point.
(In reply to Cong Wang from comment #8) > That is odd, I still don't see whether this is a NULL-ptr-def or kernel page > fault. It looks like the RIP does point to skb->next, but I don't see why > this could happen, all the callers have cleared skb->next at that point. Just did a test w/ kernel 5.4.74, system event can't boot normaly. See attachment for the full log. Following is part of the panic log: [ 33.512442][ C2] stack segment: 0000 [#1] SMP PTI [ 33.518645][ C2] CPU: 2 PID: 0 Comm: swapper/2 Tainted: G T 5.4.74-ks #1 [ 33.528132][ C2] Hardware name: Dell Inc. PowerEdge R210 II/0CP8FC, BIOS 2.10.0 05/24/2018 [ 33.537877][ C2] RIP: 0010:skb_seq_read+0x2c/0x200 [ 33.544156][ C2] Code: 44 00 00 4c 8b 4a 20 03 3a 39 7a 04 0f 86 a0 01 00 00 55 41 89 fa 53 48 8b 6a 18 65 48 8b 1c 25 c0 6b 01 00 49 89 db 8b 7a 0c <44> 8b 45 70 41 01 f8 44 2b 45 74 45 39 c2 0f 83 a1 00 00 00 4d 85 [ 33.566202][ C2] RSP: 0000:ffffa311c0148aa0 EFLAGS: 00010286 [ 33.573439][ C2] RAX: 00000000000000c0 RBX: ffff8fd247f73f80 RCX: ffff8fd2752cfa00 [ 33.582608][ C2] RDX: ffffa311c0148b08 RSI: ffffa311c0148ab8 RDI: 0000000000000058 [ 33.591785][ C2] RBP: dead000000000100 R08: ffff8fd273ed6500 R09: 0000000000000000 [ 33.600973][ C2] R10: 0000000000000058 R11: ffff8fd247f73f80 R12: ffffa311c0148b04 [ 33.610166][ C2] R13: 0000000000000058 R14: 0000000000000058 R15: 000000000000005f [ 33.619361][ C2] FS: 0000000000000000(0000) GS:ffff8fd27ba80000(0000) knlGS:0000000000000000 [ 33.629527][ C2] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 33.637351][ C2] CR2: 0000563ca98243fc CR3: 000000012d20a002 CR4: 00000000001606e0 [ 33.646583][ C2] Call Trace: [ 33.651127][ C2] <IRQ> [ 33.655237][ C2] bm_find+0x52/0x120 [ts_bm] [ 33.661173][ C2] skb_find_text+0x77/0xd0 [ 33.666847][ C2] string_mt+0x28/0x35 [xt_string] [ 33.673217][ C2] ipt_do_table+0x29e/0x680 [ip_tables] [ 33.680020][ C2] ? sch_direct_xmit+0x10f/0x310 [ 33.686207][ C2] ? update_group_capacity+0x25/0x1e0 [ 33.692837][ C2] nf_hook_slow+0x40/0xb0 [ 33.698375][ C2] ip_sublist_rcv+0x253/0x280 [ 33.704207][ C2] ? ip_rcv_finish_core.isra.0+0x390/0x390 [ 33.711181][ C2] ip_list_rcv+0x119/0x13d [ 33.716782][ C2] __netif_receive_skb_list_core+0x246/0x270 [ 33.723956][ C2] netif_receive_skb_list_internal+0x1c3/0x2f0 [ 33.731304][ C2] gro_normal_list.part.0+0x19/0x40 [ 33.737682][ C2] napi_complete_done+0x86/0x120 [ 33.743796][ C2] bnx2_poll_msix+0x9f/0xd0 [bnx2] [ 33.750094][ C2] net_rx_action+0x161/0x3b0 [ 33.755875][ C2] __do_softirq+0xee/0x2ff [ 33.761475][ C2] irq_exit+0xe6/0xf0 [ 33.766630][ C2] do_IRQ+0x58/0xe0 [ 33.771597][ C2] common_interrupt+0xf/0xf [ 33.777254][ C2] </IRQ> [ 33.781338][ C2] RIP: 0010:cpuidle_enter_state+0xc4/0x450 [ 33.788286][ C2] Code: e8 41 ac a6 ff 80 7c 24 0f 00 74 17 9c 58 0f 1f 44 00 00 f6 c4 02 0f 85 61 03 00 00 31 ff e8 b3 d2 ac ff fb 66 0f 1f 44 00 00 <45> 85 e4 0f 88 8c 02 00 00 49 63 cc 4c 2b 6c 24 10 48 8d 04 49 48 [ 33.810453][ C2] RSP: 0000:ffffa311c00afe68 EFLAGS: 00000246 ORIG_RAX: ffffffffffffffdb [ 33.820114][ C2] RAX: ffff8fd27baaa940 RBX: ffffffff962c8600 RCX: 000000000000001f [ 33.829353][ C2] RDX: 0000000000000000 RSI: 000000002962574a RDI: 0000000000000000 [ 33.838591][ C2] RBP: ffff8fd27bab4600 R08: 00000007cd7ec639 R09: 0000000000000001 [ 33.847822][ C2] R10: 0000000000000000 R11: ffff8fd27baa9600 R12: 0000000000000004 [ 33.857051][ C2] R13: 00000007cd7ec639 R14: 0000000000000004 R15: ffff8fd247f73f80 [ 33.866286][ C2] ? cpuidle_enter_state+0x9f/0x450 [ 33.872730][ C2] cpuidle_enter+0x29/0x40 [ 33.878398][ C2] do_idle+0x1e1/0x270 [ 33.883712][ C2] cpu_startup_entry+0x19/0x20 [ 33.889725][ C2] start_secondary+0x173/0x1c0 [ 33.895738][ C2] secondary_startup_64+0xa4/0xb0 [ 33.902013][ C2] Modules linked in: xt_AUDIT xt_recent xt_connlimit nf_conncount xt_conntrack iptable_filter iptable_mangle xt_REDIRECT xt_nat iptable_nat nf_nat xt_comment ts_bm xt_multiport xt_addrtype xt_CT nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 libcrc32c crc32c_generic xt_string xt_set iptable_raw ip_tables x_tables bpfilter ip_set_hash_netportnet ip_set nfnetlink msr binfmt_misc intel_rapl_msr coretemp intel_rapl_common x86_pkg_temp_thermal intel_powerclamp kvm_intel kvm mgag200 drm_vram_helper ttm dm_mod irqbypass drm_kms_helper crct10dif_pclmul crc32_pclmul ghash_clmulni_intel igb drm aesni_intel crypto_simd cryptd glue_helper rapl iTCO_wdt bnx2 ipmi_ssif intel_cstate iTCO_vendor_support agpgart watchdog input_leds led_class intel_uncore fb_sys_fops dcdbas ipmi_si syscopyarea sr_mod joydev sysfillrect usbkbd evdev sysimgblt hwmon mac_hid cdrom pcspkr dca ipmi_devintf wmi i2c_i801 ie31200_edac i2c_algo_bit ipmi_msghandler rtc_cmos edac_core i2c_core thermal lpc_ich [ 33.902058][ C2] ata_generic pata_acpi button fan ext4 crc16 jbd2 mbcache sd_mod hid_generic usbhid hid ata_piix libata scsi_mod ehci_pci crc32c_intel ehci_hcd usbcore usb_common [ 34.019345][ C2] ---[ end trace 0e187ef046eab6b7 ]--- [ 34.092438][ C2] RIP: 0010:skb_seq_read+0x2d/0x200 [ 34.099145][ C2] Code: 44 00 00 4c 8b 4a 20 03 3a 39 7a 04 0f 86 a0 01 00 00 55 41 89 fa 53 48 8b 6a 18 65 48 8b 1c 25 c0 6b 01 00 49 89 db 8b 7a 0c <44> 8b 45 70 41 01 f8 44 2b 45 74 45 39 c2 0f 83 a1 00 00 00 4d 85 [ 34.122104][ C2] RSP: 0000:ffffa311c0148aa0 EFLAGS: 00010286 [ 34.129790][ C2] RAX: 00000000000000c0 RBX: ffff8fd247f73f80 RCX: ffff8fd2752cfa00 [ 34.139365][ C2] RDX: ffffa311c0148b08 RSI: ffffa311c0148ab8 RDI: 0000000000000058 [ 34.148906][ C2] RBP: dead000000000100 R08: ffff8fd273ed6500 R09: 0000000000000000 [ 34.158440][ C2] R10: 0000000000000058 R11: ffff8fd247f73f80 R12: ffffa311c0148b04 [ 34.167963][ C2] R13: 0000000000000058 R14: 0000000000000058 R15: 000000000000005f [ 34.177482][ C2] FS: 0000000000000000(0000) GS:ffff8fd27ba80000(0000) knlGS:0000000000000000 [ 34.187967][ C2] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 34.196113][ C2] CR2: 0000563ca98243fc CR3: 000000012d20a002 CR4: 00000000001606e0 [ 34.205655][ C2] Kernel panic - not syncing: Fatal exception in interrupt [ 34.324151][ C2] Kernel Offset: 0x14000000 from 0xffffffff81000000 (relocation range: 0xffffffff80000000-0xffffffffbfffffff) [ 34.407393][ C2] Rebooting in 5 seconds.. [ 39.413960][ C2] ACPI MEMORY or I/O RESET_REG. [ 33.655237][ C2] bm_find+0x52/0x120 [ts_bm] [ 33.661173][ C2] skb_find_text+0x77/0xd0 [ 33.666847][ C2] string_mt+0x28/0x35 [xt_string] [ 33.673217][ C2] ipt_do_table+0x29e/0x680 [ip_tables] [ 33.680020][ C2] ? sch_direct_xmit+0x10f/0x310 [ 33.686207][ C2] ? update_group_capacity+0x25/0x1e0 [ 33.692837][ C2] nf_hook_slow+0x40/0xb0 [ 33.698375][ C2] ip_sublist_rcv+0x253/0x280 [ 33.704207][ C2] ? ip_rcv_finish_core.isra.0+0x390/0x390 [ 33.711181][ C2] ip_list_rcv+0x119/0x13d [ 33.716782][ C2] __netif_receive_skb_list_core+0x246/0x270 [ 33.723956][ C2] netif_receive_skb_list_internal+0x1c3/0x2f0 [ 33.731304][ C2] gro_normal_list.part.0+0x19/0x40 [ 33.737682][ C2] napi_complete_done+0x86/0x120 [ 33.743796][ C2] bnx2_poll_msix+0x9f/0xd0 [bnx2] [ 33.750094][ C2] net_rx_action+0x161/0x3b0 [ 33.755875][ C2] __do_softirq+0xee/0x2ff [ 33.761475][ C2] irq_exit+0xe6/0xf0 [ 33.766630][ C2] do_IRQ+0x58/0xe0 [ 33.771597][ C2] common_interrupt+0xf/0xf [ 33.777254][ C2] </IRQ> [ 33.781338][ C2] RIP: 0010:cpuidle_enter_state+0xc4/0x450 [ 33.788286][ C2] Code: e8 41 ac a6 ff 80 7c 24 0f 00 74 17 9c 58 0f 1f 44 00 00 f6 c4 02 0f 85 61 03 00 00 31 ff e8 b3 d2 ac ff fb 66 0f 1f 44 00 00 <45> 85 e4 0f 88 8c 02 00 00 49 63 cc 4c 2b 6c 24 10 48 8d 04 49 48 [ 33.810453][ C2] RSP: 0000:ffffa311c00afe68 EFLAGS: 00000246 ORIG_RAX: ffffffffffffffdb [ 33.820114][ C2] RAX: ffff8fd27baaa940 RBX: ffffffff962c8600 RCX: 000000000000001f [ 33.829353][ C2] RDX: 0000000000000000 RSI: 000000002962574a RDI: 0000000000000000 [ 33.838591][ C2] RBP: ffff8fd27bab4600 R08: 00000007cd7ec639 R09: 0000000000000001 [ 33.847822][ C2] R10: 0000000000000000 R11: ffff8fd27baa9600 R12: 0000000000000004 [ 33.857051][ C2] R13: 00000007cd7ec639 R14: 0000000000000004 R15: ffff8fd247f73f80 [ 33.866286][ C2] ? cpuidle_enter_state+0x9f/0x450 [ 33.872730][ C2] cpuidle_enter+0x29/0x40 [ 33.878398][ C2] do_idle+0x1e1/0x270 [ 33.883712][ C2] cpu_startup_entry+0x19/0x20 [ 33.889725][ C2] start_secondary+0x173/0x1c0 [ 33.895738][ C2] secondary_startup_64+0xa4/0xb0 [ 33.902013][ C2] Modules linked in: xt_AUDIT xt_recent xt_connlimit nf_conncount xt_conntrack iptable_filter iptable_mangle xt_REDIRECT xt_nat iptable_nat nf_nat xt_comment ts_bm xt_multiport xt_addrtype xt_CT nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 libcrc32c crc32c_generic xt_string xt_set iptable_raw ip_tables x_tables bpfilter ip_set_hash_netportnet ip_set nfnetlink msr binfmt_misc intel_rapl_msr coretemp intel_rapl_common x86_pkg_temp_thermal intel_powerclamp kvm_intel kvm mgag200 drm_vram_helper ttm dm_mod irqbypass drm_kms_helper crct10dif_pclmul crc32_pclmul ghash_clmulni_intel igb drm aesni_intel crypto_simd cryptd glue_helper rapl iTCO_wdt bnx2 ipmi_ssif intel_cstate iTCO_vendor_support agpgart watchdog input_leds led_class intel_uncore fb_sys_fops dcdbas ipmi_si syscopyarea sr_mod joydev sysfillrect usbkbd evdev sysimgblt hwmon mac_hid cdrom pcspkr dca ipmi_devintf wmi i2c_i801 ie31200_edac i2c_algo_bit ipmi_msghandler rtc_cmos edac_core i2c_core thermal lpc_ich [ 33.902058][ C2] ata_generic pata_acpi button fan ext4 crc16 jbd2 mbcache sd_mod hid_generic usbhid hid ata_piix libata scsi_mod ehci_pci crc32c_intel ehci_hcd usbcore usb_common [ 34.019345][ C2] ---[ end trace 0e187ef046eab6b7 ]--- [ 34.092438][ C2] RIP: 0010:skb_seq_read+0x2c/0x200 [ 34.099145][ C2] Code: 44 00 00 4c 8b 4a 20 03 3a 39 7a 04 0f 86 a0 01 00 00 55 41 89 fa 53 48 8b 6a 18 65 48 8b 1c 25 c0 6b 01 00 49 89 db 8b 7a 0c <44> 8b 45 70 41 01 f8 44 2b 45 74 45 39 c2 0f 83 a1 00 00 00 4d 85 [ 34.122104][ C2] RSP: 0000:ffffa311c0148aa0 EFLAGS: 00010286 [ 34.129790][ C2] RAX: 00000000000000c0 RBX: ffff8fd247f73f80 RCX: ffff8fd2752cfa00 [ 34.139365][ C2] RDX: ffffa311c0148b08 RSI: ffffa311c0148ab8 RDI: 0000000000000058 [ 34.148906][ C2] RBP: dead000000000100 R08: ffff8fd273ed6500 R09: 0000000000000000 [ 34.158440][ C2] R10: 0000000000000058 R11: ffff8fd247f73f80 R12: ffffa311c0148b04 [ 34.167963][ C2] R13: 0000000000000058 R14: 0000000000000058 R15: 000000000000005f [ 34.177482][ C2] FS: 0000000000000000(0000) GS:ffff8fd27ba80000(0000) knlGS:0000000000000000 [ 34.187967][ C2] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 34.196113][ C2] CR2: 0000563ca98243fc CR3: 000000012d20a002 CR4: 00000000001606e0 [ 34.205655][ C2] Kernel panic - not syncing: Fatal exception in interrupt [ 34.324151][ C2] Kernel Offset: 0x14000000 from 0xffffffff81000000 (relocation range: 0xffffffff80000000-0xffffffffbfffffff) [ 34.407393][ C2] Rebooting in 5 seconds.. [ 39.413960][ C2] ACPI MEMORY or I/O RESET_REG.
Created attachment 293517 [details] panic log of 5.4.74
after some further analysis, the panic is seemed to be caused by a iptables string match rule. I did a test on 5.4.77, after insert a rule: iptables -t raw -I PREROUTING -m string --icase --algo bm --string "ancd" -j DROP kernel panic immediately w/ following log (partial): [ 691.906452][ C1] stack segment: 0000 [#1] SMP PTI [ 691.913110][ C1] CPU: 1 PID: 0 Comm: swapper/1 Tainted: G T 5.4.77-ks #2 [ 691.923074][ C1] Hardware name: Dell Inc. PowerEdge R210 II/0CP8FC, BIOS 2.10.0 05/24/2018 [ 691.933313][ C1] RIP: 0010:skb_seq_read+0x2c/0x200 [ 691.940096][ C1] Code: 44 00 00 4c 8b 4a 20 03 3a 39 7a 04 0f 86 a0 01 00 00 55 41 89 fa 53 48 8b 6a 18 65 48 8b 1c 25 c0 6b 01 00 49 89 db 8b 7a 0c <44> 8b 45 70 41 01 f8 44 2b 45 74 45 39 c2 0f 83 a1 00 00 00 4d 85 [ 691.963257][ C1] RSP: 0018:ffffbb6f00114aa0 EFLAGS: 00010286 [ 691.971006][ C1] RAX: 00000000000000c0 RBX: ffff962a07fddf40 RCX: ffff96298aeb5c00 [ 691.980684][ C1] RDX: ffffbb6f00114b08 RSI: ffffbb6f00114ab8 RDI: 0000000000000054 [ 691.990375][ C1] RBP: dead000000000100 R08: ffff96298ad90000 R09: 0000000000000000 [ 692.000072][ C1] R10: 0000000000000054 R11: ffff962a07fddf40 R12: ffffbb6f00114b04 [ 692.009778][ C1] R13: 0000000000000054 R14: 0000000000000054 R15: 0000000000000057 [ 692.019495][ C1] FS: 0000000000000000(0000) GS:ffff962a3ba40000(0000) knlGS:0000000000000000 [ 692.030170][ C1] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 692.038497][ C1] CR2: 00007f2ff0814000 CR3: 00000000aa20a004 CR4: 00000000001606e0 [ 692.048238][ C1] Call Trace: [ 692.053303][ C1] <IRQ> [ 692.057881][ C1] bm_find+0x52/0x120 [ts_bm] [ 692.064234][ C1] skb_find_text+0x77/0xd0 [ 692.070332][ C1] string_mt+0x28/0x35 [xt_string] [ 692.077136][ C1] ipt_do_table+0x29e/0x680 [ip_tables] [ 692.084330][ C1] ? nf_conntrack_destroy+0x1a/0x20 [ 692.091123][ C1] ? skb_release_head_state+0x5c/0x80 [ 692.098066][ C1] ? update_group_capacity+0x25/0x1e0 [ 692.104988][ C1] nf_hook_slow+0x40/0xb0 [ 692.110837][ C1] ip_sublist_rcv+0x253/0x280 [ 692.117033][ C1] ? ip_rcv_finish_core.isra.0+0x390/0x390 [ 692.124383][ C1] ip_list_rcv+0x119/0x13d [ 692.130338][ C1] __netif_receive_skb_list_core+0x246/0x270 [ 692.137841][ C1] netif_receive_skb_list_internal+0x1c3/0x2f0 [ 692.145528][ C1] gro_normal_list.part.0+0x19/0x40 [ 692.152269][ C1] napi_complete_done+0x86/0x120 [ 692.158747][ C1] bnx2_poll_msix+0x9f/0xd0 [bnx2] [ 692.165391][ C1] net_rx_action+0x161/0x3b0 [ 692.171503][ C1] __do_softirq+0xee/0x2ff [ 692.177429][ C1] irq_exit+0xe6/0xf0 [ 692.182914][ C1] do_IRQ+0x58/0xe0 [ 692.188209][ C1] common_interrupt+0xf/0xf [ 692.194197][ C1] </IRQ>
# uname -r 5.4.28-gentoo-ks # uptime 23:45:30 up 197 days, 21:16, 2 users, load average: 0.91, 0.86, 1.00 # Message from syslogd@xxx at Nov 18 23:48:21 ... kernel:[17097458.712223][ C4] Kernel panic - not syncing: Fatal exception in interrupt On a machine had been running over 197 days w/ kernel v5.4.28, after insert a iptables string match rule, system panic immediately. If we've a docker container running w/ CAP_NET_ADMIN, root in the container can panic the host w/ a single iptables command. This is a LOCAL DOS. I'd like to request a CVE after problem fixed. So can someone else reproduce this? If it's true, it's very important to fix it, since 5.4 is a longterm release.
Confirmed on Ubuntu 20.04.01 LTS with the official kernel in Vmware Fusion. # uname -a Linux us 5.4.0-53-generic #59-Ubuntu SMP Wed Oct 21 09:38:44 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux # cat /proc/version_signature Ubuntu 5.4.0-53.59-generic 5.4.65
(In reply to Z. Liu from comment #12) > # uname -r > 5.4.28-gentoo-ks > # uptime > 23:45:30 up 197 days, 21:16, 2 users, load average: 0.91, 0.86, 1.00 > # > Message from syslogd@xxx at Nov 18 23:48:21 ... > kernel:[17097458.712223][ C4] Kernel panic - not syncing: Fatal > exception in interrupt > > On a machine had been running over 197 days w/ kernel v5.4.28, after insert > a iptables string match rule, system panic immediately. > > If we've a docker container running w/ CAP_NET_ADMIN, root in the container > can panic the host w/ a single iptables command. This is a LOCAL DOS. I'd > like to request a CVE after problem fixed. > > So can someone else reproduce this? If it's true, it's very important to fix > it, since 5.4 is a longterm release. Confirmed that iptables -t raw -I PREROUTING -m string --icase --algo bm --string "ancd" -j DROP Does trigger the kernel panic for me as well. # uname -a Linux muth-dev 5.4.0-54-generic #60-Ubuntu SMP Fri Nov 6 10:37:59 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux # cat /proc/version_signature Ubuntu 5.4.0-54.60-generic 5.4.65 I also run a handful of docker containers, with one in particular (haugene/transmission-openvpn) using cap_add: NET_ADMIN in it's docker compose file. Happy that I've finally been able to track down and reproduce this kernel panic, I've been dealing with it for months. I'm a python dev and don't have a ton of experience with the kernel, but happy to help debug in any way I can.
Additionally, I did just upgrade to kernel 5.5.4 generic and the iptables command no longer triggers a panic. # uname -a Linux muth-dev 5.5.4-050504-generic #202002150446 SMP Sat Feb 15 09:50:30 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
Created attachment 293753 [details] Proposed patch Hi, all Can anyone test this patch?
(In reply to Cong Wang from comment #16) > Created attachment 293753 [details] > Proposed patch > > Hi, all > > Can anyone test this patch? Problem seems fixed. Kernel don't panic under my test environment. Before test this patch, I've seen that the kernel didn't panic on a vmware vm w/ vmxnet3 nic card, problem reproduced after switch nic to e1000.
Problem had been fixed in commit https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=linux-5.4.y&id=6ec51459df7117dbe9b1fef2174951f80877a850 , CVE-2020-35516 has been reserved for this problem.