====================================== | [ 70.849612][ T555] ================================================================== | [ 70.849952][ T555] 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) | [ 70.850259][ T555] Write of size 8 at addr 0000000000000000 by task ip/555 | [ 70.850482][ T555] [ 70.850606][ T555] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 70.850610][ T555] Call Trace: [ 70.850613][ T555] [ 70.850617][ T555] dump_stack_lvl (lib/dump_stack.c:123) [ 70.850637][ T555] ? try_to_grab_pending (./arch/x86/include/asm/bitops.h:136 ./include/asm-generic/bitops/instrumented-atomic.h:72 kernel/workqueue.c:2072) [ 70.850641][ T555] kasan_report (mm/kasan/report.c:597) [ 70.850654][ T555] ? try_to_grab_pending (./arch/x86/include/asm/bitops.h:136 ./include/asm-generic/bitops/instrumented-atomic.h:72 kernel/workqueue.c:2072) [ 70.850659][ T555] kasan_check_range (mm/kasan/generic.c:194 mm/kasan/generic.c:200) [ 70.850663][ T555] try_to_grab_pending (./arch/x86/include/asm/bitops.h:136 ./include/asm-generic/bitops/instrumented-atomic.h:72 kernel/workqueue.c:2072) [ 70.850666][ T555] ? __queue_work (./include/linux/rcupdate.h:341 ./include/linux/rcupdate.h:897 kernel/workqueue.c:2350) [ 70.850670][ T555] __cancel_work (kernel/workqueue.c:2161 kernel/workqueue.c:4364) [ 70.850673][ T555] ? enable_delayed_work (kernel/workqueue.c:4359) [ 70.850677][ T555] ? queue_delayed_work_on (kernel/workqueue.c:2565 (discriminator 1)) [ 70.850681][ T555] ? lockdep_hardirqs_on (kernel/locking/lockdep.c:4472) [ 70.850689][ T555] __cancel_work_sync (kernel/workqueue.c:4383) [ 70.850693][ T555] __dev_close_many (net/core/dev.c:1879 (discriminator 2) net/core/dev.c:1932 (discriminator 2)) [ 70.850708][ T555] ? netdev_notify_peers (net/core/dev.c:1891) [ 70.850712][ T555] ? netif_close_many (net/core/dev.c:1959) [ 70.850716][ T555] netif_close_many (net/core/dev.c:1959) [ 70.850720][ T555] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 70.850729][ T555] ? __dev_close_many (net/core/dev.c:1949) [ 70.850733][ T555] ? netif_close_many_and_unlock (net/core/dev.c:12476) [ 70.850739][ T555] unregister_netdevice_many_notify (net/core/dev.c:12545) [ 70.850743][ T555] ? __virt_addr_valid (./include/linux/rcupdate.h:341 ./include/linux/rcupdate.h:979 ./include/linux/mmzone.h:2197 arch/x86/mm/physaddr.c:65) [ 70.850758][ T555] ? dev_ingress_queue_create (net/core/dev.c:12499) [ 70.850764][ T555] ? __call_rcu_common.constprop.0 (kernel/rcu/tree.c:3148) [ 70.850778][ T555] ? lockdep_hardirqs_on (kernel/locking/lockdep.c:4472) [ 70.850783][ T555] rtnl_dellink (net/core/rtnetlink.c:3530 net/core/rtnetlink.c:3570) [ 70.850791][ T555] ? valid_bridge_getlink_req.constprop.0 (net/core/rtnetlink.c:3536) [ 70.850810][ T555] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 70.850815][ T555] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 70.850821][ T555] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 70.850825][ T555] ? rtnetlink_rcv_msg (./include/linux/rcupdate.h:341 ./include/linux/rcupdate.h:897 net/core/rtnetlink.c:6956) [ 70.850828][ T555] ? __lock_release (kernel/locking/lockdep.c:5536) [ 70.850834][ T555] ? valid_bridge_getlink_req.constprop.0 (net/core/rtnetlink.c:3536) [ 70.850837][ T555] rtnetlink_rcv_msg (net/core/rtnetlink.c:6958) [ 70.850841][ T555] ? rtnl_port_fill (net/core/rtnetlink.c:6861) [ 70.850844][ T555] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 70.850851][ T555] netlink_rcv_skb (net/netlink/af_netlink.c:2550) [ 70.850859][ T555] ? rtnl_port_fill (net/core/rtnetlink.c:6861) [ 70.850863][ T555] ? netlink_ack (net/netlink/af_netlink.c:2527) [ 70.850870][ T555] ? netlink_deliver_tap (./include/linux/rcupdate.h:341 ./include/linux/rcupdate.h:897 net/netlink/af_netlink.c:340) [ 70.850873][ T555] ? 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) [ 70.850877][ T555] netlink_unicast (net/netlink/af_netlink.c:1319 net/netlink/af_netlink.c:1344) [ 70.850881][ T555] ? netlink_attachskb (net/netlink/af_netlink.c:1329) [ 70.850885][ T555] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 70.850891][ T555] netlink_sendmsg (net/netlink/af_netlink.c:1894) [ 70.850895][ T555] ? netlink_unicast (net/netlink/af_netlink.c:1813) [ 70.850899][ T555] ? __import_iovec (lib/iov_iter.c:1346 lib/iov_iter.c:1361) [ 70.850912][ T555] ? netlink_unicast (net/netlink/af_netlink.c:1813) [ 70.850916][ T555] ____sys_sendmsg (net/socket.c:727 net/socket.c:742 net/socket.c:2630) [ 70.850927][ T555] ? get_timestamp.constprop.0 (net/socket.c:2576) [ 70.850929][ T555] ? __copy_msghdr (net/socket.c:2556) [ 70.850937][ T555] ___sys_sendmsg (net/socket.c:2686) [ 70.850940][ T555] ? kasan_record_aux_stack (mm/kasan/generic.c:559) [ 70.850942][ T555] ? __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) [ 70.850947][ T555] ? copy_msghdr_from_user (net/socket.c:2673) [ 70.850952][ T555] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 70.850956][ T555] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 70.850962][ T555] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 70.850965][ T555] ? __virt_addr_valid (./include/linux/rcupdate.h:341 ./include/linux/rcupdate.h:979 ./include/linux/mmzone.h:2197 arch/x86/mm/physaddr.c:65) [ 70.850968][ T555] ? __lock_release (kernel/locking/lockdep.c:5536) [ 70.850974][ T555] __sys_sendmsg (net/socket.c:2716) [ 70.850978][ T555] ? __call_rcu_common.constprop.0 (kernel/rcu/tree.c:3148) [ 70.850982][ T555] ? __sys_sendmsg_sock (net/socket.c:2701) [ 70.850989][ T555] ? rcu_is_watching (./include/linux/context_tracking.h:128 kernel/rcu/tree.c:751) [ 70.850993][ T555] do_syscall_64 (arch/x86/entry/syscall_64.c:63 arch/x86/entry/syscall_64.c:94) [ 70.850999][ T555] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:130) [ 70.851007][ T555] RIP: 0033:0x7f7424ed11d7 [ 70.851013][ T555] 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) [ 70.851018][ T555] RSP: 002b:00007ffdce902e28 EFLAGS: 00000246 ORIG_RAX: 000000000000002e [ 70.851027][ T555] RAX: ffffffffffffffda RBX: 00007ffdce903550 RCX: 00007f7424ed11d7 [ 70.851030][ T555] RDX: 0000000000000000 RSI: 00007ffdce902e90 RDI: 0000000000000005 [ 70.851031][ T555] RBP: 0000000000000002 R08: 0000000000000003 R09: 0000000000000078 [ 70.851033][ T555] R10: 00007f7424dcdf60 R11: 0000000000000246 R12: 0000000000000002 [ 70.851035][ T555] R13: 00000000691cda48 R14: 0000000000499600 R15: 0000000000000000 | [ 70.868987][ T555] #PF: error_code(0x0002) - not-present page | [ 70.869198][ T555] PGD bf6b067 P4D bf6b067 PUD caca067 PMD 0 | [ 70.869431][ T555] Oops: Oops: 0002 [#1] SMP KASAN | [ 70.870160][ T555] Tainted: [B]=BAD_PAGE [ 70.870291][ T555] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 70.870678][ T555] 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) [ 70.870908][ T555] 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 [ 70.871793][ T555] RSP: 0018:ffffc90000dcef18 EFLAGS: 00010046 [ 70.872110][ T555] RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffffffff8dc4090a [ 70.872406][ T555] RDX: fffffbfff23cf2cd RSI: 0000000000000008 RDI: ffffffff91e79660 [ 70.872791][ T555] RBP: ffffc90000dcef80 R08: 0000000000000001 R09: fffffbfff23cf2cc [ 70.873049][ T555] R10: ffffffff91e79667 R11: ffffc90000dcea00 R12: 0000000000000000 [ 70.873410][ T555] R13: 0000000000000286 R14: ffff88800d094000 R15: dffffc0000000000 [ 70.873673][ T555] FS: 00007f7424d03800(0000) GS:ffff8880a4572000(0000) knlGS:0000000000000000 [ 70.873975][ T555] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 70.874195][ T555] CR2: 0000000000000000 CR3: 000000000955e006 CR4: 0000000000772ef0 [ 70.874447][ T555] PKRU: 55555554 [ 70.874590][ T555] Call Trace: [ 70.874720][ T555] [ 70.874914][ T555] ? __queue_work (./include/linux/rcupdate.h:341 ./include/linux/rcupdate.h:897 kernel/workqueue.c:2350) [ 70.875095][ T555] __cancel_work (kernel/workqueue.c:2161 kernel/workqueue.c:4364) [ 70.875268][ T555] ? enable_delayed_work (kernel/workqueue.c:4359) [ 70.875436][ T555] ? queue_delayed_work_on (kernel/workqueue.c:2565 (discriminator 1)) [ 70.875819][ T555] ? lockdep_hardirqs_on (kernel/locking/lockdep.c:4472) [ 70.876048][ T555] __cancel_work_sync (kernel/workqueue.c:4383) [ 70.876226][ T555] __dev_close_many (net/core/dev.c:1879 (discriminator 2) net/core/dev.c:1932 (discriminator 2)) [ 70.876395][ T555] ? netdev_notify_peers (net/core/dev.c:1891) [ 70.876693][ T555] ? netif_close_many (net/core/dev.c:1959) [ 70.876864][ T555] netif_close_many (net/core/dev.c:1959) [ 70.877038][ T555] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 70.877209][ T555] ? __dev_close_many (net/core/dev.c:1949) [ 70.877477][ T555] ? netif_close_many_and_unlock (net/core/dev.c:12476) [ 70.877683][ T555] unregister_netdevice_many_notify (net/core/dev.c:12545) [ 70.877900][ T555] ? __virt_addr_valid (./include/linux/rcupdate.h:341 ./include/linux/rcupdate.h:979 ./include/linux/mmzone.h:2197 arch/x86/mm/physaddr.c:65) [ 70.878080][ T555] ? dev_ingress_queue_create (net/core/dev.c:12499) [ 70.878347][ T555] ? __call_rcu_common.constprop.0 (kernel/rcu/tree.c:3148) [ 70.878569][ T555] ? lockdep_hardirqs_on (kernel/locking/lockdep.c:4472) [ 70.878756][ T555] rtnl_dellink (net/core/rtnetlink.c:3530 net/core/rtnetlink.c:3570) [ 70.879039][ T555] ? valid_bridge_getlink_req.constprop.0 (net/core/rtnetlink.c:3536) [ 70.879315][ T555] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 70.879486][ T555] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 70.879695][ T555] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 70.879974][ T555] ? rtnetlink_rcv_msg (./include/linux/rcupdate.h:341 ./include/linux/rcupdate.h:897 net/core/rtnetlink.c:6956) [ 70.880161][ T555] ? __lock_release (kernel/locking/lockdep.c:5536) [ 70.880349][ T555] ? valid_bridge_getlink_req.constprop.0 (net/core/rtnetlink.c:3536) [ 70.880622][ T555] rtnetlink_rcv_msg (net/core/rtnetlink.c:6958) [ 70.880913][ T555] ? rtnl_port_fill (net/core/rtnetlink.c:6861) [ 70.881113][ T555] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 70.881309][ T555] netlink_rcv_skb (net/netlink/af_netlink.c:2550) [ 70.881477][ T555] ? rtnl_port_fill (net/core/rtnetlink.c:6861) [ 70.881775][ T555] ? netlink_ack (net/netlink/af_netlink.c:2527) [ 70.881958][ T555] ? netlink_deliver_tap (./include/linux/rcupdate.h:341 ./include/linux/rcupdate.h:897 net/netlink/af_netlink.c:340) [ 70.882204][ T555] ? 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) [ 70.882373][ T555] netlink_unicast (net/netlink/af_netlink.c:1319 net/netlink/af_netlink.c:1344) [ 70.882669][ T555] ? netlink_attachskb (net/netlink/af_netlink.c:1329) [ 70.882844][ T555] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 70.883016][ T555] netlink_sendmsg (net/netlink/af_netlink.c:1894) [ 70.883188][ T555] ? netlink_unicast (net/netlink/af_netlink.c:1813) [ 70.883456][ T555] ? __import_iovec (lib/iov_iter.c:1346 lib/iov_iter.c:1361) [ 70.883711][ T555] ? netlink_unicast (net/netlink/af_netlink.c:1813) [ 70.883908][ T555] ____sys_sendmsg (net/socket.c:727 net/socket.c:742 net/socket.c:2630) [ 70.884082][ T555] ? get_timestamp.constprop.0 (net/socket.c:2576) [ 70.884401][ T555] ? __copy_msghdr (net/socket.c:2556) [ 70.884578][ T555] ___sys_sendmsg (net/socket.c:2686) [ 70.884763][ T555] ? kasan_record_aux_stack (mm/kasan/generic.c:559) [ 70.885005][ T555] ? __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) [ 70.885231][ T555] ? copy_msghdr_from_user (net/socket.c:2673) [ 70.885411][ T555] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 70.885656][ T555] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 70.885949][ T555] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 70.886123][ T555] ? __virt_addr_valid (./include/linux/rcupdate.h:341 ./include/linux/rcupdate.h:979 ./include/linux/mmzone.h:2197 arch/x86/mm/physaddr.c:65) [ 70.886295][ T555] ? __lock_release (kernel/locking/lockdep.c:5536) [ 70.886501][ T555] __sys_sendmsg (net/socket.c:2716) [ 70.886820][ T555] ? __call_rcu_common.constprop.0 (kernel/rcu/tree.c:3148) [ 70.887083][ T555] ? __sys_sendmsg_sock (net/socket.c:2701) [ 70.887261][ T555] ? rcu_is_watching (./include/linux/context_tracking.h:128 kernel/rcu/tree.c:751) [ 70.887474][ T555] do_syscall_64 (arch/x86/entry/syscall_64.c:63 arch/x86/entry/syscall_64.c:94) [ 70.887816][ T555] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:130) [ 70.888035][ T555] RIP: 0033:0x7f7424ed11d7 [ 70.888217][ T555] 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) [ 70.888940][ T555] RSP: 002b:00007ffdce902e28 EFLAGS: 00000246 ORIG_RAX: 000000000000002e [ 70.889208][ T555] RAX: ffffffffffffffda RBX: 00007ffdce903550 RCX: 00007f7424ed11d7 [ 70.889576][ T555] RDX: 0000000000000000 RSI: 00007ffdce902e90 RDI: 0000000000000005 [ 70.889842][ T555] RBP: 0000000000000002 R08: 0000000000000003 R09: 0000000000000078 [ 70.890284][ T555] R10: 00007f7424dcdf60 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