====================================== | [ 90.266662][ T2366] ================================================================== | [ 90.267027][ T2366] 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) | [ 90.267357][ T2366] Write of size 8 at addr 0000000000000000 by task ip/2366 | [ 90.267665][ T2366] [ 90.267782][ T2366] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 90.267786][ T2366] Call Trace: [ 90.267789][ T2366] [ 90.267792][ T2366] dump_stack_lvl (lib/dump_stack.c:123) [ 90.267807][ T2366] ? try_to_grab_pending (./arch/x86/include/asm/bitops.h:136 ./include/asm-generic/bitops/instrumented-atomic.h:72 kernel/workqueue.c:2072) [ 90.267811][ T2366] kasan_report (mm/kasan/report.c:597) [ 90.267823][ T2366] ? try_to_grab_pending (./arch/x86/include/asm/bitops.h:136 ./include/asm-generic/bitops/instrumented-atomic.h:72 kernel/workqueue.c:2072) [ 90.267828][ T2366] kasan_check_range (mm/kasan/generic.c:194 mm/kasan/generic.c:200) [ 90.267832][ T2366] try_to_grab_pending (./arch/x86/include/asm/bitops.h:136 ./include/asm-generic/bitops/instrumented-atomic.h:72 kernel/workqueue.c:2072) [ 90.267838][ T2366] __cancel_work (kernel/workqueue.c:2161 kernel/workqueue.c:4364) [ 90.267841][ T2366] ? enable_delayed_work (kernel/workqueue.c:4359) [ 90.267848][ T2366] __cancel_work_sync (kernel/workqueue.c:4383) [ 90.267852][ T2366] __dev_close_many (net/core/dev.c:1879 (discriminator 2) net/core/dev.c:1932 (discriminator 2)) [ 90.267862][ T2366] ? netdev_notify_peers (net/core/dev.c:1891) [ 90.267866][ T2366] ? netif_close_many (net/core/dev.c:1959) [ 90.267871][ T2366] netif_close_many (net/core/dev.c:1959) [ 90.267876][ T2366] ? __dev_close_many (net/core/dev.c:1949) [ 90.267880][ T2366] ? netif_close_many_and_unlock (net/core/dev.c:12476) [ 90.267884][ T2366] ? trace_contention_end (./include/trace/events/lock.h:122 (discriminator 21)) [ 90.267892][ T2366] unregister_netdevice_many_notify (net/core/dev.c:12545) [ 90.267897][ T2366] ? vxlan_dellink (drivers/net/vxlan/vxlan_core.c:4488) vxlan [ 90.267912][ T2366] ? vxlan_fdb_delete_bulk (drivers/net/vxlan/vxlan_core.c:4480) vxlan [ 90.267922][ T2366] ? dev_ingress_queue_create (net/core/dev.c:12499) [ 90.267927][ T2366] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 90.267930][ T2366] ? __nla_validate_parse (./include/net/netlink.h:1307 (discriminator 1) lib/nlattr.c:622 (discriminator 1)) [ 90.267947][ T2366] rtnl_dellink (net/core/rtnetlink.c:3530 net/core/rtnetlink.c:3570) [ 90.267952][ T2366] ? valid_bridge_getlink_req.constprop.0 (net/core/rtnetlink.c:3536) [ 90.267971][ T2366] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 90.267977][ T2366] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 90.267987][ T2366] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 90.267992][ T2366] ? rtnetlink_rcv_msg (./include/linux/rcupdate.h:341 ./include/linux/rcupdate.h:897 net/core/rtnetlink.c:6956) [ 90.267995][ T2366] ? __lock_release (kernel/locking/lockdep.c:5536) [ 90.268002][ T2366] ? valid_bridge_getlink_req.constprop.0 (net/core/rtnetlink.c:3536) [ 90.268006][ T2366] rtnetlink_rcv_msg (net/core/rtnetlink.c:6958) [ 90.268009][ T2366] ? rtnl_port_fill (net/core/rtnetlink.c:6861) [ 90.268012][ T2366] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 90.268020][ T2366] netlink_rcv_skb (net/netlink/af_netlink.c:2550) [ 90.268028][ T2366] ? rtnl_port_fill (net/core/rtnetlink.c:6861) [ 90.268031][ T2366] ? netlink_ack (net/netlink/af_netlink.c:2527) [ 90.268038][ T2366] ? netlink_deliver_tap (./include/linux/rcupdate.h:341 ./include/linux/rcupdate.h:897 net/netlink/af_netlink.c:340) [ 90.268041][ T2366] ? 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) [ 90.268045][ T2366] netlink_unicast (net/netlink/af_netlink.c:1319 net/netlink/af_netlink.c:1344) [ 90.268050][ T2366] ? netlink_attachskb (net/netlink/af_netlink.c:1329) [ 90.268054][ T2366] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 90.268059][ T2366] netlink_sendmsg (net/netlink/af_netlink.c:1894) [ 90.268064][ T2366] ? netlink_unicast (net/netlink/af_netlink.c:1813) [ 90.268068][ T2366] ? __import_iovec (lib/iov_iter.c:1346 lib/iov_iter.c:1361) [ 90.268075][ T2366] ? netlink_unicast (net/netlink/af_netlink.c:1813) [ 90.268078][ T2366] ____sys_sendmsg (net/socket.c:727 net/socket.c:742 net/socket.c:2630) [ 90.268085][ T2366] ? get_timestamp.constprop.0 (net/socket.c:2576) [ 90.268088][ T2366] ? __copy_msghdr (net/socket.c:2556) [ 90.268096][ T2366] ___sys_sendmsg (net/socket.c:2686) [ 90.268099][ T2366] ? kasan_record_aux_stack (mm/kasan/generic.c:559) [ 90.268101][ T2366] ? __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) [ 90.268114][ T2366] ? copy_msghdr_from_user (net/socket.c:2673) [ 90.268119][ T2366] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 90.268124][ T2366] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 90.268129][ T2366] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 90.268133][ T2366] ? __virt_addr_valid (./include/linux/rcupdate.h:341 ./include/linux/rcupdate.h:979 ./include/linux/mmzone.h:2197 arch/x86/mm/physaddr.c:65) [ 90.268147][ T2366] ? __lock_release (kernel/locking/lockdep.c:5536) [ 90.268153][ T2366] __sys_sendmsg (net/socket.c:2716) [ 90.268156][ T2366] ? __call_rcu_common.constprop.0 (kernel/rcu/tree.c:3148) [ 90.268160][ T2366] ? __sys_sendmsg_sock (net/socket.c:2701) [ 90.268168][ T2366] ? rcu_is_watching (./include/linux/context_tracking.h:128 kernel/rcu/tree.c:751) [ 90.268172][ T2366] do_syscall_64 (arch/x86/entry/syscall_64.c:63 arch/x86/entry/syscall_64.c:94) [ 90.268179][ T2366] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:130) [ 90.268189][ T2366] RIP: 0033:0x7f2ddcd7d1d7 [ 90.268197][ T2366] 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) [ 90.268200][ T2366] RSP: 002b:00007fff68f835f8 EFLAGS: 00000246 ORIG_RAX: 000000000000002e [ 90.268205][ T2366] RAX: ffffffffffffffda RBX: 00007fff68f83d20 RCX: 00007f2ddcd7d1d7 [ 90.268207][ T2366] RDX: 0000000000000000 RSI: 00007fff68f83660 RDI: 0000000000000005 [ 90.268209][ T2366] RBP: 0000000000000002 R08: 0000000000000003 R09: 0000000000000078 [ 90.268211][ T2366] R10: 00007f2ddcc79f60 R11: 0000000000000246 R12: 0000000000000002 [ 90.268213][ T2366] R13: 00000000691cbb6a R14: 0000000000499600 R15: 0000000000000000 | [ 90.284339][ T2366] #PF: error_code(0x0002) - not-present page | [ 90.284557][ T2366] PGD 93db067 P4D 93db067 PUD c32d067 PMD 0 | [ 90.284789][ T2366] Oops: Oops: 0002 [#1] SMP KASAN | [ 90.285364][ T2366] Tainted: [B]=BAD_PAGE [ 90.285503][ T2366] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 90.285734][ T2366] 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) [ 90.285967][ T2366] 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 [ 90.286617][ T2366] RSP: 0018:ffffc90004bbef18 EFLAGS: 00010046 [ 90.286850][ T2366] RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffffffffa1e4090a [ 90.287115][ T2366] RDX: fffffbfff4c0f2cd RSI: 0000000000000008 RDI: ffffffffa6079660 [ 90.287391][ T2366] RBP: ffffc90004bbef80 R08: 0000000000000001 R09: fffffbfff4c0f2cc [ 90.287696][ T2366] R10: ffffffffa6079667 R11: ffffc90004bbea00 R12: 0000000000000000 [ 90.287956][ T2366] R13: 0000000000000286 R14: ffff88800c142000 R15: dffffc0000000000 [ 90.288234][ T2366] FS: 00007f2ddcbaf800(0000) GS:ffff8880901f2000(0000) knlGS:0000000000000000 [ 90.288562][ T2366] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 90.288804][ T2366] CR2: 0000000000000000 CR3: 000000000fe97006 CR4: 0000000000772ef0 [ 90.289074][ T2366] PKRU: 55555554 [ 90.289235][ T2366] Call Trace: [ 90.289376][ T2366] [ 90.289476][ T2366] __cancel_work (kernel/workqueue.c:2161 kernel/workqueue.c:4364) [ 90.289672][ T2366] ? enable_delayed_work (kernel/workqueue.c:4359) [ 90.289851][ T2366] __cancel_work_sync (kernel/workqueue.c:4383) [ 90.290030][ T2366] __dev_close_many (net/core/dev.c:1879 (discriminator 2) net/core/dev.c:1932 (discriminator 2)) [ 90.290204][ T2366] ? netdev_notify_peers (net/core/dev.c:1891) [ 90.290388][ T2366] ? netif_close_many (net/core/dev.c:1959) [ 90.290557][ T2366] netif_close_many (net/core/dev.c:1959) [ 90.290746][ T2366] ? __dev_close_many (net/core/dev.c:1949) [ 90.290928][ T2366] ? netif_close_many_and_unlock (net/core/dev.c:12476) [ 90.291148][ T2366] ? trace_contention_end (./include/trace/events/lock.h:122 (discriminator 21)) [ 90.291339][ T2366] unregister_netdevice_many_notify (net/core/dev.c:12545) [ 90.291568][ T2366] ? vxlan_dellink (drivers/net/vxlan/vxlan_core.c:4488) vxlan [ 90.291760][ T2366] ? vxlan_fdb_delete_bulk (drivers/net/vxlan/vxlan_core.c:4480) vxlan [ 90.291982][ T2366] ? dev_ingress_queue_create (net/core/dev.c:12499) [ 90.292154][ T2366] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 90.292334][ T2366] ? __nla_validate_parse (./include/net/netlink.h:1307 (discriminator 1) lib/nlattr.c:622 (discriminator 1)) [ 90.292532][ T2366] rtnl_dellink (net/core/rtnetlink.c:3530 net/core/rtnetlink.c:3570) [ 90.292727][ T2366] ? valid_bridge_getlink_req.constprop.0 (net/core/rtnetlink.c:3536) [ 90.292963][ T2366] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 90.293136][ T2366] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 90.293327][ T2366] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 90.293505][ T2366] ? rtnetlink_rcv_msg (./include/linux/rcupdate.h:341 ./include/linux/rcupdate.h:897 net/core/rtnetlink.c:6956) [ 90.293683][ T2366] ? __lock_release (kernel/locking/lockdep.c:5536) [ 90.293854][ T2366] ? valid_bridge_getlink_req.constprop.0 (net/core/rtnetlink.c:3536) [ 90.294076][ T2366] rtnetlink_rcv_msg (net/core/rtnetlink.c:6958) [ 90.294258][ T2366] ? rtnl_port_fill (net/core/rtnetlink.c:6861) [ 90.294426][ T2366] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 90.294608][ T2366] netlink_rcv_skb (net/netlink/af_netlink.c:2550) [ 90.294791][ T2366] ? rtnl_port_fill (net/core/rtnetlink.c:6861) [ 90.294964][ T2366] ? netlink_ack (net/netlink/af_netlink.c:2527) [ 90.295141][ T2366] ? netlink_deliver_tap (./include/linux/rcupdate.h:341 ./include/linux/rcupdate.h:897 net/netlink/af_netlink.c:340) [ 90.295329][ T2366] ? 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) [ 90.295507][ T2366] netlink_unicast (net/netlink/af_netlink.c:1319 net/netlink/af_netlink.c:1344) [ 90.295695][ T2366] ? netlink_attachskb (net/netlink/af_netlink.c:1329) [ 90.295875][ T2366] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 90.296051][ T2366] netlink_sendmsg (net/netlink/af_netlink.c:1894) [ 90.296234][ T2366] ? netlink_unicast (net/netlink/af_netlink.c:1813) [ 90.296414][ T2366] ? __import_iovec (lib/iov_iter.c:1346 lib/iov_iter.c:1361) [ 90.296588][ T2366] ? netlink_unicast (net/netlink/af_netlink.c:1813) [ 90.296774][ T2366] ____sys_sendmsg (net/socket.c:727 net/socket.c:742 net/socket.c:2630) [ 90.296958][ T2366] ? get_timestamp.constprop.0 (net/socket.c:2576) [ 90.297173][ T2366] ? __copy_msghdr (net/socket.c:2556) [ 90.297358][ T2366] ___sys_sendmsg (net/socket.c:2686) [ 90.297537][ T2366] ? kasan_record_aux_stack (mm/kasan/generic.c:559) [ 90.297730][ T2366] ? __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) [ 90.297946][ T2366] ? copy_msghdr_from_user (net/socket.c:2673) [ 90.298122][ T2366] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 90.298314][ T2366] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 90.298494][ T2366] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 90.298679][ T2366] ? __virt_addr_valid (./include/linux/rcupdate.h:341 ./include/linux/rcupdate.h:979 ./include/linux/mmzone.h:2197 arch/x86/mm/physaddr.c:65) [ 90.298860][ T2366] ? __lock_release (kernel/locking/lockdep.c:5536) [ 90.299032][ T2366] __sys_sendmsg (net/socket.c:2716) [ 90.299205][ T2366] ? __call_rcu_common.constprop.0 (kernel/rcu/tree.c:3148) [ 90.299437][ T2366] ? __sys_sendmsg_sock (net/socket.c:2701) [ 90.299671][ T2366] ? rcu_is_watching (./include/linux/context_tracking.h:128 kernel/rcu/tree.c:751) [ 90.299871][ T2366] do_syscall_64 (arch/x86/entry/syscall_64.c:63 arch/x86/entry/syscall_64.c:94) [ 90.300050][ T2366] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:130) [ 90.300274][ T2366] RIP: 0033:0x7f2ddcd7d1d7 [ 90.300472][ T2366] 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) [ 90.301137][ T2366] RSP: 002b:00007fff68f835f8 EFLAGS: 00000246 ORIG_RAX: 000000000000002e [ 90.301420][ T2366] RAX: ffffffffffffffda RBX: 00007fff68f83d20 RCX: 00007f2ddcd7d1d7 [ 90.301696][ T2366] RDX: 0000000000000000 RSI: 00007fff68f83660 RDI: 0000000000000005 [ 90.301961][ T2366] RBP: 0000000000000002 R08: 0000000000000003 R09: 0000000000000078 [ 90.302238][ T2366] R10: 00007f2ddcc79f60 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