====================================== | [ 298.309807][ C3] ================================================================== | [ 298.310096][ C3] BUG: KASAN: null-ptr-deref in sock_def_write_space_wfree (./arch/x86/include/asm/bitops.h:206 ./arch/x86/include/asm/bitops.h:238 ./include/asm-generic/bitops/instrumented-non-atomic.h:142 net/core/sock.c:3397) | [ 298.310318][ C3] Read of size 8 at addr 0000000000000008 by task ksoftirqd/3/33 | [ 298.310520][ C3] [ 298.310791][ C3] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 298.311079][ C3] Call Trace: [ 298.311181][ C3] [ 298.311251][ C3] dump_stack_lvl (lib/dump_stack.c:117) [ 298.311387][ C3] kasan_report (mm/kasan/report.c:603) [ 298.311492][ C3] ? sock_def_write_space_wfree (./arch/x86/include/asm/bitops.h:206 ./arch/x86/include/asm/bitops.h:238 ./include/asm-generic/bitops/instrumented-non-atomic.h:142 net/core/sock.c:3397) [ 298.311653][ C3] kasan_check_range (mm/kasan/generic.c:183 mm/kasan/generic.c:189) [ 298.311789][ C3] sock_def_write_space_wfree (./arch/x86/include/asm/bitops.h:206 ./arch/x86/include/asm/bitops.h:238 ./include/asm-generic/bitops/instrumented-non-atomic.h:142 net/core/sock.c:3397) [ 298.311918][ C3] sock_wfree (./include/linux/rcupdate.h:810 net/core/sock.c:2471) [ 298.312016][ C3] skb_release_head_state (net/core/skbuff.c:1162 (discriminator 3)) [ 298.312201][ C3] consume_skb (net/core/skbuff.c:1174 net/core/skbuff.c:1189 net/core/skbuff.c:1405 net/core/skbuff.c:1399) [ 298.312307][ C3] skb_pp_cow_data (net/core/skbuff.c:987) [ 298.312449][ C3] ? __pfx_skb_pp_cow_data (net/core/skbuff.c:916) [ 298.312579][ C3] ? veth_xdp_rcv_skb (./include/linux/rcupdate.h:329 ./include/linux/rcupdate.h:781 drivers/net/veth.c:775) [ 298.312712][ C3] veth_xdp_rcv_skb (drivers/net/veth.c:732 drivers/net/veth.c:783) [ 298.312842][ C3] ? __pfx_veth_xdp_rcv_skb (drivers/net/veth.c:765) [ 298.312968][ C3] ? dev_gro_receive (./arch/x86/include/asm/bitops.h:227 ./arch/x86/include/asm/bitops.h:239 ./include/asm-generic/bitops/instrumented-non-atomic.h:142 net/core/gro.c:537) [ 298.313100][ C3] ? trace_napi_gro_receive_exit (./include/trace/events/net.h:288 (discriminator 52)) [ 298.313256][ C3] ? napi_gro_receive (net/core/gro.c:617) [ 298.313384][ C3] veth_xdp_rcv (drivers/net/veth.c:905) [ 298.313514][ C3] ? __pfx_veth_xdp_rcv (drivers/net/veth.c:875) [ 298.313643][ C3] ? __lock_acquire (kernel/locking/lockdep.c:5137) [ 298.313776][ C3] ? hlock_class (./arch/x86/include/asm/bitops.h:227 ./arch/x86/include/asm/bitops.h:239 ./include/asm-generic/bitops/instrumented-non-atomic.h:142 kernel/locking/lockdep.c:228) [ 298.313902][ C3] ? validate_chain (./include/linux/hash.h:78 kernel/locking/lockdep.c:3759 kernel/locking/lockdep.c:3782 kernel/locking/lockdep.c:3837) [ 298.314033][ C3] veth_poll (drivers/net/veth.c:943) [ 298.314130][ C3] ? __pfx_veth_poll (drivers/net/veth.c:931) [ 298.314257][ C3] ? mark_lock (kernel/locking/lockdep.c:4656 (discriminator 3)) [ 298.314357][ C3] ? hlock_class (./arch/x86/include/asm/bitops.h:227 ./arch/x86/include/asm/bitops.h:239 ./include/asm-generic/bitops/instrumented-non-atomic.h:142 kernel/locking/lockdep.c:228) [ 298.314483][ C3] ? mark_lock (kernel/locking/lockdep.c:4656 (discriminator 3)) [ 298.314581][ C3] ? __lock_acquire (kernel/locking/lockdep.c:5137) [ 298.314714][ C3] ? __lock_release (kernel/locking/lockdep.c:5430) [ 298.314841][ C3] ? find_held_lock (kernel/locking/lockdep.c:5244) [ 298.314972][ C3] __napi_poll.constprop.0 (net/core/dev.c:6701) [ 298.315101][ C3] net_rx_action (net/core/dev.c:6770 net/core/dev.c:6886) [ 298.315230][ C3] ? __pfx_net_rx_action (net/core/dev.c:6850) [ 298.315358][ C3] ? __pfx_tmigr_handle_remote (kernel/time/timer_migration.c:1026) [ 298.315488][ C3] ? __pfx_lock_acquire.part.0 (kernel/locking/lockdep.c:5719) [ 298.315616][ C3] __do_softirq (kernel/softirq.c:554) [ 298.315746][ C3] ? __pfx_run_ksoftirqd (kernel/softirq.c:917) [ 298.315874][ C3] run_ksoftirqd (kernel/softirq.c:411 kernel/softirq.c:925 kernel/softirq.c:916) [ 298.316003][ C3] smpboot_thread_fn (kernel/smpboot.c:164 (discriminator 3)) [ 298.316133][ C3] ? __pfx_smpboot_thread_fn (kernel/smpboot.c:107) [ 298.316274][ C3] ? __pfx_smpboot_thread_fn (kernel/smpboot.c:107) [ 298.316402][ C3] kthread (kernel/kthread.c:388) [ 298.316497][ C3] ? __pfx_kthread (kernel/kthread.c:341) [ 298.316629][ C3] ret_from_fork (arch/x86/kernel/process.c:147) [ 298.316759][ C3] ? __pfx_kthread (kernel/kthread.c:341) [ 298.317215][ C3] ret_from_fork_asm (arch/x86/entry/entry_64.S:256) | [ 298.317449][ C3] ================================================================== | [ 298.318090][ C3] Disabling lock debugging due to kernel taint | [ 298.318279][ C3] general protection fault, probably for non-canonical address 0xdffffc0000000001: 0000 [#1] PREEMPT SMP KASAN NOPTI | [ 298.318558][ C3] KASAN: null-ptr-deref in range [0x0000000000000008-0x000000000000000f] [ 298.318975][ C3] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 298.319254][ C3] RIP: 0010:sock_def_write_space_wfree (./arch/x86/include/asm/bitops.h:206 ./arch/x86/include/asm/bitops.h:238 ./include/asm-generic/bitops/instrumented-non-atomic.h:142 net/core/sock.c:3397) [ 298.319422][ C3] 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 All code ======== 0: 00 4c 8b bb add %cl,-0x45(%rbx,%rcx,4) 4: a0 01 00 00 be 08 00 movabs 0x8be000001,%al b: 00 00 d: 4d 8d 77 08 lea 0x8(%r15),%r14 11: 4c 89 f7 mov %r14,%rdi 14: e8 e0 0e 8b fe call 0xfffffffffe8b0ef9 19: 4c 89 f2 mov %r14,%rdx 1c: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax 23: fc ff df 26: 48 c1 ea 03 shr $0x3,%rdx 2a:* 80 3c 02 00 cmpb $0x0,(%rdx,%rax,1) <-- trapping instruction 2e: 0f 85 fe 00 00 00 jne 0x132 34: 49 8b 47 08 mov 0x8(%r15),%rax 38: a8 04 test $0x4,%al 3a: 0f 85 dc fe ff ff jne 0xffffffffffffff1c Code starting with the faulting instruction =========================================== 0: 80 3c 02 00 cmpb $0x0,(%rdx,%rax,1) 4: 0f 85 fe 00 00 00 jne 0x108 a: 49 8b 47 08 mov 0x8(%r15),%rax e: a8 04 test $0x4,%al 10: 0f 85 dc fe ff ff jne 0xfffffffffffffef2 [ 298.319877][ C3] RSP: 0018:ffffc9000025f6b8 EFLAGS: 00010202 [ 298.320041][ C3] RAX: dffffc0000000000 RBX: ffff88800c0aecc0 RCX: ffffffffb179564a [ 298.320232][ C3] RDX: 0000000000000001 RSI: 0000000000000008 RDI: ffffffffb6cfda00 [ 298.320439][ C3] RBP: ffff88800c0aed20 R08: 0000000000000001 R09: fffffbfff6d9fb40 [ 298.320634][ C3] R10: ffffffffb6cfda07 R11: 205d334320202020 R12: 0000000000000000 [ 298.320824][ C3] R13: ffff88800c0aee40 R14: 0000000000000008 R15: 0000000000000000 [ 298.321019][ C3] FS: 0000000000000000(0000) GS:ffff888036180000(0000) knlGS:0000000000000000 [ 298.321244][ C3] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 298.321417][ C3] CR2: 00007f3f5ade3000 CR3: 0000000026738006 CR4: 0000000000770ef0 [ 298.321607][ C3] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 298.321802][ C3] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [ 298.321993][ C3] PKRU: 55555554 [ 298.322095][ C3] Call Trace: [ 298.322198][ C3] [ 298.322265][ C3] ? die_addr (arch/x86/kernel/dumpstack.c:421 arch/x86/kernel/dumpstack.c:460) [ 298.322365][ C3] ? exc_general_protection (arch/x86/kernel/traps.c:702 arch/x86/kernel/traps.c:644) [ 298.322508][ C3] ? asm_exc_general_protection (./arch/x86/include/asm/idtentry.h:617) [ 298.322640][ C3] ? add_taint (./arch/x86/include/asm/bitops.h:60 ./include/asm-generic/bitops/instrumented-atomic.h:29 kernel/panic.c:555) [ 298.322740][ C3] ? sock_def_write_space_wfree (./arch/x86/include/asm/bitops.h:206 ./arch/x86/include/asm/bitops.h:238 ./include/asm-generic/bitops/instrumented-non-atomic.h:142 net/core/sock.c:3397) [ 298.322905][ C3] ? sock_def_write_space_wfree (./arch/x86/include/asm/bitops.h:206 ./arch/x86/include/asm/bitops.h:238 ./include/asm-generic/bitops/instrumented-non-atomic.h:142 net/core/sock.c:3397) [ 298.323061][ C3] sock_wfree (./include/linux/rcupdate.h:810 net/core/sock.c:2471) [ 298.323161][ C3] skb_release_head_state (net/core/skbuff.c:1162 (discriminator 3)) [ 298.323289][ C3] consume_skb (net/core/skbuff.c:1174 net/core/skbuff.c:1189 net/core/skbuff.c:1405 net/core/skbuff.c:1399) [ 298.323386][ C3] skb_pp_cow_data (net/core/skbuff.c:987) [ 298.323513][ C3] ? __pfx_skb_pp_cow_data (net/core/skbuff.c:916) [ 298.323646][ C3] ? veth_xdp_rcv_skb (./include/linux/rcupdate.h:329 ./include/linux/rcupdate.h:781 drivers/net/veth.c:775) [ 298.323776][ C3] veth_xdp_rcv_skb (drivers/net/veth.c:732 drivers/net/veth.c:783) [ 298.323913][ C3] ? __pfx_veth_xdp_rcv_skb (drivers/net/veth.c:765) [ 298.324044][ C3] ? dev_gro_receive (./arch/x86/include/asm/bitops.h:227 ./arch/x86/include/asm/bitops.h:239 ./include/asm-generic/bitops/instrumented-non-atomic.h:142 net/core/gro.c:537) [ 298.324174][ C3] ? trace_napi_gro_receive_exit (./include/trace/events/net.h:288 (discriminator 52)) [ 298.324410][ C3] ? napi_gro_receive (net/core/gro.c:617) [ 298.324539][ C3] veth_xdp_rcv (drivers/net/veth.c:905) [ 298.324832][ C3] ? __pfx_veth_xdp_rcv (drivers/net/veth.c:875) [ 298.324955][ C3] ? __lock_acquire (kernel/locking/lockdep.c:5137) [ 298.325084][ C3] ? hlock_class (./arch/x86/include/asm/bitops.h:227 ./arch/x86/include/asm/bitops.h:239 ./include/asm-generic/bitops/instrumented-non-atomic.h:142 kernel/locking/lockdep.c:228) [ 298.325214][ C3] ? validate_chain (./include/linux/hash.h:78 kernel/locking/lockdep.c:3759 kernel/locking/lockdep.c:3782 kernel/locking/lockdep.c:3837) [ 298.325350][ C3] veth_poll (drivers/net/veth.c:943) [ 298.325445][ C3] ? __pfx_veth_poll (drivers/net/veth.c:931) [ 298.325573][ C3] ? mark_lock (kernel/locking/lockdep.c:4656 (discriminator 3)) [ 298.325669][ C3] ? hlock_class (./arch/x86/include/asm/bitops.h:227 ./arch/x86/include/asm/bitops.h:239 ./include/asm-generic/bitops/instrumented-non-atomic.h:142 kernel/locking/lockdep.c:228) [ 298.325795][ C3] ? mark_lock (kernel/locking/lockdep.c:4656 (discriminator 3)) [ 298.325894][ C3] ? __lock_acquire (kernel/locking/lockdep.c:5137) [ 298.326024][ C3] ? __lock_release (kernel/locking/lockdep.c:5430) [ 298.326153][ C3] ? find_held_lock (kernel/locking/lockdep.c:5244) [ 298.326280][ C3] __napi_poll.constprop.0 (net/core/dev.c:6701) [ 298.326406][ C3] net_rx_action (net/core/dev.c:6770 net/core/dev.c:6886) [ 298.326535][ C3] ? __pfx_net_rx_action (net/core/dev.c:6850) [ 298.326662][ C3] ? __pfx_tmigr_handle_remote (kernel/time/timer_migration.c:1026) [ 298.326792][ C3] ? __pfx_lock_acquire.part.0 (kernel/locking/lockdep.c:5719) [ 298.326922][ C3] __do_softirq (kernel/softirq.c:554) [ 298.327123][ C3] ? __pfx_run_ksoftirqd (kernel/softirq.c:917) [ 298.327249][ C3] run_ksoftirqd (kernel/softirq.c:411 kernel/softirq.c:925 kernel/softirq.c:916) [ 298.327379][ C3] smpboot_thread_fn (kernel/smpboot.c:164 (discriminator 3)) [ 298.327504][ C3] ? __pfx_smpboot_thread_fn (kernel/smpboot.c:107) [ 298.327698][ C3] ? __pfx_smpboot_thread_fn (kernel/smpboot.c:107) [ 298.327823][ C3] kthread (kernel/kthread.c:388) [ 298.327918][ C3] ? __pfx_kthread (kernel/kthread.c:341) [ 298.328045][ C3] ret_from_fork (arch/x86/kernel/process.c:147) [ 298.328173][ C3] ? __pfx_kthread (kernel/kthread.c:341) Finger prints: dump_stack_lvl:kasan_report:kasan_check_range:sock_def_write_space_wfree sock_def_write_space_wfree:sock_wfree:skb_release_head_state:consume_skb