[ 4216.002379][ C2] ================================================================== [ 4216.002681][ C2] BUG: KASAN: null-ptr-deref in sock_def_write_space_wfree+0x210/0x360 [ 4216.002962][ C2] Read of size 8 at addr 0000000000000008 by task ksoftirqd/2/28 [ 4216.003191][ C2] [ 4216.003268][ C2] CPU: 2 PID: 28 Comm: ksoftirqd/2 Not tainted 6.9.0-rc2-virtme #1 [ 4216.003467][ C2] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 4216.003760][ C2] Call Trace: [ 4216.003865][ C2] [ 4216.003939][ C2] dump_stack_lvl+0x82/0xd0 [ 4216.004085][ C2] kasan_report+0xbd/0xf0 [ 4216.004193][ C2] ? sock_def_write_space_wfree+0x210/0x360 [ 4216.004364][ C2] kasan_check_range+0x39/0x1c0 [ 4216.004499][ C2] sock_def_write_space_wfree+0x210/0x360 [ 4216.004630][ C2] sock_wfree+0x25f/0x3e0 [ 4216.004730][ C2] skb_release_head_state+0x7a/0x1e0 [ 4216.004863][ C2] consume_skb+0x76/0x110 [ 4216.004963][ C2] skb_pp_cow_data+0x66b/0xad0 [ 4216.005097][ C2] ? __pfx_skb_pp_cow_data+0x10/0x10 [ 4216.005232][ C2] ? veth_xdp_rcv_skb+0x124/0x17f0 [ 4216.005366][ C2] veth_xdp_rcv_skb+0x322/0x17f0 [ 4216.005505][ C2] ? __pfx_veth_xdp_rcv_skb+0x10/0x10 [ 4216.005636][ C2] ? dev_gro_receive+0x1ea/0x1390 [ 4216.005771][ C2] ? trace_napi_gro_receive_exit+0xf3/0x160 [ 4216.005933][ C2] ? napi_gro_receive+0x533/0x780 [ 4216.006065][ C2] veth_xdp_rcv+0x2ff/0xa20 [ 4216.006197][ C2] ? stack_trace_save+0x94/0xd0 [ 4216.006333][ C2] ? __pfx_stack_trace_save+0x10/0x10 [ 4216.006464][ C2] ? __pfx_veth_xdp_rcv+0x10/0x10 [ 4216.006598][ C2] ? kasan_save_stack+0x34/0x50 [ 4216.006730][ C2] ? kasan_save_stack+0x24/0x50 [ 4216.006862][ C2] ? hlock_class+0x4e/0x130 [ 4216.006993][ C2] ? validate_chain+0x130/0x9b0 [ 4216.007125][ C2] veth_poll+0xff/0x620 [ 4216.007225][ C2] ? __pfx_validate_chain+0x10/0x10 [ 4216.007356][ C2] ? __pfx_veth_poll+0x10/0x10 [ 4216.007491][ C2] ? __lock_acquire+0xaf0/0x1570 [ 4216.007624][ C2] ? find_held_lock+0x2c/0x110 [ 4216.007755][ C2] ? __lock_release+0x103/0x460 [ 4216.007886][ C2] ? finish_task_switch.isra.0+0x20f/0x8c0 [ 4216.008051][ C2] ? __pfx___lock_release+0x10/0x10 [ 4216.008183][ C2] ? find_held_lock+0x2c/0x110 [ 4216.008315][ C2] __napi_poll.constprop.0+0xa2/0x460 [ 4216.008450][ C2] net_rx_action+0x49f/0xc00 [ 4216.008585][ C2] ? __schedule+0x6ea/0x1a20 [ 4216.008717][ C2] ? __pfx_net_rx_action+0x10/0x10 [ 4216.008850][ C2] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 4216.008982][ C2] __do_softirq+0x1f8/0x5df [ 4216.009116][ C2] ? __pfx_run_ksoftirqd+0x10/0x10 [ 4216.009248][ C2] run_ksoftirqd+0x2e/0x60 [ 4216.009379][ C2] smpboot_thread_fn+0x306/0x840 [ 4216.009513][ C2] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 4216.009646][ C2] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 4216.009776][ C2] kthread+0x28a/0x350 [ 4216.009876][ C2] ? __pfx_kthread+0x10/0x10 [ 4216.010009][ C2] ret_from_fork+0x31/0x70 [ 4216.010142][ C2] ? __pfx_kthread+0x10/0x10 [ 4216.010272][ C2] ret_from_fork_asm+0x1a/0x30 [ 4216.010407][ C2] [ 4216.010508][ C2] ================================================================== [ 4216.010719][ C2] Disabling lock debugging due to kernel taint [ 4216.010922][ C2] general protection fault, probably for non-canonical address 0xdffffc0000000001: 0000 [#1] PREEMPT SMP KASAN NOPTI [ 4216.011218][ C2] KASAN: null-ptr-deref in range [0x0000000000000008-0x000000000000000f] [ 4216.011411][ C2] CPU: 2 PID: 28 Comm: ksoftirqd/2 Tainted: G B 6.9.0-rc2-virtme #1 [ 4216.011643][ C2] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 4216.011943][ C2] RIP: 0010:sock_def_write_space_wfree+0x221/0x360 [ 4216.012117][ C2] Code: 00 4c 8b bb a0 01 00 00 be 08 00 00 00 4d 8d 77 08 4c 89 f7 e8 e0 0e 8b fe 4c 89 f2 48 b8 00 00 00 00 00 fc ff df 48 c1 ea 03 <80> 3c 02 00 0f 85 fe 00 00 00 49 8b 47 08 a8 04 0f 85 dc fe ff ff [ 4216.012603][ C2] RSP: 0018:ffffc900002076b8 EFLAGS: 00010202 [ 4216.012785][ C2] RAX: dffffc0000000000 RBX: ffff888003ba3e40 RCX: ffffffff9499564a [ 4216.012992][ C2] RDX: 0000000000000001 RSI: 0000000000000008 RDI: ffffffff99efda00 [ 4216.013196][ C2] RBP: ffff888003ba3ea0 R08: 0000000000000001 R09: fffffbfff33dfb40 [ 4216.013397][ C2] R10: ffffffff99efda07 R11: 205d324320202020 R12: 0000000000000000 [ 4216.013580][ C2] R13: ffff888003ba3fc0 R14: 0000000000000008 R15: 0000000000000000 [ 4216.013769][ C2] FS: 0000000000000000(0000) GS:ffff888036100000(0000) knlGS:0000000000000000 [ 4216.013981][ C2] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 4216.014140][ C2] CR2: 00007fbbde4fd000 CR3: 0000000023938003 CR4: 0000000000770ef0 [ 4216.014327][ C2] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 4216.014509][ C2] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [ 4216.014697][ C2] PKRU: 55555554 [ 4216.014793][ C2] Call Trace: [ 4216.014885][ C2] [ 4216.014951][ C2] ? die_addr+0x41/0xa0 [ 4216.015046][ C2] ? exc_general_protection+0x149/0x220 [ 4216.015178][ C2] ? asm_exc_general_protection+0x26/0x30 [ 4216.015305][ C2] ? add_taint+0x2a/0x90 [ 4216.015400][ C2] ? sock_def_write_space_wfree+0x221/0x360 [ 4216.015557][ C2] ? sock_def_write_space_wfree+0x210/0x360 [ 4216.015713][ C2] sock_wfree+0x25f/0x3e0 [ 4216.015808][ C2] skb_release_head_state+0x7a/0x1e0 [ 4216.015930][ C2] consume_skb+0x76/0x110 [ 4216.016024][ C2] skb_pp_cow_data+0x66b/0xad0 [ 4216.016152][ C2] ? __pfx_skb_pp_cow_data+0x10/0x10 [ 4216.016275][ C2] ? veth_xdp_rcv_skb+0x124/0x17f0 [ 4216.016399][ C2] veth_xdp_rcv_skb+0x322/0x17f0 [ 4216.016525][ C2] ? __pfx_veth_xdp_rcv_skb+0x10/0x10 [ 4216.016647][ C2] ? dev_gro_receive+0x1ea/0x1390 [ 4216.016772][ C2] ? trace_napi_gro_receive_exit+0xf3/0x160 [ 4216.016927][ C2] ? napi_gro_receive+0x533/0x780 [ 4216.017050][ C2] veth_xdp_rcv+0x2ff/0xa20 [ 4216.017179][ C2] ? stack_trace_save+0x94/0xd0 [ 4216.017303][ C2] ? __pfx_stack_trace_save+0x10/0x10 [ 4216.017424][ C2] ? __pfx_veth_xdp_rcv+0x10/0x10 [ 4216.017547][ C2] ? kasan_save_stack+0x34/0x50 [ 4216.017676][ C2] ? kasan_save_stack+0x24/0x50 [ 4216.017800][ C2] ? hlock_class+0x4e/0x130 [ 4216.017922][ C2] ? validate_chain+0x130/0x9b0 [ 4216.018046][ C2] veth_poll+0xff/0x620 [ 4216.018141][ C2] ? __pfx_validate_chain+0x10/0x10 [ 4216.018265][ C2] ? __pfx_veth_poll+0x10/0x10 [ 4216.018388][ C2] ? __lock_acquire+0xaf0/0x1570 [ 4216.018511][ C2] ? find_held_lock+0x2c/0x110 [ 4216.018632][ C2] ? __lock_release+0x103/0x460 [ 4216.018759][ C2] ? finish_task_switch.isra.0+0x20f/0x8c0 [ 4216.018913][ C2] ? __pfx___lock_release+0x10/0x10 [ 4216.019036][ C2] ? find_held_lock+0x2c/0x110 [ 4216.019161][ C2] __napi_poll.constprop.0+0xa2/0x460 [ 4216.019284][ C2] net_rx_action+0x49f/0xc00 [ 4216.019410][ C2] ? __schedule+0x6ea/0x1a20 [ 4216.019534][ C2] ? __pfx_net_rx_action+0x10/0x10 [ 4216.019658][ C2] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 4216.019785][ C2] __do_softirq+0x1f8/0x5df [ 4216.019911][ C2] ? __pfx_run_ksoftirqd+0x10/0x10 [ 4216.020035][ C2] run_ksoftirqd+0x2e/0x60 [ 4216.020157][ C2] smpboot_thread_fn+0x306/0x840 [ 4216.020279][ C2] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 4216.020401][ C2] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 4216.020522][ C2] kthread+0x28a/0x350 [ 4216.020614][ C2] ? __pfx_kthread+0x10/0x10 [ 4216.020739][ C2] ret_from_fork+0x31/0x70 [ 4216.020862][ C2] ? __pfx_kthread+0x10/0x10 [ 4216.020987][ C2] ret_from_fork_asm+0x1a/0x30 [ 4216.021115][ C2] [ 4216.021209][ C2] Modules linked in: sctp cls_matchall ip6_gre gre l2tp_ip6 l2tp_eth l2tp_ip l2tp_netlink l2tp_core xt_length act_ct nf_flow_table act_mirred cls_u32 ifb drop_monitor act_gact cls_flower sch_ingress netdevsim psample nft_chain_nat xt_nat nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 sha1_generic xfrm_user xt_policy nft_compat nf_tables libcrc32c vxlan mpls_iptunnel mpls_router [last unloaded: test_blackhole_dev] [ 4216.022121][ C2] ---[ end trace 0000000000000000 ]--- [ 4216.022260][ C2] RIP: 0010:sock_def_write_space_wfree+0x221/0x360 [ 4216.022466][ C2] Code: 00 4c 8b bb a0 01 00 00 be 08 00 00 00 4d 8d 77 08 4c 89 f7 e8 e0 0e 8b fe 4c 89 f2 48 b8 00 00 00 00 00 fc ff df 48 c1 ea 03 <80> 3c 02 00 0f 85 fe 00 00 00 49 8b 47 08 a8 04 0f 85 dc fe ff ff [ 4216.022934][ C2] RSP: 0018:ffffc900002076b8 EFLAGS: 00010202 [ 4216.023114][ C2] RAX: dffffc0000000000 RBX: ffff888003ba3e40 RCX: ffffffff9499564a [ 4216.023315][ C2] RDX: 0000000000000001 RSI: 0000000000000008 RDI: ffffffff99efda00 [ 4216.023518][ C2] RBP: ffff888003ba3ea0 R08: 0000000000000001 R09: fffffbfff33dfb40 [ 4216.023721][ C2] R10: ffffffff99efda07 R11: 205d324320202020 R12: 0000000000000000 [ 4216.023924][ C2] R13: ffff888003ba3fc0 R14: 0000000000000008 R15: 0000000000000000 [ 4216.024131][ C2] FS: 0000000000000000(0000) GS:ffff888036100000(0000) knlGS:0000000000000000 [ 4216.024377][ C2] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 4216.024550][ C2] CR2: 00007fbbde4fd000 CR3: 0000000023938003 CR4: 0000000000770ef0 [ 4216.024761][ C2] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 4216.024967][ C2] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [ 4216.025174][ C2] PKRU: 55555554 [ 4216.025281][ C2] Kernel panic - not syncing: Fatal exception in interrupt [ 4216.025555][ C2] Kernel Offset: 0x13600000 from 0xffffffff81000000 (relocation range: 0xffffffff80000000-0xffffffffbfffffff) [ 4216.025844][ C2] ---[ end Kernel panic - not syncing: Fatal exception in interrupt ]--- WAIT TIMEOUT stderr Ctrl-C stderr Ctrl-C stderr WAIT TIMEOUT stderr