====================================== | [ 18.152838][ T292] ================================================================== | [ 18.153145][ T292] 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) | [ 18.153412][ T292] Write of size 8 at addr 0000000000000000 by task ip/292 | [ 18.153627][ T292] [ 18.153727][ T292] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 18.153729][ T292] Call Trace: [ 18.153731][ T292] [ 18.153732][ T292] dump_stack_lvl (lib/dump_stack.c:123) [ 18.153740][ T292] ? try_to_grab_pending (./arch/x86/include/asm/bitops.h:136 ./include/asm-generic/bitops/instrumented-atomic.h:72 kernel/workqueue.c:2072) [ 18.153743][ T292] kasan_report (mm/kasan/report.c:597) [ 18.153750][ T292] ? try_to_grab_pending (./arch/x86/include/asm/bitops.h:136 ./include/asm-generic/bitops/instrumented-atomic.h:72 kernel/workqueue.c:2072) [ 18.153755][ T292] kasan_check_range (mm/kasan/generic.c:194 mm/kasan/generic.c:200) [ 18.153759][ T292] try_to_grab_pending (./arch/x86/include/asm/bitops.h:136 ./include/asm-generic/bitops/instrumented-atomic.h:72 kernel/workqueue.c:2072) [ 18.153764][ T292] __cancel_work (kernel/workqueue.c:2161 kernel/workqueue.c:4364) [ 18.153767][ T292] ? enable_delayed_work (kernel/workqueue.c:4359) [ 18.153772][ T292] ? queue_delayed_work_on (kernel/workqueue.c:2565 (discriminator 1)) [ 18.153777][ T292] __cancel_work_sync (kernel/workqueue.c:4383) [ 18.153781][ T292] __dev_close_many (net/core/dev.c:1879 (discriminator 2) net/core/dev.c:1932 (discriminator 2)) [ 18.153786][ T292] ? netdev_notify_peers (net/core/dev.c:1891) [ 18.153789][ T292] ? netif_close_many (net/core/dev.c:1959) [ 18.153794][ T292] netif_close_many (net/core/dev.c:1959) [ 18.153797][ T292] ? __mutex_handoff (kernel/locking/mutex.c:88) [ 18.153802][ T292] ? __dev_close_many (net/core/dev.c:1949) [ 18.153805][ T292] ? netif_close_many_and_unlock (net/core/dev.c:12476) [ 18.153810][ T292] unregister_netdevice_many_notify (net/core/dev.c:12545) [ 18.153814][ T292] ? rtnl_dellink (net/core/rtnetlink.c:3564) [ 18.153820][ T292] ? 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) [ 18.153823][ T292] ? dev_ingress_queue_create (net/core/dev.c:12499) [ 18.153826][ T292] ? rtnl_is_locked (net/core/rtnetlink.c:169) [ 18.153829][ T292] ? unregister_netdevice_queue (net/core/dev.c:12442) [ 18.153832][ T292] ? unregister_netdevice_many (net/core/dev.c:12441) [ 18.153835][ T292] ? unregister_netdevice_many (net/core/dev.c:12441) [ 18.153841][ T292] rtnl_dellink (net/core/rtnetlink.c:3530 net/core/rtnetlink.c:3570) [ 18.153846][ T292] ? valid_bridge_getlink_req.constprop.0 (net/core/rtnetlink.c:3536) [ 18.153866][ T292] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 18.153871][ T292] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 18.153877][ T292] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 18.153881][ T292] ? rtnetlink_rcv_msg (./include/linux/rcupdate.h:341 ./include/linux/rcupdate.h:897 net/core/rtnetlink.c:6956) [ 18.153883][ T292] ? __lock_release (kernel/locking/lockdep.c:5536) [ 18.153887][ T292] ? valid_bridge_getlink_req.constprop.0 (net/core/rtnetlink.c:3536) [ 18.153891][ T292] rtnetlink_rcv_msg (net/core/rtnetlink.c:6958) [ 18.153895][ T292] ? rtnl_port_fill (net/core/rtnetlink.c:6861) [ 18.153898][ T292] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 18.153905][ T292] netlink_rcv_skb (net/netlink/af_netlink.c:2550) [ 18.153910][ T292] ? rtnl_port_fill (net/core/rtnetlink.c:6861) [ 18.153914][ T292] ? netlink_ack (net/netlink/af_netlink.c:2527) [ 18.153920][ T292] ? netlink_deliver_tap (./include/linux/rcupdate.h:341 ./include/linux/rcupdate.h:897 net/netlink/af_netlink.c:340) [ 18.153923][ T292] ? 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) [ 18.153926][ T292] netlink_unicast (net/netlink/af_netlink.c:1319 net/netlink/af_netlink.c:1344) [ 18.153930][ T292] ? netlink_attachskb (net/netlink/af_netlink.c:1329) [ 18.153933][ T292] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 18.153938][ T292] netlink_sendmsg (net/netlink/af_netlink.c:1894) [ 18.153942][ T292] ? netlink_unicast (net/netlink/af_netlink.c:1813) [ 18.153945][ T292] ? __import_iovec (lib/iov_iter.c:1346 lib/iov_iter.c:1361) [ 18.153951][ T292] ? netlink_unicast (net/netlink/af_netlink.c:1813) [ 18.153954][ T292] ____sys_sendmsg (net/socket.c:727 net/socket.c:742 net/socket.c:2630) [ 18.153958][ T292] ? get_timestamp.constprop.0 (net/socket.c:2576) [ 18.153960][ T292] ? __copy_msghdr (net/socket.c:2556) [ 18.153968][ T292] ___sys_sendmsg (net/socket.c:2686) [ 18.153970][ T292] ? kasan_record_aux_stack (mm/kasan/generic.c:559) [ 18.153974][ T292] ? __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) [ 18.153978][ T292] ? copy_msghdr_from_user (net/socket.c:2673) [ 18.153982][ T292] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 18.153987][ T292] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 18.153992][ T292] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 18.153996][ T292] ? __virt_addr_valid (./include/linux/rcupdate.h:341 ./include/linux/rcupdate.h:979 ./include/linux/mmzone.h:2197 arch/x86/mm/physaddr.c:65) [ 18.154000][ T292] ? __lock_release (kernel/locking/lockdep.c:5536) [ 18.154006][ T292] __sys_sendmsg (net/socket.c:2716) [ 18.154008][ T292] ? __call_rcu_common.constprop.0 (kernel/rcu/tree.c:3148) [ 18.154011][ T292] ? __sys_sendmsg_sock (net/socket.c:2701) [ 18.154018][ T292] ? rcu_is_watching (./include/linux/context_tracking.h:128 kernel/rcu/tree.c:751) [ 18.154023][ T292] do_syscall_64 (arch/x86/entry/syscall_64.c:63 arch/x86/entry/syscall_64.c:94) [ 18.154027][ T292] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:130) [ 18.154031][ T292] RIP: 0033:0x7fcc911841d7 [ 18.154035][ T292] 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) [ 18.154038][ T292] RSP: 002b:00007ffd0f4e10a8 EFLAGS: 00000246 ORIG_RAX: 000000000000002e [ 18.154043][ T292] RAX: ffffffffffffffda RBX: 00007ffd0f4e17e0 RCX: 00007fcc911841d7 [ 18.154046][ T292] RDX: 0000000000000000 RSI: 00007ffd0f4e1110 RDI: 0000000000000005 [ 18.154048][ T292] RBP: 0000000000000001 R08: 0000000000000003 R09: 0000000000000078 [ 18.154050][ T292] R10: 00007fcc91080510 R11: 0000000000000246 R12: 0000000000000001 [ 18.154053][ T292] R13: 00000000691cdcd9 R14: 0000000000499600 R15: 0000000000000000 | [ 18.169509][ T292] #PF: error_code(0x0002) - not-present page | [ 18.169714][ T292] PGD 2331067 P4D 2331067 PUD 9652067 PMD 0 | [ 18.169926][ T292] Oops: Oops: 0002 [#1] SMP KASAN | [ 18.170441][ T292] Tainted: [B]=BAD_PAGE [ 18.170567][ T292] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 18.170775][ T292] 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) [ 18.170990][ T292] 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 [ 18.171584][ T292] RSP: 0018:ffffc90000d76f08 EFLAGS: 00010046 [ 18.171899][ T292] RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffffffffab449b8a [ 18.172157][ T292] RDX: fffffbfff602cacd RSI: 0000000000000008 RDI: ffffffffb0165660 [ 18.172404][ T292] RBP: ffffc90000d76f70 R08: 0000000000000001 R09: fffffbfff602cacc [ 18.172768][ T292] R10: ffffffffb0165667 R11: ffffc90000d769c0 R12: 0000000000000000 [ 18.173015][ T292] R13: 0000000000000282 R14: ffff88800ef11000 R15: dffffc0000000000 [ 18.173267][ T292] FS: 00007fcc90fb6800(0000) GS:ffff8880b6987000(0000) knlGS:0000000000000000 [ 18.173657][ T292] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 18.173870][ T292] CR2: 0000000000000000 CR3: 00000000096c7001 CR4: 0000000000772ef0 [ 18.174228][ T292] PKRU: 55555554 [ 18.174353][ T292] Call Trace: [ 18.174476][ T292] [ 18.174561][ T292] __cancel_work (kernel/workqueue.c:2161 kernel/workqueue.c:4364) [ 18.174726][ T292] ? enable_delayed_work (kernel/workqueue.c:4359) [ 18.174994][ T292] ? queue_delayed_work_on (kernel/workqueue.c:2565 (discriminator 1)) [ 18.175169][ T292] __cancel_work_sync (kernel/workqueue.c:4383) [ 18.175334][ T292] __dev_close_many (net/core/dev.c:1879 (discriminator 2) net/core/dev.c:1932 (discriminator 2)) [ 18.175500][ T292] ? netdev_notify_peers (net/core/dev.c:1891) [ 18.175764][ T292] ? netif_close_many (net/core/dev.c:1959) [ 18.175929][ T292] netif_close_many (net/core/dev.c:1959) [ 18.176098][ T292] ? __mutex_handoff (kernel/locking/mutex.c:88) [ 18.176264][ T292] ? __dev_close_many (net/core/dev.c:1949) [ 18.176429][ T292] ? netif_close_many_and_unlock (net/core/dev.c:12476) [ 18.176637][ T292] unregister_netdevice_many_notify (net/core/dev.c:12545) [ 18.176844][ T292] ? rtnl_dellink (net/core/rtnetlink.c:3564) [ 18.177011][ T292] ? 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) [ 18.177281][ T292] ? dev_ingress_queue_create (net/core/dev.c:12499) [ 18.177446][ T292] ? rtnl_is_locked (net/core/rtnetlink.c:169) [ 18.177609][ T292] ? unregister_netdevice_queue (net/core/dev.c:12442) [ 18.177913][ T292] ? unregister_netdevice_many (net/core/dev.c:12441) [ 18.178089][ T292] ? unregister_netdevice_many (net/core/dev.c:12441) [ 18.178257][ T292] rtnl_dellink (net/core/rtnetlink.c:3530 net/core/rtnetlink.c:3570) [ 18.178422][ T292] ? valid_bridge_getlink_req.constprop.0 (net/core/rtnetlink.c:3536) [ 18.178739][ T292] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 18.178905][ T292] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 18.179075][ T292] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 18.179239][ T292] ? rtnetlink_rcv_msg (./include/linux/rcupdate.h:341 ./include/linux/rcupdate.h:897 net/core/rtnetlink.c:6956) [ 18.179507][ T292] ? __lock_release (kernel/locking/lockdep.c:5536) [ 18.179673][ T292] ? valid_bridge_getlink_req.constprop.0 (net/core/rtnetlink.c:3536) [ 18.179876][ T292] rtnetlink_rcv_msg (net/core/rtnetlink.c:6958) [ 18.180045][ T292] ? rtnl_port_fill (net/core/rtnetlink.c:6861) [ 18.180311][ T292] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 18.180478][ T292] netlink_rcv_skb (net/netlink/af_netlink.c:2550) [ 18.180642][ T292] ? rtnl_port_fill (net/core/rtnetlink.c:6861) [ 18.180809][ T292] ? netlink_ack (net/netlink/af_netlink.c:2527) [ 18.181084][ T292] ? netlink_deliver_tap (./include/linux/rcupdate.h:341 ./include/linux/rcupdate.h:897 net/netlink/af_netlink.c:340) [ 18.181249][ T292] ? 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) [ 18.181413][ T292] netlink_unicast (net/netlink/af_netlink.c:1319 net/netlink/af_netlink.c:1344) [ 18.181578][ T292] ? netlink_attachskb (net/netlink/af_netlink.c:1329) [ 18.181843][ T292] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 18.182008][ T292] netlink_sendmsg (net/netlink/af_netlink.c:1894) [ 18.182178][ T292] ? netlink_unicast (net/netlink/af_netlink.c:1813) [ 18.182344][ T292] ? __import_iovec (lib/iov_iter.c:1346 lib/iov_iter.c:1361) [ 18.182623][ T292] ? netlink_unicast (net/netlink/af_netlink.c:1813) [ 18.182787][ T292] ____sys_sendmsg (net/socket.c:727 net/socket.c:742 net/socket.c:2630) [ 18.182951][ T292] ? get_timestamp.constprop.0 (net/socket.c:2576) [ 18.183159][ T292] ? __copy_msghdr (net/socket.c:2556) [ 18.183427][ T292] ___sys_sendmsg (net/socket.c:2686) [ 18.183590][ T292] ? kasan_record_aux_stack (mm/kasan/generic.c:559) [ 18.183759][ T292] ? __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) [ 18.184070][ T292] ? copy_msghdr_from_user (net/socket.c:2673) [ 18.184236][ T292] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 18.184400][ T292] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 18.184566][ T292] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 18.184829][ T292] ? __virt_addr_valid (./include/linux/rcupdate.h:341 ./include/linux/rcupdate.h:979 ./include/linux/mmzone.h:2197 arch/x86/mm/physaddr.c:65) [ 18.184994][ T292] ? __lock_release (kernel/locking/lockdep.c:5536) [ 18.185166][ T292] __sys_sendmsg (net/socket.c:2716) [ 18.185333][ T292] ? __call_rcu_common.constprop.0 (kernel/rcu/tree.c:3148) [ 18.185635][ T292] ? __sys_sendmsg_sock (net/socket.c:2701) [ 18.185802][ T292] ? rcu_is_watching (./include/linux/context_tracking.h:128 kernel/rcu/tree.c:751) [ 18.185966][ T292] do_syscall_64 (arch/x86/entry/syscall_64.c:63 arch/x86/entry/syscall_64.c:94) [ 18.186138][ T292] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:130) [ 18.186443][ T292] RIP: 0033:0x7fcc911841d7 [ 18.186612][ T292] 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) [ 18.187312][ T292] RSP: 002b:00007ffd0f4e10a8 EFLAGS: 00000246 ORIG_RAX: 000000000000002e [ 18.187561][ T292] RAX: ffffffffffffffda RBX: 00007ffd0f4e17e0 RCX: 00007fcc911841d7 [ 18.187911][ T292] RDX: 0000000000000000 RSI: 00007ffd0f4e1110 RDI: 0000000000000005 [ 18.188167][ T292] RBP: 0000000000000001 R08: 0000000000000003 R09: 0000000000000078 [ 18.188413][ T292] R10: 00007fcc91080510 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