====================================== | [ 30.527268][ T365] ================================================================== | [ 30.527625][ T365] 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) | [ 30.527902][ T365] Write of size 8 at addr 0000000000000000 by task ip/365 | [ 30.528114][ T365] [ 30.528247][ T365] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 30.528255][ T365] Call Trace: [ 30.528258][ T365] [ 30.528261][ T365] dump_stack_lvl (lib/dump_stack.c:123) [ 30.528273][ T365] ? try_to_grab_pending (./arch/x86/include/asm/bitops.h:136 ./include/asm-generic/bitops/instrumented-atomic.h:72 kernel/workqueue.c:2072) [ 30.528278][ T365] kasan_report (mm/kasan/report.c:597) [ 30.528290][ T365] ? try_to_grab_pending (./arch/x86/include/asm/bitops.h:136 ./include/asm-generic/bitops/instrumented-atomic.h:72 kernel/workqueue.c:2072) [ 30.528298][ T365] kasan_check_range (mm/kasan/generic.c:194 mm/kasan/generic.c:200) [ 30.528303][ T365] try_to_grab_pending (./arch/x86/include/asm/bitops.h:136 ./include/asm-generic/bitops/instrumented-atomic.h:72 kernel/workqueue.c:2072) [ 30.528308][ T365] ? __queue_work (./include/linux/rcupdate.h:341 ./include/linux/rcupdate.h:897 kernel/workqueue.c:2350) [ 30.528315][ T365] __cancel_work (kernel/workqueue.c:2161 kernel/workqueue.c:4364) [ 30.528320][ T365] ? enable_delayed_work (kernel/workqueue.c:4359) [ 30.528327][ T365] ? queue_delayed_work_on (kernel/workqueue.c:2565 (discriminator 1)) [ 30.528332][ T365] ? lockdep_hardirqs_on (kernel/locking/lockdep.c:4472) [ 30.528343][ T365] __cancel_work_sync (kernel/workqueue.c:4383) [ 30.528350][ T365] __dev_close_many (net/core/dev.c:1879 (discriminator 2) net/core/dev.c:1932 (discriminator 2)) [ 30.528359][ T365] ? netdev_notify_peers (net/core/dev.c:1891) [ 30.528366][ T365] ? netif_close_many (net/core/dev.c:1959) [ 30.528375][ T365] netif_close_many (net/core/dev.c:1959) [ 30.528381][ T365] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 30.528389][ T365] ? __dev_close_many (net/core/dev.c:1949) [ 30.528396][ T365] ? netif_close_many_and_unlock (net/core/dev.c:12476) [ 30.528403][ T365] unregister_netdevice_many_notify (net/core/dev.c:12545) [ 30.528410][ T365] ? __virt_addr_valid (./include/linux/rcupdate.h:341 ./include/linux/rcupdate.h:979 ./include/linux/mmzone.h:2197 arch/x86/mm/physaddr.c:65) [ 30.528422][ T365] ? dev_ingress_queue_create (net/core/dev.c:12499) [ 30.528431][ T365] ? __call_rcu_common.constprop.0 (kernel/rcu/tree.c:3148) [ 30.528439][ T365] ? lockdep_hardirqs_on (kernel/locking/lockdep.c:4472) [ 30.528448][ T365] rtnl_dellink (net/core/rtnetlink.c:3530 net/core/rtnetlink.c:3570) [ 30.528455][ T365] ? valid_bridge_getlink_req.constprop.0 (net/core/rtnetlink.c:3536) [ 30.528491][ T365] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 30.528496][ T365] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 30.528502][ T365] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 30.528506][ T365] ? rtnetlink_rcv_msg (./include/linux/rcupdate.h:341 ./include/linux/rcupdate.h:897 net/core/rtnetlink.c:6956) [ 30.528509][ T365] ? __lock_release (kernel/locking/lockdep.c:5536) [ 30.528514][ T365] ? valid_bridge_getlink_req.constprop.0 (net/core/rtnetlink.c:3536) [ 30.528517][ T365] rtnetlink_rcv_msg (net/core/rtnetlink.c:6958) [ 30.528521][ T365] ? rtnl_port_fill (net/core/rtnetlink.c:6861) [ 30.528524][ T365] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 30.528540][ T365] netlink_rcv_skb (net/netlink/af_netlink.c:2550) [ 30.528544][ T365] ? rtnl_port_fill (net/core/rtnetlink.c:6861) [ 30.528547][ T365] ? netlink_ack (net/netlink/af_netlink.c:2527) [ 30.528554][ T365] ? netlink_deliver_tap (./include/linux/rcupdate.h:341 ./include/linux/rcupdate.h:897 net/netlink/af_netlink.c:340) [ 30.528557][ T365] ? 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) [ 30.528562][ T365] netlink_unicast (net/netlink/af_netlink.c:1319 net/netlink/af_netlink.c:1344) [ 30.528566][ T365] ? netlink_attachskb (net/netlink/af_netlink.c:1329) [ 30.528570][ T365] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 30.528576][ T365] netlink_sendmsg (net/netlink/af_netlink.c:1894) [ 30.528581][ T365] ? netlink_unicast (net/netlink/af_netlink.c:1813) [ 30.528584][ T365] ? __import_iovec (lib/iov_iter.c:1346 lib/iov_iter.c:1361) [ 30.528592][ T365] ? netlink_unicast (net/netlink/af_netlink.c:1813) [ 30.528596][ T365] ____sys_sendmsg (net/socket.c:727 net/socket.c:742 net/socket.c:2630) [ 30.528602][ T365] ? get_timestamp.constprop.0 (net/socket.c:2576) [ 30.528605][ T365] ? __copy_msghdr (net/socket.c:2556) [ 30.528612][ T365] ___sys_sendmsg (net/socket.c:2686) [ 30.528615][ T365] ? kasan_record_aux_stack (mm/kasan/generic.c:559) [ 30.528618][ T365] ? __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) [ 30.528622][ T365] ? copy_msghdr_from_user (net/socket.c:2673) [ 30.528627][ T365] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 30.528632][ T365] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 30.528638][ T365] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 30.528641][ T365] ? __virt_addr_valid (./include/linux/rcupdate.h:341 ./include/linux/rcupdate.h:979 ./include/linux/mmzone.h:2197 arch/x86/mm/physaddr.c:65) [ 30.528644][ T365] ? __lock_release (kernel/locking/lockdep.c:5536) [ 30.528651][ T365] __sys_sendmsg (net/socket.c:2716) [ 30.528654][ T365] ? __call_rcu_common.constprop.0 (kernel/rcu/tree.c:3148) [ 30.528657][ T365] ? __sys_sendmsg_sock (net/socket.c:2701) [ 30.528665][ T365] ? rcu_is_watching (./include/linux/context_tracking.h:128 kernel/rcu/tree.c:751) [ 30.528669][ T365] do_syscall_64 (arch/x86/entry/syscall_64.c:63 arch/x86/entry/syscall_64.c:94) [ 30.528675][ T365] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:130) [ 30.528681][ T365] RIP: 0033:0x7f7dc30ce1d7 [ 30.528690][ T365] 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) [ 30.528693][ T365] RSP: 002b:00007fff2987b088 EFLAGS: 00000246 ORIG_RAX: 000000000000002e [ 30.528698][ T365] RAX: ffffffffffffffda RBX: 00007fff2987b7b0 RCX: 00007f7dc30ce1d7 [ 30.528700][ T365] RDX: 0000000000000000 RSI: 00007fff2987b0f0 RDI: 0000000000000005 [ 30.528702][ T365] RBP: 0000000000000002 R08: 0000000000000003 R09: 0000000000000078 [ 30.528703][ T365] R10: 00007f7dc2fcaf60 R11: 0000000000000246 R12: 0000000000000002 [ 30.528705][ T365] R13: 00000000691ccda0 R14: 0000000000499600 R15: 0000000000000000 | [ 30.547033][ T365] #PF: error_code(0x0002) - not-present page | [ 30.547237][ T365] PGD a4a7067 P4D a4a7067 PUD c7b0067 PMD 0 | [ 30.547456][ T365] Oops: Oops: 0002 [#1] SMP KASAN | [ 30.548071][ T365] Tainted: [B]=BAD_PAGE [ 30.548199][ T365] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 30.548536][ T365] 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) [ 30.548759][ T365] 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 [ 30.549524][ T365] RSP: 0018:ffffc900008d6f18 EFLAGS: 00010046 [ 30.549736][ T365] RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffffffff8c04090a [ 30.549984][ T365] RDX: fffffbfff204f2cd RSI: 0000000000000008 RDI: ffffffff90279660 [ 30.550346][ T365] RBP: ffffc900008d6f80 R08: 0000000000000001 R09: fffffbfff204f2cc [ 30.550602][ T365] R10: ffffffff90279667 R11: ffffc900008d6a00 R12: 0000000000000000 [ 30.550950][ T365] R13: 0000000000000286 R14: ffff88800a9f4000 R15: dffffc0000000000 [ 30.551198][ T365] FS: 00007f7dc2f00800(0000) GS:ffff8880a60f2000(0000) knlGS:0000000000000000 [ 30.551497][ T365] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 30.551817][ T365] CR2: 0000000000000000 CR3: 000000000243e003 CR4: 0000000000772ef0 [ 30.552066][ T365] PKRU: 55555554 [ 30.552192][ T365] Call Trace: [ 30.552325][ T365] [ 30.552515][ T365] ? __queue_work (./include/linux/rcupdate.h:341 ./include/linux/rcupdate.h:897 kernel/workqueue.c:2350) [ 30.552688][ T365] __cancel_work (kernel/workqueue.c:2161 kernel/workqueue.c:4364) [ 30.552858][ T365] ? enable_delayed_work (kernel/workqueue.c:4359) [ 30.553023][ T365] ? queue_delayed_work_on (kernel/workqueue.c:2565 (discriminator 1)) [ 30.553292][ T365] ? lockdep_hardirqs_on (kernel/locking/lockdep.c:4472) [ 30.553509][ T365] __cancel_work_sync (kernel/workqueue.c:4383) [ 30.553675][ T365] __dev_close_many (net/core/dev.c:1879 (discriminator 2) net/core/dev.c:1932 (discriminator 2)) [ 30.553843][ T365] ? netdev_notify_peers (net/core/dev.c:1891) [ 30.554121][ T365] ? netif_close_many (net/core/dev.c:1959) [ 30.554330][ T365] netif_close_many (net/core/dev.c:1959) [ 30.554496][ T365] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 30.554670][ T365] ? __dev_close_many (net/core/dev.c:1949) [ 30.554938][ T365] ? netif_close_many_and_unlock (net/core/dev.c:12476) [ 30.555147][ T365] unregister_netdevice_many_notify (net/core/dev.c:12545) [ 30.555361][ T365] ? __virt_addr_valid (./include/linux/rcupdate.h:341 ./include/linux/rcupdate.h:979 ./include/linux/mmzone.h:2197 arch/x86/mm/physaddr.c:65) [ 30.555533][ T365] ? dev_ingress_queue_create (net/core/dev.c:12499) [ 30.555820][ T365] ? __call_rcu_common.constprop.0 (kernel/rcu/tree.c:3148) [ 30.556063][ T365] ? lockdep_hardirqs_on (kernel/locking/lockdep.c:4472) [ 30.556285][ T365] rtnl_dellink (net/core/rtnetlink.c:3530 net/core/rtnetlink.c:3570) [ 30.556522][ T365] ? valid_bridge_getlink_req.constprop.0 (net/core/rtnetlink.c:3536) [ 30.556822][ T365] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 30.556995][ T365] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 30.557220][ T365] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 30.557575][ T365] ? rtnetlink_rcv_msg (./include/linux/rcupdate.h:341 ./include/linux/rcupdate.h:897 net/core/rtnetlink.c:6956) [ 30.557788][ T365] ? __lock_release (kernel/locking/lockdep.c:5536) [ 30.557999][ T365] ? valid_bridge_getlink_req.constprop.0 (net/core/rtnetlink.c:3536) [ 30.558208][ T365] rtnetlink_rcv_msg (net/core/rtnetlink.c:6958) [ 30.558493][ T365] ? rtnl_port_fill (net/core/rtnetlink.c:6861) [ 30.558672][ T365] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 30.558885][ T365] netlink_rcv_skb (net/netlink/af_netlink.c:2550) [ 30.559096][ T365] ? rtnl_port_fill (net/core/rtnetlink.c:6861) [ 30.559437][ T365] ? netlink_ack (net/netlink/af_netlink.c:2527) [ 30.559670][ T365] ? netlink_deliver_tap (./include/linux/rcupdate.h:341 ./include/linux/rcupdate.h:897 net/netlink/af_netlink.c:340) [ 30.559840][ T365] ? 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) [ 30.560057][ T365] netlink_unicast (net/netlink/af_netlink.c:1319 net/netlink/af_netlink.c:1344) [ 30.560331][ T365] ? netlink_attachskb (net/netlink/af_netlink.c:1329) [ 30.560497][ T365] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 30.560667][ T365] netlink_sendmsg (net/netlink/af_netlink.c:1894) [ 30.560833][ T365] ? netlink_unicast (net/netlink/af_netlink.c:1813) [ 30.561104][ T365] ? __import_iovec (lib/iov_iter.c:1346 lib/iov_iter.c:1361) [ 30.561278][ T365] ? netlink_unicast (net/netlink/af_netlink.c:1813) [ 30.561472][ T365] ____sys_sendmsg (net/socket.c:727 net/socket.c:742 net/socket.c:2630) [ 30.561641][ T365] ? get_timestamp.constprop.0 (net/socket.c:2576) [ 30.561949][ T365] ? __copy_msghdr (net/socket.c:2556) [ 30.562121][ T365] ___sys_sendmsg (net/socket.c:2686) [ 30.562373][ T365] ? kasan_record_aux_stack (mm/kasan/generic.c:559) [ 30.562543][ T365] ? __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) [ 30.562859][ T365] ? copy_msghdr_from_user (net/socket.c:2673) [ 30.563030][ T365] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 30.563201][ T365] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 30.563474][ T365] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 30.563644][ T365] ? __virt_addr_valid (./include/linux/rcupdate.h:341 ./include/linux/rcupdate.h:979 ./include/linux/mmzone.h:2197 arch/x86/mm/physaddr.c:65) [ 30.563886][ T365] ? __lock_release (kernel/locking/lockdep.c:5536) [ 30.564061][ T365] __sys_sendmsg (net/socket.c:2716) [ 30.564391][ T365] ? __call_rcu_common.constprop.0 (kernel/rcu/tree.c:3148) [ 30.564610][ T365] ? __sys_sendmsg_sock (net/socket.c:2701) [ 30.564799][ T365] ? rcu_is_watching (./include/linux/context_tracking.h:128 kernel/rcu/tree.c:751) [ 30.565031][ T365] do_syscall_64 (arch/x86/entry/syscall_64.c:63 arch/x86/entry/syscall_64.c:94) [ 30.565381][ T365] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:130) [ 30.565663][ T365] RIP: 0033:0x7f7dc30ce1d7 [ 30.565902][ T365] 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) [ 30.566681][ T365] RSP: 002b:00007fff2987b088 EFLAGS: 00000246 ORIG_RAX: 000000000000002e [ 30.567006][ T365] RAX: ffffffffffffffda RBX: 00007fff2987b7b0 RCX: 00007f7dc30ce1d7 [ 30.567386][ T365] RDX: 0000000000000000 RSI: 00007fff2987b0f0 RDI: 0000000000000005 [ 30.567642][ T365] RBP: 0000000000000002 R08: 0000000000000003 R09: 0000000000000078 [ 30.568002][ T365] R10: 00007f7dc2fcaf60 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