====================================== | [ 38.981929][ T443] ================================================================== | [ 38.982240][ T443] 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) | [ 38.982550][ T443] Write of size 8 at addr 0000000000000000 by task ip/443 | [ 38.982782][ T443] [ 38.982896][ T443] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 38.982902][ T443] Call Trace: [ 38.982905][ T443] [ 38.982907][ T443] dump_stack_lvl (lib/dump_stack.c:123) [ 38.982924][ T443] ? try_to_grab_pending (./arch/x86/include/asm/bitops.h:136 ./include/asm-generic/bitops/instrumented-atomic.h:72 kernel/workqueue.c:2072) [ 38.982927][ T443] kasan_report (mm/kasan/report.c:597) [ 38.982937][ T443] ? try_to_grab_pending (./arch/x86/include/asm/bitops.h:136 ./include/asm-generic/bitops/instrumented-atomic.h:72 kernel/workqueue.c:2072) [ 38.982942][ T443] kasan_check_range (mm/kasan/generic.c:194 mm/kasan/generic.c:200) [ 38.982946][ T443] try_to_grab_pending (./arch/x86/include/asm/bitops.h:136 ./include/asm-generic/bitops/instrumented-atomic.h:72 kernel/workqueue.c:2072) [ 38.982949][ T443] ? __queue_work (./include/linux/rcupdate.h:341 ./include/linux/rcupdate.h:897 kernel/workqueue.c:2350) [ 38.982953][ T443] __cancel_work (kernel/workqueue.c:2161 kernel/workqueue.c:4364) [ 38.982958][ T443] ? enable_delayed_work (kernel/workqueue.c:4359) [ 38.982962][ T443] ? queue_delayed_work_on (kernel/workqueue.c:2565 (discriminator 1)) [ 38.982965][ T443] ? lockdep_hardirqs_on (kernel/locking/lockdep.c:4472) [ 38.982973][ T443] __cancel_work_sync (kernel/workqueue.c:4383) [ 38.982976][ T443] __dev_close_many (net/core/dev.c:1879 (discriminator 2) net/core/dev.c:1932 (discriminator 2)) [ 38.982989][ T443] ? netdev_notify_peers (net/core/dev.c:1891) [ 38.982993][ T443] ? netif_close_many (net/core/dev.c:1959) [ 38.982998][ T443] netif_close_many (net/core/dev.c:1959) [ 38.983001][ T443] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 38.983010][ T443] ? __dev_close_many (net/core/dev.c:1949) [ 38.983014][ T443] ? netif_close_many_and_unlock (net/core/dev.c:12476) [ 38.983019][ T443] unregister_netdevice_many_notify (net/core/dev.c:12545) [ 38.983023][ T443] ? __virt_addr_valid (./include/linux/rcupdate.h:341 ./include/linux/rcupdate.h:979 ./include/linux/mmzone.h:2197 arch/x86/mm/physaddr.c:65) [ 38.983036][ T443] ? dev_ingress_queue_create (net/core/dev.c:12499) [ 38.983041][ T443] ? __call_rcu_common.constprop.0 (kernel/rcu/tree.c:3148) [ 38.983052][ T443] ? lockdep_hardirqs_on (kernel/locking/lockdep.c:4472) [ 38.983057][ T443] rtnl_dellink (net/core/rtnetlink.c:3530 net/core/rtnetlink.c:3570) [ 38.983063][ T443] ? valid_bridge_getlink_req.constprop.0 (net/core/rtnetlink.c:3536) [ 38.983082][ T443] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 38.983087][ T443] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 38.983093][ T443] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 38.983097][ T443] ? rtnetlink_rcv_msg (./include/linux/rcupdate.h:341 ./include/linux/rcupdate.h:897 net/core/rtnetlink.c:6956) [ 38.983102][ T443] ? __lock_release (kernel/locking/lockdep.c:5536) [ 38.983108][ T443] ? valid_bridge_getlink_req.constprop.0 (net/core/rtnetlink.c:3536) [ 38.983111][ T443] rtnetlink_rcv_msg (net/core/rtnetlink.c:6958) [ 38.983115][ T443] ? rtnl_port_fill (net/core/rtnetlink.c:6861) [ 38.983118][ T443] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 38.983125][ T443] netlink_rcv_skb (net/netlink/af_netlink.c:2550) [ 38.983132][ T443] ? rtnl_port_fill (net/core/rtnetlink.c:6861) [ 38.983136][ T443] ? netlink_ack (net/netlink/af_netlink.c:2527) [ 38.983142][ T443] ? netlink_deliver_tap (./include/linux/rcupdate.h:341 ./include/linux/rcupdate.h:897 net/netlink/af_netlink.c:340) [ 38.983145][ T443] ? 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) [ 38.983149][ T443] netlink_unicast (net/netlink/af_netlink.c:1319 net/netlink/af_netlink.c:1344) [ 38.983153][ T443] ? netlink_attachskb (net/netlink/af_netlink.c:1329) [ 38.983157][ T443] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 38.983163][ T443] netlink_sendmsg (net/netlink/af_netlink.c:1894) [ 38.983167][ T443] ? netlink_unicast (net/netlink/af_netlink.c:1813) [ 38.983171][ T443] ? __import_iovec (lib/iov_iter.c:1346 lib/iov_iter.c:1361) [ 38.983184][ T443] ? netlink_unicast (net/netlink/af_netlink.c:1813) [ 38.983187][ T443] ____sys_sendmsg (net/socket.c:727 net/socket.c:742 net/socket.c:2630) [ 38.983196][ T443] ? get_timestamp.constprop.0 (net/socket.c:2576) [ 38.983199][ T443] ? __copy_msghdr (net/socket.c:2556) [ 38.983207][ T443] ___sys_sendmsg (net/socket.c:2686) [ 38.983210][ T443] ? kasan_record_aux_stack (mm/kasan/generic.c:559) [ 38.983213][ T443] ? __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) [ 38.983217][ T443] ? copy_msghdr_from_user (net/socket.c:2673) [ 38.983222][ T443] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 38.983226][ T443] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 38.983232][ T443] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 38.983236][ T443] ? __virt_addr_valid (./include/linux/rcupdate.h:341 ./include/linux/rcupdate.h:979 ./include/linux/mmzone.h:2197 arch/x86/mm/physaddr.c:65) [ 38.983238][ T443] ? __lock_release (kernel/locking/lockdep.c:5536) [ 38.983245][ T443] __sys_sendmsg (net/socket.c:2716) [ 38.983248][ T443] ? __call_rcu_common.constprop.0 (kernel/rcu/tree.c:3148) [ 38.983252][ T443] ? __sys_sendmsg_sock (net/socket.c:2701) [ 38.983259][ T443] ? rcu_is_watching (./include/linux/context_tracking.h:128 kernel/rcu/tree.c:751) [ 38.983263][ T443] do_syscall_64 (arch/x86/entry/syscall_64.c:63 arch/x86/entry/syscall_64.c:94) [ 38.983269][ T443] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:130) [ 38.983276][ T443] RIP: 0033:0x7f7bd14dd1d7 [ 38.983281][ T443] 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) [ 38.983284][ T443] RSP: 002b:00007ffe71e7e078 EFLAGS: 00000246 ORIG_RAX: 000000000000002e [ 38.983291][ T443] RAX: ffffffffffffffda RBX: 00007ffe71e7e7a0 RCX: 00007f7bd14dd1d7 [ 38.983294][ T443] RDX: 0000000000000000 RSI: 00007ffe71e7e0e0 RDI: 0000000000000005 [ 38.983295][ T443] RBP: 0000000000000002 R08: 0000000000000003 R09: 0000000000000078 [ 38.983297][ T443] R10: 00007f7bd13d9f60 R11: 0000000000000246 R12: 0000000000000002 [ 38.983299][ T443] R13: 00000000691ccbaa R14: 0000000000499600 R15: 0000000000000000 | [ 38.999416][ T443] #PF: error_code(0x0002) - not-present page | [ 38.999630][ T443] PGD 8b6d067 P4D 8b6d067 PUD 233f067 PMD 0 | [ 38.999865][ T443] Oops: Oops: 0002 [#1] SMP KASAN | [ 39.000397][ T443] Tainted: [B]=BAD_PAGE [ 39.000534][ T443] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 39.000762][ T443] 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) [ 39.000992][ T443] 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 [ 39.001614][ T443] RSP: 0018:ffffc90000c26f18 EFLAGS: 00010046 [ 39.001843][ T443] RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffffffffb6c4090a [ 39.002104][ T443] RDX: fffffbfff75cf2cd RSI: 0000000000000008 RDI: ffffffffbae79660 [ 39.002382][ T443] RBP: ffffc90000c26f80 R08: 0000000000000001 R09: fffffbfff75cf2cc [ 39.002647][ T443] R10: ffffffffbae79667 R11: ffffc90000c26a00 R12: 0000000000000000 [ 39.002916][ T443] R13: 0000000000000286 R14: ffff88800a05c000 R15: dffffc0000000000 [ 39.003179][ T443] FS: 00007f7bd130f800(0000) GS:ffff888075972000(0000) knlGS:0000000000000000 [ 39.003490][ T443] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 39.003715][ T443] CR2: 0000000000000000 CR3: 0000000008ecb001 CR4: 0000000000772ef0 [ 39.003987][ T443] PKRU: 55555554 [ 39.004125][ T443] Call Trace: [ 39.004256][ T443] [ 39.004348][ T443] ? __queue_work (./include/linux/rcupdate.h:341 ./include/linux/rcupdate.h:897 kernel/workqueue.c:2350) [ 39.004525][ T443] __cancel_work (kernel/workqueue.c:2161 kernel/workqueue.c:4364) [ 39.004722][ T443] ? enable_delayed_work (kernel/workqueue.c:4359) [ 39.004905][ T443] ? queue_delayed_work_on (kernel/workqueue.c:2565 (discriminator 1)) [ 39.005079][ T443] ? lockdep_hardirqs_on (kernel/locking/lockdep.c:4472) [ 39.005256][ T443] __cancel_work_sync (kernel/workqueue.c:4383) [ 39.005431][ T443] __dev_close_many (net/core/dev.c:1879 (discriminator 2) net/core/dev.c:1932 (discriminator 2)) [ 39.005607][ T443] ? netdev_notify_peers (net/core/dev.c:1891) [ 39.005781][ T443] ? netif_close_many (net/core/dev.c:1959) [ 39.005962][ T443] netif_close_many (net/core/dev.c:1959) [ 39.006136][ T443] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 39.006314][ T443] ? __dev_close_many (net/core/dev.c:1949) [ 39.006490][ T443] ? netif_close_many_and_unlock (net/core/dev.c:12476) [ 39.006707][ T443] unregister_netdevice_many_notify (net/core/dev.c:12545) [ 39.006930][ T443] ? __virt_addr_valid (./include/linux/rcupdate.h:341 ./include/linux/rcupdate.h:979 ./include/linux/mmzone.h:2197 arch/x86/mm/physaddr.c:65) [ 39.007109][ T443] ? dev_ingress_queue_create (net/core/dev.c:12499) [ 39.007289][ T443] ? __call_rcu_common.constprop.0 (kernel/rcu/tree.c:3148) [ 39.007507][ T443] ? lockdep_hardirqs_on (kernel/locking/lockdep.c:4472) [ 39.007683][ T443] rtnl_dellink (net/core/rtnetlink.c:3530 net/core/rtnetlink.c:3570) [ 39.007863][ T443] ? valid_bridge_getlink_req.constprop.0 (net/core/rtnetlink.c:3536) [ 39.008096][ T443] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 39.008272][ T443] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 39.008450][ T443] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 39.008629][ T443] ? rtnetlink_rcv_msg (./include/linux/rcupdate.h:341 ./include/linux/rcupdate.h:897 net/core/rtnetlink.c:6956) [ 39.008809][ T443] ? __lock_release (kernel/locking/lockdep.c:5536) [ 39.008987][ T443] ? valid_bridge_getlink_req.constprop.0 (net/core/rtnetlink.c:3536) [ 39.009206][ T443] rtnetlink_rcv_msg (net/core/rtnetlink.c:6958) [ 39.009381][ T443] ? rtnl_port_fill (net/core/rtnetlink.c:6861) [ 39.009555][ T443] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 39.009733][ T443] netlink_rcv_skb (net/netlink/af_netlink.c:2550) [ 39.009915][ T443] ? rtnl_port_fill (net/core/rtnetlink.c:6861) [ 39.010088][ T443] ? netlink_ack (net/netlink/af_netlink.c:2527) [ 39.010267][ T443] ? netlink_deliver_tap (./include/linux/rcupdate.h:341 ./include/linux/rcupdate.h:897 net/netlink/af_netlink.c:340) [ 39.010440][ T443] ? 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) [ 39.010616][ T443] netlink_unicast (net/netlink/af_netlink.c:1319 net/netlink/af_netlink.c:1344) [ 39.010801][ T443] ? netlink_attachskb (net/netlink/af_netlink.c:1329) [ 39.010976][ T443] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 39.011151][ T443] netlink_sendmsg (net/netlink/af_netlink.c:1894) [ 39.011332][ T443] ? netlink_unicast (net/netlink/af_netlink.c:1813) [ 39.011506][ T443] ? __import_iovec (lib/iov_iter.c:1346 lib/iov_iter.c:1361) [ 39.011682][ T443] ? netlink_unicast (net/netlink/af_netlink.c:1813) [ 39.011860][ T443] ____sys_sendmsg (net/socket.c:727 net/socket.c:742 net/socket.c:2630) [ 39.012036][ T443] ? get_timestamp.constprop.0 (net/socket.c:2576) [ 39.012251][ T443] ? __copy_msghdr (net/socket.c:2556) [ 39.012439][ T443] ___sys_sendmsg (net/socket.c:2686) [ 39.012615][ T443] ? kasan_record_aux_stack (mm/kasan/generic.c:559) [ 39.012801][ T443] ? __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) [ 39.013020][ T443] ? copy_msghdr_from_user (net/socket.c:2673) [ 39.013196][ T443] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 39.013373][ T443] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 39.013549][ T443] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 39.013725][ T443] ? __virt_addr_valid (./include/linux/rcupdate.h:341 ./include/linux/rcupdate.h:979 ./include/linux/mmzone.h:2197 arch/x86/mm/physaddr.c:65) [ 39.013903][ T443] ? __lock_release (kernel/locking/lockdep.c:5536) [ 39.014085][ T443] __sys_sendmsg (net/socket.c:2716) [ 39.014258][ T443] ? __call_rcu_common.constprop.0 (kernel/rcu/tree.c:3148) [ 39.014476][ T443] ? __sys_sendmsg_sock (net/socket.c:2701) [ 39.014655][ T443] ? rcu_is_watching (./include/linux/context_tracking.h:128 kernel/rcu/tree.c:751) [ 39.014838][ T443] do_syscall_64 (arch/x86/entry/syscall_64.c:63 arch/x86/entry/syscall_64.c:94) [ 39.015014][ T443] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:130) [ 39.015231][ T443] RIP: 0033:0x7f7bd14dd1d7 [ 39.015418][ T443] 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) [ 39.016042][ T443] RSP: 002b:00007ffe71e7e078 EFLAGS: 00000246 ORIG_RAX: 000000000000002e [ 39.016311][ T443] RAX: ffffffffffffffda RBX: 00007ffe71e7e7a0 RCX: 00007f7bd14dd1d7 [ 39.016578][ T443] RDX: 0000000000000000 RSI: 00007ffe71e7e0e0 RDI: 0000000000000005 [ 39.016852][ T443] RBP: 0000000000000002 R08: 0000000000000003 R09: 0000000000000078 [ 39.017117][ T443] R10: 00007f7bd13d9f60 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