====================================== | [ 73.009365][ T1043] ================================================================== | [ 73.009936][ T1043] 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) | [ 73.010434][ T1043] Write of size 8 at addr 0000000000000000 by task ip/1043 | [ 73.010906][ T1043] [ 73.011112][ T1043] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 73.011121][ T1043] Call Trace: [ 73.011124][ T1043] [ 73.011127][ T1043] dump_stack_lvl (lib/dump_stack.c:123) [ 73.011139][ T1043] ? try_to_grab_pending (./arch/x86/include/asm/bitops.h:136 ./include/asm-generic/bitops/instrumented-atomic.h:72 kernel/workqueue.c:2072) [ 73.011145][ T1043] kasan_report (mm/kasan/report.c:597) [ 73.011154][ T1043] ? try_to_grab_pending (./arch/x86/include/asm/bitops.h:136 ./include/asm-generic/bitops/instrumented-atomic.h:72 kernel/workqueue.c:2072) [ 73.011161][ T1043] kasan_check_range (mm/kasan/generic.c:194 mm/kasan/generic.c:200) [ 73.011167][ T1043] try_to_grab_pending (./arch/x86/include/asm/bitops.h:136 ./include/asm-generic/bitops/instrumented-atomic.h:72 kernel/workqueue.c:2072) [ 73.011177][ T1043] __cancel_work (kernel/workqueue.c:2161 kernel/workqueue.c:4364) [ 73.011182][ T1043] ? enable_delayed_work (kernel/workqueue.c:4359) [ 73.011194][ T1043] __cancel_work_sync (kernel/workqueue.c:4383) [ 73.011201][ T1043] __dev_close_many (net/core/dev.c:1879 (discriminator 2) net/core/dev.c:1932 (discriminator 2)) [ 73.011210][ T1043] ? netdev_notify_peers (net/core/dev.c:1891) [ 73.011217][ T1043] ? netif_close_many (net/core/dev.c:1959) [ 73.011226][ T1043] netif_close_many (net/core/dev.c:1959) [ 73.011234][ T1043] ? __dev_close_many (net/core/dev.c:1949) [ 73.011241][ T1043] ? netif_close_many_and_unlock (net/core/dev.c:12476) [ 73.011251][ T1043] unregister_netdevice_many_notify (net/core/dev.c:12545) [ 73.011259][ T1043] ? vxlan_dellink (drivers/net/vxlan/vxlan_core.c:4480) vxlan [ 73.011299][ T1043] ? vxlan_fdb_delete_bulk (drivers/net/vxlan/vxlan_core.c:4480) vxlan [ 73.011322][ T1043] ? dev_ingress_queue_create (net/core/dev.c:12499) [ 73.011329][ T1043] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 73.011335][ T1043] ? __nla_validate_parse (./include/net/netlink.h:1307 (discriminator 1) lib/nlattr.c:622 (discriminator 1)) [ 73.011346][ T1043] rtnl_dellink (net/core/rtnetlink.c:3530 net/core/rtnetlink.c:3570) [ 73.011354][ T1043] ? valid_bridge_getlink_req.constprop.0 (net/core/rtnetlink.c:3536) [ 73.011390][ T1043] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 73.011398][ T1043] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 73.011409][ T1043] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 73.011415][ T1043] ? rtnetlink_rcv_msg (./include/linux/rcupdate.h:341 ./include/linux/rcupdate.h:897 net/core/rtnetlink.c:6956) [ 73.011419][ T1043] ? __lock_release (kernel/locking/lockdep.c:5536) [ 73.011426][ T1043] ? valid_bridge_getlink_req.constprop.0 (net/core/rtnetlink.c:3536) [ 73.011432][ T1043] rtnetlink_rcv_msg (net/core/rtnetlink.c:6958) [ 73.011439][ T1043] ? rtnl_port_fill (net/core/rtnetlink.c:6861) [ 73.011444][ T1043] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 73.011456][ T1043] netlink_rcv_skb (net/netlink/af_netlink.c:2550) [ 73.011463][ T1043] ? rtnl_port_fill (net/core/rtnetlink.c:6861) [ 73.011469][ T1043] ? netlink_ack (net/netlink/af_netlink.c:2527) [ 73.011482][ T1043] ? netlink_deliver_tap (./include/linux/rcupdate.h:341 ./include/linux/rcupdate.h:897 net/netlink/af_netlink.c:340) [ 73.011486][ T1043] ? 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) [ 73.011493][ T1043] netlink_unicast (net/netlink/af_netlink.c:1319 net/netlink/af_netlink.c:1344) [ 73.011501][ T1043] ? netlink_attachskb (net/netlink/af_netlink.c:1329) [ 73.011508][ T1043] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 73.011518][ T1043] netlink_sendmsg (net/netlink/af_netlink.c:1894) [ 73.011527][ T1043] ? netlink_unicast (net/netlink/af_netlink.c:1813) [ 73.011533][ T1043] ? __import_iovec (lib/iov_iter.c:1346 lib/iov_iter.c:1361) [ 73.011541][ T1043] ? netlink_unicast (net/netlink/af_netlink.c:1813) [ 73.011548][ T1043] ____sys_sendmsg (net/socket.c:727 net/socket.c:742 net/socket.c:2630) [ 73.011556][ T1043] ? get_timestamp.constprop.0 (net/socket.c:2576) [ 73.011561][ T1043] ? __copy_msghdr (net/socket.c:2556) [ 73.011574][ T1043] ___sys_sendmsg (net/socket.c:2686) [ 73.011579][ T1043] ? kasan_record_aux_stack (mm/kasan/generic.c:559) [ 73.011584][ T1043] ? __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) [ 73.011593][ T1043] ? copy_msghdr_from_user (net/socket.c:2673) [ 73.011602][ T1043] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 73.011610][ T1043] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 73.011619][ T1043] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 73.011626][ T1043] ? __virt_addr_valid (./include/linux/rcupdate.h:341 ./include/linux/rcupdate.h:979 ./include/linux/mmzone.h:2197 arch/x86/mm/physaddr.c:65) [ 73.011632][ T1043] ? __lock_release (kernel/locking/lockdep.c:5536) [ 73.011644][ T1043] __sys_sendmsg (net/socket.c:2716) [ 73.011649][ T1043] ? __call_rcu_common.constprop.0 (kernel/rcu/tree.c:3148) [ 73.011655][ T1043] ? __sys_sendmsg_sock (net/socket.c:2701) [ 73.011669][ T1043] ? rcu_is_watching (./include/linux/context_tracking.h:128 kernel/rcu/tree.c:751) [ 73.011676][ T1043] do_syscall_64 (arch/x86/entry/syscall_64.c:63 arch/x86/entry/syscall_64.c:94) [ 73.011685][ T1043] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:130) [ 73.011690][ T1043] RIP: 0033:0x7fc18e5351d7 [ 73.011697][ T1043] 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) [ 73.011702][ T1043] RSP: 002b:00007fff9bd09098 EFLAGS: 00000246 ORIG_RAX: 000000000000002e [ 73.011708][ T1043] RAX: ffffffffffffffda RBX: 00007fff9bd097c0 RCX: 00007fc18e5351d7 [ 73.011711][ T1043] RDX: 0000000000000000 RSI: 00007fff9bd09100 RDI: 0000000000000005 [ 73.011715][ T1043] RBP: 0000000000000002 R08: 0000000000000003 R09: 0000000000000078 [ 73.011717][ T1043] R10: 00007fc18e431f60 R11: 0000000000000246 R12: 0000000000000002 [ 73.011720][ T1043] R13: 00000000691cbb52 R14: 0000000000499600 R15: 0000000000000000 | [ 73.040178][ T1043] #PF: error_code(0x0002) - not-present page | [ 73.040548][ T1043] PGD 236e067 P4D 236e067 PUD 9fe9067 PMD 0 | [ 73.041154][ T1043] Oops: Oops: 0002 [#1] SMP KASAN | [ 73.042037][ T1043] Tainted: [B]=BAD_PAGE [ 73.042461][ T1043] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 73.042834][ T1043] 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) [ 73.043232][ T1043] 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 [ 73.044531][ T1043] RSP: 0018:ffffc90001486f18 EFLAGS: 00010046 [ 73.044903][ T1043] RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffffffffa004090a [ 73.045592][ T1043] RDX: fffffbfff484f2cd RSI: 0000000000000008 RDI: ffffffffa4279660 [ 73.046076][ T1043] RBP: ffffc90001486f80 R08: 0000000000000001 R09: fffffbfff484f2cc [ 73.046515][ T1043] R10: ffffffffa4279667 R11: ffffc90001486a00 R12: 0000000000000000 [ 73.047155][ T1043] R13: 0000000000000286 R14: ffff88800e3f2000 R15: dffffc0000000000 [ 73.047593][ T1043] FS: 00007fc18e367800(0000) GS:ffff888091ff2000(0000) knlGS:0000000000000000 [ 73.048139][ T1043] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 73.048496][ T1043] CR2: 0000000000000000 CR3: 0000000005a9e002 CR4: 0000000000772ef0 [ 73.048910][ T1043] PKRU: 55555554 [ 73.049357][ T1043] Call Trace: [ 73.049582][ T1043] [ 73.049733][ T1043] __cancel_work (kernel/workqueue.c:2161 kernel/workqueue.c:4364) [ 73.050088][ T1043] ? enable_delayed_work (kernel/workqueue.c:4359) [ 73.050381][ T1043] __cancel_work_sync (kernel/workqueue.c:4383) [ 73.050869][ T1043] __dev_close_many (net/core/dev.c:1879 (discriminator 2) net/core/dev.c:1932 (discriminator 2)) [ 73.051183][ T1043] ? netdev_notify_peers (net/core/dev.c:1891) [ 73.051467][ T1043] ? netif_close_many (net/core/dev.c:1959) [ 73.051766][ T1043] netif_close_many (net/core/dev.c:1959) [ 73.052057][ T1043] ? __dev_close_many (net/core/dev.c:1949) [ 73.052337][ T1043] ? netif_close_many_and_unlock (net/core/dev.c:12476) [ 73.052701][ T1043] unregister_netdevice_many_notify (net/core/dev.c:12545) [ 73.053068][ T1043] ? vxlan_dellink (drivers/net/vxlan/vxlan_core.c:4480) vxlan [ 73.053589][ T1043] ? vxlan_fdb_delete_bulk (drivers/net/vxlan/vxlan_core.c:4480) vxlan [ 73.053990][ T1043] ? dev_ingress_queue_create (net/core/dev.c:12499) [ 73.054288][ T1043] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 73.054805][ T1043] ? __nla_validate_parse (./include/net/netlink.h:1307 (discriminator 1) lib/nlattr.c:622 (discriminator 1)) [ 73.055143][ T1043] rtnl_dellink (net/core/rtnetlink.c:3530 net/core/rtnetlink.c:3570) [ 73.055450][ T1043] ? valid_bridge_getlink_req.constprop.0 (net/core/rtnetlink.c:3536) [ 73.055821][ T1043] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 73.056320][ T1043] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 73.056608][ T1043] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 73.056895][ T1043] ? rtnetlink_rcv_msg (./include/linux/rcupdate.h:341 ./include/linux/rcupdate.h:897 net/core/rtnetlink.c:6956) [ 73.057192][ T1043] ? __lock_release (kernel/locking/lockdep.c:5536) [ 73.057675][ T1043] ? valid_bridge_getlink_req.constprop.0 (net/core/rtnetlink.c:3536) [ 73.058047][ T1043] rtnetlink_rcv_msg (net/core/rtnetlink.c:6958) [ 73.058356][ T1043] ? rtnl_port_fill (net/core/rtnetlink.c:6861) [ 73.058679][ T1043] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 73.059199][ T1043] netlink_rcv_skb (net/netlink/af_netlink.c:2550) [ 73.059484][ T1043] ? rtnl_port_fill (net/core/rtnetlink.c:6861) [ 73.059809][ T1043] ? netlink_ack (net/netlink/af_netlink.c:2527) [ 73.060140][ T1043] ? netlink_deliver_tap (./include/linux/rcupdate.h:341 ./include/linux/rcupdate.h:897 net/netlink/af_netlink.c:340) [ 73.060648][ T1043] ? 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) [ 73.060927][ T1043] netlink_unicast (net/netlink/af_netlink.c:1319 net/netlink/af_netlink.c:1344) [ 73.061206][ T1043] ? netlink_attachskb (net/netlink/af_netlink.c:1329) [ 73.061485][ T1043] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 73.062001][ T1043] netlink_sendmsg (net/netlink/af_netlink.c:1894) [ 73.062289][ T1043] ? netlink_unicast (net/netlink/af_netlink.c:1813) [ 73.062576][ T1043] ? __import_iovec (lib/iov_iter.c:1346 lib/iov_iter.c:1361) [ 73.062891][ T1043] ? netlink_unicast (net/netlink/af_netlink.c:1813) [ 73.063381][ T1043] ____sys_sendmsg (net/socket.c:727 net/socket.c:742 net/socket.c:2630) [ 73.063673][ T1043] ? get_timestamp.constprop.0 (net/socket.c:2576) [ 73.064015][ T1043] ? __copy_msghdr (net/socket.c:2556) [ 73.064328][ T1043] ___sys_sendmsg (net/socket.c:2686) [ 73.064818][ T1043] ? kasan_record_aux_stack (mm/kasan/generic.c:559) [ 73.065110][ T1043] ? __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) [ 73.065527][ T1043] ? copy_msghdr_from_user (net/socket.c:2673) [ 73.066020][ T1043] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 73.066321][ T1043] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 73.066601][ T1043] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 73.066909][ T1043] ? __virt_addr_valid (./include/linux/rcupdate.h:341 ./include/linux/rcupdate.h:979 ./include/linux/mmzone.h:2197 arch/x86/mm/physaddr.c:65) [ 73.067402][ T1043] ? __lock_release (kernel/locking/lockdep.c:5536) [ 73.067683][ T1043] __sys_sendmsg (net/socket.c:2716) [ 73.067991][ T1043] ? __call_rcu_common.constprop.0 (kernel/rcu/tree.c:3148) [ 73.068393][ T1043] ? __sys_sendmsg_sock (net/socket.c:2701) [ 73.068902][ T1043] ? rcu_is_watching (./include/linux/context_tracking.h:128 kernel/rcu/tree.c:751) [ 73.069216][ T1043] do_syscall_64 (arch/x86/entry/syscall_64.c:63 arch/x86/entry/syscall_64.c:94) [ 73.069502][ T1043] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:130) [ 73.069907][ T1043] RIP: 0033:0x7fc18e5351d7 [ 73.070417][ T1043] 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) [ 73.071692][ T1043] RSP: 002b:00007fff9bd09098 EFLAGS: 00000246 ORIG_RAX: 000000000000002e [ 73.072118][ T1043] RAX: ffffffffffffffda RBX: 00007fff9bd097c0 RCX: 00007fc18e5351d7 [ 73.072558][ T1043] RDX: 0000000000000000 RSI: 00007fff9bd09100 RDI: 0000000000000005 [ 73.073200][ T1043] RBP: 0000000000000002 R08: 0000000000000003 R09: 0000000000000078 [ 73.073657][ T1043] R10: 00007fc18e431f60 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