====================================== | [ 47.391075][ T654] ================================================================== | [ 47.391425][ T654] 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) | [ 47.391742][ T654] Write of size 8 at addr 0000000000000000 by task ip/654 | [ 47.391986][ T654] [ 47.392093][ T654] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 47.392096][ T654] Call Trace: [ 47.392098][ T654] [ 47.392100][ T654] dump_stack_lvl (lib/dump_stack.c:123) [ 47.392120][ T654] ? try_to_grab_pending (./arch/x86/include/asm/bitops.h:136 ./include/asm-generic/bitops/instrumented-atomic.h:72 kernel/workqueue.c:2072) [ 47.392123][ T654] kasan_report (mm/kasan/report.c:597) [ 47.392130][ T654] ? try_to_grab_pending (./arch/x86/include/asm/bitops.h:136 ./include/asm-generic/bitops/instrumented-atomic.h:72 kernel/workqueue.c:2072) [ 47.392135][ T654] kasan_check_range (mm/kasan/generic.c:194 mm/kasan/generic.c:200) [ 47.392139][ T654] try_to_grab_pending (./arch/x86/include/asm/bitops.h:136 ./include/asm-generic/bitops/instrumented-atomic.h:72 kernel/workqueue.c:2072) [ 47.392141][ T654] ? __queue_work (./include/linux/rcupdate.h:341 ./include/linux/rcupdate.h:897 kernel/workqueue.c:2350) [ 47.392146][ T654] __cancel_work (kernel/workqueue.c:2161 kernel/workqueue.c:4364) [ 47.392149][ T654] ? enable_delayed_work (kernel/workqueue.c:4359) [ 47.392153][ T654] ? queue_delayed_work_on (kernel/workqueue.c:2565 (discriminator 1)) [ 47.392157][ T654] ? lockdep_hardirqs_on (kernel/locking/lockdep.c:4472) [ 47.392165][ T654] __cancel_work_sync (kernel/workqueue.c:4383) [ 47.392169][ T654] __dev_close_many (net/core/dev.c:1879 (discriminator 2) net/core/dev.c:1932 (discriminator 2)) [ 47.392179][ T654] ? netdev_notify_peers (net/core/dev.c:1891) [ 47.392185][ T654] ? netif_close_many (net/core/dev.c:1959) [ 47.392190][ T654] netif_close_many (net/core/dev.c:1959) [ 47.392193][ T654] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 47.392200][ T654] ? __dev_close_many (net/core/dev.c:1949) [ 47.392204][ T654] ? netif_close_many_and_unlock (net/core/dev.c:12476) [ 47.392208][ T654] unregister_netdevice_many_notify (net/core/dev.c:12545) [ 47.392213][ T654] ? __virt_addr_valid (./include/linux/rcupdate.h:341 ./include/linux/rcupdate.h:979 ./include/linux/mmzone.h:2197 arch/x86/mm/physaddr.c:65) [ 47.392222][ T654] ? dev_ingress_queue_create (net/core/dev.c:12499) [ 47.392227][ T654] ? __call_rcu_common.constprop.0 (kernel/rcu/tree.c:3148) [ 47.392237][ T654] ? lockdep_hardirqs_on (kernel/locking/lockdep.c:4472) [ 47.392242][ T654] rtnl_dellink (net/core/rtnetlink.c:3530 net/core/rtnetlink.c:3570) [ 47.392247][ T654] ? valid_bridge_getlink_req.constprop.0 (net/core/rtnetlink.c:3536) [ 47.392266][ T654] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 47.392271][ T654] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 47.392278][ T654] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 47.392282][ T654] ? rtnetlink_rcv_msg (./include/linux/rcupdate.h:341 ./include/linux/rcupdate.h:897 net/core/rtnetlink.c:6956) [ 47.392285][ T654] ? __lock_release (kernel/locking/lockdep.c:5536) [ 47.392289][ T654] ? valid_bridge_getlink_req.constprop.0 (net/core/rtnetlink.c:3536) [ 47.392292][ T654] rtnetlink_rcv_msg (net/core/rtnetlink.c:6958) [ 47.392296][ T654] ? rtnl_port_fill (net/core/rtnetlink.c:6861) [ 47.392298][ T654] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 47.392306][ T654] netlink_rcv_skb (net/netlink/af_netlink.c:2550) [ 47.392313][ T654] ? rtnl_port_fill (net/core/rtnetlink.c:6861) [ 47.392316][ T654] ? netlink_ack (net/netlink/af_netlink.c:2527) [ 47.392323][ T654] ? netlink_deliver_tap (./include/linux/rcupdate.h:341 ./include/linux/rcupdate.h:897 net/netlink/af_netlink.c:340) [ 47.392327][ T654] ? 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) [ 47.392331][ T654] netlink_unicast (net/netlink/af_netlink.c:1319 net/netlink/af_netlink.c:1344) [ 47.392335][ T654] ? netlink_attachskb (net/netlink/af_netlink.c:1329) [ 47.392339][ T654] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 47.392345][ T654] netlink_sendmsg (net/netlink/af_netlink.c:1894) [ 47.392349][ T654] ? netlink_unicast (net/netlink/af_netlink.c:1813) [ 47.392353][ T654] ? __import_iovec (lib/iov_iter.c:1346 lib/iov_iter.c:1361) [ 47.392361][ T654] ? netlink_unicast (net/netlink/af_netlink.c:1813) [ 47.392364][ T654] ____sys_sendmsg (net/socket.c:727 net/socket.c:742 net/socket.c:2630) [ 47.392369][ T654] ? get_timestamp.constprop.0 (net/socket.c:2576) [ 47.392372][ T654] ? __copy_msghdr (net/socket.c:2556) [ 47.392380][ T654] ___sys_sendmsg (net/socket.c:2686) [ 47.392383][ T654] ? kasan_record_aux_stack (mm/kasan/generic.c:559) [ 47.392386][ T654] ? __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) [ 47.392390][ T654] ? copy_msghdr_from_user (net/socket.c:2673) [ 47.392395][ T654] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 47.392400][ T654] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 47.392405][ T654] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 47.392409][ T654] ? __virt_addr_valid (./include/linux/rcupdate.h:341 ./include/linux/rcupdate.h:979 ./include/linux/mmzone.h:2197 arch/x86/mm/physaddr.c:65) [ 47.392412][ T654] ? __lock_release (kernel/locking/lockdep.c:5536) [ 47.392418][ T654] __sys_sendmsg (net/socket.c:2716) [ 47.392421][ T654] ? __call_rcu_common.constprop.0 (kernel/rcu/tree.c:3148) [ 47.392425][ T654] ? __sys_sendmsg_sock (net/socket.c:2701) [ 47.392433][ T654] ? rcu_is_watching (./include/linux/context_tracking.h:128 kernel/rcu/tree.c:751) [ 47.392437][ T654] do_syscall_64 (arch/x86/entry/syscall_64.c:63 arch/x86/entry/syscall_64.c:94) [ 47.392442][ T654] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:130) [ 47.392448][ T654] RIP: 0033:0x7f6efbe901d7 [ 47.392453][ T654] 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) [ 47.392456][ T654] RSP: 002b:00007ffdb263b668 EFLAGS: 00000246 ORIG_RAX: 000000000000002e [ 47.392461][ T654] RAX: ffffffffffffffda RBX: 00007ffdb263bd90 RCX: 00007f6efbe901d7 [ 47.392463][ T654] RDX: 0000000000000000 RSI: 00007ffdb263b6d0 RDI: 0000000000000005 [ 47.392464][ T654] RBP: 0000000000000002 R08: 0000000000000003 R09: 0000000000000078 [ 47.392466][ T654] R10: 00007f6efbd8cf60 R11: 0000000000000246 R12: 0000000000000002 [ 47.392468][ T654] R13: 00000000691cd77c R14: 0000000000499600 R15: 0000000000000000 | [ 47.409615][ T654] #PF: error_code(0x0002) - not-present page | [ 47.409848][ T654] PGD a679067 P4D a679067 PUD 57fc067 PMD 0 | [ 47.410096][ T654] Oops: Oops: 0002 [#1] SMP KASAN | [ 47.410665][ T654] Tainted: [B]=BAD_PAGE [ 47.410808][ T654] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 47.411038][ T654] 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) [ 47.411311][ T654] 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 [ 47.411961][ T654] RSP: 0018:ffffc90000646f18 EFLAGS: 00010046 [ 47.412206][ T654] RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffffffffa464090a [ 47.412490][ T654] RDX: fffffbfff510f2cd RSI: 0000000000000008 RDI: ffffffffa8879660 [ 47.412765][ T654] RBP: ffffc90000646f80 R08: 0000000000000001 R09: fffffbfff510f2cc [ 47.413045][ T654] R10: ffffffffa8879667 R11: ffffc90000646a00 R12: 0000000000000000 [ 47.413330][ T654] R13: 0000000000000286 R14: ffff888002abc000 R15: dffffc0000000000 [ 47.413608][ T654] FS: 00007f6efbcc2800(0000) GS:ffff88808d9f2000(0000) knlGS:0000000000000000 [ 47.413932][ T654] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 47.414173][ T654] CR2: 0000000000000000 CR3: 000000000a7c2003 CR4: 0000000000772ef0 [ 47.414452][ T654] PKRU: 55555554 [ 47.414590][ T654] Call Trace: [ 47.414729][ T654] [ 47.414823][ T654] ? __queue_work (./include/linux/rcupdate.h:341 ./include/linux/rcupdate.h:897 kernel/workqueue.c:2350) [ 47.415024][ T654] __cancel_work (kernel/workqueue.c:2161 kernel/workqueue.c:4364) [ 47.415221][ T654] ? enable_delayed_work (kernel/workqueue.c:4359) [ 47.415406][ T654] ? queue_delayed_work_on (kernel/workqueue.c:2565 (discriminator 1)) [ 47.415589][ T654] ? lockdep_hardirqs_on (kernel/locking/lockdep.c:4472) [ 47.415775][ T654] __cancel_work_sync (kernel/workqueue.c:4383) [ 47.415960][ T654] __dev_close_many (net/core/dev.c:1879 (discriminator 2) net/core/dev.c:1932 (discriminator 2)) [ 47.416145][ T654] ? netdev_notify_peers (net/core/dev.c:1891) [ 47.416346][ T654] ? netif_close_many (net/core/dev.c:1959) [ 47.416530][ T654] netif_close_many (net/core/dev.c:1959) [ 47.416714][ T654] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 47.416897][ T654] ? __dev_close_many (net/core/dev.c:1949) [ 47.417081][ T654] ? netif_close_many_and_unlock (net/core/dev.c:12476) [ 47.417335][ T654] unregister_netdevice_many_notify (net/core/dev.c:12545) [ 47.417565][ T654] ? __virt_addr_valid (./include/linux/rcupdate.h:341 ./include/linux/rcupdate.h:979 ./include/linux/mmzone.h:2197 arch/x86/mm/physaddr.c:65) [ 47.417755][ T654] ? dev_ingress_queue_create (net/core/dev.c:12499) [ 47.417938][ T654] ? __call_rcu_common.constprop.0 (kernel/rcu/tree.c:3148) [ 47.418170][ T654] ? lockdep_hardirqs_on (kernel/locking/lockdep.c:4472) [ 47.418361][ T654] rtnl_dellink (net/core/rtnetlink.c:3530 net/core/rtnetlink.c:3570) [ 47.418547][ T654] ? valid_bridge_getlink_req.constprop.0 (net/core/rtnetlink.c:3536) [ 47.418787][ T654] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 47.418972][ T654] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 47.419162][ T654] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 47.419358][ T654] ? rtnetlink_rcv_msg (./include/linux/rcupdate.h:341 ./include/linux/rcupdate.h:897 net/core/rtnetlink.c:6956) [ 47.419538][ T654] ? __lock_release (kernel/locking/lockdep.c:5536) [ 47.419737][ T654] ? valid_bridge_getlink_req.constprop.0 (net/core/rtnetlink.c:3536) [ 47.419967][ T654] rtnetlink_rcv_msg (net/core/rtnetlink.c:6958) [ 47.420150][ T654] ? rtnl_port_fill (net/core/rtnetlink.c:6861) [ 47.420349][ T654] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 47.420545][ T654] netlink_rcv_skb (net/netlink/af_netlink.c:2550) [ 47.420731][ T654] ? rtnl_port_fill (net/core/rtnetlink.c:6861) [ 47.420919][ T654] ? netlink_ack (net/netlink/af_netlink.c:2527) [ 47.421105][ T654] ? netlink_deliver_tap (./include/linux/rcupdate.h:341 ./include/linux/rcupdate.h:897 net/netlink/af_netlink.c:340) [ 47.421288][ T654] ? 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) [ 47.421480][ T654] netlink_unicast (net/netlink/af_netlink.c:1319 net/netlink/af_netlink.c:1344) [ 47.421661][ T654] ? netlink_attachskb (net/netlink/af_netlink.c:1329) [ 47.421852][ T654] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 47.422037][ T654] netlink_sendmsg (net/netlink/af_netlink.c:1894) [ 47.422222][ T654] ? netlink_unicast (net/netlink/af_netlink.c:1813) [ 47.422414][ T654] ? __import_iovec (lib/iov_iter.c:1346 lib/iov_iter.c:1361) [ 47.422603][ T654] ? netlink_unicast (net/netlink/af_netlink.c:1813) [ 47.422786][ T654] ____sys_sendmsg (net/socket.c:727 net/socket.c:742 net/socket.c:2630) [ 47.422973][ T654] ? get_timestamp.constprop.0 (net/socket.c:2576) [ 47.423198][ T654] ? __copy_msghdr (net/socket.c:2556) [ 47.423418][ T654] ___sys_sendmsg (net/socket.c:2686) [ 47.423607][ T654] ? kasan_record_aux_stack (mm/kasan/generic.c:559) [ 47.423812][ T654] ? __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) [ 47.424045][ T654] ? copy_msghdr_from_user (net/socket.c:2673) [ 47.424232][ T654] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 47.424430][ T654] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 47.424616][ T654] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 47.424799][ T654] ? __virt_addr_valid (./include/linux/rcupdate.h:341 ./include/linux/rcupdate.h:979 ./include/linux/mmzone.h:2197 arch/x86/mm/physaddr.c:65) [ 47.424990][ T654] ? __lock_release (kernel/locking/lockdep.c:5536) [ 47.425175][ T654] __sys_sendmsg (net/socket.c:2716) [ 47.425357][ T654] ? __call_rcu_common.constprop.0 (kernel/rcu/tree.c:3148) [ 47.425596][ T654] ? __sys_sendmsg_sock (net/socket.c:2701) [ 47.425782][ T654] ? rcu_is_watching (./include/linux/context_tracking.h:128 kernel/rcu/tree.c:751) [ 47.425964][ T654] do_syscall_64 (arch/x86/entry/syscall_64.c:63 arch/x86/entry/syscall_64.c:94) [ 47.426150][ T654] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:130) [ 47.426385][ T654] RIP: 0033:0x7f6efbe901d7 [ 47.426587][ T654] 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) [ 47.427236][ T654] RSP: 002b:00007ffdb263b668 EFLAGS: 00000246 ORIG_RAX: 000000000000002e [ 47.427525][ T654] RAX: ffffffffffffffda RBX: 00007ffdb263bd90 RCX: 00007f6efbe901d7 [ 47.427805][ T654] RDX: 0000000000000000 RSI: 00007ffdb263b6d0 RDI: 0000000000000005 [ 47.428077][ T654] RBP: 0000000000000002 R08: 0000000000000003 R09: 0000000000000078 [ 47.428352][ T654] R10: 00007f6efbd8cf60 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