====================================== | [ 27.793869][ T352] ================================================================== | [ 27.794185][ T352] BUG: KASAN: null-ptr-deref in try_to_grab_pending (./arch/x86/include/asm/bitops.h:136 ./include/asm-generic/bitops/instrumented-atomic.h:72 kernel/workqueue.c:2072) | [ 27.794486][ T352] Write of size 8 at addr 0000000000000000 by task ip/352 | [ 27.794750][ T352] [ 27.794853][ T352] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 27.794855][ T352] Call Trace: [ 27.794859][ T352] [ 27.794861][ T352] dump_stack_lvl (lib/dump_stack.c:123) [ 27.794876][ T352] ? try_to_grab_pending (./arch/x86/include/asm/bitops.h:136 ./include/asm-generic/bitops/instrumented-atomic.h:72 kernel/workqueue.c:2072) [ 27.794880][ T352] kasan_report (mm/kasan/report.c:597) [ 27.794894][ T352] ? try_to_grab_pending (./arch/x86/include/asm/bitops.h:136 ./include/asm-generic/bitops/instrumented-atomic.h:72 kernel/workqueue.c:2072) [ 27.794899][ T352] kasan_check_range (mm/kasan/generic.c:194 mm/kasan/generic.c:200) [ 27.794904][ T352] try_to_grab_pending (./arch/x86/include/asm/bitops.h:136 ./include/asm-generic/bitops/instrumented-atomic.h:72 kernel/workqueue.c:2072) [ 27.794908][ T352] __cancel_work (kernel/workqueue.c:2161 kernel/workqueue.c:4364) [ 27.794912][ T352] ? enable_delayed_work (kernel/workqueue.c:4359) [ 27.794916][ T352] ? do_raw_spin_unlock (./arch/x86/include/asm/atomic.h:23 ./include/linux/atomic/atomic-arch-fallback.h:457 ./include/linux/atomic/atomic-instrumented.h:33 ./include/asm-generic/qspinlock.h:57 kernel/locking/spinlock_debug.c:101 kernel/locking/spinlock_debug.c:141) [ 27.794924][ T352] ? _raw_spin_unlock (./arch/x86/include/asm/preempt.h:104 ./include/linux/spinlock_api_smp.h:143 kernel/locking/spinlock.c:186) [ 27.794935][ T352] __cancel_work_sync (kernel/workqueue.c:4383) [ 27.794939][ T352] __dev_close_many (net/core/dev.c:1879 (discriminator 2) net/core/dev.c:1932 (discriminator 2)) [ 27.794949][ T352] ? netdev_notify_peers (net/core/dev.c:1891) [ 27.794953][ T352] ? netif_close_many (net/core/dev.c:1959) [ 27.794957][ T352] netif_close_many (net/core/dev.c:1959) [ 27.794960][ T352] ? __mutex_handoff (kernel/locking/mutex.c:88) [ 27.794967][ T352] ? __dev_close_many (net/core/dev.c:1949) [ 27.794970][ T352] ? netif_close_many_and_unlock (net/core/dev.c:12476) [ 27.794975][ T352] unregister_netdevice_many_notify (net/core/dev.c:12545) [ 27.794979][ T352] ? rtnl_dellink (net/core/rtnetlink.c:3564) [ 27.794987][ T352] ? dev_ingress_queue_create (net/core/dev.c:12499) [ 27.794990][ T352] ? rtnl_is_locked (net/core/rtnetlink.c:169) [ 27.794993][ T352] ? unregister_netdevice_queue (net/core/dev.c:12442) [ 27.794997][ T352] ? unregister_netdevice_many (net/core/dev.c:12441) [ 27.795000][ T352] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 27.795002][ T352] ? __nla_validate_parse (./include/net/netlink.h:1307 (discriminator 1) lib/nlattr.c:622 (discriminator 1)) [ 27.795013][ T352] rtnl_dellink (net/core/rtnetlink.c:3530 net/core/rtnetlink.c:3570) [ 27.795017][ T352] ? valid_bridge_getlink_req.constprop.0 (net/core/rtnetlink.c:3536) [ 27.795037][ T352] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 27.795042][ T352] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 27.795047][ T352] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 27.795051][ T352] ? rtnetlink_rcv_msg (./include/linux/rcupdate.h:341 ./include/linux/rcupdate.h:897 net/core/rtnetlink.c:6956) [ 27.795054][ T352] ? __lock_release (kernel/locking/lockdep.c:5536) [ 27.795058][ T352] ? valid_bridge_getlink_req.constprop.0 (net/core/rtnetlink.c:3536) [ 27.795061][ T352] rtnetlink_rcv_msg (net/core/rtnetlink.c:6958) [ 27.795066][ T352] ? rtnl_port_fill (net/core/rtnetlink.c:6861) [ 27.795069][ T352] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 27.795075][ T352] netlink_rcv_skb (net/netlink/af_netlink.c:2550) [ 27.795083][ T352] ? rtnl_port_fill (net/core/rtnetlink.c:6861) [ 27.795087][ T352] ? netlink_ack (net/netlink/af_netlink.c:2527) [ 27.795094][ T352] ? netlink_deliver_tap (./include/linux/rcupdate.h:341 ./include/linux/rcupdate.h:897 net/netlink/af_netlink.c:340) [ 27.795096][ T352] ? netlink_deliver_tap (./include/linux/rcupdate.h:341 ./include/linux/rcupdate.h:897 ./include/net/netns/generic.h:48 net/netlink/af_netlink.c:333) [ 27.795100][ T352] netlink_unicast (net/netlink/af_netlink.c:1319 net/netlink/af_netlink.c:1344) [ 27.795104][ T352] ? netlink_attachskb (net/netlink/af_netlink.c:1329) [ 27.795107][ T352] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 27.795112][ T352] netlink_sendmsg (net/netlink/af_netlink.c:1894) [ 27.795116][ T352] ? netlink_unicast (net/netlink/af_netlink.c:1813) [ 27.795119][ T352] ? __import_iovec (lib/iov_iter.c:1346 lib/iov_iter.c:1361) [ 27.795126][ T352] ? netlink_unicast (net/netlink/af_netlink.c:1813) [ 27.795129][ T352] ____sys_sendmsg (net/socket.c:727 net/socket.c:742 net/socket.c:2630) [ 27.795135][ T352] ? get_timestamp.constprop.0 (net/socket.c:2576) [ 27.795138][ T352] ? __copy_msghdr (net/socket.c:2556) [ 27.795147][ T352] ___sys_sendmsg (net/socket.c:2686) [ 27.795149][ T352] ? kasan_record_aux_stack (mm/kasan/generic.c:559) [ 27.795153][ T352] ? __call_rcu_common.constprop.0 (./arch/x86/include/asm/irqflags.h:26 ./arch/x86/include/asm/irqflags.h:109 ./arch/x86/include/asm/irqflags.h:127 kernel/rcu/tree.c:3125) [ 27.795160][ T352] ? copy_msghdr_from_user (net/socket.c:2673) [ 27.795164][ T352] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 27.795169][ T352] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 27.795173][ T352] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 27.795177][ T352] ? __virt_addr_valid (./include/linux/rcupdate.h:341 ./include/linux/rcupdate.h:979 ./include/linux/mmzone.h:2197 arch/x86/mm/physaddr.c:65) [ 27.795192][ T352] ? __lock_release (kernel/locking/lockdep.c:5536) [ 27.795197][ T352] __sys_sendmsg (net/socket.c:2716) [ 27.795200][ T352] ? __call_rcu_common.constprop.0 (kernel/rcu/tree.c:3148) [ 27.795203][ T352] ? __sys_sendmsg_sock (net/socket.c:2701) [ 27.795210][ T352] ? rcu_is_watching (./include/linux/context_tracking.h:128 kernel/rcu/tree.c:751) [ 27.795218][ T352] do_syscall_64 (arch/x86/entry/syscall_64.c:63 arch/x86/entry/syscall_64.c:94) [ 27.795226][ T352] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:130) [ 27.795234][ T352] RIP: 0033:0x7fca68f0c1d7 [ 27.795238][ T352] Code: 0e 00 f7 d8 64 89 02 48 c7 c0 ff ff ff ff eb b9 0f 1f 00 f3 0f 1e fa 64 8b 04 25 18 00 00 00 85 c0 75 10 b8 2e 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 51 c3 48 83 ec 28 89 54 24 1c 48 89 74 24 10 All code ======== 0: 0e (bad) 1: 00 f7 add %dh,%bh 3: d8 64 89 02 fsubs 0x2(%rcx,%rcx,4) 7: 48 c7 c0 ff ff ff ff mov $0xffffffffffffffff,%rax e: eb b9 jmp 0xffffffffffffffc9 10: 0f 1f 00 nopl (%rax) 13: f3 0f 1e fa endbr64 17: 64 8b 04 25 18 00 00 mov %fs:0x18,%eax 1e: 00 1f: 85 c0 test %eax,%eax 21: 75 10 jne 0x33 23: b8 2e 00 00 00 mov $0x2e,%eax 28: 0f 05 syscall 2a:* 48 3d 00 f0 ff ff cmp $0xfffffffffffff000,%rax <-- trapping instruction 30: 77 51 ja 0x83 32: c3 ret 33: 48 83 ec 28 sub $0x28,%rsp 37: 89 54 24 1c mov %edx,0x1c(%rsp) 3b: 48 89 74 24 10 mov %rsi,0x10(%rsp) Code starting with the faulting instruction =========================================== 0: 48 3d 00 f0 ff ff cmp $0xfffffffffffff000,%rax 6: 77 51 ja 0x59 8: c3 ret 9: 48 83 ec 28 sub $0x28,%rsp d: 89 54 24 1c mov %edx,0x1c(%rsp) 11: 48 89 74 24 10 mov %rsi,0x10(%rsp) [ 27.795241][ T352] RSP: 002b:00007fffd81e3768 EFLAGS: 00000246 ORIG_RAX: 000000000000002e [ 27.795247][ T352] RAX: ffffffffffffffda RBX: 00007fffd81e3ea0 RCX: 00007fca68f0c1d7 [ 27.795249][ T352] RDX: 0000000000000000 RSI: 00007fffd81e37d0 RDI: 0000000000000005 [ 27.795251][ T352] RBP: 0000000000000001 R08: 0000000000000003 R09: 0000000000000078 [ 27.795252][ T352] R10: 00007fca68e08510 R11: 0000000000000246 R12: 0000000000000001 [ 27.795254][ T352] R13: 00000000691cd1ab R14: 0000000000499600 R15: 0000000000000000 | [ 27.811201][ T352] #PF: error_code(0x0002) - not-present page | [ 27.811406][ T352] PGD 1084e067 P4D 1084e067 PUD 1084d067 PMD 0 | [ 27.811626][ T352] Oops: Oops: 0002 [#1] SMP KASAN | [ 27.812136][ T352] Tainted: [B]=BAD_PAGE [ 27.812267][ T352] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 27.812501][ T352] RIP: 0010:try_to_grab_pending (./arch/x86/include/asm/bitops.h:136 ./include/asm-generic/bitops/instrumented-atomic.h:72 kernel/workqueue.c:2072) [ 27.812726][ T352] Code: 00 41 89 c0 b8 01 00 00 00 45 85 c0 74 0f 48 83 c4 10 5b 5d 41 5c 41 5d 41 5e 41 5f c3 be 08 00 00 00 48 89 df e8 1f 93 82 00 48 0f ba 2b 00 72 11 48 83 c4 10 31 c0 5b 5d 41 5c 41 5d 41 5e All code ======== 0: 00 41 89 add %al,-0x77(%rcx) 3: c0 b8 01 00 00 00 45 sarb $0x45,0x1(%rax) a: 85 c0 test %eax,%eax c: 74 0f je 0x1d e: 48 83 c4 10 add $0x10,%rsp 12: 5b pop %rbx 13: 5d pop %rbp 14: 41 5c pop %r12 16: 41 5d pop %r13 18: 41 5e pop %r14 1a: 41 5f pop %r15 1c: c3 ret 1d: be 08 00 00 00 mov $0x8,%esi 22: 48 89 df mov %rbx,%rdi 25: e8 1f 93 82 00 call 0x829349 2a:* f0 48 0f ba 2b 00 lock btsq $0x0,(%rbx) <-- trapping instruction 30: 72 11 jb 0x43 32: 48 83 c4 10 add $0x10,%rsp 36: 31 c0 xor %eax,%eax 38: 5b pop %rbx 39: 5d pop %rbp 3a: 41 5c pop %r12 3c: 41 5d pop %r13 3e: 41 5e pop %r14 Code starting with the faulting instruction =========================================== 0: f0 48 0f ba 2b 00 lock btsq $0x0,(%rbx) 6: 72 11 jb 0x19 8: 48 83 c4 10 add $0x10,%rsp c: 31 c0 xor %eax,%eax e: 5b pop %rbx f: 5d pop %rbp 10: 41 5c pop %r12 12: 41 5d pop %r13 14: 41 5e pop %r14 [ 27.813324][ T352] RSP: 0018:ffffc9000065ef08 EFLAGS: 00010046 [ 27.813539][ T352] RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffffffff89649b8a [ 27.813798][ T352] RDX: fffffbfff1c6cacd RSI: 0000000000000008 RDI: ffffffff8e365660 [ 27.814053][ T352] RBP: ffffc9000065ef70 R08: 0000000000000001 R09: fffffbfff1c6cacc [ 27.814310][ T352] R10: ffffffff8e365667 R11: ffffc9000065e9c0 R12: 0000000000000000 [ 27.814561][ T352] R13: 0000000000000282 R14: ffff88800b341000 R15: dffffc0000000000 [ 27.814826][ T352] FS: 00007fca68d3e800(0000) GS:ffff8880ded07000(0000) knlGS:0000000000000000 [ 27.815129][ T352] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 27.815340][ T352] CR2: 0000000000000000 CR3: 00000000108bb001 CR4: 0000000000772ef0 [ 27.815591][ T352] PKRU: 55555554 [ 27.815726][ T352] Call Trace: [ 27.815854][ T352] [ 27.815943][ T352] __cancel_work (kernel/workqueue.c:2161 kernel/workqueue.c:4364) [ 27.816126][ T352] ? enable_delayed_work (kernel/workqueue.c:4359) [ 27.816299][ T352] ? do_raw_spin_unlock (./arch/x86/include/asm/atomic.h:23 ./include/linux/atomic/atomic-arch-fallback.h:457 ./include/linux/atomic/atomic-instrumented.h:33 ./include/asm-generic/qspinlock.h:57 kernel/locking/spinlock_debug.c:101 kernel/locking/spinlock_debug.c:141) [ 27.816468][ T352] ? _raw_spin_unlock (./arch/x86/include/asm/preempt.h:104 ./include/linux/spinlock_api_smp.h:143 kernel/locking/spinlock.c:186) [ 27.816638][ T352] __cancel_work_sync (kernel/workqueue.c:4383) [ 27.816807][ T352] __dev_close_many (net/core/dev.c:1879 (discriminator 2) net/core/dev.c:1932 (discriminator 2)) [ 27.816981][ T352] ? netdev_notify_peers (net/core/dev.c:1891) [ 27.817156][ T352] ? netif_close_many (net/core/dev.c:1959) [ 27.817323][ T352] netif_close_many (net/core/dev.c:1959) [ 27.817490][ T352] ? __mutex_handoff (kernel/locking/mutex.c:88) [ 27.817665][ T352] ? __dev_close_many (net/core/dev.c:1949) [ 27.817833][ T352] ? netif_close_many_and_unlock (net/core/dev.c:12476) [ 27.818045][ T352] unregister_netdevice_many_notify (net/core/dev.c:12545) [ 27.818253][ T352] ? rtnl_dellink (net/core/rtnetlink.c:3564) [ 27.818423][ T352] ? dev_ingress_queue_create (net/core/dev.c:12499) [ 27.818590][ T352] ? rtnl_is_locked (net/core/rtnetlink.c:169) [ 27.818761][ T352] ? unregister_netdevice_queue (net/core/dev.c:12442) [ 27.818970][ T352] ? unregister_netdevice_many (net/core/dev.c:12441) [ 27.819141][ T352] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 27.819306][ T352] ? __nla_validate_parse (./include/net/netlink.h:1307 (discriminator 1) lib/nlattr.c:622 (discriminator 1)) [ 27.819480][ T352] rtnl_dellink (net/core/rtnetlink.c:3530 net/core/rtnetlink.c:3570) [ 27.819658][ T352] ? valid_bridge_getlink_req.constprop.0 (net/core/rtnetlink.c:3536) [ 27.819885][ T352] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 27.820054][ T352] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 27.820229][ T352] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 27.820395][ T352] ? rtnetlink_rcv_msg (./include/linux/rcupdate.h:341 ./include/linux/rcupdate.h:897 net/core/rtnetlink.c:6956) [ 27.820563][ T352] ? __lock_release (kernel/locking/lockdep.c:5536) [ 27.820734][ T352] ? valid_bridge_getlink_req.constprop.0 (net/core/rtnetlink.c:3536) [ 27.820948][ T352] rtnetlink_rcv_msg (net/core/rtnetlink.c:6958) [ 27.821119][ T352] ? rtnl_port_fill (net/core/rtnetlink.c:6861) [ 27.821285][ T352] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 27.821454][ T352] netlink_rcv_skb (net/netlink/af_netlink.c:2550) [ 27.821628][ T352] ? rtnl_port_fill (net/core/rtnetlink.c:6861) [ 27.821798][ T352] ? netlink_ack (net/netlink/af_netlink.c:2527) [ 27.821968][ T352] ? netlink_deliver_tap (./include/linux/rcupdate.h:341 ./include/linux/rcupdate.h:897 net/netlink/af_netlink.c:340) [ 27.822133][ T352] ? netlink_deliver_tap (./include/linux/rcupdate.h:341 ./include/linux/rcupdate.h:897 ./include/net/netns/generic.h:48 net/netlink/af_netlink.c:333) [ 27.822306][ T352] netlink_unicast (net/netlink/af_netlink.c:1319 net/netlink/af_netlink.c:1344) [ 27.822472][ T352] ? netlink_attachskb (net/netlink/af_netlink.c:1329) [ 27.822644][ T352] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 27.822812][ T352] netlink_sendmsg (net/netlink/af_netlink.c:1894) [ 27.822981][ T352] ? netlink_unicast (net/netlink/af_netlink.c:1813) [ 27.823156][ T352] ? __import_iovec (lib/iov_iter.c:1346 lib/iov_iter.c:1361) [ 27.823328][ T352] ? netlink_unicast (net/netlink/af_netlink.c:1813) [ 27.823497][ T352] ____sys_sendmsg (net/socket.c:727 net/socket.c:742 net/socket.c:2630) [ 27.823674][ T352] ? get_timestamp.constprop.0 (net/socket.c:2576) [ 27.823886][ T352] ? __copy_msghdr (net/socket.c:2556) [ 27.824077][ T352] ___sys_sendmsg (net/socket.c:2686) [ 27.824245][ T352] ? kasan_record_aux_stack (mm/kasan/generic.c:559) [ 27.824414][ T352] ? __call_rcu_common.constprop.0 (./arch/x86/include/asm/irqflags.h:26 ./arch/x86/include/asm/irqflags.h:109 ./arch/x86/include/asm/irqflags.h:127 kernel/rcu/tree.c:3125) [ 27.824629][ T352] ? copy_msghdr_from_user (net/socket.c:2673) [ 27.824798][ T352] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 27.824973][ T352] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 27.825141][ T352] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 27.825307][ T352] ? __virt_addr_valid (./include/linux/rcupdate.h:341 ./include/linux/rcupdate.h:979 ./include/linux/mmzone.h:2197 arch/x86/mm/physaddr.c:65) [ 27.825474][ T352] ? __lock_release (kernel/locking/lockdep.c:5536) [ 27.825650][ T352] __sys_sendmsg (net/socket.c:2716) [ 27.825817][ T352] ? __call_rcu_common.constprop.0 (kernel/rcu/tree.c:3148) [ 27.826034][ T352] ? __sys_sendmsg_sock (net/socket.c:2701) [ 27.826207][ T352] ? rcu_is_watching (./include/linux/context_tracking.h:128 kernel/rcu/tree.c:751) [ 27.826376][ T352] do_syscall_64 (arch/x86/entry/syscall_64.c:63 arch/x86/entry/syscall_64.c:94) [ 27.826547][ T352] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:130) [ 27.826754][ T352] RIP: 0033:0x7fca68f0c1d7 [ 27.826930][ T352] Code: 0e 00 f7 d8 64 89 02 48 c7 c0 ff ff ff ff eb b9 0f 1f 00 f3 0f 1e fa 64 8b 04 25 18 00 00 00 85 c0 75 10 b8 2e 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 51 c3 48 83 ec 28 89 54 24 1c 48 89 74 24 10 All code ======== 0: 0e (bad) 1: 00 f7 add %dh,%bh 3: d8 64 89 02 fsubs 0x2(%rcx,%rcx,4) 7: 48 c7 c0 ff ff ff ff mov $0xffffffffffffffff,%rax e: eb b9 jmp 0xffffffffffffffc9 10: 0f 1f 00 nopl (%rax) 13: f3 0f 1e fa endbr64 17: 64 8b 04 25 18 00 00 mov %fs:0x18,%eax 1e: 00 1f: 85 c0 test %eax,%eax 21: 75 10 jne 0x33 23: b8 2e 00 00 00 mov $0x2e,%eax 28: 0f 05 syscall 2a:* 48 3d 00 f0 ff ff cmp $0xfffffffffffff000,%rax <-- trapping instruction 30: 77 51 ja 0x83 32: c3 ret 33: 48 83 ec 28 sub $0x28,%rsp 37: 89 54 24 1c mov %edx,0x1c(%rsp) 3b: 48 89 74 24 10 mov %rsi,0x10(%rsp) Code starting with the faulting instruction =========================================== 0: 48 3d 00 f0 ff ff cmp $0xfffffffffffff000,%rax 6: 77 51 ja 0x59 8: c3 ret 9: 48 83 ec 28 sub $0x28,%rsp d: 89 54 24 1c mov %edx,0x1c(%rsp) 11: 48 89 74 24 10 mov %rsi,0x10(%rsp) [ 27.827526][ T352] RSP: 002b:00007fffd81e3768 EFLAGS: 00000246 ORIG_RAX: 000000000000002e [ 27.827791][ T352] RAX: ffffffffffffffda RBX: 00007fffd81e3ea0 RCX: 00007fca68f0c1d7 [ 27.828042][ T352] RDX: 0000000000000000 RSI: 00007fffd81e37d0 RDI: 0000000000000005 [ 27.828292][ T352] RBP: 0000000000000001 R08: 0000000000000003 R09: 0000000000000078 [ 27.828547][ T352] R10: 00007fca68e08510 R11: 0000000000000246 R12: 0000000000000001 Finger prints: kasan_report:kasan_check_range:try_to_grab_pending:__cancel_work:__cancel_work_sync try_to_grab_pending:__cancel_work:__cancel_work_sync:__dev_close_many:netif_close_many