====================================== | [ 32.406318][ T376] ================================================================== | [ 32.406812][ T376] 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) | [ 32.407246][ T376] Write of size 8 at addr 0000000000000000 by task ip/376 | [ 32.407586][ T376] [ 32.407752][ T376] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 32.407755][ T376] Call Trace: [ 32.407763][ T376] [ 32.407766][ T376] dump_stack_lvl (lib/dump_stack.c:123) [ 32.407783][ T376] ? try_to_grab_pending (./arch/x86/include/asm/bitops.h:136 ./include/asm-generic/bitops/instrumented-atomic.h:72 kernel/workqueue.c:2072) [ 32.407787][ T376] kasan_report (mm/kasan/report.c:597) [ 32.407798][ T376] ? try_to_grab_pending (./arch/x86/include/asm/bitops.h:136 ./include/asm-generic/bitops/instrumented-atomic.h:72 kernel/workqueue.c:2072) [ 32.407806][ T376] kasan_check_range (mm/kasan/generic.c:194 mm/kasan/generic.c:200) [ 32.407812][ T376] try_to_grab_pending (./arch/x86/include/asm/bitops.h:136 ./include/asm-generic/bitops/instrumented-atomic.h:72 kernel/workqueue.c:2072) [ 32.407816][ T376] ? __queue_work (./include/linux/rcupdate.h:341 ./include/linux/rcupdate.h:897 kernel/workqueue.c:2350) [ 32.407823][ T376] __cancel_work (kernel/workqueue.c:2161 kernel/workqueue.c:4364) [ 32.407827][ T376] ? enable_delayed_work (kernel/workqueue.c:4359) [ 32.407833][ T376] ? queue_delayed_work_on (kernel/workqueue.c:2565 (discriminator 1)) [ 32.407838][ T376] ? lockdep_hardirqs_on (kernel/locking/lockdep.c:4472) [ 32.407847][ T376] __cancel_work_sync (kernel/workqueue.c:4383) [ 32.407853][ T376] __dev_close_many (net/core/dev.c:1879 (discriminator 2) net/core/dev.c:1932 (discriminator 2)) [ 32.407863][ T376] ? netdev_notify_peers (net/core/dev.c:1891) [ 32.407869][ T376] ? netif_close_many (net/core/dev.c:1959) [ 32.407876][ T376] netif_close_many (net/core/dev.c:1959) [ 32.407881][ T376] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 32.407892][ T376] ? __dev_close_many (net/core/dev.c:1949) [ 32.407898][ T376] ? netif_close_many_and_unlock (net/core/dev.c:12476) [ 32.407905][ T376] unregister_netdevice_many_notify (net/core/dev.c:12545) [ 32.407912][ T376] ? __virt_addr_valid (./include/linux/rcupdate.h:341 ./include/linux/rcupdate.h:979 ./include/linux/mmzone.h:2197 arch/x86/mm/physaddr.c:65) [ 32.407924][ T376] ? dev_ingress_queue_create (net/core/dev.c:12499) [ 32.407931][ T376] ? __call_rcu_common.constprop.0 (kernel/rcu/tree.c:3148) [ 32.407943][ T376] ? lockdep_hardirqs_on (kernel/locking/lockdep.c:4472) [ 32.407950][ T376] rtnl_dellink (net/core/rtnetlink.c:3530 net/core/rtnetlink.c:3570) [ 32.407958][ T376] ? valid_bridge_getlink_req.constprop.0 (net/core/rtnetlink.c:3536) [ 32.407991][ T376] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 32.407999][ T376] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 32.408008][ T376] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 32.408013][ T376] ? rtnetlink_rcv_msg (./include/linux/rcupdate.h:341 ./include/linux/rcupdate.h:897 net/core/rtnetlink.c:6956) [ 32.408017][ T376] ? __lock_release (kernel/locking/lockdep.c:5536) [ 32.408027][ T376] ? valid_bridge_getlink_req.constprop.0 (net/core/rtnetlink.c:3536) [ 32.408032][ T376] rtnetlink_rcv_msg (net/core/rtnetlink.c:6958) [ 32.408038][ T376] ? rtnl_port_fill (net/core/rtnetlink.c:6861) [ 32.408043][ T376] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 32.408054][ T376] netlink_rcv_skb (net/netlink/af_netlink.c:2550) [ 32.408061][ T376] ? rtnl_port_fill (net/core/rtnetlink.c:6861) [ 32.408067][ T376] ? netlink_ack (net/netlink/af_netlink.c:2527) [ 32.408078][ T376] ? netlink_deliver_tap (./include/linux/rcupdate.h:341 ./include/linux/rcupdate.h:897 net/netlink/af_netlink.c:340) [ 32.408082][ T376] ? 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) [ 32.408088][ T376] netlink_unicast (net/netlink/af_netlink.c:1319 net/netlink/af_netlink.c:1344) [ 32.408095][ T376] ? netlink_attachskb (net/netlink/af_netlink.c:1329) [ 32.408101][ T376] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 32.408110][ T376] netlink_sendmsg (net/netlink/af_netlink.c:1894) [ 32.408117][ T376] ? netlink_unicast (net/netlink/af_netlink.c:1813) [ 32.408122][ T376] ? __import_iovec (lib/iov_iter.c:1346 lib/iov_iter.c:1361) [ 32.408139][ T376] ? netlink_unicast (net/netlink/af_netlink.c:1813) [ 32.408145][ T376] ____sys_sendmsg (net/socket.c:727 net/socket.c:742 net/socket.c:2630) [ 32.408152][ T376] ? get_timestamp.constprop.0 (net/socket.c:2576) [ 32.408157][ T376] ? __copy_msghdr (net/socket.c:2556) [ 32.408169][ T376] ___sys_sendmsg (net/socket.c:2686) [ 32.408173][ T376] ? kasan_record_aux_stack (mm/kasan/generic.c:559) [ 32.408177][ T376] ? __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) [ 32.408183][ T376] ? copy_msghdr_from_user (net/socket.c:2673) [ 32.408191][ T376] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 32.408197][ T376] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 32.408206][ T376] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 32.408211][ T376] ? __virt_addr_valid (./include/linux/rcupdate.h:341 ./include/linux/rcupdate.h:979 ./include/linux/mmzone.h:2197 arch/x86/mm/physaddr.c:65) [ 32.408216][ T376] ? __lock_release (kernel/locking/lockdep.c:5536) [ 32.408226][ T376] __sys_sendmsg (net/socket.c:2716) [ 32.408230][ T376] ? __call_rcu_common.constprop.0 (kernel/rcu/tree.c:3148) [ 32.408235][ T376] ? __sys_sendmsg_sock (net/socket.c:2701) [ 32.408247][ T376] ? rcu_is_watching (./include/linux/context_tracking.h:128 kernel/rcu/tree.c:751) [ 32.408254][ T376] do_syscall_64 (arch/x86/entry/syscall_64.c:63 arch/x86/entry/syscall_64.c:94) [ 32.408261][ T376] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:130) [ 32.408266][ T376] RIP: 0033:0x7f40fcd221d7 [ 32.408275][ T376] 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) [ 32.408279][ T376] RSP: 002b:00007ffc1a92ff18 EFLAGS: 00000246 ORIG_RAX: 000000000000002e [ 32.408287][ T376] RAX: ffffffffffffffda RBX: 00007ffc1a930640 RCX: 00007f40fcd221d7 [ 32.408290][ T376] RDX: 0000000000000000 RSI: 00007ffc1a92ff80 RDI: 0000000000000005 [ 32.408292][ T376] RBP: 0000000000000002 R08: 0000000000000003 R09: 0000000000000078 [ 32.408295][ T376] R10: 00007f40fcc1ef60 R11: 0000000000000246 R12: 0000000000000002 [ 32.408297][ T376] R13: 00000000691ccc9e R14: 0000000000499600 R15: 0000000000000000 | [ 32.428910][ T376] #PF: error_code(0x0002) - not-present page | [ 32.429126][ T376] PGD acea067 P4D acea067 PUD 99d4067 PMD 0 | [ 32.429480][ T376] Oops: Oops: 0002 [#1] SMP KASAN | [ 32.430019][ T376] Tainted: [B]=BAD_PAGE [ 32.430158][ T376] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 32.430525][ T376] 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) [ 32.430754][ T376] 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 [ 32.431496][ T376] RSP: 0018:ffffc90000786f18 EFLAGS: 00010046 [ 32.431725][ T376] RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffffffffb1a4090a [ 32.432091][ T376] RDX: fffffbfff6b8f2cd RSI: 0000000000000008 RDI: ffffffffb5c79660 [ 32.432382][ T376] RBP: ffffc90000786f80 R08: 0000000000000001 R09: fffffbfff6b8f2cc [ 32.432637][ T376] R10: ffffffffb5c79667 R11: ffffc90000786a00 R12: 0000000000000000 [ 32.432909][ T376] R13: 0000000000000286 R14: ffff8880086e1000 R15: dffffc0000000000 [ 32.433213][ T376] FS: 00007f40fcb54800(0000) GS:ffff888080672000(0000) knlGS:0000000000000000 [ 32.433661][ T376] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 32.433881][ T376] CR2: 0000000000000000 CR3: 0000000004faa005 CR4: 0000000000772ef0 [ 32.434138][ T376] PKRU: 55555554 [ 32.434294][ T376] Call Trace: [ 32.434540][ T376] [ 32.434630][ T376] ? __queue_work (./include/linux/rcupdate.h:341 ./include/linux/rcupdate.h:897 kernel/workqueue.c:2350) [ 32.434819][ T376] __cancel_work (kernel/workqueue.c:2161 kernel/workqueue.c:4364) [ 32.434992][ T376] ? enable_delayed_work (kernel/workqueue.c:4359) [ 32.435281][ T376] ? queue_delayed_work_on (kernel/workqueue.c:2565 (discriminator 1)) [ 32.435460][ T376] ? lockdep_hardirqs_on (kernel/locking/lockdep.c:4472) [ 32.435632][ T376] __cancel_work_sync (kernel/workqueue.c:4383) [ 32.435812][ T376] __dev_close_many (net/core/dev.c:1879 (discriminator 2) net/core/dev.c:1932 (discriminator 2)) [ 32.436086][ T376] ? netdev_notify_peers (net/core/dev.c:1891) [ 32.436269][ T376] ? netif_close_many (net/core/dev.c:1959) [ 32.436453][ T376] netif_close_many (net/core/dev.c:1959) [ 32.436621][ T376] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 32.436891][ T376] ? __dev_close_many (net/core/dev.c:1949) [ 32.437057][ T376] ? netif_close_many_and_unlock (net/core/dev.c:12476) [ 32.437284][ T376] unregister_netdevice_many_notify (net/core/dev.c:12545) [ 32.437507][ T376] ? __virt_addr_valid (./include/linux/rcupdate.h:341 ./include/linux/rcupdate.h:979 ./include/linux/mmzone.h:2197 arch/x86/mm/physaddr.c:65) [ 32.437783][ T376] ? dev_ingress_queue_create (net/core/dev.c:12499) [ 32.437951][ T376] ? __call_rcu_common.constprop.0 (kernel/rcu/tree.c:3148) [ 32.438164][ T376] ? lockdep_hardirqs_on (kernel/locking/lockdep.c:4472) [ 32.438360][ T376] rtnl_dellink (net/core/rtnetlink.c:3530 net/core/rtnetlink.c:3570) [ 32.438632][ T376] ? valid_bridge_getlink_req.constprop.0 (net/core/rtnetlink.c:3536) [ 32.438864][ T376] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 32.439032][ T376] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 32.439324][ T376] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 32.439500][ T376] ? rtnetlink_rcv_msg (./include/linux/rcupdate.h:341 ./include/linux/rcupdate.h:897 net/core/rtnetlink.c:6956) [ 32.439668][ T376] ? __lock_release (kernel/locking/lockdep.c:5536) [ 32.439837][ T376] ? valid_bridge_getlink_req.constprop.0 (net/core/rtnetlink.c:3536) [ 32.440147][ T376] rtnetlink_rcv_msg (net/core/rtnetlink.c:6958) [ 32.440348][ T376] ? rtnl_port_fill (net/core/rtnetlink.c:6861) [ 32.440522][ T376] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 32.440694][ T376] netlink_rcv_skb (net/netlink/af_netlink.c:2550) [ 32.440965][ T376] ? rtnl_port_fill (net/core/rtnetlink.c:6861) [ 32.441133][ T376] ? netlink_ack (net/netlink/af_netlink.c:2527) [ 32.441322][ T376] ? netlink_deliver_tap (./include/linux/rcupdate.h:341 ./include/linux/rcupdate.h:897 net/netlink/af_netlink.c:340) [ 32.441501][ T376] ? 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) [ 32.441772][ T376] netlink_unicast (net/netlink/af_netlink.c:1319 net/netlink/af_netlink.c:1344) [ 32.441950][ T376] ? netlink_attachskb (net/netlink/af_netlink.c:1329) [ 32.442116][ T376] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 32.442300][ T376] netlink_sendmsg (net/netlink/af_netlink.c:1894) [ 32.442581][ T376] ? netlink_unicast (net/netlink/af_netlink.c:1813) [ 32.442756][ T376] ? __import_iovec (lib/iov_iter.c:1346 lib/iov_iter.c:1361) [ 32.442931][ T376] ? netlink_unicast (net/netlink/af_netlink.c:1813) [ 32.443098][ T376] ____sys_sendmsg (net/socket.c:727 net/socket.c:742 net/socket.c:2630) [ 32.443396][ T376] ? get_timestamp.constprop.0 (net/socket.c:2576) [ 32.443613][ T376] ? __copy_msghdr (net/socket.c:2556) [ 32.443785][ T376] ___sys_sendmsg (net/socket.c:2686) [ 32.443953][ T376] ? kasan_record_aux_stack (mm/kasan/generic.c:559) [ 32.444234][ T376] ? __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) [ 32.444464][ T376] ? copy_msghdr_from_user (net/socket.c:2673) [ 32.444632][ T376] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 32.444802][ T376] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 32.445077][ T376] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 32.445263][ T376] ? __virt_addr_valid (./include/linux/rcupdate.h:341 ./include/linux/rcupdate.h:979 ./include/linux/mmzone.h:2197 arch/x86/mm/physaddr.c:65) [ 32.445447][ T376] ? __lock_release (kernel/locking/lockdep.c:5536) [ 32.445622][ T376] __sys_sendmsg (net/socket.c:2716) [ 32.445893][ T376] ? __call_rcu_common.constprop.0 (kernel/rcu/tree.c:3148) [ 32.446105][ T376] ? __sys_sendmsg_sock (net/socket.c:2701) [ 32.446292][ T376] ? rcu_is_watching (./include/linux/context_tracking.h:128 kernel/rcu/tree.c:751) [ 32.446577][ T376] do_syscall_64 (arch/x86/entry/syscall_64.c:63 arch/x86/entry/syscall_64.c:94) [ 32.446747][ T376] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:130) [ 32.446959][ T376] RIP: 0033:0x7f40fcd221d7 [ 32.447141][ T376] 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) [ 32.447870][ T376] RSP: 002b:00007ffc1a92ff18 EFLAGS: 00000246 ORIG_RAX: 000000000000002e [ 32.448250][ T376] RAX: ffffffffffffffda RBX: 00007ffc1a930640 RCX: 00007f40fcd221d7 [ 32.448525][ T376] RDX: 0000000000000000 RSI: 00007ffc1a92ff80 RDI: 0000000000000005 [ 32.448785][ T376] RBP: 0000000000000002 R08: 0000000000000003 R09: 0000000000000078 [ 32.449146][ T376] R10: 00007f40fcc1ef60 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