====================================== | [ 23.746714][ T288] ================================================================== | [ 23.747256][ T288] 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) | [ 23.747758][ T288] Write of size 8 at addr 0000000000000000 by task ip/288 | [ 23.748197][ T288] [ 23.748397][ T288] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 23.748400][ T288] Call Trace: [ 23.748403][ T288] [ 23.748406][ T288] dump_stack_lvl (lib/dump_stack.c:123) [ 23.748419][ T288] ? try_to_grab_pending (./arch/x86/include/asm/bitops.h:136 ./include/asm-generic/bitops/instrumented-atomic.h:72 kernel/workqueue.c:2072) [ 23.748425][ T288] kasan_report (mm/kasan/report.c:597) [ 23.748438][ T288] ? try_to_grab_pending (./arch/x86/include/asm/bitops.h:136 ./include/asm-generic/bitops/instrumented-atomic.h:72 kernel/workqueue.c:2072) [ 23.748448][ T288] kasan_check_range (mm/kasan/generic.c:194 mm/kasan/generic.c:200) [ 23.748455][ T288] try_to_grab_pending (./arch/x86/include/asm/bitops.h:136 ./include/asm-generic/bitops/instrumented-atomic.h:72 kernel/workqueue.c:2072) [ 23.748461][ T288] ? irqentry_exit (kernel/entry/common.c:215) [ 23.748473][ T288] __cancel_work (kernel/workqueue.c:2161 kernel/workqueue.c:4364) [ 23.748479][ T288] ? enable_delayed_work (kernel/workqueue.c:4359) [ 23.748493][ T288] __cancel_work_sync (kernel/workqueue.c:4383) [ 23.748500][ T288] __dev_close_many (net/core/dev.c:1879 (discriminator 2) net/core/dev.c:1932 (discriminator 2)) [ 23.748510][ T288] ? netdev_notify_peers (net/core/dev.c:1891) [ 23.748517][ T288] ? netif_close_many (net/core/dev.c:1959) [ 23.748526][ T288] netif_close_many (net/core/dev.c:1959) [ 23.748532][ T288] ? __mutex_handoff (kernel/locking/mutex.c:88) [ 23.748542][ T288] ? __dev_close_many (net/core/dev.c:1949) [ 23.748549][ T288] ? netif_close_many_and_unlock (net/core/dev.c:12476) [ 23.748558][ T288] unregister_netdevice_many_notify (net/core/dev.c:12545) [ 23.748566][ T288] ? rtnl_dellink (net/core/rtnetlink.c:3564) [ 23.748576][ T288] ? 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) [ 23.748582][ T288] ? dev_ingress_queue_create (net/core/dev.c:12499) [ 23.748588][ T288] ? rtnl_is_locked (net/core/rtnetlink.c:169) [ 23.748593][ T288] ? unregister_netdevice_queue (net/core/dev.c:12442) [ 23.748598][ T288] ? unregister_netdevice_many (net/core/dev.c:12441) [ 23.748604][ T288] ? unregister_netdevice_many (net/core/dev.c:12441) [ 23.748615][ T288] rtnl_dellink (net/core/rtnetlink.c:3530 net/core/rtnetlink.c:3570) [ 23.748624][ T288] ? valid_bridge_getlink_req.constprop.0 (net/core/rtnetlink.c:3536) [ 23.748666][ T288] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 23.748676][ T288] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 23.748688][ T288] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 23.748694][ T288] ? rtnetlink_rcv_msg (./include/linux/rcupdate.h:341 ./include/linux/rcupdate.h:897 net/core/rtnetlink.c:6956) [ 23.748699][ T288] ? __lock_release (kernel/locking/lockdep.c:5536) [ 23.748706][ T288] ? valid_bridge_getlink_req.constprop.0 (net/core/rtnetlink.c:3536) [ 23.748713][ T288] rtnetlink_rcv_msg (net/core/rtnetlink.c:6958) [ 23.748721][ T288] ? rtnl_port_fill (net/core/rtnetlink.c:6861) [ 23.748726][ T288] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 23.748739][ T288] netlink_rcv_skb (net/netlink/af_netlink.c:2550) [ 23.748746][ T288] ? rtnl_port_fill (net/core/rtnetlink.c:6861) [ 23.748754][ T288] ? netlink_ack (net/netlink/af_netlink.c:2527) [ 23.748766][ T288] ? netlink_deliver_tap (./include/linux/rcupdate.h:341 ./include/linux/rcupdate.h:897 net/netlink/af_netlink.c:340) [ 23.748771][ T288] ? 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) [ 23.748778][ T288] netlink_unicast (net/netlink/af_netlink.c:1319 net/netlink/af_netlink.c:1344) [ 23.748786][ T288] ? netlink_attachskb (net/netlink/af_netlink.c:1329) [ 23.748793][ T288] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 23.748802][ T288] netlink_sendmsg (net/netlink/af_netlink.c:1894) [ 23.748811][ T288] ? netlink_unicast (net/netlink/af_netlink.c:1813) [ 23.748817][ T288] ? __import_iovec (lib/iov_iter.c:1346 lib/iov_iter.c:1361) [ 23.748826][ T288] ? netlink_unicast (net/netlink/af_netlink.c:1813) [ 23.748832][ T288] ____sys_sendmsg (net/socket.c:727 net/socket.c:742 net/socket.c:2630) [ 23.748840][ T288] ? get_timestamp.constprop.0 (net/socket.c:2576) [ 23.748844][ T288] ? __copy_msghdr (net/socket.c:2556) [ 23.748859][ T288] ___sys_sendmsg (net/socket.c:2686) [ 23.748864][ T288] ? kasan_record_aux_stack (mm/kasan/generic.c:559) [ 23.748869][ T288] ? __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) [ 23.748878][ T288] ? copy_msghdr_from_user (net/socket.c:2673) [ 23.748887][ T288] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 23.748895][ T288] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 23.748905][ T288] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 23.748912][ T288] ? __virt_addr_valid (./include/linux/rcupdate.h:341 ./include/linux/rcupdate.h:979 ./include/linux/mmzone.h:2197 arch/x86/mm/physaddr.c:65) [ 23.748919][ T288] ? __lock_release (kernel/locking/lockdep.c:5536) [ 23.748931][ T288] __sys_sendmsg (net/socket.c:2716) [ 23.748935][ T288] ? __call_rcu_common.constprop.0 (kernel/rcu/tree.c:3148) [ 23.748941][ T288] ? __sys_sendmsg_sock (net/socket.c:2701) [ 23.748956][ T288] ? rcu_is_watching (./include/linux/context_tracking.h:128 kernel/rcu/tree.c:751) [ 23.748966][ T288] do_syscall_64 (arch/x86/entry/syscall_64.c:63 arch/x86/entry/syscall_64.c:94) [ 23.748977][ T288] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:130) [ 23.748984][ T288] RIP: 0033:0x7fec645b91d7 [ 23.748990][ T288] 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) [ 23.748995][ T288] RSP: 002b:00007ffe99441e38 EFLAGS: 00000246 ORIG_RAX: 000000000000002e [ 23.749002][ T288] RAX: ffffffffffffffda RBX: 00007ffe99442560 RCX: 00007fec645b91d7 [ 23.749006][ T288] RDX: 0000000000000000 RSI: 00007ffe99441ea0 RDI: 0000000000000005 [ 23.749009][ T288] RBP: 0000000000000001 R08: 0000000000000003 R09: 0000000000000078 [ 23.749012][ T288] R10: 00007fec644b5f60 R11: 0000000000000246 R12: 0000000000000001 [ 23.749015][ T288] R13: 00000000691cd34f R14: 0000000000499600 R15: 0000000000000000 | [ 23.777200][ T288] #PF: error_code(0x0002) - not-present page | [ 23.777563][ T288] PGD 111b7067 P4D 111b7067 PUD 111b4067 PMD 0 | [ 23.777956][ T288] Oops: Oops: 0002 [#1] SMP KASAN | [ 23.778882][ T288] Tainted: [B]=BAD_PAGE [ 23.779123][ T288] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 23.779510][ T288] 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) [ 23.779902][ T288] 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 [ 23.780964][ T288] RSP: 0018:ffffc90000c76f08 EFLAGS: 00010046 [ 23.781364][ T288] RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffffffff86c49b8a [ 23.781821][ T288] RDX: fffffbfff172cacd RSI: 0000000000000008 RDI: ffffffff8b965660 [ 23.782281][ T288] RBP: ffffc90000c76f70 R08: 0000000000000001 R09: fffffbfff172cacc [ 23.782729][ T288] R10: ffffffff8b965667 R11: ffffc90000c769c0 R12: 0000000000000000 [ 23.783193][ T288] R13: 0000000000000282 R14: ffff888010fd1000 R15: dffffc0000000000 [ 23.783643][ T288] FS: 00007fec643eb800(0000) GS:ffff8880e1887000(0000) knlGS:0000000000000000 [ 23.784178][ T288] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 23.784565][ T288] CR2: 0000000000000000 CR3: 0000000011fad005 CR4: 0000000000772ef0 [ 23.785036][ T288] PKRU: 55555554 [ 23.785264][ T288] Call Trace: [ 23.785493][ T288] [ 23.785651][ T288] ? irqentry_exit (kernel/entry/common.c:215) [ 23.785960][ T288] __cancel_work (kernel/workqueue.c:2161 kernel/workqueue.c:4364) [ 23.786262][ T288] ? enable_delayed_work (kernel/workqueue.c:4359) [ 23.786567][ T288] __cancel_work_sync (kernel/workqueue.c:4383) [ 23.786874][ T288] __dev_close_many (net/core/dev.c:1879 (discriminator 2) net/core/dev.c:1932 (discriminator 2)) [ 23.787177][ T288] ? netdev_notify_peers (net/core/dev.c:1891) [ 23.787489][ T288] ? netif_close_many (net/core/dev.c:1959) [ 23.787791][ T288] netif_close_many (net/core/dev.c:1959) [ 23.788104][ T288] ? __mutex_handoff (kernel/locking/mutex.c:88) [ 23.788402][ T288] ? __dev_close_many (net/core/dev.c:1949) [ 23.788701][ T288] ? netif_close_many_and_unlock (net/core/dev.c:12476) [ 23.789073][ T288] unregister_netdevice_many_notify (net/core/dev.c:12545) [ 23.789453][ T288] ? rtnl_dellink (net/core/rtnetlink.c:3564) [ 23.789759][ T288] ? 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) [ 23.790073][ T288] ? dev_ingress_queue_create (net/core/dev.c:12499) [ 23.790373][ T288] ? rtnl_is_locked (net/core/rtnetlink.c:169) [ 23.790668][ T288] ? unregister_netdevice_queue (net/core/dev.c:12442) [ 23.791039][ T288] ? unregister_netdevice_many (net/core/dev.c:12441) [ 23.791343][ T288] ? unregister_netdevice_many (net/core/dev.c:12441) [ 23.791651][ T288] rtnl_dellink (net/core/rtnetlink.c:3530 net/core/rtnetlink.c:3570) [ 23.791960][ T288] ? valid_bridge_getlink_req.constprop.0 (net/core/rtnetlink.c:3536) [ 23.792372][ T288] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 23.792678][ T288] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 23.792984][ T288] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 23.793283][ T288] ? rtnetlink_rcv_msg (./include/linux/rcupdate.h:341 ./include/linux/rcupdate.h:897 net/core/rtnetlink.c:6956) [ 23.793583][ T288] ? __lock_release (kernel/locking/lockdep.c:5536) [ 23.793879][ T288] ? valid_bridge_getlink_req.constprop.0 (net/core/rtnetlink.c:3536) [ 23.794264][ T288] rtnetlink_rcv_msg (net/core/rtnetlink.c:6958) [ 23.794568][ T288] ? rtnl_port_fill (net/core/rtnetlink.c:6861) [ 23.794869][ T288] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 23.795170][ T288] netlink_rcv_skb (net/netlink/af_netlink.c:2550) [ 23.795467][ T288] ? rtnl_port_fill (net/core/rtnetlink.c:6861) [ 23.795759][ T288] ? netlink_ack (net/netlink/af_netlink.c:2527) [ 23.796064][ T288] ? netlink_deliver_tap (./include/linux/rcupdate.h:341 ./include/linux/rcupdate.h:897 net/netlink/af_netlink.c:340) [ 23.796354][ T288] ? 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) [ 23.796668][ T288] netlink_unicast (net/netlink/af_netlink.c:1319 net/netlink/af_netlink.c:1344) [ 23.796976][ T288] ? netlink_attachskb (net/netlink/af_netlink.c:1329) [ 23.797279][ T288] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 23.797588][ T288] netlink_sendmsg (net/netlink/af_netlink.c:1894) [ 23.797903][ T288] ? netlink_unicast (net/netlink/af_netlink.c:1813) [ 23.798199][ T288] ? __import_iovec (lib/iov_iter.c:1346 lib/iov_iter.c:1361) [ 23.798499][ T288] ? netlink_unicast (net/netlink/af_netlink.c:1813) [ 23.798800][ T288] ____sys_sendmsg (net/socket.c:727 net/socket.c:742 net/socket.c:2630) [ 23.799113][ T288] ? get_timestamp.constprop.0 (net/socket.c:2576) [ 23.799489][ T288] ? __copy_msghdr (net/socket.c:2556) [ 23.799799][ T288] ___sys_sendmsg (net/socket.c:2686) [ 23.800093][ T288] ? kasan_record_aux_stack (mm/kasan/generic.c:559) [ 23.800393][ T288] ? __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) [ 23.800766][ T288] ? copy_msghdr_from_user (net/socket.c:2673) [ 23.801065][ T288] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 23.801386][ T288] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 23.801694][ T288] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 23.802002][ T288] ? __virt_addr_valid (./include/linux/rcupdate.h:341 ./include/linux/rcupdate.h:979 ./include/linux/mmzone.h:2197 arch/x86/mm/physaddr.c:65) [ 23.802306][ T288] ? __lock_release (kernel/locking/lockdep.c:5536) [ 23.802613][ T288] __sys_sendmsg (net/socket.c:2716) [ 23.802916][ T288] ? __call_rcu_common.constprop.0 (kernel/rcu/tree.c:3148) [ 23.803283][ T288] ? __sys_sendmsg_sock (net/socket.c:2701) [ 23.803577][ T288] ? rcu_is_watching (./include/linux/context_tracking.h:128 kernel/rcu/tree.c:751) [ 23.803877][ T288] do_syscall_64 (arch/x86/entry/syscall_64.c:63 arch/x86/entry/syscall_64.c:94) [ 23.804162][ T288] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:130) [ 23.804531][ T288] RIP: 0033:0x7fec645b91d7 [ 23.804850][ T288] 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) [ 23.805933][ T288] RSP: 002b:00007ffe99441e38 EFLAGS: 00000246 ORIG_RAX: 000000000000002e [ 23.806391][ T288] RAX: ffffffffffffffda RBX: 00007ffe99442560 RCX: 00007fec645b91d7 [ 23.806847][ T288] RDX: 0000000000000000 RSI: 00007ffe99441ea0 RDI: 0000000000000005 [ 23.807294][ T288] RBP: 0000000000000001 R08: 0000000000000003 R09: 0000000000000078 [ 23.807752][ T288] R10: 00007fec644b5f60 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