====================================== | [ 59.552364][ T493] ================================================================== | [ 59.552738][ T493] 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) | [ 59.553044][ T493] Write of size 8 at addr 0000000000000000 by task ip/493 | [ 59.553259][ T493] [ 59.553364][ T493] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 59.553370][ T493] Call Trace: [ 59.553374][ T493] [ 59.553376][ T493] dump_stack_lvl (lib/dump_stack.c:123) [ 59.553395][ T493] ? try_to_grab_pending (./arch/x86/include/asm/bitops.h:136 ./include/asm-generic/bitops/instrumented-atomic.h:72 kernel/workqueue.c:2072) [ 59.553398][ T493] kasan_report (mm/kasan/report.c:597) [ 59.553411][ T493] ? try_to_grab_pending (./arch/x86/include/asm/bitops.h:136 ./include/asm-generic/bitops/instrumented-atomic.h:72 kernel/workqueue.c:2072) [ 59.553418][ T493] kasan_check_range (mm/kasan/generic.c:194 mm/kasan/generic.c:200) [ 59.553422][ T493] try_to_grab_pending (./arch/x86/include/asm/bitops.h:136 ./include/asm-generic/bitops/instrumented-atomic.h:72 kernel/workqueue.c:2072) [ 59.553425][ T493] ? page_pool_release (net/core/page_pool.c:1196) [ 59.553438][ T493] __cancel_work (kernel/workqueue.c:2161 kernel/workqueue.c:4364) [ 59.553442][ T493] ? enable_delayed_work (kernel/workqueue.c:4359) [ 59.553449][ T493] __cancel_work_sync (kernel/workqueue.c:4383) [ 59.553453][ T493] __dev_close_many (net/core/dev.c:1879 (discriminator 2) net/core/dev.c:1932 (discriminator 2)) [ 59.553461][ T493] ? netdev_notify_peers (net/core/dev.c:1891) [ 59.553464][ T493] ? netif_close_many (net/core/dev.c:1959) [ 59.553468][ T493] netif_close_many (net/core/dev.c:1959) [ 59.553472][ T493] ? __mutex_handoff (kernel/locking/mutex.c:88) [ 59.553481][ T493] ? __dev_close_many (net/core/dev.c:1949) [ 59.553484][ T493] ? netif_close_many_and_unlock (net/core/dev.c:12476) [ 59.553489][ T493] unregister_netdevice_many_notify (net/core/dev.c:12545) [ 59.553494][ T493] ? rtnl_dellink (net/core/rtnetlink.c:3564) [ 59.553501][ T493] ? mutex_is_locked (./arch/x86/include/asm/atomic64_64.h:15 ./include/linux/atomic/atomic-arch-fallback.h:2583 ./include/linux/atomic/atomic-long.h:38 ./include/linux/atomic/atomic-instrumented.h:3189 kernel/locking/mutex.h:47 kernel/locking/mutex.c:67) [ 59.553506][ T493] ? dev_ingress_queue_create (net/core/dev.c:12499) [ 59.553511][ T493] ? rtnl_is_locked (net/core/rtnetlink.c:169) [ 59.553515][ T493] ? unregister_netdevice_queue (net/core/dev.c:12442) [ 59.553519][ T493] ? unregister_netdevice_many (net/core/dev.c:12441) [ 59.553523][ T493] ? unregister_netdevice_many (net/core/dev.c:12441) [ 59.553529][ T493] rtnl_dellink (net/core/rtnetlink.c:3530 net/core/rtnetlink.c:3570) [ 59.553533][ T493] ? valid_bridge_getlink_req.constprop.0 (net/core/rtnetlink.c:3536) [ 59.553553][ T493] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 59.553559][ T493] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 59.553566][ T493] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 59.553570][ T493] ? rtnetlink_rcv_msg (./include/linux/rcupdate.h:341 ./include/linux/rcupdate.h:897 net/core/rtnetlink.c:6956) [ 59.553573][ T493] ? __lock_release (kernel/locking/lockdep.c:5536) [ 59.553577][ T493] ? valid_bridge_getlink_req.constprop.0 (net/core/rtnetlink.c:3536) [ 59.553581][ T493] rtnetlink_rcv_msg (net/core/rtnetlink.c:6958) [ 59.553585][ T493] ? rtnl_port_fill (net/core/rtnetlink.c:6861) [ 59.553588][ T493] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 59.553595][ T493] netlink_rcv_skb (net/netlink/af_netlink.c:2550) [ 59.553603][ T493] ? rtnl_port_fill (net/core/rtnetlink.c:6861) [ 59.553607][ T493] ? netlink_ack (net/netlink/af_netlink.c:2527) [ 59.553613][ T493] ? netlink_deliver_tap (./include/linux/rcupdate.h:341 ./include/linux/rcupdate.h:897 net/netlink/af_netlink.c:340) [ 59.553616][ T493] ? 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) [ 59.553620][ T493] netlink_unicast (net/netlink/af_netlink.c:1319 net/netlink/af_netlink.c:1344) [ 59.553624][ T493] ? netlink_attachskb (net/netlink/af_netlink.c:1329) [ 59.553627][ T493] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 59.553632][ T493] netlink_sendmsg (net/netlink/af_netlink.c:1894) [ 59.553636][ T493] ? netlink_unicast (net/netlink/af_netlink.c:1813) [ 59.553640][ T493] ? __import_iovec (lib/iov_iter.c:1346 lib/iov_iter.c:1361) [ 59.553652][ T493] ? netlink_unicast (net/netlink/af_netlink.c:1813) [ 59.553655][ T493] ____sys_sendmsg (net/socket.c:727 net/socket.c:742 net/socket.c:2630) [ 59.553662][ T493] ? get_timestamp.constprop.0 (net/socket.c:2576) [ 59.553665][ T493] ? __copy_msghdr (net/socket.c:2556) [ 59.553674][ T493] ___sys_sendmsg (net/socket.c:2686) [ 59.553677][ T493] ? kasan_record_aux_stack (mm/kasan/generic.c:559) [ 59.553680][ T493] ? __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) [ 59.553686][ T493] ? copy_msghdr_from_user (net/socket.c:2673) [ 59.553691][ T493] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 59.553696][ T493] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 59.553701][ T493] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 59.553704][ T493] ? __virt_addr_valid (./include/linux/rcupdate.h:341 ./include/linux/rcupdate.h:979 ./include/linux/mmzone.h:2197 arch/x86/mm/physaddr.c:65) [ 59.553718][ T493] ? __lock_release (kernel/locking/lockdep.c:5536) [ 59.553723][ T493] __sys_sendmsg (net/socket.c:2716) [ 59.553726][ T493] ? __call_rcu_common.constprop.0 (kernel/rcu/tree.c:3148) [ 59.553729][ T493] ? __sys_sendmsg_sock (net/socket.c:2701) [ 59.553736][ T493] ? rcu_is_watching (./include/linux/context_tracking.h:128 kernel/rcu/tree.c:751) [ 59.553743][ T493] do_syscall_64 (arch/x86/entry/syscall_64.c:63 arch/x86/entry/syscall_64.c:94) [ 59.553751][ T493] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:130) [ 59.553760][ T493] RIP: 0033:0x7f7028b0c1d7 [ 59.553768][ T493] 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) [ 59.553771][ T493] RSP: 002b:00007ffe9e7bddd8 EFLAGS: 00000246 ORIG_RAX: 000000000000002e [ 59.553778][ T493] RAX: ffffffffffffffda RBX: 00007ffe9e7be510 RCX: 00007f7028b0c1d7 [ 59.553780][ T493] RDX: 0000000000000000 RSI: 00007ffe9e7bde40 RDI: 0000000000000005 [ 59.553782][ T493] RBP: 0000000000000001 R08: 0000000000000003 R09: 0000000000000078 [ 59.553784][ T493] R10: 00007f7028a08510 R11: 0000000000000246 R12: 0000000000000001 [ 59.553785][ T493] R13: 00000000691ccd34 R14: 0000000000499600 R15: 0000000000000000 | [ 59.570249][ T493] #PF: error_code(0x0002) - not-present page | [ 59.570454][ T493] PGD 7585067 P4D 7585067 PUD 9cf5067 PMD 0 | [ 59.570783][ T493] Oops: Oops: 0002 [#1] SMP KASAN | [ 59.571298][ T493] Tainted: [B]=BAD_PAGE [ 59.571542][ T493] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 59.571757][ T493] 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) [ 59.571984][ T493] 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 [ 59.572697][ T493] RSP: 0018:ffffc90000e66f08 EFLAGS: 00010046 [ 59.572914][ T493] RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffffffff86c49b8a [ 59.573167][ T493] RDX: fffffbfff172cacd RSI: 0000000000000008 RDI: ffffffff8b965660 [ 59.573419][ T493] RBP: ffffc90000e66f70 R08: 0000000000000001 R09: fffffbfff172cacc [ 59.573789][ T493] R10: ffffffff8b965667 R11: ffffc90000e669c0 R12: 0000000000000000 [ 59.574042][ T493] R13: 0000000000000282 R14: ffff88800d989000 R15: dffffc0000000000 [ 59.574292][ T493] FS: 00007f702893e800(0000) GS:ffff8880e1707000(0000) knlGS:0000000000000000 [ 59.574694][ T493] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 59.574905][ T493] CR2: 0000000000000000 CR3: 000000000eefa004 CR4: 0000000000772ef0 [ 59.575159][ T493] PKRU: 55555554 [ 59.575392][ T493] Call Trace: [ 59.575522][ T493] [ 59.575609][ T493] ? page_pool_release (net/core/page_pool.c:1196) [ 59.575784][ T493] __cancel_work (kernel/workqueue.c:2161 kernel/workqueue.c:4364) [ 59.575967][ T493] ? enable_delayed_work (kernel/workqueue.c:4359) [ 59.576240][ T493] __cancel_work_sync (kernel/workqueue.c:4383) [ 59.576412][ T493] __dev_close_many (net/core/dev.c:1879 (discriminator 2) net/core/dev.c:1932 (discriminator 2)) [ 59.576591][ T493] ? netdev_notify_peers (net/core/dev.c:1891) [ 59.576759][ T493] ? netif_close_many (net/core/dev.c:1959) [ 59.577031][ T493] netif_close_many (net/core/dev.c:1959) [ 59.577197][ T493] ? __mutex_handoff (kernel/locking/mutex.c:88) [ 59.577368][ T493] ? __dev_close_many (net/core/dev.c:1949) [ 59.577542][ T493] ? netif_close_many_and_unlock (net/core/dev.c:12476) [ 59.577859][ T493] unregister_netdevice_many_notify (net/core/dev.c:12545) [ 59.578071][ T493] ? rtnl_dellink (net/core/rtnetlink.c:3564) [ 59.578241][ T493] ? mutex_is_locked (./arch/x86/include/asm/atomic64_64.h:15 ./include/linux/atomic/atomic-arch-fallback.h:2583 ./include/linux/atomic/atomic-long.h:38 ./include/linux/atomic/atomic-instrumented.h:3189 kernel/locking/mutex.h:47 kernel/locking/mutex.c:67) [ 59.578508][ T493] ? dev_ingress_queue_create (net/core/dev.c:12499) [ 59.578679][ T493] ? rtnl_is_locked (net/core/rtnetlink.c:169) [ 59.578845][ T493] ? unregister_netdevice_queue (net/core/dev.c:12442) [ 59.579052][ T493] ? unregister_netdevice_many (net/core/dev.c:12441) [ 59.579319][ T493] ? unregister_netdevice_many (net/core/dev.c:12441) [ 59.579494][ T493] rtnl_dellink (net/core/rtnetlink.c:3530 net/core/rtnetlink.c:3570) [ 59.579671][ T493] ? valid_bridge_getlink_req.constprop.0 (net/core/rtnetlink.c:3536) [ 59.579898][ T493] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 59.580072][ T493] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 59.580240][ T493] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 59.580411][ T493] ? rtnetlink_rcv_msg (./include/linux/rcupdate.h:341 ./include/linux/rcupdate.h:897 net/core/rtnetlink.c:6956) [ 59.580584][ T493] ? __lock_release (kernel/locking/lockdep.c:5536) [ 59.580862][ T493] ? valid_bridge_getlink_req.constprop.0 (net/core/rtnetlink.c:3536) [ 59.581071][ T493] rtnetlink_rcv_msg (net/core/rtnetlink.c:6958) [ 59.581239][ T493] ? rtnl_port_fill (net/core/rtnetlink.c:6861) [ 59.581408][ T493] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 59.581686][ T493] netlink_rcv_skb (net/netlink/af_netlink.c:2550) [ 59.581851][ T493] ? rtnl_port_fill (net/core/rtnetlink.c:6861) [ 59.582020][ T493] ? netlink_ack (net/netlink/af_netlink.c:2527) [ 59.582187][ T493] ? netlink_deliver_tap (./include/linux/rcupdate.h:341 ./include/linux/rcupdate.h:897 net/netlink/af_netlink.c:340) [ 59.582494][ T493] ? 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) [ 59.582666][ T493] netlink_unicast (net/netlink/af_netlink.c:1319 net/netlink/af_netlink.c:1344) [ 59.582849][ T493] ? netlink_attachskb (net/netlink/af_netlink.c:1329) [ 59.583016][ T493] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 59.583288][ T493] netlink_sendmsg (net/netlink/af_netlink.c:1894) [ 59.583452][ T493] ? netlink_unicast (net/netlink/af_netlink.c:1813) [ 59.583627][ T493] ? __import_iovec (lib/iov_iter.c:1346 lib/iov_iter.c:1361) [ 59.583801][ T493] ? netlink_unicast (net/netlink/af_netlink.c:1813) [ 59.584071][ T493] ____sys_sendmsg (net/socket.c:727 net/socket.c:742 net/socket.c:2630) [ 59.584239][ T493] ? get_timestamp.constprop.0 (net/socket.c:2576) [ 59.584447][ T493] ? __copy_msghdr (net/socket.c:2556) [ 59.584726][ T493] ___sys_sendmsg (net/socket.c:2686) [ 59.584888][ T493] ? kasan_record_aux_stack (mm/kasan/generic.c:559) [ 59.585057][ T493] ? __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) [ 59.585272][ T493] ? copy_msghdr_from_user (net/socket.c:2673) [ 59.585550][ T493] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 59.585719][ T493] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 59.585887][ T493] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 59.586065][ T493] ? __virt_addr_valid (./include/linux/rcupdate.h:341 ./include/linux/rcupdate.h:979 ./include/linux/mmzone.h:2197 arch/x86/mm/physaddr.c:65) [ 59.586337][ T493] ? __lock_release (kernel/locking/lockdep.c:5536) [ 59.586511][ T493] __sys_sendmsg (net/socket.c:2716) [ 59.586685][ T493] ? __call_rcu_common.constprop.0 (kernel/rcu/tree.c:3148) [ 59.586919][ T493] ? __sys_sendmsg_sock (net/socket.c:2701) [ 59.587091][ T493] ? rcu_is_watching (./include/linux/context_tracking.h:128 kernel/rcu/tree.c:751) [ 59.587259][ T493] do_syscall_64 (arch/x86/entry/syscall_64.c:63 arch/x86/entry/syscall_64.c:94) [ 59.587431][ T493] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:130) [ 59.587644][ T493] RIP: 0033:0x7f7028b0c1d7 [ 59.587933][ T493] 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) [ 59.588652][ T493] RSP: 002b:00007ffe9e7bddd8 EFLAGS: 00000246 ORIG_RAX: 000000000000002e [ 59.588909][ T493] RAX: ffffffffffffffda RBX: 00007ffe9e7be510 RCX: 00007f7028b0c1d7 [ 59.589161][ T493] RDX: 0000000000000000 RSI: 00007ffe9e7bde40 RDI: 0000000000000005 [ 59.589542][ T493] RBP: 0000000000000001 R08: 0000000000000003 R09: 0000000000000078 [ 59.589793][ T493] R10: 00007f7028a08510 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