====================================== | [ 165.120325][ T979] ================================================================== | [ 165.120682][ T979] 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) | [ 165.121022][ T979] Write of size 8 at addr 0000000000000000 by task ip/979 | [ 165.121265][ T979] [ 165.121391][ T979] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 165.121393][ T979] Call Trace: [ 165.121399][ T979] [ 165.121401][ T979] dump_stack_lvl (lib/dump_stack.c:123) [ 165.121426][ T979] ? try_to_grab_pending (./arch/x86/include/asm/bitops.h:136 ./include/asm-generic/bitops/instrumented-atomic.h:72 kernel/workqueue.c:2072) [ 165.121429][ T979] kasan_report (mm/kasan/report.c:597) [ 165.121442][ T979] ? try_to_grab_pending (./arch/x86/include/asm/bitops.h:136 ./include/asm-generic/bitops/instrumented-atomic.h:72 kernel/workqueue.c:2072) [ 165.121448][ T979] kasan_check_range (mm/kasan/generic.c:194 mm/kasan/generic.c:200) [ 165.121451][ T979] try_to_grab_pending (./arch/x86/include/asm/bitops.h:136 ./include/asm-generic/bitops/instrumented-atomic.h:72 kernel/workqueue.c:2072) [ 165.121458][ T979] __cancel_work (kernel/workqueue.c:2161 kernel/workqueue.c:4364) [ 165.121461][ T979] ? enable_delayed_work (kernel/workqueue.c:4359) [ 165.121465][ T979] ? qdisc_destroy (net/sched/sch_generic.c:1355) [ 165.121478][ T979] __cancel_work_sync (kernel/workqueue.c:4383) [ 165.121482][ T979] __dev_close_many (net/core/dev.c:1879 (discriminator 2) net/core/dev.c:1932 (discriminator 2)) [ 165.121496][ T979] ? netdev_notify_peers (net/core/dev.c:1891) [ 165.121500][ T979] ? __mutex_lock (./arch/x86/include/asm/preempt.h:104 kernel/locking/mutex.c:739 kernel/locking/mutex.c:760) [ 165.121521][ T979] netif_close_many (net/core/dev.c:1959) [ 165.121525][ T979] ? ww_mutex_lock (kernel/locking/mutex.c:759) [ 165.121528][ T979] ? __dev_close_many (net/core/dev.c:1949) [ 165.121532][ T979] ? __mutex_handoff (kernel/locking/mutex.c:88) [ 165.121543][ T979] netif_close_many_and_unlock (net/core/dev.c:12476) [ 165.121549][ T979] unregister_netdevice_many_notify (net/core/dev.c:12539) [ 165.121557][ T979] ? rtnl_dellink (net/core/rtnetlink.c:3564) [ 165.121564][ T979] ? dev_ingress_queue_create (net/core/dev.c:12499) [ 165.121567][ T979] ? rtnl_is_locked (net/core/rtnetlink.c:169) [ 165.121571][ T979] ? unregister_netdevice_queue (net/core/dev.c:12442) [ 165.121575][ T979] ? unregister_netdevice_many (net/core/dev.c:12441) [ 165.121577][ T979] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 165.121581][ T979] ? __nla_validate_parse (./include/net/netlink.h:1307 (discriminator 1) lib/nlattr.c:622 (discriminator 1)) [ 165.121599][ T979] rtnl_dellink (net/core/rtnetlink.c:3530 net/core/rtnetlink.c:3570) [ 165.121602][ T979] ? valid_bridge_getlink_req.constprop.0 (net/core/rtnetlink.c:3536) [ 165.121621][ T979] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 165.121627][ T979] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 165.121633][ T979] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 165.121636][ T979] ? rtnetlink_rcv_msg (./include/linux/rcupdate.h:341 ./include/linux/rcupdate.h:897 net/core/rtnetlink.c:6956) [ 165.121639][ T979] ? __lock_release (kernel/locking/lockdep.c:5536) [ 165.121646][ T979] ? valid_bridge_getlink_req.constprop.0 (net/core/rtnetlink.c:3536) [ 165.121649][ T979] rtnetlink_rcv_msg (net/core/rtnetlink.c:6958) [ 165.121653][ T979] ? rtnl_port_fill (net/core/rtnetlink.c:6861) [ 165.121656][ T979] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 165.121663][ T979] netlink_rcv_skb (net/netlink/af_netlink.c:2550) [ 165.121669][ T979] ? rtnl_port_fill (net/core/rtnetlink.c:6861) [ 165.121672][ T979] ? netlink_ack (net/netlink/af_netlink.c:2527) [ 165.121679][ T979] ? netlink_deliver_tap (./include/linux/rcupdate.h:341 ./include/linux/rcupdate.h:897 net/netlink/af_netlink.c:340) [ 165.121682][ T979] ? 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) [ 165.121686][ T979] netlink_unicast (net/netlink/af_netlink.c:1319 net/netlink/af_netlink.c:1344) [ 165.121690][ T979] ? netlink_attachskb (net/netlink/af_netlink.c:1329) [ 165.121694][ T979] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 165.121700][ T979] netlink_sendmsg (net/netlink/af_netlink.c:1894) [ 165.121704][ T979] ? netlink_unicast (net/netlink/af_netlink.c:1813) [ 165.121708][ T979] ? __import_iovec (lib/iov_iter.c:1346 lib/iov_iter.c:1361) [ 165.121713][ T979] ? netlink_unicast (net/netlink/af_netlink.c:1813) [ 165.121717][ T979] ____sys_sendmsg (net/socket.c:727 net/socket.c:742 net/socket.c:2630) [ 165.121727][ T979] ? get_timestamp.constprop.0 (net/socket.c:2576) [ 165.121730][ T979] ? __copy_msghdr (net/socket.c:2556) [ 165.121737][ T979] ___sys_sendmsg (net/socket.c:2686) [ 165.121741][ T979] ? kasan_record_aux_stack (mm/kasan/generic.c:559) [ 165.121743][ T979] ? __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) [ 165.121753][ T979] ? copy_msghdr_from_user (net/socket.c:2673) [ 165.121758][ T979] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 165.121763][ T979] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 165.121768][ T979] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 165.121772][ T979] ? __virt_addr_valid (./include/linux/rcupdate.h:341 ./include/linux/rcupdate.h:979 ./include/linux/mmzone.h:2197 arch/x86/mm/physaddr.c:65) [ 165.121787][ T979] ? __lock_release (kernel/locking/lockdep.c:5536) [ 165.121794][ T979] __sys_sendmsg (net/socket.c:2716) [ 165.121797][ T979] ? __call_rcu_common.constprop.0 (kernel/rcu/tree.c:3148) [ 165.121800][ T979] ? __sys_sendmsg_sock (net/socket.c:2701) [ 165.121808][ T979] ? rcu_is_watching (./include/linux/context_tracking.h:128 kernel/rcu/tree.c:751) [ 165.121814][ T979] do_syscall_64 (arch/x86/entry/syscall_64.c:63 arch/x86/entry/syscall_64.c:94) [ 165.121823][ T979] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:130) [ 165.121831][ T979] RIP: 0033:0x7f042e3231d7 [ 165.121836][ T979] 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) [ 165.121841][ T979] RSP: 002b:00007fffa20fd288 EFLAGS: 00000246 ORIG_RAX: 000000000000002e [ 165.121849][ T979] RAX: ffffffffffffffda RBX: 00007fffa20fd9b0 RCX: 00007f042e3231d7 [ 165.121852][ T979] RDX: 0000000000000000 RSI: 00007fffa20fd2f0 RDI: 0000000000000005 [ 165.121853][ T979] RBP: 0000000000000002 R08: 0000000000000003 R09: 0000000000000078 [ 165.121855][ T979] R10: 00007f042e21ff60 R11: 0000000000000246 R12: 0000000000000002 [ 165.121858][ T979] R13: 00000000691cd44d R14: 0000000000499600 R15: 0000000000000000 | [ 165.139336][ T979] #PF: error_code(0x0002) - not-present page | [ 165.139567][ T979] PGD 4cfd067 P4D 4cfd067 PUD fa7d067 PMD 0 | [ 165.139818][ T979] Oops: Oops: 0002 [#1] SMP KASAN | [ 165.140528][ T979] Tainted: [B]=BAD_PAGE [ 165.140682][ T979] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 165.140939][ T979] 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) [ 165.141194][ T979] 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 7f 7f 81 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 7f 7f 81 00 call 0x817fa9 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 [ 165.141877][ T979] RSP: 0018:ffffc90000d5eec8 EFLAGS: 00010046 [ 165.142243][ T979] RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffffffffb744090a [ 165.142517][ T979] RDX: fffffbfff76cf2cd RSI: 0000000000000008 RDI: ffffffffbb679660 [ 165.142816][ T979] RBP: ffffc90000d5ef30 R08: 0000000000000001 R09: fffffbfff76cf2cc [ 165.143228][ T979] R10: ffffffffbb679667 R11: ffffc90000d5e980 R12: 0000000000000000 [ 165.143515][ T979] R13: 0000000000000282 R14: ffff888002549000 R15: dffffc0000000000 [ 165.143916][ T979] FS: 00007f042e155800(0000) GS:ffff88807abf2000(0000) knlGS:0000000000000000 [ 165.144276][ T979] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 165.144512][ T979] CR2: 0000000000000000 CR3: 000000000b393003 CR4: 0000000000772ef0 [ 165.144928][ T979] PKRU: 55555554 [ 165.145082][ T979] Call Trace: [ 165.145218][ T979] [ 165.145322][ T979] __cancel_work (kernel/workqueue.c:2161 kernel/workqueue.c:4364) [ 165.145514][ T979] ? enable_delayed_work (kernel/workqueue.c:4359) [ 165.145836][ T979] ? qdisc_destroy (net/sched/sch_generic.c:1355) [ 165.146037][ T979] __cancel_work_sync (kernel/workqueue.c:4383) [ 165.146220][ T979] __dev_close_many (net/core/dev.c:1879 (discriminator 2) net/core/dev.c:1932 (discriminator 2)) [ 165.146404][ T979] ? netdev_notify_peers (net/core/dev.c:1891) [ 165.146710][ T979] ? __mutex_lock (./arch/x86/include/asm/preempt.h:104 kernel/locking/mutex.c:739 kernel/locking/mutex.c:760) [ 165.146913][ T979] netif_close_many (net/core/dev.c:1959) [ 165.147119][ T979] ? ww_mutex_lock (kernel/locking/mutex.c:759) [ 165.147302][ T979] ? __dev_close_many (net/core/dev.c:1949) [ 165.147607][ T979] ? __mutex_handoff (kernel/locking/mutex.c:88) [ 165.147807][ T979] netif_close_many_and_unlock (net/core/dev.c:12476) [ 165.148012][ T979] unregister_netdevice_many_notify (net/core/dev.c:12539) [ 165.148241][ T979] ? rtnl_dellink (net/core/rtnetlink.c:3564) [ 165.148423][ T979] ? dev_ingress_queue_create (net/core/dev.c:12499) [ 165.148602][ T979] ? rtnl_is_locked (net/core/rtnetlink.c:169) [ 165.148802][ T979] ? unregister_netdevice_queue (net/core/dev.c:12442) [ 165.149159][ T979] ? unregister_netdevice_many (net/core/dev.c:12441) [ 165.149345][ T979] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 165.149528][ T979] ? __nla_validate_parse (./include/net/netlink.h:1307 (discriminator 1) lib/nlattr.c:622 (discriminator 1)) [ 165.149715][ T979] rtnl_dellink (net/core/rtnetlink.c:3530 net/core/rtnetlink.c:3570) [ 165.150034][ T979] ? valid_bridge_getlink_req.constprop.0 (net/core/rtnetlink.c:3536) [ 165.150284][ T979] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 165.150468][ T979] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 165.150660][ T979] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 165.150979][ T979] ? rtnetlink_rcv_msg (./include/linux/rcupdate.h:341 ./include/linux/rcupdate.h:897 net/core/rtnetlink.c:6956) [ 165.151165][ T979] ? __lock_release (kernel/locking/lockdep.c:5536) [ 165.151346][ T979] ? valid_bridge_getlink_req.constprop.0 (net/core/rtnetlink.c:3536) [ 165.151571][ T979] rtnetlink_rcv_msg (net/core/rtnetlink.c:6958) [ 165.151882][ T979] ? rtnl_port_fill (net/core/rtnetlink.c:6861) [ 165.152074][ T979] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 165.152266][ T979] netlink_rcv_skb (net/netlink/af_netlink.c:2550) [ 165.152451][ T979] ? rtnl_port_fill (net/core/rtnetlink.c:6861) [ 165.152741][ T979] ? netlink_ack (net/netlink/af_netlink.c:2527) [ 165.152953][ T979] ? netlink_deliver_tap (./include/linux/rcupdate.h:341 ./include/linux/rcupdate.h:897 net/netlink/af_netlink.c:340) [ 165.153137][ T979] ? 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) [ 165.153319][ T979] netlink_unicast (net/netlink/af_netlink.c:1319 net/netlink/af_netlink.c:1344) [ 165.153610][ T979] ? netlink_attachskb (net/netlink/af_netlink.c:1329) [ 165.153803][ T979] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 165.153998][ T979] netlink_sendmsg (net/netlink/af_netlink.c:1894) [ 165.154183][ T979] ? netlink_unicast (net/netlink/af_netlink.c:1813) [ 165.154372][ T979] ? __import_iovec (lib/iov_iter.c:1346 lib/iov_iter.c:1361) [ 165.154557][ T979] ? netlink_unicast (net/netlink/af_netlink.c:1813) [ 165.154736][ T979] ____sys_sendmsg (net/socket.c:727 net/socket.c:742 net/socket.c:2630) [ 165.154929][ T979] ? get_timestamp.constprop.0 (net/socket.c:2576) [ 165.155267][ T979] ? __copy_msghdr (net/socket.c:2556) [ 165.155459][ T979] ___sys_sendmsg (net/socket.c:2686) [ 165.155640][ T979] ? kasan_record_aux_stack (mm/kasan/generic.c:559) [ 165.155824][ T979] ? __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) [ 165.156177][ T979] ? copy_msghdr_from_user (net/socket.c:2673) [ 165.156362][ T979] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 165.156544][ T979] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 165.156828][ T979] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 165.157026][ T979] ? __virt_addr_valid (./include/linux/rcupdate.h:341 ./include/linux/rcupdate.h:979 ./include/linux/mmzone.h:2197 arch/x86/mm/physaddr.c:65) [ 165.157224][ T979] ? __lock_release (kernel/locking/lockdep.c:5536) [ 165.157407][ T979] __sys_sendmsg (net/socket.c:2716) [ 165.157695][ T979] ? __call_rcu_common.constprop.0 (kernel/rcu/tree.c:3148) [ 165.157961][ T979] ? __sys_sendmsg_sock (net/socket.c:2701) [ 165.158150][ T979] ? rcu_is_watching (./include/linux/context_tracking.h:128 kernel/rcu/tree.c:751) [ 165.158333][ T979] do_syscall_64 (arch/x86/entry/syscall_64.c:63 arch/x86/entry/syscall_64.c:94) [ 165.158623][ T979] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:130) [ 165.158858][ T979] RIP: 0033:0x7f042e3231d7 [ 165.159068][ T979] 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) [ 165.159822][ T979] RSP: 002b:00007fffa20fd288 EFLAGS: 00000246 ORIG_RAX: 000000000000002e [ 165.160111][ T979] RAX: ffffffffffffffda RBX: 00007fffa20fd9b0 RCX: 00007f042e3231d7 [ 165.160493][ T979] RDX: 0000000000000000 RSI: 00007fffa20fd2f0 RDI: 0000000000000005 [ 165.160764][ T979] RBP: 0000000000000002 R08: 0000000000000003 R09: 0000000000000078 [ 165.161152][ T979] R10: 00007f042e21ff60 R11: 0000000000000246 R12: 0000000000000002 Finger prints: try_to_grab_pending:__cancel_work:__cancel_work_sync:__dev_close_many:netif_close_many kasan_report:kasan_check_range:try_to_grab_pending:__cancel_work:__cancel_work_sync