====================================== | [ 54.873879][ T746] ================================================================== | [ 54.874397][ T746] 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) | [ 54.874880][ T746] Write of size 8 at addr 0000000000000000 by task ip/746 | [ 54.875249][ T746] [ 54.875423][ T746] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 54.875431][ T746] Call Trace: [ 54.875434][ T746] [ 54.875437][ T746] dump_stack_lvl (lib/dump_stack.c:123) [ 54.875456][ T746] ? try_to_grab_pending (./arch/x86/include/asm/bitops.h:136 ./include/asm-generic/bitops/instrumented-atomic.h:72 kernel/workqueue.c:2072) [ 54.875460][ T746] kasan_report (mm/kasan/report.c:597) [ 54.875481][ T746] ? try_to_grab_pending (./arch/x86/include/asm/bitops.h:136 ./include/asm-generic/bitops/instrumented-atomic.h:72 kernel/workqueue.c:2072) [ 54.875489][ T746] kasan_check_range (mm/kasan/generic.c:194 mm/kasan/generic.c:200) [ 54.875495][ T746] try_to_grab_pending (./arch/x86/include/asm/bitops.h:136 ./include/asm-generic/bitops/instrumented-atomic.h:72 kernel/workqueue.c:2072) [ 54.875502][ T746] __cancel_work (kernel/workqueue.c:2161 kernel/workqueue.c:4364) [ 54.875507][ T746] ? enable_delayed_work (kernel/workqueue.c:4359) [ 54.875512][ T746] ? br_multicast_leave_snoopers (net/bridge/br_multicast.c:4220) bridge [ 54.875562][ T746] ? br_multicast_join_snoopers (net/bridge/br_multicast.c:4220) bridge [ 54.875610][ T746] __cancel_work_sync (kernel/workqueue.c:4383) [ 54.875616][ T746] __dev_close_many (net/core/dev.c:1879 (discriminator 2) net/core/dev.c:1932 (discriminator 2)) [ 54.875632][ T746] ? netdev_notify_peers (net/core/dev.c:1891) [ 54.875638][ T746] ? netif_close_many (net/core/dev.c:1959) [ 54.875646][ T746] netif_close_many (net/core/dev.c:1959) [ 54.875653][ T746] ? __dev_close_many (net/core/dev.c:1949) [ 54.875659][ T746] ? netif_close_many_and_unlock (net/core/dev.c:12476) [ 54.875667][ T746] unregister_netdevice_many_notify (net/core/dev.c:12545) [ 54.875673][ T746] ? __call_rcu_common.constprop.0 (kernel/rcu/tree.c:3148) [ 54.875690][ T746] ? dev_ingress_queue_create (net/core/dev.c:12499) [ 54.875694][ T746] ? rtnl_is_locked (net/core/rtnetlink.c:169) [ 54.875700][ T746] ? unregister_netdevice_queue (net/core/dev.c:12442) [ 54.875704][ T746] ? kernfs_put.part.0 (./arch/x86/include/asm/atomic.h:67 ./include/linux/atomic/atomic-arch-fallback.h:2278 ./include/linux/atomic/atomic-instrumented.h:1384 fs/kernfs/dir.c:595) [ 54.875722][ T746] ? unregister_netdevice_many (net/core/dev.c:12441) [ 54.875728][ T746] ? br_dev_delete (net/bridge/br_if.c:397) bridge [ 54.875776][ T746] rtnl_dellink (net/core/rtnetlink.c:3530 net/core/rtnetlink.c:3570) [ 54.875782][ T746] ? valid_bridge_getlink_req.constprop.0 (net/core/rtnetlink.c:3536) [ 54.875814][ T746] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 54.875828][ T746] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 54.875837][ T746] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 54.875843][ T746] ? rtnetlink_rcv_msg (./include/linux/rcupdate.h:341 ./include/linux/rcupdate.h:897 net/core/rtnetlink.c:6956) [ 54.875846][ T746] ? __lock_release (kernel/locking/lockdep.c:5536) [ 54.875856][ T746] ? valid_bridge_getlink_req.constprop.0 (net/core/rtnetlink.c:3536) [ 54.875860][ T746] rtnetlink_rcv_msg (net/core/rtnetlink.c:6958) [ 54.875867][ T746] ? rtnl_port_fill (net/core/rtnetlink.c:6861) [ 54.875871][ T746] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 54.875882][ T746] netlink_rcv_skb (net/netlink/af_netlink.c:2550) [ 54.875894][ T746] ? rtnl_port_fill (net/core/rtnetlink.c:6861) [ 54.875900][ T746] ? netlink_ack (net/netlink/af_netlink.c:2527) [ 54.875911][ T746] ? netlink_deliver_tap (./include/linux/rcupdate.h:341 ./include/linux/rcupdate.h:897 net/netlink/af_netlink.c:340) [ 54.875915][ T746] ? 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) [ 54.875921][ T746] netlink_unicast (net/netlink/af_netlink.c:1319 net/netlink/af_netlink.c:1344) [ 54.875928][ T746] ? netlink_attachskb (net/netlink/af_netlink.c:1329) [ 54.875934][ T746] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 54.875943][ T746] netlink_sendmsg (net/netlink/af_netlink.c:1894) [ 54.875950][ T746] ? netlink_unicast (net/netlink/af_netlink.c:1813) [ 54.875955][ T746] ? __import_iovec (lib/iov_iter.c:1346 lib/iov_iter.c:1361) [ 54.875971][ T746] ? netlink_unicast (net/netlink/af_netlink.c:1813) [ 54.875976][ T746] ____sys_sendmsg (net/socket.c:727 net/socket.c:742 net/socket.c:2630) [ 54.875989][ T746] ? get_timestamp.constprop.0 (net/socket.c:2576) [ 54.875994][ T746] ? __copy_msghdr (net/socket.c:2556) [ 54.876006][ T746] ___sys_sendmsg (net/socket.c:2686) [ 54.876010][ T746] ? kasan_record_aux_stack (mm/kasan/generic.c:559) [ 54.876014][ T746] ? __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) [ 54.876020][ T746] ? copy_msghdr_from_user (net/socket.c:2673) [ 54.876028][ T746] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 54.876035][ T746] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 54.876043][ T746] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 54.876049][ T746] ? __virt_addr_valid (./include/linux/rcupdate.h:341 ./include/linux/rcupdate.h:979 ./include/linux/mmzone.h:2197 arch/x86/mm/physaddr.c:65) [ 54.876065][ T746] ? __lock_release (kernel/locking/lockdep.c:5536) [ 54.876076][ T746] __sys_sendmsg (net/socket.c:2716) [ 54.876080][ T746] ? __call_rcu_common.constprop.0 (kernel/rcu/tree.c:3148) [ 54.876086][ T746] ? __sys_sendmsg_sock (net/socket.c:2701) [ 54.876098][ T746] ? rcu_is_watching (./include/linux/context_tracking.h:128 kernel/rcu/tree.c:751) [ 54.876105][ T746] do_syscall_64 (arch/x86/entry/syscall_64.c:63 arch/x86/entry/syscall_64.c:94) [ 54.876116][ T746] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:130) [ 54.876129][ T746] RIP: 0033:0x7f513c6911d7 [ 54.876143][ T746] 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) [ 54.876148][ T746] RSP: 002b:00007ffc064caec8 EFLAGS: 00000246 ORIG_RAX: 000000000000002e [ 54.876156][ T746] RAX: ffffffffffffffda RBX: 00007ffc064cb5f0 RCX: 00007f513c6911d7 [ 54.876159][ T746] RDX: 0000000000000000 RSI: 00007ffc064caf30 RDI: 0000000000000005 [ 54.876165][ T746] RBP: 0000000000000002 R08: 0000000000000003 R09: 0000000000000078 [ 54.876167][ T746] R10: 00007f513c58df60 R11: 0000000000000246 R12: 0000000000000002 [ 54.876170][ T746] R13: 00000000691cbfa6 R14: 0000000000499600 R15: 0000000000000000 | [ 54.900232][ T746] #PF: error_code(0x0002) - not-present page | [ 54.900537][ T746] PGD 8d09067 P4D 8d09067 PUD a8d0067 PMD 0 | [ 54.900858][ T746] Oops: Oops: 0002 [#1] SMP KASAN | [ 54.901614][ T746] Tainted: [B]=BAD_PAGE [ 54.901804][ T746] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 54.902113][ T746] 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) [ 54.902433][ T746] 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 [ 54.903327][ T746] RSP: 0018:ffffc9000116ef18 EFLAGS: 00010046 [ 54.903645][ T746] RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffffffff9e04090a [ 54.904021][ T746] RDX: fffffbfff444f2cd RSI: 0000000000000008 RDI: ffffffffa2279660 [ 54.904393][ T746] RBP: ffffc9000116ef80 R08: 0000000000000001 R09: fffffbfff444f2cc [ 54.904770][ T746] R10: ffffffffa2279667 R11: ffffc9000116ea00 R12: 0000000000000000 [ 54.905141][ T746] R13: 0000000000000286 R14: ffff88800993a000 R15: dffffc0000000000 [ 54.905513][ T746] FS: 00007f513c4c3800(0000) GS:ffff8880940f2000(0000) knlGS:0000000000000000 [ 54.905950][ T746] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 54.906265][ T746] CR2: 0000000000000000 CR3: 0000000008bcc003 CR4: 0000000000772ef0 [ 54.906642][ T746] PKRU: 55555554 [ 54.906838][ T746] Call Trace: [ 54.907027][ T746] [ 54.907157][ T746] __cancel_work (kernel/workqueue.c:2161 kernel/workqueue.c:4364) [ 54.907404][ T746] ? enable_delayed_work (kernel/workqueue.c:4359) [ 54.907668][ T746] ? br_multicast_leave_snoopers (net/bridge/br_multicast.c:4220) bridge [ 54.908017][ T746] ? br_multicast_join_snoopers (net/bridge/br_multicast.c:4220) bridge [ 54.908365][ T746] __cancel_work_sync (kernel/workqueue.c:4383) [ 54.908617][ T746] __dev_close_many (net/core/dev.c:1879 (discriminator 2) net/core/dev.c:1932 (discriminator 2)) [ 54.908865][ T746] ? netdev_notify_peers (net/core/dev.c:1891) [ 54.909108][ T746] ? netif_close_many (net/core/dev.c:1959) [ 54.909350][ T746] netif_close_many (net/core/dev.c:1959) [ 54.909598][ T746] ? __dev_close_many (net/core/dev.c:1949) [ 54.909842][ T746] ? netif_close_many_and_unlock (net/core/dev.c:12476) [ 54.910147][ T746] unregister_netdevice_many_notify (net/core/dev.c:12545) [ 54.910445][ T746] ? __call_rcu_common.constprop.0 (kernel/rcu/tree.c:3148) [ 54.910752][ T746] ? dev_ingress_queue_create (net/core/dev.c:12499) [ 54.910990][ T746] ? rtnl_is_locked (net/core/rtnetlink.c:169) [ 54.911232][ T746] ? unregister_netdevice_queue (net/core/dev.c:12442) [ 54.911534][ T746] ? kernfs_put.part.0 (./arch/x86/include/asm/atomic.h:67 ./include/linux/atomic/atomic-arch-fallback.h:2278 ./include/linux/atomic/atomic-instrumented.h:1384 fs/kernfs/dir.c:595) [ 54.911779][ T746] ? unregister_netdevice_many (net/core/dev.c:12441) [ 54.912022][ T746] ? br_dev_delete (net/bridge/br_if.c:397) bridge [ 54.912308][ T746] rtnl_dellink (net/core/rtnetlink.c:3530 net/core/rtnetlink.c:3570) [ 54.912549][ T746] ? valid_bridge_getlink_req.constprop.0 (net/core/rtnetlink.c:3536) [ 54.912871][ T746] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 54.913123][ T746] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 54.913369][ T746] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 54.913611][ T746] ? rtnetlink_rcv_msg (./include/linux/rcupdate.h:341 ./include/linux/rcupdate.h:897 net/core/rtnetlink.c:6956) [ 54.913851][ T746] ? __lock_release (kernel/locking/lockdep.c:5536) [ 54.914099][ T746] ? valid_bridge_getlink_req.constprop.0 (net/core/rtnetlink.c:3536) [ 54.914399][ T746] rtnetlink_rcv_msg (net/core/rtnetlink.c:6958) [ 54.914647][ T746] ? rtnl_port_fill (net/core/rtnetlink.c:6861) [ 54.914898][ T746] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 54.915148][ T746] netlink_rcv_skb (net/netlink/af_netlink.c:2550) [ 54.915395][ T746] ? rtnl_port_fill (net/core/rtnetlink.c:6861) [ 54.915640][ T746] ? netlink_ack (net/netlink/af_netlink.c:2527) [ 54.915887][ T746] ? netlink_deliver_tap (./include/linux/rcupdate.h:341 ./include/linux/rcupdate.h:897 net/netlink/af_netlink.c:340) [ 54.916127][ T746] ? 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) [ 54.916370][ T746] netlink_unicast (net/netlink/af_netlink.c:1319 net/netlink/af_netlink.c:1344) [ 54.916613][ T746] ? netlink_attachskb (net/netlink/af_netlink.c:1329) [ 54.916869][ T746] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 54.917122][ T746] netlink_sendmsg (net/netlink/af_netlink.c:1894) [ 54.917371][ T746] ? netlink_unicast (net/netlink/af_netlink.c:1813) [ 54.917617][ T746] ? __import_iovec (lib/iov_iter.c:1346 lib/iov_iter.c:1361) [ 54.917863][ T746] ? netlink_unicast (net/netlink/af_netlink.c:1813) [ 54.918110][ T746] ____sys_sendmsg (net/socket.c:727 net/socket.c:742 net/socket.c:2630) [ 54.918396][ T746] ? get_timestamp.constprop.0 (net/socket.c:2576) [ 54.918726][ T746] ? __copy_msghdr (net/socket.c:2556) [ 54.919013][ T746] ___sys_sendmsg (net/socket.c:2686) [ 54.919280][ T746] ? kasan_record_aux_stack (mm/kasan/generic.c:559) [ 54.919527][ T746] ? __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) [ 54.919852][ T746] ? copy_msghdr_from_user (net/socket.c:2673) [ 54.920103][ T746] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 54.920346][ T746] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 54.920602][ T746] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 54.920848][ T746] ? __virt_addr_valid (./include/linux/rcupdate.h:341 ./include/linux/rcupdate.h:979 ./include/linux/mmzone.h:2197 arch/x86/mm/physaddr.c:65) [ 54.921095][ T746] ? __lock_release (kernel/locking/lockdep.c:5536) [ 54.921344][ T746] __sys_sendmsg (net/socket.c:2716) [ 54.921594][ T746] ? __call_rcu_common.constprop.0 (kernel/rcu/tree.c:3148) [ 54.922073][ T746] ? __sys_sendmsg_sock (net/socket.c:2701) [ 54.922322][ T746] ? rcu_is_watching (./include/linux/context_tracking.h:128 kernel/rcu/tree.c:751) [ 54.922574][ T746] do_syscall_64 (arch/x86/entry/syscall_64.c:63 arch/x86/entry/syscall_64.c:94) [ 54.922817][ T746] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:130) [ 54.923138][ T746] RIP: 0033:0x7f513c6911d7 [ 54.923404][ T746] 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) [ 54.924470][ T746] RSP: 002b:00007ffc064caec8 EFLAGS: 00000246 ORIG_RAX: 000000000000002e [ 54.924866][ T746] RAX: ffffffffffffffda RBX: 00007ffc064cb5f0 RCX: 00007f513c6911d7 [ 54.925417][ T746] RDX: 0000000000000000 RSI: 00007ffc064caf30 RDI: 0000000000000005 [ 54.925788][ T746] RBP: 0000000000000002 R08: 0000000000000003 R09: 0000000000000078 [ 54.926180][ T746] R10: 00007f513c58df60 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