INFO: trying to register non-static key.
The code is fine but needs lockdep annotation, or maybe
you didn't initialize this object before use?
turning off the locking correctness validator.
CPU: 1 PID: 1177 Comm: udevd Not tainted 6.0.0-syzkaller-09039-ga6afa4199d3d #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/22/2022
Call Trace:
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0xcd/0x134 lib/dump_stack.c:106
assign_lock_key kernel/locking/lockdep.c:979 [inline]
register_lock_class+0xf1b/0x1120 kernel/locking/lockdep.c:1292
__lock_acquire+0x109/0x56d0 kernel/locking/lockdep.c:4932
lock_acquire kernel/locking/lockdep.c:5666 [inline]
lock_acquire+0x1ab/0x570 kernel/locking/lockdep.c:5631
__raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline]
_raw_spin_lock_irqsave+0x39/0x50 kernel/locking/spinlock.c:162
skb_queue_tail+0x21/0x140 net/core/skbuff.c:3503
ath9k_htc_txep+0x287/0x400 drivers/net/wireless/ath/ath9k/htc_drv_txrx.c:712
ath9k_htc_txcompletion_cb+0x1cd/0x2e0 drivers/net/wireless/ath/ath9k/htc_hst.c:353
hif_usb_regout_cb+0x115/0x1c0 drivers/net/wireless/ath/ath9k/hif_usb.c:90
__usb_hcd_giveback_urb+0x2b0/0x5c0 drivers/usb/core/hcd.c:1671
usb_hcd_giveback_urb+0x380/0x430 drivers/usb/core/hcd.c:1754
dummy_timer+0x11ff/0x32c0 drivers/usb/gadget/udc/dummy_hcd.c:1988
call_timer_fn+0x1a0/0x6b0 kernel/time/timer.c:1474
expire_timers kernel/time/timer.c:1519 [inline]
__run_timers.part.0+0x674/0xa80 kernel/time/timer.c:1790
__run_timers kernel/time/timer.c:1768 [inline]
run_timer_softirq+0xb3/0x1d0 kernel/time/timer.c:1803
__do_softirq+0x1bd/0x9ab kernel/softirq.c:571
invoke_softirq kernel/softirq.c:445 [inline]
__irq_exit_rcu+0x113/0x170 kernel/softirq.c:650
irq_exit_rcu+0x5/0x20 kernel/softirq.c:662
sysvec_apic_timer_interrupt+0x8e/0xc0 arch/x86/kernel/apic/apic.c:1107
asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:649
RIP: 0010:__orc_find+0x86/0xf0 arch/x86/kernel/unwind_orc.c:52
Code: d1 f8 48 8d 5c 85 00 48 89 d8 48 c1 e8 03 42 0f b6 14 38 48 89 d8 83 e0 07 83 c0 03 38 d0 7c 04 84 d2 75 48 48 63 03 48 01 d8 <48> 39 c1 73 b0 4c 8d 63 fc 49 39 ec 73 b3 4d 29 ee 49 c1 fe 02 4b
RSP: 0018:ffffc90000527570 EFLAGS: 00000297
RAX: ffffffff85f65e44 RBX: ffffffff892a5278 RCX: ffffffff85f65e74
RDX: 0000000000000000 RSI: ffffffff89908562 RDI: ffffffff892a5260
RBP: ffffffff892a5260 R08: ffffffff879260e0 R09: ffffc9000052765c
R10: fffff520000a4ed0 R11: 0000000000052040 R12: ffffffff892a5290
R13: ffffffff892a5260 R14: ffffffff892a5260 R15: dffffc0000000000
orc_find arch/x86/kernel/unwind_orc.c:178 [inline]
unwind_next_frame+0x2a3/0x1cc0 arch/x86/kernel/unwind_orc.c:448
arch_stack_walk+0x7d/0xe0 arch/x86/kernel/stacktrace.c:25
stack_trace_save+0x8c/0xc0 kernel/stacktrace.c:122
kasan_save_stack+0x1e/0x40 mm/kasan/common.c:38
kasan_set_track+0x21/0x30 mm/kasan/common.c:45
kasan_set_free_info+0x20/0x30 mm/kasan/generic.c:370
____kasan_slab_free mm/kasan/common.c:367 [inline]
____kasan_slab_free+0x14a/0x1b0 mm/kasan/common.c:329
kasan_slab_free include/linux/kasan.h:200 [inline]
slab_free_hook mm/slub.c:1759 [inline]
slab_free_freelist_hook mm/slub.c:1785 [inline]
slab_free mm/slub.c:3539 [inline]
kfree+0xca/0x5c0 mm/slub.c:4567
tomoyo_realpath_from_path+0x18c/0x600 security/tomoyo/realpath.c:286
tomoyo_get_realpath security/tomoyo/file.c:151 [inline]
tomoyo_path_perm+0x21b/0x400 security/tomoyo/file.c:822
security_inode_getattr+0xcf/0x140 security/security.c:1345
vfs_getattr fs/stat.c:158 [inline]
vfs_statx+0x16e/0x430 fs/stat.c:233
vfs_fstatat+0x8c/0xb0 fs/stat.c:267
__do_sys_newfstatat+0x94/0x120 fs/stat.c:437
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7febc624a1da
Code: 48 89 f2 b9 00 01 00 00 48 89 fe bf 9c ff ff ff e9 0b 00 00 00 66 2e 0f 1f 84 00 00 00 00 00 90 41 89 ca b8 06 01 00 00 0f 05 <3d> 00 f0 ff ff 77 07 31 c0 c3 0f 1f 40 00 48 8b 15 69 fc 0c 00 f7
RSP: 002b:00007ffd8a2d23c8 EFLAGS: 00000206 ORIG_RAX: 0000000000000106
RAX: ffffffffffffffda RBX: 0000557d6d81ac70 RCX: 00007febc624a1da
RDX: 00007ffd8a2d23d0 RSI: 00007febc62e075a RDI: 000000000000000c
RBP: 000000000000000c R08: 0000000000090800 R09: 0000557d6d7db210
R10: 0000000000001000 R11: 0000000000000206 R12: 00007ffd8a2d23d0
R13: 0000000000000100 R14: 0000000000000000 R15: 0000000000000000
general protection fault, probably for non-canonical address 0xdffffc0000000000: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007]
CPU: 1 PID: 1177 Comm: udevd Not tainted 6.0.0-syzkaller-09039-ga6afa4199d3d #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/22/2022
RIP: 0010:__skb_insert include/linux/skbuff.h:2165 [inline]
RIP: 0010:__skb_queue_before include/linux/skbuff.h:2271 [inline]
RIP: 0010:__skb_queue_tail include/linux/skbuff.h:2304 [inline]
RIP: 0010:skb_queue_tail+0x9e/0x140 net/core/skbuff.c:3504
Code: 48 89 fa 48 c1 ea 03 80 3c 02 00 0f 85 80 00 00 00 4c 89 e2 4c 89 65 08 48 b8 00 00 00 00 00 fc ff df 48 c1 ea 03 48 89 6b 08 <80> 3c 02 00 75 4f 48 8d 7b 10 49 89 2c 24 48 b8 00 00 00 00 00 fc
RSP: 0018:ffffc900001889e0 EFLAGS: 00010046
RAX: dffffc0000000000 RBX: ffff888113c23890 RCX: ffffffff812a9b40
RDX: 0000000000000000 RSI: 0000000000000016 RDI: ffff88810f99b288
RBP: ffff88810f99b280 R08: 0000000000000001 R09: 0000000000000003
R10: fffff5200003112a R11: 3e4b5341542f3c20 R12: 0000000000000000
R13: ffff888113c238a8 R14: 000000010003717f R15: ffffffff83308020
FS: 00007febc60f3840(0000) GS:ffff8881f6900000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffcc67a5b98 CR3: 000000010f16c000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
ath9k_htc_txep+0x287/0x400 drivers/net/wireless/ath/ath9k/htc_drv_txrx.c:712
ath9k_htc_txcompletion_cb+0x1cd/0x2e0 drivers/net/wireless/ath/ath9k/htc_hst.c:353
hif_usb_regout_cb+0x115/0x1c0 drivers/net/wireless/ath/ath9k/hif_usb.c:90
__usb_hcd_giveback_urb+0x2b0/0x5c0 drivers/usb/core/hcd.c:1671
usb_hcd_giveback_urb+0x380/0x430 drivers/usb/core/hcd.c:1754
dummy_timer+0x11ff/0x32c0 drivers/usb/gadget/udc/dummy_hcd.c:1988
call_timer_fn+0x1a0/0x6b0 kernel/time/timer.c:1474
expire_timers kernel/time/timer.c:1519 [inline]
__run_timers.part.0+0x674/0xa80 kernel/time/timer.c:1790
__run_timers kernel/time/timer.c:1768 [inline]
run_timer_softirq+0xb3/0x1d0 kernel/time/timer.c:1803
__do_softirq+0x1bd/0x9ab kernel/softirq.c:571
invoke_softirq kernel/softirq.c:445 [inline]
__irq_exit_rcu+0x113/0x170 kernel/softirq.c:650
irq_exit_rcu+0x5/0x20 kernel/softirq.c:662
sysvec_apic_timer_interrupt+0x8e/0xc0 arch/x86/kernel/apic/apic.c:1107
asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:649
RIP: 0010:__orc_find+0x86/0xf0 arch/x86/kernel/unwind_orc.c:52
Code: d1 f8 48 8d 5c 85 00 48 89 d8 48 c1 e8 03 42 0f b6 14 38 48 89 d8 83 e0 07 83 c0 03 38 d0 7c 04 84 d2 75 48 48 63 03 48 01 d8 <48> 39 c1 73 b0 4c 8d 63 fc 49 39 ec 73 b3 4d 29 ee 49 c1 fe 02 4b
RSP: 0018:ffffc90000527570 EFLAGS: 00000297
RAX: ffffffff85f65e44 RBX: ffffffff892a5278 RCX: ffffffff85f65e74
RDX: 0000000000000000 RSI: ffffffff89908562 RDI: ffffffff892a5260
RBP: ffffffff892a5260 R08: ffffffff879260e0 R09: ffffc9000052765c
R10: fffff520000a4ed0 R11: 0000000000052040 R12: ffffffff892a5290
R13: ffffffff892a5260 R14: ffffffff892a5260 R15: dffffc0000000000
orc_find arch/x86/kernel/unwind_orc.c:178 [inline]
unwind_next_frame+0x2a3/0x1cc0 arch/x86/kernel/unwind_orc.c:448
arch_stack_walk+0x7d/0xe0 arch/x86/kernel/stacktrace.c:25
stack_trace_save+0x8c/0xc0 kernel/stacktrace.c:122
kasan_save_stack+0x1e/0x40 mm/kasan/common.c:38
kasan_set_track+0x21/0x30 mm/kasan/common.c:45
kasan_set_free_info+0x20/0x30 mm/kasan/generic.c:370
____kasan_slab_free mm/kasan/common.c:367 [inline]
____kasan_slab_free+0x14a/0x1b0 mm/kasan/common.c:329
kasan_slab_free include/linux/kasan.h:200 [inline]
slab_free_hook mm/slub.c:1759 [inline]
slab_free_freelist_hook mm/slub.c:1785 [inline]
slab_free mm/slub.c:3539 [inline]
kfree+0xca/0x5c0 mm/slub.c:4567
tomoyo_realpath_from_path+0x18c/0x600 security/tomoyo/realpath.c:286
tomoyo_get_realpath security/tomoyo/file.c:151 [inline]
tomoyo_path_perm+0x21b/0x400 security/tomoyo/file.c:822
security_inode_getattr+0xcf/0x140 security/security.c:1345
vfs_getattr fs/stat.c:158 [inline]
vfs_statx+0x16e/0x430 fs/stat.c:233
vfs_fstatat+0x8c/0xb0 fs/stat.c:267
__do_sys_newfstatat+0x94/0x120 fs/stat.c:437
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7febc624a1da
Code: 48 89 f2 b9 00 01 00 00 48 89 fe bf 9c ff ff ff e9 0b 00 00 00 66 2e 0f 1f 84 00 00 00 00 00 90 41 89 ca b8 06 01 00 00 0f 05 <3d> 00 f0 ff ff 77 07 31 c0 c3 0f 1f 40 00 48 8b 15 69 fc 0c 00 f7
RSP: 002b:00007ffd8a2d23c8 EFLAGS: 00000206 ORIG_RAX: 0000000000000106
RAX: ffffffffffffffda RBX: 0000557d6d81ac70 RCX: 00007febc624a1da
RDX: 00007ffd8a2d23d0 RSI: 00007febc62e075a RDI: 000000000000000c
RBP: 000000000000000c R08: 0000000000090800 R09: 0000557d6d7db210
R10: 0000000000001000 R11: 0000000000000206 R12: 00007ffd8a2d23d0
R13: 0000000000000100 R14: 0000000000000000 R15: 0000000000000000
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:__skb_insert include/linux/skbuff.h:2165 [inline]
RIP: 0010:__skb_queue_before include/linux/skbuff.h:2271 [inline]
RIP: 0010:__skb_queue_tail include/linux/skbuff.h:2304 [inline]
RIP: 0010:skb_queue_tail+0x9e/0x140 net/core/skbuff.c:3504
Code: 48 89 fa 48 c1 ea 03 80 3c 02 00 0f 85 80 00 00 00 4c 89 e2 4c 89 65 08 48 b8 00 00 00 00 00 fc ff df 48 c1 ea 03 48 89 6b 08 <80> 3c 02 00 75 4f 48 8d 7b 10 49 89 2c 24 48 b8 00 00 00 00 00 fc
RSP: 0018:ffffc900001889e0 EFLAGS: 00010046
RAX: dffffc0000000000 RBX: ffff888113c23890 RCX: ffffffff812a9b40
RDX: 0000000000000000 RSI: 0000000000000016 RDI: ffff88810f99b288
RBP: ffff88810f99b280 R08: 0000000000000001 R09: 0000000000000003
R10: fffff5200003112a R11: 3e4b5341542f3c20 R12: 0000000000000000
R13: ffff888113c238a8 R14: 000000010003717f R15: ffffffff83308020
FS: 00007febc60f3840(0000) GS:ffff8881f6900000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffcc67a5b98 CR3: 000000010f16c000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
0: d1 f8 sar %eax
2: 48 8d 5c 85 00 lea 0x0(%rbp,%rax,4),%rbx
7: 48 89 d8 mov %rbx,%rax
a: 48 c1 e8 03 shr $0x3,%rax
e: 42 0f b6 14 38 movzbl (%rax,%r15,1),%edx
13: 48 89 d8 mov %rbx,%rax
16: 83 e0 07 and $0x7,%eax
19: 83 c0 03 add $0x3,%eax
1c: 38 d0 cmp %dl,%al
1e: 7c 04 jl 0x24
20: 84 d2 test %dl,%dl
22: 75 48 jne 0x6c
24: 48 63 03 movslq (%rbx),%rax
27: 48 01 d8 add %rbx,%rax
* 2a: 48 39 c1 cmp %rax,%rcx <-- trapping instruction
2d: 73 b0 jae 0xffffffdf
2f: 4c 8d 63 fc lea -0x4(%rbx),%r12
33: 49 39 ec cmp %rbp,%r12
36: 73 b3 jae 0xffffffeb
38: 4d 29 ee sub %r13,%r14
3b: 49 c1 fe 02 sar $0x2,%r14
3f: 4b rex.WXB