====================================== | [ 66.798354][ T1042] ================================================================== | [ 66.798717][ T1042] 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) | [ 66.799042][ T1042] Write of size 8 at addr 0000000000000000 by task ip/1042 | [ 66.799375][ T1042] [ 66.799503][ T1042] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 66.799508][ T1042] Call Trace: [ 66.799512][ T1042] [ 66.799516][ T1042] dump_stack_lvl (lib/dump_stack.c:123) [ 66.799531][ T1042] ? try_to_grab_pending (./arch/x86/include/asm/bitops.h:136 ./include/asm-generic/bitops/instrumented-atomic.h:72 kernel/workqueue.c:2072) [ 66.799535][ T1042] kasan_report (mm/kasan/report.c:597) [ 66.799545][ T1042] ? try_to_grab_pending (./arch/x86/include/asm/bitops.h:136 ./include/asm-generic/bitops/instrumented-atomic.h:72 kernel/workqueue.c:2072) [ 66.799550][ T1042] kasan_check_range (mm/kasan/generic.c:194 mm/kasan/generic.c:200) [ 66.799553][ T1042] try_to_grab_pending (./arch/x86/include/asm/bitops.h:136 ./include/asm-generic/bitops/instrumented-atomic.h:72 kernel/workqueue.c:2072) [ 66.799559][ T1042] __cancel_work (kernel/workqueue.c:2161 kernel/workqueue.c:4364) [ 66.799563][ T1042] ? enable_delayed_work (kernel/workqueue.c:4359) [ 66.799569][ T1042] __cancel_work_sync (kernel/workqueue.c:4383) [ 66.799574][ T1042] __dev_close_many (net/core/dev.c:1879 (discriminator 2) net/core/dev.c:1932 (discriminator 2)) [ 66.799584][ T1042] ? netdev_notify_peers (net/core/dev.c:1891) [ 66.799588][ T1042] ? netif_close_many (net/core/dev.c:1959) [ 66.799593][ T1042] netif_close_many (net/core/dev.c:1959) [ 66.799598][ T1042] ? _raw_spin_unlock_irqrestore (./include/linux/spinlock_api_smp.h:151 kernel/locking/spinlock.c:194) [ 66.799611][ T1042] ? __dev_close_many (net/core/dev.c:1949) [ 66.799615][ T1042] ? netif_close_many_and_unlock (net/core/dev.c:12476) [ 66.799620][ T1042] unregister_netdevice_many_notify (net/core/dev.c:12545) [ 66.799625][ T1042] ? vxlan_dellink (drivers/net/vxlan/vxlan_core.c:4480) vxlan [ 66.799644][ T1042] ? vxlan_fdb_delete_bulk (drivers/net/vxlan/vxlan_core.c:4480) vxlan [ 66.799657][ T1042] ? dev_ingress_queue_create (net/core/dev.c:12499) [ 66.799662][ T1042] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 66.799670][ T1042] ? __nla_validate_parse (./include/net/netlink.h:1307 (discriminator 1) lib/nlattr.c:622 (discriminator 1)) [ 66.799687][ T1042] rtnl_dellink (net/core/rtnetlink.c:3530 net/core/rtnetlink.c:3570) [ 66.799693][ T1042] ? valid_bridge_getlink_req.constprop.0 (net/core/rtnetlink.c:3536) [ 66.799711][ T1042] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 66.799716][ T1042] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 66.799722][ T1042] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 66.799726][ T1042] ? rtnetlink_rcv_msg (./include/linux/rcupdate.h:341 ./include/linux/rcupdate.h:897 net/core/rtnetlink.c:6956) [ 66.799729][ T1042] ? __lock_release (kernel/locking/lockdep.c:5536) [ 66.799733][ T1042] ? valid_bridge_getlink_req.constprop.0 (net/core/rtnetlink.c:3536) [ 66.799736][ T1042] rtnetlink_rcv_msg (net/core/rtnetlink.c:6958) [ 66.799740][ T1042] ? rtnl_port_fill (net/core/rtnetlink.c:6861) [ 66.799742][ T1042] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 66.799750][ T1042] netlink_rcv_skb (net/netlink/af_netlink.c:2550) [ 66.799755][ T1042] ? rtnl_port_fill (net/core/rtnetlink.c:6861) [ 66.799759][ T1042] ? netlink_ack (net/netlink/af_netlink.c:2527) [ 66.799766][ T1042] ? netlink_deliver_tap (./include/linux/rcupdate.h:341 ./include/linux/rcupdate.h:897 net/netlink/af_netlink.c:340) [ 66.799768][ T1042] ? 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) [ 66.799772][ T1042] netlink_unicast (net/netlink/af_netlink.c:1319 net/netlink/af_netlink.c:1344) [ 66.799777][ T1042] ? netlink_attachskb (net/netlink/af_netlink.c:1329) [ 66.799780][ T1042] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 66.799786][ T1042] netlink_sendmsg (net/netlink/af_netlink.c:1894) [ 66.799790][ T1042] ? netlink_unicast (net/netlink/af_netlink.c:1813) [ 66.799794][ T1042] ? __import_iovec (lib/iov_iter.c:1346 lib/iov_iter.c:1361) [ 66.799800][ T1042] ? netlink_unicast (net/netlink/af_netlink.c:1813) [ 66.799803][ T1042] ____sys_sendmsg (net/socket.c:727 net/socket.c:742 net/socket.c:2630) [ 66.799811][ T1042] ? get_timestamp.constprop.0 (net/socket.c:2576) [ 66.799816][ T1042] ? __copy_msghdr (net/socket.c:2556) [ 66.799823][ T1042] ___sys_sendmsg (net/socket.c:2686) [ 66.799826][ T1042] ? kasan_record_aux_stack (mm/kasan/generic.c:559) [ 66.799829][ T1042] ? __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) [ 66.799840][ T1042] ? copy_msghdr_from_user (net/socket.c:2673) [ 66.799845][ T1042] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 66.799849][ T1042] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 66.799855][ T1042] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 66.799859][ T1042] ? __virt_addr_valid (./include/linux/rcupdate.h:341 ./include/linux/rcupdate.h:979 ./include/linux/mmzone.h:2197 arch/x86/mm/physaddr.c:65) [ 66.799869][ T1042] ? __lock_release (kernel/locking/lockdep.c:5536) [ 66.799875][ T1042] __sys_sendmsg (net/socket.c:2716) [ 66.799878][ T1042] ? __call_rcu_common.constprop.0 (kernel/rcu/tree.c:3148) [ 66.799882][ T1042] ? __sys_sendmsg_sock (net/socket.c:2701) [ 66.799890][ T1042] ? rcu_is_watching (./include/linux/context_tracking.h:128 kernel/rcu/tree.c:751) [ 66.799894][ T1042] do_syscall_64 (arch/x86/entry/syscall_64.c:63 arch/x86/entry/syscall_64.c:94) [ 66.799901][ T1042] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:130) [ 66.799907][ T1042] RIP: 0033:0x7f46ee2901d7 [ 66.799914][ T1042] 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) [ 66.799917][ T1042] RSP: 002b:00007ffcf96b8b28 EFLAGS: 00000246 ORIG_RAX: 000000000000002e [ 66.799922][ T1042] RAX: ffffffffffffffda RBX: 00007ffcf96b9250 RCX: 00007f46ee2901d7 [ 66.799925][ T1042] RDX: 0000000000000000 RSI: 00007ffcf96b8b90 RDI: 0000000000000005 [ 66.799926][ T1042] RBP: 0000000000000002 R08: 0000000000000003 R09: 0000000000000078 [ 66.799928][ T1042] R10: 00007f46ee18cf60 R11: 0000000000000246 R12: 0000000000000002 [ 66.799930][ T1042] R13: 00000000691ccf55 R14: 0000000000499600 R15: 0000000000000000 | [ 66.817723][ T1042] #PF: error_code(0x0002) - not-present page | [ 66.817944][ T1042] PGD ecfd067 P4D ecfd067 PUD debf067 PMD 0 | [ 66.818189][ T1042] Oops: Oops: 0002 [#1] SMP KASAN | [ 66.818873][ T1042] Tainted: [B]=BAD_PAGE [ 66.819011][ T1042] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 66.819251][ T1042] 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) [ 66.819509][ T1042] 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 [ 66.820355][ T1042] RSP: 0018:ffffc9000171ef18 EFLAGS: 00010046 [ 66.820597][ T1042] RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffffffffb5a4090a [ 66.820979][ T1042] RDX: fffffbfff738f2cd RSI: 0000000000000008 RDI: ffffffffb9c79660 [ 66.821259][ T1042] RBP: ffffc9000171ef80 R08: 0000000000000001 R09: fffffbfff738f2cc [ 66.821552][ T1042] R10: ffffffffb9c79667 R11: ffffc9000171ea00 R12: 0000000000000000 [ 66.821946][ T1042] R13: 0000000000000286 R14: ffff88800904a000 R15: dffffc0000000000 [ 66.822228][ T1042] FS: 00007f46ee0c2800(0000) GS:ffff88807c5f2000(0000) knlGS:0000000000000000 [ 66.822666][ T1042] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 66.822908][ T1042] CR2: 0000000000000000 CR3: 0000000008a84003 CR4: 0000000000772ef0 [ 66.823191][ T1042] PKRU: 55555554 [ 66.823336][ T1042] Call Trace: [ 66.823590][ T1042] [ 66.823693][ T1042] __cancel_work (kernel/workqueue.c:2161 kernel/workqueue.c:4364) [ 66.823884][ T1042] ? enable_delayed_work (kernel/workqueue.c:4359) [ 66.824079][ T1042] __cancel_work_sync (kernel/workqueue.c:4383) [ 66.824262][ T1042] __dev_close_many (net/core/dev.c:1879 (discriminator 2) net/core/dev.c:1932 (discriminator 2)) [ 66.824562][ T1042] ? netdev_notify_peers (net/core/dev.c:1891) [ 66.824759][ T1042] ? netif_close_many (net/core/dev.c:1959) [ 66.824940][ T1042] netif_close_many (net/core/dev.c:1959) [ 66.825128][ T1042] ? _raw_spin_unlock_irqrestore (./include/linux/spinlock_api_smp.h:151 kernel/locking/spinlock.c:194) [ 66.825476][ T1042] ? __dev_close_many (net/core/dev.c:1949) [ 66.825658][ T1042] ? netif_close_many_and_unlock (net/core/dev.c:12476) [ 66.825891][ T1042] unregister_netdevice_many_notify (net/core/dev.c:12545) [ 66.826229][ T1042] ? vxlan_dellink (drivers/net/vxlan/vxlan_core.c:4480) vxlan [ 66.826454][ T1042] ? vxlan_fdb_delete_bulk (drivers/net/vxlan/vxlan_core.c:4480) vxlan [ 66.826697][ T1042] ? dev_ingress_queue_create (net/core/dev.c:12499) [ 66.826881][ T1042] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 66.827176][ T1042] ? __nla_validate_parse (./include/net/netlink.h:1307 (discriminator 1) lib/nlattr.c:622 (discriminator 1)) [ 66.827372][ T1042] rtnl_dellink (net/core/rtnetlink.c:3530 net/core/rtnetlink.c:3570) [ 66.827563][ T1042] ? valid_bridge_getlink_req.constprop.0 (net/core/rtnetlink.c:3536) [ 66.827913][ T1042] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 66.828116][ T1042] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 66.828301][ T1042] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 66.828500][ T1042] ? rtnetlink_rcv_msg (./include/linux/rcupdate.h:341 ./include/linux/rcupdate.h:897 net/core/rtnetlink.c:6956) [ 66.828785][ T1042] ? __lock_release (kernel/locking/lockdep.c:5536) [ 66.828970][ T1042] ? valid_bridge_getlink_req.constprop.0 (net/core/rtnetlink.c:3536) [ 66.829202][ T1042] rtnetlink_rcv_msg (net/core/rtnetlink.c:6958) [ 66.829403][ T1042] ? rtnl_port_fill (net/core/rtnetlink.c:6861) [ 66.829734][ T1042] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 66.829925][ T1042] netlink_rcv_skb (net/netlink/af_netlink.c:2550) [ 66.830119][ T1042] ? rtnl_port_fill (net/core/rtnetlink.c:6861) [ 66.830300][ T1042] ? netlink_ack (net/netlink/af_netlink.c:2527) [ 66.830601][ T1042] ? netlink_deliver_tap (./include/linux/rcupdate.h:341 ./include/linux/rcupdate.h:897 net/netlink/af_netlink.c:340) [ 66.830785][ T1042] ? 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) [ 66.830966][ T1042] netlink_unicast (net/netlink/af_netlink.c:1319 net/netlink/af_netlink.c:1344) [ 66.831158][ T1042] ? netlink_attachskb (net/netlink/af_netlink.c:1329) [ 66.831463][ T1042] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 66.831649][ T1042] netlink_sendmsg (net/netlink/af_netlink.c:1894) [ 66.831828][ T1042] ? netlink_unicast (net/netlink/af_netlink.c:1813) [ 66.832010][ T1042] ? __import_iovec (lib/iov_iter.c:1346 lib/iov_iter.c:1361) [ 66.832303][ T1042] ? netlink_unicast (net/netlink/af_netlink.c:1813) [ 66.832506][ T1042] ____sys_sendmsg (net/socket.c:727 net/socket.c:742 net/socket.c:2630) [ 66.832689][ T1042] ? get_timestamp.constprop.0 (net/socket.c:2576) [ 66.832911][ T1042] ? __copy_msghdr (net/socket.c:2556) [ 66.833209][ T1042] ___sys_sendmsg (net/socket.c:2686) [ 66.833395][ T1042] ? kasan_record_aux_stack (mm/kasan/generic.c:559) [ 66.833581][ T1042] ? __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) [ 66.833809][ T1042] ? copy_msghdr_from_user (net/socket.c:2673) [ 66.834093][ T1042] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 66.834274][ T1042] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 66.834472][ T1042] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 66.834658][ T1042] ? __virt_addr_valid (./include/linux/rcupdate.h:341 ./include/linux/rcupdate.h:979 ./include/linux/mmzone.h:2197 arch/x86/mm/physaddr.c:65) [ 66.834937][ T1042] ? __lock_release (kernel/locking/lockdep.c:5536) [ 66.835128][ T1042] __sys_sendmsg (net/socket.c:2716) [ 66.835306][ T1042] ? __call_rcu_common.constprop.0 (kernel/rcu/tree.c:3148) [ 66.835652][ T1042] ? __sys_sendmsg_sock (net/socket.c:2701) [ 66.835837][ T1042] ? rcu_is_watching (./include/linux/context_tracking.h:128 kernel/rcu/tree.c:751) [ 66.836017][ T1042] do_syscall_64 (arch/x86/entry/syscall_64.c:63 arch/x86/entry/syscall_64.c:94) [ 66.836213][ T1042] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:130) [ 66.836575][ T1042] RIP: 0033:0x7f46ee2901d7 [ 66.836769][ T1042] 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) [ 66.837538][ T1042] RSP: 002b:00007ffcf96b8b28 EFLAGS: 00000246 ORIG_RAX: 000000000000002e [ 66.837821][ T1042] RAX: ffffffffffffffda RBX: 00007ffcf96b9250 RCX: 00007f46ee2901d7 [ 66.838101][ T1042] RDX: 0000000000000000 RSI: 00007ffcf96b8b90 RDI: 0000000000000005 [ 66.838386][ T1042] RBP: 0000000000000002 R08: 0000000000000003 R09: 0000000000000078 [ 66.838664][ T1042] R10: 00007f46ee18cf60 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