====================================== | [ 50.246541][ T653] ================================================================== | [ 50.246867][ T653] 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) | [ 50.247176][ T653] Write of size 8 at addr 0000000000000000 by task ip/653 | [ 50.247440][ T653] [ 50.247547][ T653] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 50.247550][ T653] Call Trace: [ 50.247552][ T653] [ 50.247554][ T653] dump_stack_lvl (lib/dump_stack.c:123) [ 50.247567][ T653] ? try_to_grab_pending (./arch/x86/include/asm/bitops.h:136 ./include/asm-generic/bitops/instrumented-atomic.h:72 kernel/workqueue.c:2072) [ 50.247571][ T653] kasan_report (mm/kasan/report.c:597) [ 50.247578][ T653] ? try_to_grab_pending (./arch/x86/include/asm/bitops.h:136 ./include/asm-generic/bitops/instrumented-atomic.h:72 kernel/workqueue.c:2072) [ 50.247584][ T653] kasan_check_range (mm/kasan/generic.c:194 mm/kasan/generic.c:200) [ 50.247587][ T653] try_to_grab_pending (./arch/x86/include/asm/bitops.h:136 ./include/asm-generic/bitops/instrumented-atomic.h:72 kernel/workqueue.c:2072) [ 50.247591][ T653] ? __queue_work (./include/linux/rcupdate.h:341 ./include/linux/rcupdate.h:897 kernel/workqueue.c:2350) [ 50.247596][ T653] __cancel_work (kernel/workqueue.c:2161 kernel/workqueue.c:4364) [ 50.247599][ T653] ? enable_delayed_work (kernel/workqueue.c:4359) [ 50.247603][ T653] ? queue_delayed_work_on (kernel/workqueue.c:2565 (discriminator 1)) [ 50.247606][ T653] ? lockdep_hardirqs_on (kernel/locking/lockdep.c:4472) [ 50.247613][ T653] __cancel_work_sync (kernel/workqueue.c:4383) [ 50.247618][ T653] __dev_close_many (net/core/dev.c:1879 (discriminator 2) net/core/dev.c:1932 (discriminator 2)) [ 50.247625][ T653] ? netdev_notify_peers (net/core/dev.c:1891) [ 50.247630][ T653] ? netif_close_many (net/core/dev.c:1959) [ 50.247635][ T653] netif_close_many (net/core/dev.c:1959) [ 50.247639][ T653] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 50.247645][ T653] ? __dev_close_many (net/core/dev.c:1949) [ 50.247649][ T653] ? netif_close_many_and_unlock (net/core/dev.c:12476) [ 50.247654][ T653] unregister_netdevice_many_notify (net/core/dev.c:12545) [ 50.247659][ T653] ? __virt_addr_valid (./include/linux/rcupdate.h:341 ./include/linux/rcupdate.h:979 ./include/linux/mmzone.h:2197 arch/x86/mm/physaddr.c:65) [ 50.247667][ T653] ? dev_ingress_queue_create (net/core/dev.c:12499) [ 50.247671][ T653] ? __call_rcu_common.constprop.0 (kernel/rcu/tree.c:3148) [ 50.247679][ T653] ? lockdep_hardirqs_on (kernel/locking/lockdep.c:4472) [ 50.247684][ T653] rtnl_dellink (net/core/rtnetlink.c:3530 net/core/rtnetlink.c:3570) [ 50.247689][ T653] ? valid_bridge_getlink_req.constprop.0 (net/core/rtnetlink.c:3536) [ 50.247708][ T653] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 50.247713][ T653] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 50.247719][ T653] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 50.247723][ T653] ? rtnetlink_rcv_msg (./include/linux/rcupdate.h:341 ./include/linux/rcupdate.h:897 net/core/rtnetlink.c:6956) [ 50.247725][ T653] ? __lock_release (kernel/locking/lockdep.c:5536) [ 50.247730][ T653] ? valid_bridge_getlink_req.constprop.0 (net/core/rtnetlink.c:3536) [ 50.247733][ T653] rtnetlink_rcv_msg (net/core/rtnetlink.c:6958) [ 50.247737][ T653] ? rtnl_port_fill (net/core/rtnetlink.c:6861) [ 50.247740][ T653] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 50.247747][ T653] netlink_rcv_skb (net/netlink/af_netlink.c:2550) [ 50.247752][ T653] ? rtnl_port_fill (net/core/rtnetlink.c:6861) [ 50.247756][ T653] ? netlink_ack (net/netlink/af_netlink.c:2527) [ 50.247763][ T653] ? netlink_deliver_tap (./include/linux/rcupdate.h:341 ./include/linux/rcupdate.h:897 net/netlink/af_netlink.c:340) [ 50.247767][ T653] ? 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) [ 50.247771][ T653] netlink_unicast (net/netlink/af_netlink.c:1319 net/netlink/af_netlink.c:1344) [ 50.247775][ T653] ? netlink_attachskb (net/netlink/af_netlink.c:1329) [ 50.247779][ T653] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 50.247785][ T653] netlink_sendmsg (net/netlink/af_netlink.c:1894) [ 50.247789][ T653] ? netlink_unicast (net/netlink/af_netlink.c:1813) [ 50.247793][ T653] ? __import_iovec (lib/iov_iter.c:1346 lib/iov_iter.c:1361) [ 50.247801][ T653] ? netlink_unicast (net/netlink/af_netlink.c:1813) [ 50.247804][ T653] ____sys_sendmsg (net/socket.c:727 net/socket.c:742 net/socket.c:2630) [ 50.247811][ T653] ? get_timestamp.constprop.0 (net/socket.c:2576) [ 50.247814][ T653] ? __copy_msghdr (net/socket.c:2556) [ 50.247822][ T653] ___sys_sendmsg (net/socket.c:2686) [ 50.247826][ T653] ? kasan_record_aux_stack (mm/kasan/generic.c:559) [ 50.247831][ T653] ? __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) [ 50.247837][ T653] ? copy_msghdr_from_user (net/socket.c:2673) [ 50.247844][ T653] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 50.247848][ T653] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 50.247854][ T653] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 50.247858][ T653] ? __virt_addr_valid (./include/linux/rcupdate.h:341 ./include/linux/rcupdate.h:979 ./include/linux/mmzone.h:2197 arch/x86/mm/physaddr.c:65) [ 50.247861][ T653] ? __lock_release (kernel/locking/lockdep.c:5536) [ 50.247867][ T653] __sys_sendmsg (net/socket.c:2716) [ 50.247871][ T653] ? __call_rcu_common.constprop.0 (kernel/rcu/tree.c:3148) [ 50.247875][ T653] ? __sys_sendmsg_sock (net/socket.c:2701) [ 50.247882][ T653] ? rcu_is_watching (./include/linux/context_tracking.h:128 kernel/rcu/tree.c:751) [ 50.247886][ T653] do_syscall_64 (arch/x86/entry/syscall_64.c:63 arch/x86/entry/syscall_64.c:94) [ 50.247893][ T653] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:130) [ 50.247902][ T653] RIP: 0033:0x7ff8c67e31d7 [ 50.247907][ T653] 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) [ 50.247910][ T653] RSP: 002b:00007fff19bde098 EFLAGS: 00000246 ORIG_RAX: 000000000000002e [ 50.247915][ T653] RAX: ffffffffffffffda RBX: 00007fff19bde7c0 RCX: 00007ff8c67e31d7 [ 50.247917][ T653] RDX: 0000000000000000 RSI: 00007fff19bde100 RDI: 0000000000000005 [ 50.247919][ T653] RBP: 0000000000000002 R08: 0000000000000003 R09: 0000000000000078 [ 50.247921][ T653] R10: 00007ff8c66dff60 R11: 0000000000000246 R12: 0000000000000002 [ 50.247923][ T653] R13: 00000000691cc2dd R14: 0000000000499600 R15: 0000000000000000 | [ 50.264809][ T653] #PF: error_code(0x0002) - not-present page | [ 50.265039][ T653] PGD a2b7067 P4D a2b7067 PUD 4b80067 PMD 0 | [ 50.265274][ T653] Oops: Oops: 0002 [#1] SMP KASAN | [ 50.265842][ T653] Tainted: [B]=BAD_PAGE [ 50.265979][ T653] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 50.266213][ T653] 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) [ 50.266473][ T653] 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 [ 50.267106][ T653] RSP: 0018:ffffc90000fb6f18 EFLAGS: 00010046 [ 50.267350][ T653] RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffffffffb444090a [ 50.267632][ T653] RDX: fffffbfff70cf2cd RSI: 0000000000000008 RDI: ffffffffb8679660 [ 50.267908][ T653] RBP: ffffc90000fb6f80 R08: 0000000000000001 R09: fffffbfff70cf2cc [ 50.268174][ T653] R10: ffffffffb8679667 R11: ffffc90000fb6a00 R12: 0000000000000000 [ 50.268468][ T653] R13: 0000000000000286 R14: ffff888006e94000 R15: dffffc0000000000 [ 50.268744][ T653] FS: 00007ff8c6615800(0000) GS:ffff888077ff2000(0000) knlGS:0000000000000000 [ 50.269063][ T653] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 50.269304][ T653] CR2: 0000000000000000 CR3: 000000000a58a006 CR4: 0000000000772ef0 [ 50.269580][ T653] PKRU: 55555554 [ 50.269713][ T653] Call Trace: [ 50.269851][ T653] [ 50.269951][ T653] ? __queue_work (./include/linux/rcupdate.h:341 ./include/linux/rcupdate.h:897 kernel/workqueue.c:2350) [ 50.270138][ T653] __cancel_work (kernel/workqueue.c:2161 kernel/workqueue.c:4364) [ 50.270333][ T653] ? enable_delayed_work (kernel/workqueue.c:4359) [ 50.270529][ T653] ? queue_delayed_work_on (kernel/workqueue.c:2565 (discriminator 1)) [ 50.270709][ T653] ? lockdep_hardirqs_on (kernel/locking/lockdep.c:4472) [ 50.270893][ T653] __cancel_work_sync (kernel/workqueue.c:4383) [ 50.271071][ T653] __dev_close_many (net/core/dev.c:1879 (discriminator 2) net/core/dev.c:1932 (discriminator 2)) [ 50.271264][ T653] ? netdev_notify_peers (net/core/dev.c:1891) [ 50.271452][ T653] ? netif_close_many (net/core/dev.c:1959) [ 50.271630][ T653] netif_close_many (net/core/dev.c:1959) [ 50.271807][ T653] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 50.271993][ T653] ? __dev_close_many (net/core/dev.c:1949) [ 50.272169][ T653] ? netif_close_many_and_unlock (net/core/dev.c:12476) [ 50.272407][ T653] unregister_netdevice_many_notify (net/core/dev.c:12545) [ 50.272629][ T653] ? __virt_addr_valid (./include/linux/rcupdate.h:341 ./include/linux/rcupdate.h:979 ./include/linux/mmzone.h:2197 arch/x86/mm/physaddr.c:65) [ 50.272817][ T653] ? dev_ingress_queue_create (net/core/dev.c:12499) [ 50.273002][ T653] ? __call_rcu_common.constprop.0 (kernel/rcu/tree.c:3148) [ 50.273236][ T653] ? lockdep_hardirqs_on (kernel/locking/lockdep.c:4472) [ 50.273433][ T653] rtnl_dellink (net/core/rtnetlink.c:3530 net/core/rtnetlink.c:3570) [ 50.273612][ T653] ? valid_bridge_getlink_req.constprop.0 (net/core/rtnetlink.c:3536) [ 50.273850][ T653] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 50.274075][ T653] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 50.274273][ T653] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 50.274470][ T653] ? rtnetlink_rcv_msg (./include/linux/rcupdate.h:341 ./include/linux/rcupdate.h:897 net/core/rtnetlink.c:6956) [ 50.274648][ T653] ? __lock_release (kernel/locking/lockdep.c:5536) [ 50.274829][ T653] ? valid_bridge_getlink_req.constprop.0 (net/core/rtnetlink.c:3536) [ 50.275055][ T653] rtnetlink_rcv_msg (net/core/rtnetlink.c:6958) [ 50.275241][ T653] ? rtnl_port_fill (net/core/rtnetlink.c:6861) [ 50.275446][ T653] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 50.275628][ T653] netlink_rcv_skb (net/netlink/af_netlink.c:2550) [ 50.275808][ T653] ? rtnl_port_fill (net/core/rtnetlink.c:6861) [ 50.275992][ T653] ? netlink_ack (net/netlink/af_netlink.c:2527) [ 50.276171][ T653] ? netlink_deliver_tap (./include/linux/rcupdate.h:341 ./include/linux/rcupdate.h:897 net/netlink/af_netlink.c:340) [ 50.276364][ T653] ? 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) [ 50.276551][ T653] netlink_unicast (net/netlink/af_netlink.c:1319 net/netlink/af_netlink.c:1344) [ 50.276729][ T653] ? netlink_attachskb (net/netlink/af_netlink.c:1329) [ 50.276926][ T653] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 50.277102][ T653] netlink_sendmsg (net/netlink/af_netlink.c:1894) [ 50.277294][ T653] ? netlink_unicast (net/netlink/af_netlink.c:1813) [ 50.277485][ T653] ? __import_iovec (lib/iov_iter.c:1346 lib/iov_iter.c:1361) [ 50.277666][ T653] ? netlink_unicast (net/netlink/af_netlink.c:1813) [ 50.277847][ T653] ____sys_sendmsg (net/socket.c:727 net/socket.c:742 net/socket.c:2630) [ 50.278030][ T653] ? get_timestamp.constprop.0 (net/socket.c:2576) [ 50.278250][ T653] ? __copy_msghdr (net/socket.c:2556) [ 50.278449][ T653] ___sys_sendmsg (net/socket.c:2686) [ 50.278627][ T653] ? kasan_record_aux_stack (mm/kasan/generic.c:559) [ 50.278806][ T653] ? __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) [ 50.279033][ T653] ? copy_msghdr_from_user (net/socket.c:2673) [ 50.279215][ T653] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 50.279402][ T653] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 50.279582][ T653] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 50.279768][ T653] ? __virt_addr_valid (./include/linux/rcupdate.h:341 ./include/linux/rcupdate.h:979 ./include/linux/mmzone.h:2197 arch/x86/mm/physaddr.c:65) [ 50.280065][ T653] ? __lock_release (kernel/locking/lockdep.c:5536) [ 50.280255][ T653] __sys_sendmsg (net/socket.c:2716) [ 50.280470][ T653] ? __call_rcu_common.constprop.0 (kernel/rcu/tree.c:3148) [ 50.280812][ T653] ? __sys_sendmsg_sock (net/socket.c:2701) [ 50.281004][ T653] ? rcu_is_watching (./include/linux/context_tracking.h:128 kernel/rcu/tree.c:751) [ 50.281183][ T653] do_syscall_64 (arch/x86/entry/syscall_64.c:63 arch/x86/entry/syscall_64.c:94) [ 50.281368][ T653] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:130) [ 50.281700][ T653] RIP: 0033:0x7ff8c67e31d7 [ 50.281893][ T653] 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) [ 50.282528][ T653] RSP: 002b:00007fff19bde098 EFLAGS: 00000246 ORIG_RAX: 000000000000002e [ 50.282805][ T653] RAX: ffffffffffffffda RBX: 00007fff19bde7c0 RCX: 00007ff8c67e31d7 [ 50.283084][ T653] RDX: 0000000000000000 RSI: 00007fff19bde100 RDI: 0000000000000005 [ 50.283464][ T653] RBP: 0000000000000002 R08: 0000000000000003 R09: 0000000000000078 [ 50.283749][ T653] R10: 00007ff8c66dff60 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