====================================== | [ 22.368148][ T305] ================================================================== | [ 22.368632][ T305] 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) | [ 22.369104][ T305] Write of size 8 at addr 0000000000000000 by task ip/305 | [ 22.369482][ T305] [ 22.369649][ T305] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 22.369653][ T305] Call Trace: [ 22.369656][ T305] [ 22.369660][ T305] dump_stack_lvl (lib/dump_stack.c:123) [ 22.369672][ T305] ? try_to_grab_pending (./arch/x86/include/asm/bitops.h:136 ./include/asm-generic/bitops/instrumented-atomic.h:72 kernel/workqueue.c:2072) [ 22.369678][ T305] kasan_report (mm/kasan/report.c:597) [ 22.369689][ T305] ? try_to_grab_pending (./arch/x86/include/asm/bitops.h:136 ./include/asm-generic/bitops/instrumented-atomic.h:72 kernel/workqueue.c:2072) [ 22.369698][ T305] kasan_check_range (mm/kasan/generic.c:194 mm/kasan/generic.c:200) [ 22.369705][ T305] try_to_grab_pending (./arch/x86/include/asm/bitops.h:136 ./include/asm-generic/bitops/instrumented-atomic.h:72 kernel/workqueue.c:2072) [ 22.369714][ T305] __cancel_work (kernel/workqueue.c:2161 kernel/workqueue.c:4364) [ 22.369719][ T305] ? enable_delayed_work (kernel/workqueue.c:4359) [ 22.369729][ T305] ? queue_delayed_work_on (kernel/workqueue.c:2565 (discriminator 1)) [ 22.369738][ T305] __cancel_work_sync (kernel/workqueue.c:4383) [ 22.369745][ T305] __dev_close_many (net/core/dev.c:1879 (discriminator 2) net/core/dev.c:1932 (discriminator 2)) [ 22.369754][ T305] ? netdev_notify_peers (net/core/dev.c:1891) [ 22.369761][ T305] ? netif_close_many (net/core/dev.c:1959) [ 22.369769][ T305] netif_close_many (net/core/dev.c:1959) [ 22.369776][ T305] ? __mutex_handoff (kernel/locking/mutex.c:88) [ 22.369784][ T305] ? __dev_close_many (net/core/dev.c:1949) [ 22.369791][ T305] ? netif_close_many_and_unlock (net/core/dev.c:12476) [ 22.369799][ T305] unregister_netdevice_many_notify (net/core/dev.c:12545) [ 22.369807][ T305] ? rtnl_dellink (net/core/rtnetlink.c:3564) [ 22.369816][ T305] ? 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) [ 22.369822][ T305] ? dev_ingress_queue_create (net/core/dev.c:12499) [ 22.369828][ T305] ? rtnl_is_locked (net/core/rtnetlink.c:169) [ 22.369833][ T305] ? unregister_netdevice_queue (net/core/dev.c:12442) [ 22.369838][ T305] ? unregister_netdevice_many (net/core/dev.c:12441) [ 22.369844][ T305] ? unregister_netdevice_many (net/core/dev.c:12441) [ 22.369856][ T305] rtnl_dellink (net/core/rtnetlink.c:3530 net/core/rtnetlink.c:3570) [ 22.369864][ T305] ? valid_bridge_getlink_req.constprop.0 (net/core/rtnetlink.c:3536) [ 22.369905][ T305] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 22.369914][ T305] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 22.369925][ T305] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 22.369932][ T305] ? rtnetlink_rcv_msg (./include/linux/rcupdate.h:341 ./include/linux/rcupdate.h:897 net/core/rtnetlink.c:6956) [ 22.369937][ T305] ? __lock_release (kernel/locking/lockdep.c:5536) [ 22.369944][ T305] ? valid_bridge_getlink_req.constprop.0 (net/core/rtnetlink.c:3536) [ 22.369950][ T305] rtnetlink_rcv_msg (net/core/rtnetlink.c:6958) [ 22.369958][ T305] ? rtnl_port_fill (net/core/rtnetlink.c:6861) [ 22.369964][ T305] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 22.369977][ T305] netlink_rcv_skb (net/netlink/af_netlink.c:2550) [ 22.369984][ T305] ? rtnl_port_fill (net/core/rtnetlink.c:6861) [ 22.369992][ T305] ? netlink_ack (net/netlink/af_netlink.c:2527) [ 22.370005][ T305] ? netlink_deliver_tap (./include/linux/rcupdate.h:341 ./include/linux/rcupdate.h:897 net/netlink/af_netlink.c:340) [ 22.370010][ T305] ? 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) [ 22.370017][ T305] netlink_unicast (net/netlink/af_netlink.c:1319 net/netlink/af_netlink.c:1344) [ 22.370025][ T305] ? netlink_attachskb (net/netlink/af_netlink.c:1329) [ 22.370032][ T305] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 22.370042][ T305] netlink_sendmsg (net/netlink/af_netlink.c:1894) [ 22.370050][ T305] ? netlink_unicast (net/netlink/af_netlink.c:1813) [ 22.370056][ T305] ? __import_iovec (lib/iov_iter.c:1346 lib/iov_iter.c:1361) [ 22.370067][ T305] ? netlink_unicast (net/netlink/af_netlink.c:1813) [ 22.370073][ T305] ____sys_sendmsg (net/socket.c:727 net/socket.c:742 net/socket.c:2630) [ 22.370080][ T305] ? get_timestamp.constprop.0 (net/socket.c:2576) [ 22.370085][ T305] ? __copy_msghdr (net/socket.c:2556) [ 22.370100][ T305] ___sys_sendmsg (net/socket.c:2686) [ 22.370105][ T305] ? kasan_record_aux_stack (mm/kasan/generic.c:559) [ 22.370111][ T305] ? __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) [ 22.370119][ T305] ? copy_msghdr_from_user (net/socket.c:2673) [ 22.370127][ T305] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 22.370136][ T305] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 22.370146][ T305] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 22.370152][ T305] ? __virt_addr_valid (./include/linux/rcupdate.h:341 ./include/linux/rcupdate.h:979 ./include/linux/mmzone.h:2197 arch/x86/mm/physaddr.c:65) [ 22.370160][ T305] ? __lock_release (kernel/locking/lockdep.c:5536) [ 22.370172][ T305] __sys_sendmsg (net/socket.c:2716) [ 22.370177][ T305] ? __call_rcu_common.constprop.0 (kernel/rcu/tree.c:3148) [ 22.370182][ T305] ? __sys_sendmsg_sock (net/socket.c:2701) [ 22.370197][ T305] ? rcu_is_watching (./include/linux/context_tracking.h:128 kernel/rcu/tree.c:751) [ 22.370207][ T305] do_syscall_64 (arch/x86/entry/syscall_64.c:63 arch/x86/entry/syscall_64.c:94) [ 22.370218][ T305] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:130) [ 22.370225][ T305] RIP: 0033:0x7f69782da1d7 [ 22.370231][ T305] 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) [ 22.370236][ T305] RSP: 002b:00007ffdaa300b58 EFLAGS: 00000246 ORIG_RAX: 000000000000002e [ 22.370243][ T305] RAX: ffffffffffffffda RBX: 00007ffdaa301280 RCX: 00007f69782da1d7 [ 22.370247][ T305] RDX: 0000000000000000 RSI: 00007ffdaa300bc0 RDI: 0000000000000005 [ 22.370250][ T305] RBP: 0000000000000001 R08: 0000000000000003 R09: 0000000000000078 [ 22.370253][ T305] R10: 00007f69781d6f60 R11: 0000000000000246 R12: 0000000000000001 [ 22.370256][ T305] R13: 00000000691cda53 R14: 0000000000499600 R15: 0000000000000000 | [ 22.397516][ T305] #PF: error_code(0x0002) - not-present page | [ 22.397879][ T305] PGD e8fe067 P4D e8fe067 PUD e8fd067 PMD 0 | [ 22.398263][ T305] Oops: Oops: 0002 [#1] SMP KASAN | [ 22.399164][ T305] Tainted: [B]=BAD_PAGE [ 22.399393][ T305] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 22.399769][ T305] 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) [ 22.400152][ T305] 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 [ 22.401193][ T305] RSP: 0018:ffffc9000061ef08 EFLAGS: 00010046 [ 22.401568][ T305] RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffffffff95a49b8a [ 22.402011][ T305] RDX: fffffbfff34ecacd RSI: 0000000000000008 RDI: ffffffff9a765660 [ 22.402453][ T305] RBP: ffffc9000061ef70 R08: 0000000000000001 R09: fffffbfff34ecacc [ 22.402893][ T305] R10: ffffffff9a765667 R11: ffffc9000061e9c0 R12: 0000000000000000 [ 22.403342][ T305] R13: 0000000000000282 R14: ffff888007734000 R15: dffffc0000000000 [ 22.403782][ T305] FS: 00007f697810c800(0000) GS:ffff8880cc507000(0000) knlGS:0000000000000000 [ 22.404287][ T305] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 22.404656][ T305] CR2: 0000000000000000 CR3: 000000000a1d8005 CR4: 0000000000772ef0 [ 22.405097][ T305] PKRU: 55555554 [ 22.405324][ T305] Call Trace: [ 22.405542][ T305] [ 22.405694][ T305] __cancel_work (kernel/workqueue.c:2161 kernel/workqueue.c:4364) [ 22.405985][ T305] ? enable_delayed_work (kernel/workqueue.c:4359) [ 22.406269][ T305] ? queue_delayed_work_on (kernel/workqueue.c:2565 (discriminator 1)) [ 22.406559][ T305] __cancel_work_sync (kernel/workqueue.c:4383) [ 22.406850][ T305] __dev_close_many (net/core/dev.c:1879 (discriminator 2) net/core/dev.c:1932 (discriminator 2)) [ 22.407140][ T305] ? netdev_notify_peers (net/core/dev.c:1891) [ 22.407419][ T305] ? netif_close_many (net/core/dev.c:1959) [ 22.407710][ T305] netif_close_many (net/core/dev.c:1959) [ 22.407999][ T305] ? __mutex_handoff (kernel/locking/mutex.c:88) [ 22.408289][ T305] ? __dev_close_many (net/core/dev.c:1949) [ 22.408581][ T305] ? netif_close_many_and_unlock (net/core/dev.c:12476) [ 22.408939][ T305] unregister_netdevice_many_notify (net/core/dev.c:12545) [ 22.409302][ T305] ? rtnl_dellink (net/core/rtnetlink.c:3564) [ 22.409589][ T305] ? 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) [ 22.409879][ T305] ? dev_ingress_queue_create (net/core/dev.c:12499) [ 22.410152][ T305] ? rtnl_is_locked (net/core/rtnetlink.c:169) [ 22.410454][ T305] ? unregister_netdevice_queue (net/core/dev.c:12442) [ 22.410819][ T305] ? unregister_netdevice_many (net/core/dev.c:12441) [ 22.411114][ T305] ? unregister_netdevice_many (net/core/dev.c:12441) [ 22.411413][ T305] rtnl_dellink (net/core/rtnetlink.c:3530 net/core/rtnetlink.c:3570) [ 22.411711][ T305] ? valid_bridge_getlink_req.constprop.0 (net/core/rtnetlink.c:3536) [ 22.412114][ T305] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 22.412414][ T305] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 22.412713][ T305] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 22.413007][ T305] ? rtnetlink_rcv_msg (./include/linux/rcupdate.h:341 ./include/linux/rcupdate.h:897 net/core/rtnetlink.c:6956) [ 22.413297][ T305] ? __lock_release (kernel/locking/lockdep.c:5536) [ 22.413588][ T305] ? valid_bridge_getlink_req.constprop.0 (net/core/rtnetlink.c:3536) [ 22.413950][ T305] rtnetlink_rcv_msg (net/core/rtnetlink.c:6958) [ 22.414250][ T305] ? rtnl_port_fill (net/core/rtnetlink.c:6861) [ 22.414542][ T305] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 22.414842][ T305] netlink_rcv_skb (net/netlink/af_netlink.c:2550) [ 22.415136][ T305] ? rtnl_port_fill (net/core/rtnetlink.c:6861) [ 22.415430][ T305] ? netlink_ack (net/netlink/af_netlink.c:2527) [ 22.415732][ T305] ? netlink_deliver_tap (./include/linux/rcupdate.h:341 ./include/linux/rcupdate.h:897 net/netlink/af_netlink.c:340) [ 22.416023][ T305] ? 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) [ 22.416321][ T305] netlink_unicast (net/netlink/af_netlink.c:1319 net/netlink/af_netlink.c:1344) [ 22.416614][ T305] ? netlink_attachskb (net/netlink/af_netlink.c:1329) [ 22.416904][ T305] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 22.417200][ T305] netlink_sendmsg (net/netlink/af_netlink.c:1894) [ 22.417491][ T305] ? netlink_unicast (net/netlink/af_netlink.c:1813) [ 22.417787][ T305] ? __import_iovec (lib/iov_iter.c:1346 lib/iov_iter.c:1361) [ 22.418086][ T305] ? netlink_unicast (net/netlink/af_netlink.c:1813) [ 22.418382][ T305] ____sys_sendmsg (net/socket.c:727 net/socket.c:742 net/socket.c:2630) [ 22.418682][ T305] ? get_timestamp.constprop.0 (net/socket.c:2576) [ 22.419047][ T305] ? __copy_msghdr (net/socket.c:2556) [ 22.419350][ T305] ___sys_sendmsg (net/socket.c:2686) [ 22.419638][ T305] ? kasan_record_aux_stack (mm/kasan/generic.c:559) [ 22.419930][ T305] ? __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) [ 22.420296][ T305] ? copy_msghdr_from_user (net/socket.c:2673) [ 22.420513][ T305] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 22.420702][ T305] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 22.420883][ T305] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 22.421062][ T305] ? __virt_addr_valid (./include/linux/rcupdate.h:341 ./include/linux/rcupdate.h:979 ./include/linux/mmzone.h:2197 arch/x86/mm/physaddr.c:65) [ 22.421243][ T305] ? __lock_release (kernel/locking/lockdep.c:5536) [ 22.421423][ T305] __sys_sendmsg (net/socket.c:2716) [ 22.421602][ T305] ? __call_rcu_common.constprop.0 (kernel/rcu/tree.c:3148) [ 22.421823][ T305] ? __sys_sendmsg_sock (net/socket.c:2701) [ 22.422004][ T305] ? rcu_is_watching (./include/linux/context_tracking.h:128 kernel/rcu/tree.c:751) [ 22.422190][ T305] do_syscall_64 (arch/x86/entry/syscall_64.c:63 arch/x86/entry/syscall_64.c:94) [ 22.422374][ T305] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:130) [ 22.422596][ T305] RIP: 0033:0x7f69782da1d7 [ 22.422784][ T305] 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) [ 22.423429][ T305] RSP: 002b:00007ffdaa300b58 EFLAGS: 00000246 ORIG_RAX: 000000000000002e [ 22.423700][ T305] RAX: ffffffffffffffda RBX: 00007ffdaa301280 RCX: 00007f69782da1d7 [ 22.423969][ T305] RDX: 0000000000000000 RSI: 00007ffdaa300bc0 RDI: 0000000000000005 [ 22.424237][ T305] RBP: 0000000000000001 R08: 0000000000000003 R09: 0000000000000078 [ 22.424508][ T305] R10: 00007f69781d6f60 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