====================================== | [ 70.288978][ T553] ================================================================== | [ 70.289463][ T553] 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) | [ 70.289912][ T553] Write of size 8 at addr 0000000000000000 by task ip/553 | [ 70.290306][ T553] [ 70.290474][ T553] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 70.290478][ T553] Call Trace: [ 70.290480][ T553] [ 70.290483][ T553] dump_stack_lvl (lib/dump_stack.c:123) [ 70.290498][ T553] ? try_to_grab_pending (./arch/x86/include/asm/bitops.h:136 ./include/asm-generic/bitops/instrumented-atomic.h:72 kernel/workqueue.c:2072) [ 70.290506][ T553] kasan_report (mm/kasan/report.c:597) [ 70.290519][ T553] ? try_to_grab_pending (./arch/x86/include/asm/bitops.h:136 ./include/asm-generic/bitops/instrumented-atomic.h:72 kernel/workqueue.c:2072) [ 70.290529][ T553] kasan_check_range (mm/kasan/generic.c:194 mm/kasan/generic.c:200) [ 70.290535][ T553] try_to_grab_pending (./arch/x86/include/asm/bitops.h:136 ./include/asm-generic/bitops/instrumented-atomic.h:72 kernel/workqueue.c:2072) [ 70.290540][ T553] ? __queue_work (./include/linux/rcupdate.h:341 ./include/linux/rcupdate.h:897 kernel/workqueue.c:2350) [ 70.290549][ T553] __cancel_work (kernel/workqueue.c:2161 kernel/workqueue.c:4364) [ 70.290555][ T553] ? enable_delayed_work (kernel/workqueue.c:4359) [ 70.290562][ T553] ? queue_delayed_work_on (kernel/workqueue.c:2565 (discriminator 1)) [ 70.290567][ T553] ? lockdep_hardirqs_on (kernel/locking/lockdep.c:4472) [ 70.290577][ T553] __cancel_work_sync (kernel/workqueue.c:4383) [ 70.290584][ T553] __dev_close_many (net/core/dev.c:1879 (discriminator 2) net/core/dev.c:1932 (discriminator 2)) [ 70.290593][ T553] ? netdev_notify_peers (net/core/dev.c:1891) [ 70.290600][ T553] ? netif_close_many (net/core/dev.c:1959) [ 70.290609][ T553] netif_close_many (net/core/dev.c:1959) [ 70.290616][ T553] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 70.290623][ T553] ? __dev_close_many (net/core/dev.c:1949) [ 70.290630][ T553] ? netif_close_many_and_unlock (net/core/dev.c:12476) [ 70.290638][ T553] unregister_netdevice_many_notify (net/core/dev.c:12545) [ 70.290644][ T553] ? __virt_addr_valid (./include/linux/rcupdate.h:341 ./include/linux/rcupdate.h:979 ./include/linux/mmzone.h:2197 arch/x86/mm/physaddr.c:65) [ 70.290656][ T553] ? dev_ingress_queue_create (net/core/dev.c:12499) [ 70.290665][ T553] ? __call_rcu_common.constprop.0 (kernel/rcu/tree.c:3148) [ 70.290673][ T553] ? lockdep_hardirqs_on (kernel/locking/lockdep.c:4472) [ 70.290682][ T553] rtnl_dellink (net/core/rtnetlink.c:3530 net/core/rtnetlink.c:3570) [ 70.290690][ T553] ? valid_bridge_getlink_req.constprop.0 (net/core/rtnetlink.c:3536) [ 70.290729][ T553] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 70.290738][ T553] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 70.290749][ T553] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 70.290755][ T553] ? rtnetlink_rcv_msg (./include/linux/rcupdate.h:341 ./include/linux/rcupdate.h:897 net/core/rtnetlink.c:6956) [ 70.290759][ T553] ? __lock_release (kernel/locking/lockdep.c:5536) [ 70.290767][ T553] ? valid_bridge_getlink_req.constprop.0 (net/core/rtnetlink.c:3536) [ 70.290773][ T553] rtnetlink_rcv_msg (net/core/rtnetlink.c:6958) [ 70.290780][ T553] ? rtnl_port_fill (net/core/rtnetlink.c:6861) [ 70.290785][ T553] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 70.290799][ T553] netlink_rcv_skb (net/netlink/af_netlink.c:2550) [ 70.290805][ T553] ? rtnl_port_fill (net/core/rtnetlink.c:6861) [ 70.290812][ T553] ? netlink_ack (net/netlink/af_netlink.c:2527) [ 70.290825][ T553] ? netlink_deliver_tap (./include/linux/rcupdate.h:341 ./include/linux/rcupdate.h:897 net/netlink/af_netlink.c:340) [ 70.290830][ T553] ? 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) [ 70.290837][ T553] netlink_unicast (net/netlink/af_netlink.c:1319 net/netlink/af_netlink.c:1344) [ 70.290845][ T553] ? netlink_attachskb (net/netlink/af_netlink.c:1329) [ 70.290852][ T553] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 70.290862][ T553] netlink_sendmsg (net/netlink/af_netlink.c:1894) [ 70.290871][ T553] ? netlink_unicast (net/netlink/af_netlink.c:1813) [ 70.290878][ T553] ? __import_iovec (lib/iov_iter.c:1346 lib/iov_iter.c:1361) [ 70.290892][ T553] ? netlink_unicast (net/netlink/af_netlink.c:1813) [ 70.290898][ T553] ____sys_sendmsg (net/socket.c:727 net/socket.c:742 net/socket.c:2630) [ 70.290907][ T553] ? get_timestamp.constprop.0 (net/socket.c:2576) [ 70.290912][ T553] ? __copy_msghdr (net/socket.c:2556) [ 70.290926][ T553] ___sys_sendmsg (net/socket.c:2686) [ 70.290932][ T553] ? kasan_record_aux_stack (mm/kasan/generic.c:559) [ 70.290936][ T553] ? __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) [ 70.290944][ T553] ? copy_msghdr_from_user (net/socket.c:2673) [ 70.290953][ T553] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 70.290960][ T553] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 70.290971][ T553] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 70.290977][ T553] ? __virt_addr_valid (./include/linux/rcupdate.h:341 ./include/linux/rcupdate.h:979 ./include/linux/mmzone.h:2197 arch/x86/mm/physaddr.c:65) [ 70.290982][ T553] ? __lock_release (kernel/locking/lockdep.c:5536) [ 70.290994][ T553] __sys_sendmsg (net/socket.c:2716) [ 70.290998][ T553] ? __call_rcu_common.constprop.0 (kernel/rcu/tree.c:3148) [ 70.291005][ T553] ? __sys_sendmsg_sock (net/socket.c:2701) [ 70.291020][ T553] ? rcu_is_watching (./include/linux/context_tracking.h:128 kernel/rcu/tree.c:751) [ 70.291027][ T553] do_syscall_64 (arch/x86/entry/syscall_64.c:63 arch/x86/entry/syscall_64.c:94) [ 70.291035][ T553] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:130) [ 70.291041][ T553] RIP: 0033:0x7fe9ef3a91d7 [ 70.291046][ T553] 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) [ 70.291051][ T553] RSP: 002b:00007ffc92c07e78 EFLAGS: 00000246 ORIG_RAX: 000000000000002e [ 70.291057][ T553] RAX: ffffffffffffffda RBX: 00007ffc92c085a0 RCX: 00007fe9ef3a91d7 [ 70.291061][ T553] RDX: 0000000000000000 RSI: 00007ffc92c07ee0 RDI: 0000000000000005 [ 70.291064][ T553] RBP: 0000000000000002 R08: 0000000000000003 R09: 0000000000000078 [ 70.291067][ T553] R10: 00007fe9ef2a5f60 R11: 0000000000000246 R12: 0000000000000002 [ 70.291070][ T553] R13: 00000000691cc50c R14: 0000000000499600 R15: 0000000000000000 | [ 70.317608][ T553] #PF: error_code(0x0002) - not-present page | [ 70.317972][ T553] PGD 8b49067 P4D 8b49067 PUD 4d7c067 PMD 0 | [ 70.318353][ T553] Oops: Oops: 0002 [#1] SMP KASAN | [ 70.319252][ T553] Tainted: [B]=BAD_PAGE [ 70.319484][ T553] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 70.319849][ T553] 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) [ 70.320228][ T553] 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 [ 70.321264][ T553] RSP: 0018:ffffc90000e36f18 EFLAGS: 00010046 [ 70.321625][ T553] RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffffffff97c4090a [ 70.322060][ T553] RDX: fffffbfff37cf2cd RSI: 0000000000000008 RDI: ffffffff9be79660 [ 70.322492][ T553] RBP: ffffc90000e36f80 R08: 0000000000000001 R09: fffffbfff37cf2cc [ 70.322934][ T553] R10: ffffffff9be79667 R11: ffffc90000e36a00 R12: 0000000000000000 [ 70.323381][ T553] R13: 0000000000000286 R14: ffff88800de91000 R15: dffffc0000000000 [ 70.323816][ T553] FS: 00007fe9ef1db800(0000) GS:ffff8880947f2000(0000) knlGS:0000000000000000 [ 70.324328][ T553] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 70.324687][ T553] CR2: 0000000000000000 CR3: 000000000b183001 CR4: 0000000000772ef0 [ 70.325126][ T553] PKRU: 55555554 [ 70.325351][ T553] Call Trace: [ 70.325599][ T553] [ 70.325744][ T553] ? __queue_work (./include/linux/rcupdate.h:341 ./include/linux/rcupdate.h:897 kernel/workqueue.c:2350) [ 70.326034][ T553] __cancel_work (kernel/workqueue.c:2161 kernel/workqueue.c:4364) [ 70.326311][ T553] ? enable_delayed_work (kernel/workqueue.c:4359) [ 70.326586][ T553] ? queue_delayed_work_on (kernel/workqueue.c:2565 (discriminator 1)) [ 70.326857][ T553] ? lockdep_hardirqs_on (kernel/locking/lockdep.c:4472) [ 70.327144][ T553] __cancel_work_sync (kernel/workqueue.c:4383) [ 70.327441][ T553] __dev_close_many (net/core/dev.c:1879 (discriminator 2) net/core/dev.c:1932 (discriminator 2)) [ 70.327728][ T553] ? netdev_notify_peers (net/core/dev.c:1891) [ 70.328011][ T553] ? netif_close_many (net/core/dev.c:1959) [ 70.328294][ T553] netif_close_many (net/core/dev.c:1959) [ 70.328579][ T553] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 70.328872][ T553] ? __dev_close_many (net/core/dev.c:1949) [ 70.329158][ T553] ? netif_close_many_and_unlock (net/core/dev.c:12476) [ 70.329511][ T553] unregister_netdevice_many_notify (net/core/dev.c:12545) [ 70.329896][ T553] ? __virt_addr_valid (./include/linux/rcupdate.h:341 ./include/linux/rcupdate.h:979 ./include/linux/mmzone.h:2197 arch/x86/mm/physaddr.c:65) [ 70.330213][ T553] ? dev_ingress_queue_create (net/core/dev.c:12499) [ 70.330497][ T553] ? __call_rcu_common.constprop.0 (kernel/rcu/tree.c:3148) [ 70.330854][ T553] ? lockdep_hardirqs_on (kernel/locking/lockdep.c:4472) [ 70.331127][ T553] rtnl_dellink (net/core/rtnetlink.c:3530 net/core/rtnetlink.c:3570) [ 70.331410][ T553] ? valid_bridge_getlink_req.constprop.0 (net/core/rtnetlink.c:3536) [ 70.331793][ T553] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 70.332079][ T553] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 70.332390][ T553] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 70.332679][ T553] ? rtnetlink_rcv_msg (./include/linux/rcupdate.h:341 ./include/linux/rcupdate.h:897 net/core/rtnetlink.c:6956) [ 70.332964][ T553] ? __lock_release (kernel/locking/lockdep.c:5536) [ 70.333252][ T553] ? valid_bridge_getlink_req.constprop.0 (net/core/rtnetlink.c:3536) [ 70.333599][ T553] rtnetlink_rcv_msg (net/core/rtnetlink.c:6958) [ 70.333903][ T553] ? rtnl_port_fill (net/core/rtnetlink.c:6861) [ 70.334193][ T553] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 70.334495][ T553] netlink_rcv_skb (net/netlink/af_netlink.c:2550) [ 70.334788][ T553] ? rtnl_port_fill (net/core/rtnetlink.c:6861) [ 70.335080][ T553] ? netlink_ack (net/netlink/af_netlink.c:2527) [ 70.335375][ T553] ? netlink_deliver_tap (./include/linux/rcupdate.h:341 ./include/linux/rcupdate.h:897 net/netlink/af_netlink.c:340) [ 70.335867][ T553] ? 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) [ 70.336158][ T553] netlink_unicast (net/netlink/af_netlink.c:1319 net/netlink/af_netlink.c:1344) [ 70.336460][ T553] ? netlink_attachskb (net/netlink/af_netlink.c:1329) [ 70.336748][ T553] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 70.337239][ T553] netlink_sendmsg (net/netlink/af_netlink.c:1894) [ 70.337528][ T553] ? netlink_unicast (net/netlink/af_netlink.c:1813) [ 70.337808][ T553] ? __import_iovec (lib/iov_iter.c:1346 lib/iov_iter.c:1361) [ 70.338102][ T553] ? netlink_unicast (net/netlink/af_netlink.c:1813) [ 70.338581][ T553] ____sys_sendmsg (net/socket.c:727 net/socket.c:742 net/socket.c:2630) [ 70.338851][ T553] ? get_timestamp.constprop.0 (net/socket.c:2576) [ 70.339078][ T553] ? __copy_msghdr (net/socket.c:2556) [ 70.339256][ T553] ___sys_sendmsg (net/socket.c:2686) [ 70.339559][ T553] ? kasan_record_aux_stack (mm/kasan/generic.c:559) [ 70.339725][ T553] ? __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) [ 70.339932][ T553] ? copy_msghdr_from_user (net/socket.c:2673) [ 70.340096][ T553] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 70.340370][ T553] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 70.340546][ T553] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 70.340712][ T553] ? __virt_addr_valid (./include/linux/rcupdate.h:341 ./include/linux/rcupdate.h:979 ./include/linux/mmzone.h:2197 arch/x86/mm/physaddr.c:65) [ 70.340877][ T553] ? __lock_release (kernel/locking/lockdep.c:5536) [ 70.341149][ T553] __sys_sendmsg (net/socket.c:2716) [ 70.341317][ T553] ? __call_rcu_common.constprop.0 (kernel/rcu/tree.c:3148) [ 70.341524][ T553] ? __sys_sendmsg_sock (net/socket.c:2701) [ 70.341794][ T553] ? rcu_is_watching (./include/linux/context_tracking.h:128 kernel/rcu/tree.c:751) [ 70.341966][ T553] do_syscall_64 (arch/x86/entry/syscall_64.c:63 arch/x86/entry/syscall_64.c:94) [ 70.342136][ T553] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:130) [ 70.342343][ T553] RIP: 0033:0x7fe9ef3a91d7 [ 70.342623][ T553] 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) [ 70.343215][ T553] RSP: 002b:00007ffc92c07e78 EFLAGS: 00000246 ORIG_RAX: 000000000000002e [ 70.343472][ T553] RAX: ffffffffffffffda RBX: 00007ffc92c085a0 RCX: 00007fe9ef3a91d7 [ 70.343724][ T553] RDX: 0000000000000000 RSI: 00007ffc92c07ee0 RDI: 0000000000000005 [ 70.344075][ T553] RBP: 0000000000000002 R08: 0000000000000003 R09: 0000000000000078 [ 70.344334][ T553] R10: 00007fe9ef2a5f60 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