Oops: general protection fault, probably for non-canonical address 0xdffffc0000000040: 0000 [#1] PREEMPT SMP KASAN PTI
KASAN: null-ptr-deref in range [0x0000000000000200-0x0000000000000207]
CPU: 1 UID: 0 PID: 15742 Comm: syz.3.1428 Not tainted 6.11.0-rc7-syzkaller-00152-g68d4209158f4 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024
RIP: 0010:strcmp+0x5b/0xb0 lib/string.c:266
Code: fa 48 c1 e8 03 83 e2 07 42 0f b6 04 28 38 d0 7f 04 84 c0 75 58 0f b6 6b ff 4c 8d 66 01 48 89 f0 48 89 f2 48 c1 e8 03 83 e2 07 <42> 0f b6 04 28 38 d0 7f 04 84 c0 75 2c 41 3a 6c 24 ff 74 ae 19 c0
RSP: 0018:ffffc900001b8850 EFLAGS: 00010046
RAX: 0000000000000040 RBX: ffffffff8746a881 RCX: ffffffff8faab338
RDX: 0000000000000000 RSI: 0000000000000200 RDI: ffffffff8746a880
RBP: 0000000000000066 R08: 0000000000000001 R09: dffffc0000000000
R10: ffffffff8faab348 R11: ffffffff8faab338 R12: 0000000000000201
R13: dffffc0000000000 R14: 000000000000042c R15: ffffffff9344c940
FS: 00007fb5544266c0(0000) GS:ffff8881f5900000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f572a781060 CR3: 000000011b130000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<IRQ>
count_matching_names kernel/locking/lockdep.c:872 [inline]
register_lock_class+0x63b/0x1230 kernel/locking/lockdep.c:1331
__lock_acquire+0x135/0x3cb0 kernel/locking/lockdep.c:5019
lock_acquire kernel/locking/lockdep.c:5759 [inline]
lock_acquire+0x1b1/0x560 kernel/locking/lockdep.c:5724
__raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline]
_raw_spin_lock_irqsave+0x3a/0x60 kernel/locking/spinlock.c:162
complete_with_flags kernel/sched/completion.c:20 [inline]
complete+0x1d/0x200 kernel/sched/completion.c:47
transfer drivers/usb/gadget/udc/dummy_hcd.c:1518 [inline]
dummy_timer+0x1aaf/0x38d0 drivers/usb/gadget/udc/dummy_hcd.c:1972
__run_hrtimer kernel/time/hrtimer.c:1689 [inline]
__hrtimer_run_queues+0x20c/0xcc0 kernel/time/hrtimer.c:1753
hrtimer_run_softirq+0x17d/0x350 kernel/time/hrtimer.c:1770
handle_softirqs+0x209/0x8e0 kernel/softirq.c:554
__do_softirq kernel/softirq.c:588 [inline]
invoke_softirq kernel/softirq.c:428 [inline]
__irq_exit_rcu kernel/softirq.c:637 [inline]
irq_exit_rcu+0xac/0x110 kernel/softirq.c:649
instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1043 [inline]
sysvec_apic_timer_interrupt+0x90/0xb0 arch/x86/kernel/apic/apic.c:1043
</IRQ>
<TASK>
asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702
RIP: 0010:phys_addr_valid arch/x86/mm/physaddr.h:7 [inline]
RIP: 0010:__phys_addr+0xb1/0x150 arch/x86/mm/physaddr.c:28
Code: 2d 65 b0 3c 09 bf 3f 00 00 00 89 ee e8 e8 02 3e 00 40 80 fd 3f 0f 87 19 6d ca 05 e8 f9 00 3e 00 89 e9 48 89 d8 31 ff 48 d3 e8 <48> 89 c5 48 89 c6 e8 54 03 3e 00 48 85 ed 75 11 e8 da 00 3e 00 48
RSP: 0018:ffffc90002d9fd50 EFLAGS: 00000246
RAX: 0000000000000000 RBX: 0000000100f80e00 RCX: 000000000000002e
RDX: ffff888131978000 RSI: ffffffff81169297 RDI: 0000000000000000
RBP: 000000000000002e R08: 0000000000000001 R09: 000000000000003f
R10: 000000000000002e R11: 0000000000000000 R12: 0000000000000000
R13: ffffffff84b7436e R14: ffff888100041780 R15: 0000000000000000
virt_to_head_page include/linux/mm.h:1287 [inline]
virt_to_slab mm/slab.h:206 [inline]
poison_slab_object+0x1a/0x160 mm/kasan/common.c:222
__kasan_slab_free+0x14/0x30 mm/kasan/common.c:256
kasan_slab_free include/linux/kasan.h:184 [inline]
slab_free_hook mm/slub.c:2256 [inline]
slab_free mm/slub.c:4477 [inline]
kfree+0x10b/0x380 mm/slub.c:4598
raw_ioctl_ep_write drivers/usb/gadget/legacy/raw_gadget.c:1153 [inline]
raw_ioctl+0xa5e/0x2b90 drivers/usb/gadget/legacy/raw_gadget.c:1324
vfs_ioctl fs/ioctl.c:51 [inline]
__do_sys_ioctl fs/ioctl.c:907 [inline]
__se_sys_ioctl fs/ioctl.c:893 [inline]
__x64_sys_ioctl+0x193/0x220 fs/ioctl.c:893
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fb5557cdafb
Code: 00 48 89 44 24 18 31 c0 48 8d 44 24 60 c7 04 24 10 00 00 00 48 89 44 24 08 48 8d 44 24 20 48 89 44 24 10 b8 10 00 00 00 0f 05 <89> c2 3d 00 f0 ff ff 77 1c 48 8b 44 24 18 64 48 2b 04 25 28 00 00
RSP: 002b:00007fb554424f70 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 0000000000000012 RCX: 00007fb5557cdafb
RDX: 00007fb554424ff0 RSI: 0000000040085507 RDI: 0000000000000007
RBP: 0000000000000007 R08: 00007fb555ab0320 R09: 0000000000000000
R10: 0000000000000007 R11: 0000000000000246 R12: 0000000020000100
R13: 000000000000000c R14: 00007fb555986058 R15: 00007ffce81b5c78
</TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:strcmp+0x5b/0xb0 lib/string.c:266
Code: fa 48 c1 e8 03 83 e2 07 42 0f b6 04 28 38 d0 7f 04 84 c0 75 58 0f b6 6b ff 4c 8d 66 01 48 89 f0 48 89 f2 48 c1 e8 03 83 e2 07 <42> 0f b6 04 28 38 d0 7f 04 84 c0 75 2c 41 3a 6c 24 ff 74 ae 19 c0
RSP: 0018:ffffc900001b8850 EFLAGS: 00010046
RAX: 0000000000000040 RBX: ffffffff8746a881 RCX: ffffffff8faab338
RDX: 0000000000000000 RSI: 0000000000000200 RDI: ffffffff8746a880
RBP: 0000000000000066 R08: 0000000000000001 R09: dffffc0000000000
R10: ffffffff8faab348 R11: ffffffff8faab338 R12: 0000000000000201
R13: dffffc0000000000 R14: 000000000000042c R15: ffffffff9344c940
FS: 00007fb5544266c0(0000) GS:ffff8881f5900000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f572a781060 CR3: 000000011b130000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
0: fa cli
1: 48 c1 e8 03 shr $0x3,%rax
5: 83 e2 07 and $0x7,%edx
8: 42 0f b6 04 28 movzbl (%rax,%r13,1),%eax
d: 38 d0 cmp %dl,%al
f: 7f 04 jg 0x15
11: 84 c0 test %al,%al
13: 75 58 jne 0x6d
15: 0f b6 6b ff movzbl -0x1(%rbx),%ebp
19: 4c 8d 66 01 lea 0x1(%rsi),%r12
1d: 48 89 f0 mov %rsi,%rax
20: 48 89 f2 mov %rsi,%rdx
23: 48 c1 e8 03 shr $0x3,%rax
27: 83 e2 07 and $0x7,%edx
* 2a: 42 0f b6 04 28 movzbl (%rax,%r13,1),%eax <-- trapping instruction
2f: 38 d0 cmp %dl,%al
31: 7f 04 jg 0x37
33: 84 c0 test %al,%al
35: 75 2c jne 0x63
37: 41 3a 6c 24 ff cmp -0x1(%r12),%bpl
3c: 74 ae je 0xffffffec
3e: 19 c0 sbb %eax,%eax