====================================== | [ 175.445520][ T1002] ================================================================== | [ 175.446060][ T1002] 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) | [ 175.446554][ T1002] Write of size 8 at addr 0000000000000000 by task ip/1002 | [ 175.447003][ T1002] [ 175.447173][ T1002] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 175.447177][ T1002] Call Trace: [ 175.447179][ T1002] [ 175.447183][ T1002] dump_stack_lvl (lib/dump_stack.c:123) [ 175.447196][ T1002] ? try_to_grab_pending (./arch/x86/include/asm/bitops.h:136 ./include/asm-generic/bitops/instrumented-atomic.h:72 kernel/workqueue.c:2072) [ 175.447203][ T1002] kasan_report (mm/kasan/report.c:597) [ 175.447214][ T1002] ? try_to_grab_pending (./arch/x86/include/asm/bitops.h:136 ./include/asm-generic/bitops/instrumented-atomic.h:72 kernel/workqueue.c:2072) [ 175.447223][ T1002] kasan_check_range (mm/kasan/generic.c:194 mm/kasan/generic.c:200) [ 175.447229][ T1002] try_to_grab_pending (./arch/x86/include/asm/bitops.h:136 ./include/asm-generic/bitops/instrumented-atomic.h:72 kernel/workqueue.c:2072) [ 175.447239][ T1002] __cancel_work (kernel/workqueue.c:2161 kernel/workqueue.c:4364) [ 175.447245][ T1002] ? enable_delayed_work (kernel/workqueue.c:4359) [ 175.447253][ T1002] ? qdisc_destroy (net/sched/sch_generic.c:1355) [ 175.447262][ T1002] __cancel_work_sync (kernel/workqueue.c:4383) [ 175.447269][ T1002] __dev_close_many (net/core/dev.c:1879 (discriminator 2) net/core/dev.c:1932 (discriminator 2)) [ 175.447277][ T1002] ? netdev_notify_peers (net/core/dev.c:1891) [ 175.447285][ T1002] ? __mutex_lock (./arch/x86/include/asm/preempt.h:104 kernel/locking/mutex.c:739 kernel/locking/mutex.c:760) [ 175.447297][ T1002] netif_close_many (net/core/dev.c:1959) [ 175.447304][ T1002] ? ww_mutex_lock (kernel/locking/mutex.c:759) [ 175.447309][ T1002] ? __dev_close_many (net/core/dev.c:1949) [ 175.447316][ T1002] ? __mutex_handoff (kernel/locking/mutex.c:88) [ 175.447325][ T1002] netif_close_many_and_unlock (net/core/dev.c:12476) [ 175.447334][ T1002] unregister_netdevice_many_notify (net/core/dev.c:12539) [ 175.447341][ T1002] ? rtnl_dellink (net/core/rtnetlink.c:3564) [ 175.447350][ T1002] ? dev_ingress_queue_create (net/core/dev.c:12499) [ 175.447355][ T1002] ? rtnl_is_locked (net/core/rtnetlink.c:169) [ 175.447361][ T1002] ? unregister_netdevice_queue (net/core/dev.c:12442) [ 175.447367][ T1002] ? unregister_netdevice_many (net/core/dev.c:12441) [ 175.447372][ T1002] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 175.447378][ T1002] ? __nla_validate_parse (./include/net/netlink.h:1307 (discriminator 1) lib/nlattr.c:622 (discriminator 1)) [ 175.447390][ T1002] rtnl_dellink (net/core/rtnetlink.c:3530 net/core/rtnetlink.c:3570) [ 175.447397][ T1002] ? valid_bridge_getlink_req.constprop.0 (net/core/rtnetlink.c:3536) [ 175.447433][ T1002] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 175.447441][ T1002] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 175.447452][ T1002] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 175.447458][ T1002] ? rtnetlink_rcv_msg (./include/linux/rcupdate.h:341 ./include/linux/rcupdate.h:897 net/core/rtnetlink.c:6956) [ 175.447462][ T1002] ? __lock_release (kernel/locking/lockdep.c:5536) [ 175.447469][ T1002] ? valid_bridge_getlink_req.constprop.0 (net/core/rtnetlink.c:3536) [ 175.447475][ T1002] rtnetlink_rcv_msg (net/core/rtnetlink.c:6958) [ 175.447482][ T1002] ? rtnl_port_fill (net/core/rtnetlink.c:6861) [ 175.447487][ T1002] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 175.447499][ T1002] netlink_rcv_skb (net/netlink/af_netlink.c:2550) [ 175.447505][ T1002] ? rtnl_port_fill (net/core/rtnetlink.c:6861) [ 175.447512][ T1002] ? netlink_ack (net/netlink/af_netlink.c:2527) [ 175.447525][ T1002] ? netlink_deliver_tap (./include/linux/rcupdate.h:341 ./include/linux/rcupdate.h:897 net/netlink/af_netlink.c:340) [ 175.447530][ T1002] ? 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) [ 175.447538][ T1002] netlink_unicast (net/netlink/af_netlink.c:1319 net/netlink/af_netlink.c:1344) [ 175.447545][ T1002] ? netlink_attachskb (net/netlink/af_netlink.c:1329) [ 175.447552][ T1002] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 175.447562][ T1002] netlink_sendmsg (net/netlink/af_netlink.c:1894) [ 175.447570][ T1002] ? netlink_unicast (net/netlink/af_netlink.c:1813) [ 175.447577][ T1002] ? __import_iovec (lib/iov_iter.c:1346 lib/iov_iter.c:1361) [ 175.447586][ T1002] ? netlink_unicast (net/netlink/af_netlink.c:1813) [ 175.447592][ T1002] ____sys_sendmsg (net/socket.c:727 net/socket.c:742 net/socket.c:2630) [ 175.447600][ T1002] ? get_timestamp.constprop.0 (net/socket.c:2576) [ 175.447606][ T1002] ? __copy_msghdr (net/socket.c:2556) [ 175.447619][ T1002] ___sys_sendmsg (net/socket.c:2686) [ 175.447624][ T1002] ? kasan_record_aux_stack (mm/kasan/generic.c:559) [ 175.447629][ T1002] ? __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) [ 175.447641][ T1002] ? copy_msghdr_from_user (net/socket.c:2673) [ 175.447650][ T1002] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 175.447658][ T1002] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 175.447668][ T1002] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 175.447674][ T1002] ? __virt_addr_valid (./include/linux/rcupdate.h:341 ./include/linux/rcupdate.h:979 ./include/linux/mmzone.h:2197 arch/x86/mm/physaddr.c:65) [ 175.447685][ T1002] ? __lock_release (kernel/locking/lockdep.c:5536) [ 175.447696][ T1002] __sys_sendmsg (net/socket.c:2716) [ 175.447701][ T1002] ? __call_rcu_common.constprop.0 (kernel/rcu/tree.c:3148) [ 175.447707][ T1002] ? __sys_sendmsg_sock (net/socket.c:2701) [ 175.447718][ T1002] ? rcu_is_watching (./include/linux/context_tracking.h:128 kernel/rcu/tree.c:751) [ 175.447725][ T1002] do_syscall_64 (arch/x86/entry/syscall_64.c:63 arch/x86/entry/syscall_64.c:94) [ 175.447734][ T1002] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:130) [ 175.447740][ T1002] RIP: 0033:0x7fb90f8221d7 [ 175.447746][ T1002] 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) [ 175.447751][ T1002] RSP: 002b:00007ffd148768f8 EFLAGS: 00000246 ORIG_RAX: 000000000000002e [ 175.447762][ T1002] RAX: ffffffffffffffda RBX: 00007ffd14877020 RCX: 00007fb90f8221d7 [ 175.447766][ T1002] RDX: 0000000000000000 RSI: 00007ffd14876960 RDI: 0000000000000005 [ 175.447769][ T1002] RBP: 0000000000000002 R08: 0000000000000003 R09: 0000000000000078 [ 175.447772][ T1002] R10: 00007fb90f71ef60 R11: 0000000000000246 R12: 0000000000000002 [ 175.447775][ T1002] R13: 00000000691cc049 R14: 0000000000499600 R15: 0000000000000000 | [ 175.476314][ T1002] #PF: error_code(0x0002) - not-present page | [ 175.476664][ T1002] PGD 8a1f067 P4D 8a1f067 PUD 9ccd067 PMD 0 | [ 175.477028][ T1002] Oops: Oops: 0002 [#1] SMP KASAN | [ 175.478111][ T1002] Tainted: [B]=BAD_PAGE [ 175.478338][ T1002] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 175.478905][ T1002] 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) [ 175.479314][ T1002] 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 [ 175.480591][ T1002] RSP: 0018:ffffc90000daeec8 EFLAGS: 00010046 [ 175.480946][ T1002] RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffffffffb944090a [ 175.481576][ T1002] RDX: fffffbfff7acf2cd RSI: 0000000000000008 RDI: ffffffffbd679660 [ 175.482022][ T1002] RBP: ffffc90000daef30 R08: 0000000000000001 R09: fffffbfff7acf2cc [ 175.482468][ T1002] R10: ffffffffbd679667 R11: ffffc90000dae980 R12: 0000000000000000 [ 175.482897][ T1002] R13: 0000000000000282 R14: ffff888009e61000 R15: dffffc0000000000 [ 175.483322][ T1002] FS: 00007fb90f654800(0000) GS:ffff888078d72000(0000) knlGS:0000000000000000 [ 175.483834][ T1002] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 175.484405][ T1002] CR2: 0000000000000000 CR3: 0000000009967003 CR4: 0000000000772ef0 [ 175.484852][ T1002] PKRU: 55555554 [ 175.485075][ T1002] Call Trace: [ 175.485491][ T1002] [ 175.485646][ T1002] __cancel_work (kernel/workqueue.c:2161 kernel/workqueue.c:4364) [ 175.485932][ T1002] ? enable_delayed_work (kernel/workqueue.c:4359) [ 175.486226][ T1002] ? qdisc_destroy (net/sched/sch_generic.c:1355) [ 175.486520][ T1002] __cancel_work_sync (kernel/workqueue.c:4383) [ 175.486808][ T1002] __dev_close_many (net/core/dev.c:1879 (discriminator 2) net/core/dev.c:1932 (discriminator 2)) [ 175.487130][ T1002] ? netdev_notify_peers (net/core/dev.c:1891) [ 175.487438][ T1002] ? __mutex_lock (./arch/x86/include/asm/preempt.h:104 kernel/locking/mutex.c:739 kernel/locking/mutex.c:760) [ 175.487743][ T1002] netif_close_many (net/core/dev.c:1959) [ 175.488267][ T1002] ? ww_mutex_lock (kernel/locking/mutex.c:759) [ 175.488574][ T1002] ? __dev_close_many (net/core/dev.c:1949) [ 175.488871][ T1002] ? __mutex_handoff (kernel/locking/mutex.c:88) [ 175.489163][ T1002] netif_close_many_and_unlock (net/core/dev.c:12476) [ 175.489654][ T1002] unregister_netdevice_many_notify (net/core/dev.c:12539) [ 175.490003][ T1002] ? rtnl_dellink (net/core/rtnetlink.c:3564) [ 175.490318][ T1002] ? dev_ingress_queue_create (net/core/dev.c:12499) [ 175.490621][ T1002] ? rtnl_is_locked (net/core/rtnetlink.c:169) [ 175.490929][ T1002] ? unregister_netdevice_queue (net/core/dev.c:12442) [ 175.491323][ T1002] ? unregister_netdevice_many (net/core/dev.c:12441) [ 175.491630][ T1002] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 175.492134][ T1002] ? __nla_validate_parse (./include/net/netlink.h:1307 (discriminator 1) lib/nlattr.c:622 (discriminator 1)) [ 175.492445][ T1002] rtnl_dellink (net/core/rtnetlink.c:3530 net/core/rtnetlink.c:3570) [ 175.492748][ T1002] ? valid_bridge_getlink_req.constprop.0 (net/core/rtnetlink.c:3536) [ 175.493146][ T1002] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 175.493638][ T1002] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 175.493944][ T1002] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 175.494246][ T1002] ? rtnetlink_rcv_msg (./include/linux/rcupdate.h:341 ./include/linux/rcupdate.h:897 net/core/rtnetlink.c:6956) [ 175.494552][ T1002] ? __lock_release (kernel/locking/lockdep.c:5536) [ 175.495056][ T1002] ? valid_bridge_getlink_req.constprop.0 (net/core/rtnetlink.c:3536) [ 175.495424][ T1002] rtnetlink_rcv_msg (net/core/rtnetlink.c:6958) [ 175.495730][ T1002] ? rtnl_port_fill (net/core/rtnetlink.c:6861) [ 175.496025][ T1002] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 175.496527][ T1002] netlink_rcv_skb (net/netlink/af_netlink.c:2550) [ 175.496829][ T1002] ? rtnl_port_fill (net/core/rtnetlink.c:6861) [ 175.497131][ T1002] ? netlink_ack (net/netlink/af_netlink.c:2527) [ 175.497425][ T1002] ? netlink_deliver_tap (./include/linux/rcupdate.h:341 ./include/linux/rcupdate.h:897 net/netlink/af_netlink.c:340) [ 175.497916][ T1002] ? 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) [ 175.498204][ T1002] netlink_unicast (net/netlink/af_netlink.c:1319 net/netlink/af_netlink.c:1344) [ 175.498497][ T1002] ? netlink_attachskb (net/netlink/af_netlink.c:1329) [ 175.498821][ T1002] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 175.499322][ T1002] netlink_sendmsg (net/netlink/af_netlink.c:1894) [ 175.499624][ T1002] ? netlink_unicast (net/netlink/af_netlink.c:1813) [ 175.499931][ T1002] ? __import_iovec (lib/iov_iter.c:1346 lib/iov_iter.c:1361) [ 175.500240][ T1002] ? netlink_unicast (net/netlink/af_netlink.c:1813) [ 175.500733][ T1002] ____sys_sendmsg (net/socket.c:727 net/socket.c:742 net/socket.c:2630) [ 175.501033][ T1002] ? get_timestamp.constprop.0 (net/socket.c:2576) [ 175.501403][ T1002] ? __copy_msghdr (net/socket.c:2556) [ 175.501722][ T1002] ___sys_sendmsg (net/socket.c:2686) [ 175.502199][ T1002] ? kasan_record_aux_stack (mm/kasan/generic.c:559) [ 175.502506][ T1002] ? __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) [ 175.502870][ T1002] ? copy_msghdr_from_user (net/socket.c:2673) [ 175.503365][ T1002] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 175.503664][ T1002] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 175.503974][ T1002] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 175.504280][ T1002] ? __virt_addr_valid (./include/linux/rcupdate.h:341 ./include/linux/rcupdate.h:979 ./include/linux/mmzone.h:2197 arch/x86/mm/physaddr.c:65) [ 175.504795][ T1002] ? __lock_release (kernel/locking/lockdep.c:5536) [ 175.505092][ T1002] __sys_sendmsg (net/socket.c:2716) [ 175.505398][ T1002] ? __call_rcu_common.constprop.0 (kernel/rcu/tree.c:3148) [ 175.505775][ T1002] ? __sys_sendmsg_sock (net/socket.c:2701) [ 175.506285][ T1002] ? rcu_is_watching (./include/linux/context_tracking.h:128 kernel/rcu/tree.c:751) [ 175.506579][ T1002] do_syscall_64 (arch/x86/entry/syscall_64.c:63 arch/x86/entry/syscall_64.c:94) [ 175.506882][ T1002] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:130) [ 175.507260][ T1002] RIP: 0033:0x7fb90f8221d7 [ 175.507771][ T1002] 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) [ 175.509059][ T1002] RSP: 002b:00007ffd148768f8 EFLAGS: 00000246 ORIG_RAX: 000000000000002e [ 175.509510][ T1002] RAX: ffffffffffffffda RBX: 00007ffd14877020 RCX: 00007fb90f8221d7 [ 175.509983][ T1002] RDX: 0000000000000000 RSI: 00007ffd14876960 RDI: 0000000000000005 [ 175.510650][ T1002] RBP: 0000000000000002 R08: 0000000000000003 R09: 0000000000000078 [ 175.511070][ T1002] R10: 00007fb90f71ef60 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