[ 3504.300851][ C0] ================================================================== [ 3504.301143][ C0] BUG: KASAN: null-ptr-deref in sock_def_write_space_wfree+0x210/0x370 [ 3504.301354][ C0] Read of size 8 at addr 0000000000000008 by task ksoftirqd/0/15 [ 3504.301543][ C0] [ 3504.301616][ C0] CPU: 0 PID: 15 Comm: ksoftirqd/0 Not tainted 6.9.0-rc2-virtme #1 [ 3504.301805][ C0] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 3504.302088][ C0] Call Trace: [ 3504.302193][ C0] [ 3504.302261][ C0] dump_stack_lvl+0x82/0xd0 [ 3504.302395][ C0] kasan_report+0xbd/0xf0 [ 3504.302492][ C0] ? sock_def_write_space_wfree+0x210/0x370 [ 3504.302663][ C0] kasan_check_range+0x39/0x1c0 [ 3504.302802][ C0] sock_def_write_space_wfree+0x210/0x370 [ 3504.302956][ C0] sock_wfree+0x25f/0x3e0 [ 3504.303062][ C0] skb_release_head_state+0x7a/0x1e0 [ 3504.303187][ C0] consume_skb+0x76/0x110 [ 3504.303285][ C0] skb_pp_cow_data+0x66b/0xad0 [ 3504.303414][ C0] ? __pfx_skb_pp_cow_data+0x10/0x10 [ 3504.303538][ C0] ? veth_xdp_rcv_skb+0x124/0x17f0 [ 3504.303665][ C0] veth_xdp_rcv_skb+0x322/0x17f0 [ 3504.303791][ C0] ? __pfx_veth_xdp_rcv_skb+0x10/0x10 [ 3504.303924][ C0] ? dev_gro_receive+0x1ea/0x1390 [ 3504.304051][ C0] ? trace_napi_gro_receive_exit+0xf3/0x160 [ 3504.304205][ C0] ? napi_gro_receive+0x533/0x780 [ 3504.304330][ C0] veth_xdp_rcv+0x2ff/0xa20 [ 3504.304459][ C0] ? stack_trace_save+0x94/0xd0 [ 3504.304585][ C0] ? __pfx_stack_trace_save+0x10/0x10 [ 3504.304711][ C0] ? __pfx_veth_xdp_rcv+0x10/0x10 [ 3504.304837][ C0] ? kasan_save_stack+0x34/0x50 [ 3504.304965][ C0] ? kasan_save_stack+0x24/0x50 [ 3504.305094][ C0] ? hlock_class+0x4e/0x130 [ 3504.305219][ C0] ? validate_chain+0x130/0x9b0 [ 3504.305347][ C0] veth_poll+0xff/0x620 [ 3504.305444][ C0] ? __pfx_validate_chain+0x10/0x10 [ 3504.305570][ C0] ? __pfx_veth_poll+0x10/0x10 [ 3504.305695][ C0] ? __lock_acquire+0xaf0/0x1570 [ 3504.305821][ C0] ? find_held_lock+0x2c/0x110 [ 3504.305949][ C0] ? __lock_release+0x103/0x460 [ 3504.306075][ C0] ? finish_task_switch.isra.0+0x20f/0x8c0 [ 3504.306238][ C0] ? __pfx___lock_release+0x10/0x10 [ 3504.306361][ C0] ? find_held_lock+0x2c/0x110 [ 3504.306487][ C0] __napi_poll.constprop.0+0xa2/0x460 [ 3504.306618][ C0] net_rx_action+0x49f/0xc00 [ 3504.306745][ C0] ? __schedule+0x6ea/0x1a20 [ 3504.306873][ C0] ? __pfx_net_rx_action+0x10/0x10 [ 3504.307001][ C0] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 3504.307133][ C0] __do_softirq+0x1f8/0x5df [ 3504.307259][ C0] ? __pfx_run_ksoftirqd+0x10/0x10 [ 3504.307386][ C0] run_ksoftirqd+0x2e/0x60 [ 3504.307511][ C0] smpboot_thread_fn+0x306/0x840 [ 3504.307639][ C0] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 3504.307764][ C0] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 3504.307888][ C0] kthread+0x28a/0x350 [ 3504.307984][ C0] ? __pfx_kthread+0x10/0x10 [ 3504.308110][ C0] ret_from_fork+0x31/0x70 [ 3504.308243][ C0] ? __pfx_kthread+0x10/0x10 [ 3504.308368][ C0] ret_from_fork_asm+0x1a/0x30 [ 3504.308501][ C0] [ 3504.308598][ C0] ================================================================== [ 3504.308796][ C0] Disabling lock debugging due to kernel taint [ 3504.308980][ C0] general protection fault, probably for non-canonical address 0xdffffc0000000001: 0000 [#1] PREEMPT SMP KASAN NOPTI [ 3504.309260][ C0] KASAN: null-ptr-deref in range [0x0000000000000008-0x000000000000000f] [ 3504.309440][ C0] CPU: 0 PID: 15 Comm: ksoftirqd/0 Tainted: G B 6.9.0-rc2-virtme #1 [ 3504.309659][ C0] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 3504.309931][ C0] RIP: 0010:sock_def_write_space_wfree+0x221/0x370 [ 3504.310094][ C0] Code: 00 4c 8b b3 a0 01 00 00 be 08 00 00 00 4d 8d 7e 08 4c 89 ff e8 b0 0b 8b fe 4c 89 fa 48 b8 00 00 00 00 00 fc ff df 48 c1 ea 03 <80> 3c 02 00 0f 85 1e 01 00 00 49 8b 46 08 a8 04 0f 84 5c fe ff ff [ 3504.310542][ C0] RSP: 0018:ffffc900000ff6b8 EFLAGS: 00010202 [ 3504.310703][ C0] RAX: dffffc0000000000 RBX: ffff888006899140 RCX: ffffffff84d9564a [ 3504.310902][ C0] RDX: 0000000000000001 RSI: 0000000000000008 RDI: ffffffff8a2ffa00 [ 3504.311089][ C0] RBP: ffff8880068991a0 R08: 0000000000000001 R09: fffffbfff145ff40 [ 3504.311283][ C0] R10: ffffffff8a2ffa07 R11: 205d304320202020 R12: 0000000000000000 [ 3504.311474][ C0] R13: ffff8880068992c0 R14: 0000000000000000 R15: 0000000000000008 [ 3504.311664][ C0] FS: 0000000000000000(0000) GS:ffff888036000000(0000) knlGS:0000000000000000 [ 3504.311883][ C0] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 3504.312046][ C0] CR2: 00007fbdce2cb000 CR3: 0000000025738006 CR4: 0000000000770ef0 [ 3504.312235][ C0] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 3504.312423][ C0] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [ 3504.312613][ C0] PKRU: 55555554 [ 3504.312711][ C0] Call Trace: [ 3504.312809][ C0] [ 3504.312878][ C0] ? die_addr+0x41/0xa0 [ 3504.312983][ C0] ? exc_general_protection+0x149/0x220 [ 3504.313114][ C0] ? asm_exc_general_protection+0x26/0x30 [ 3504.313246][ C0] ? add_taint+0x2a/0x90 [ 3504.313346][ C0] ? sock_def_write_space_wfree+0x221/0x370 [ 3504.313503][ C0] ? sock_def_write_space_wfree+0x210/0x370 [ 3504.313729][ C0] sock_wfree+0x25f/0x3e0 [ 3504.313832][ C0] skb_release_head_state+0x7a/0x1e0 [ 3504.313957][ C0] consume_skb+0x76/0x110 [ 3504.314050][ C0] skb_pp_cow_data+0x66b/0xad0 [ 3504.314176][ C0] ? __pfx_skb_pp_cow_data+0x10/0x10 [ 3504.314365][ C0] ? veth_xdp_rcv_skb+0x124/0x17f0 [ 3504.314558][ C0] veth_xdp_rcv_skb+0x322/0x17f0 [ 3504.314684][ C0] ? __pfx_veth_xdp_rcv_skb+0x10/0x10 [ 3504.314879][ C0] ? dev_gro_receive+0x1ea/0x1390 [ 3504.315077][ C0] ? trace_napi_gro_receive_exit+0xf3/0x160 [ 3504.315308][ C0] ? napi_gro_receive+0x533/0x780 [ 3504.315504][ C0] veth_xdp_rcv+0x2ff/0xa20 [ 3504.315630][ C0] ? stack_trace_save+0x94/0xd0 [ 3504.315819][ C0] ? __pfx_stack_trace_save+0x10/0x10 [ 3504.315941][ C0] ? __pfx_veth_xdp_rcv+0x10/0x10 [ 3504.316065][ C0] ? kasan_save_stack+0x34/0x50 [ 3504.316189][ C0] ? kasan_save_stack+0x24/0x50 [ 3504.316381][ C0] ? hlock_class+0x4e/0x130 [ 3504.316503][ C0] ? validate_chain+0x130/0x9b0 [ 3504.316632][ C0] veth_poll+0xff/0x620 [ 3504.316725][ C0] ? __pfx_validate_chain+0x10/0x10 [ 3504.316847][ C0] ? __pfx_veth_poll+0x10/0x10 [ 3504.317036][ C0] ? __lock_acquire+0xaf0/0x1570 [ 3504.317161][ C0] ? find_held_lock+0x2c/0x110 [ 3504.317283][ C0] ? __lock_release+0x103/0x460 [ 3504.317403][ C0] ? finish_task_switch.isra.0+0x20f/0x8c0 [ 3504.317622][ C0] ? __pfx___lock_release+0x10/0x10 [ 3504.317745][ C0] ? find_held_lock+0x2c/0x110 [ 3504.317872][ C0] __napi_poll.constprop.0+0xa2/0x460 [ 3504.317997][ C0] net_rx_action+0x49f/0xc00 [ 3504.318188][ C0] ? __schedule+0x6ea/0x1a20 [ 3504.318311][ C0] ? __pfx_net_rx_action+0x10/0x10 [ 3504.318436][ C0] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 3504.318559][ C0] __do_softirq+0x1f8/0x5df [ 3504.318754][ C0] ? __pfx_run_ksoftirqd+0x10/0x10 [ 3504.318876][ C0] run_ksoftirqd+0x2e/0x60 [ 3504.319003][ C0] smpboot_thread_fn+0x306/0x840 [ 3504.319128][ C0] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 3504.319251][ C0] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 3504.319439][ C0] kthread+0x28a/0x350 [ 3504.319531][ C0] ? __pfx_kthread+0x10/0x10 [ 3504.319655][ C0] ret_from_fork+0x31/0x70 [ 3504.319777][ C0] ? __pfx_kthread+0x10/0x10 [ 3504.319966][ C0] ret_from_fork_asm+0x1a/0x30 [ 3504.320094][ C0] [ 3504.320191][ C0] Modules linked in: nft_chain_nat xt_nat nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 cls_matchall act_gact cls_flower sch_ingress sha1_generic xfrm_user xt_policy nft_compat nf_tables libcrc32c vxlan mpls_iptunnel mpls_router [ 3504.320771][ C0] ---[ end trace 0000000000000000 ]--- [ 3504.320896][ C0] RIP: 0010:sock_def_write_space_wfree+0x221/0x370 [ 3504.321052][ C0] Code: 00 4c 8b b3 a0 01 00 00 be 08 00 00 00 4d 8d 7e 08 4c 89 ff e8 b0 0b 8b fe 4c 89 fa 48 b8 00 00 00 00 00 fc ff df 48 c1 ea 03 <80> 3c 02 00 0f 85 1e 01 00 00 49 8b 46 08 a8 04 0f 84 5c fe ff ff [ 3504.321563][ C0] RSP: 0018:ffffc900000ff6b8 EFLAGS: 00010202 [ 3504.321792][ C0] RAX: dffffc0000000000 RBX: ffff888006899140 RCX: ffffffff84d9564a [ 3504.321975][ C0] RDX: 0000000000000001 RSI: 0000000000000008 RDI: ffffffff8a2ffa00 [ 3504.322157][ C0] RBP: ffff8880068991a0 R08: 0000000000000001 R09: fffffbfff145ff40 [ 3504.322403][ C0] R10: ffffffff8a2ffa07 R11: 205d304320202020 R12: 0000000000000000 [ 3504.322589][ C0] R13: ffff8880068992c0 R14: 0000000000000000 R15: 0000000000000008 [ 3504.322769][ C0] FS: 0000000000000000(0000) GS:ffff888036000000(0000) knlGS:0000000000000000 [ 3504.323113][ C0] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 3504.323273][ C0] CR2: 00007fbdce2cb000 CR3: 0000000025738006 CR4: 0000000000770ef0 [ 3504.323457][ C0] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 3504.323710][ C0] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [ 3504.323892][ C0] PKRU: 55555554 [ 3504.323988][ C0] Kernel panic - not syncing: Fatal exception in interrupt [ 3504.324367][ C0] Kernel Offset: 0x3a00000 from 0xffffffff81000000 (relocation range: 0xffffffff80000000-0xffffffffbfffffff) [ 3504.324653][ C0] ---[ end Kernel panic - not syncing: Fatal exception in interrupt ]--- WAIT TIMEOUT stderr Ctrl-C stderr Ctrl-C stderr WAIT TIMEOUT stderr