Oops: general protection fault, probably for non-canonical address 0xdffffc0000000060: 0000 [#1] SMP KASAN PTI KASAN: null-ptr-deref in range [0x0000000000000300-0x0000000000000307] CPU: 0 UID: 0 PID: 11512 Comm: syz.4.1675 Not tainted 6.16.0-rc7-syzkaller-g51d4b0a44c82 #0 PREEMPT(voluntary) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2025 RIP: 0010:strcmp+0x5b/0xb0 lib/string.c:284 Code: fa 48 c1 e8 03 83 e2 07 42 0f b6 04 28 38 d0 7f 04 84 c0 75 58 48 89 f0 48 89 f2 0f b6 6b ff 4c 8d 66 01 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:ffffc900000079b8 EFLAGS: 00010046 RAX: 0000000000000060 RBX: ffffffff87691841 RCX: 0000000000000001 RDX: 0000000000000000 RSI: 0000000000000300 RDI: ffffffff87691840 RBP: 0000000000000026 R08: 0000000000000001 R09: 0000000000000001 R10: ffff888138d4600b R11: 0000000000000001 R12: 0000000000000301 R13: dffffc0000000000 R14: 0000000000000000 R15: ffffffff8e773838 FS: 00007fe75e5df6c0(0000) GS:ffff888269160000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fe75e5bcff0 CR3: 0000000135074000 CR4: 00000000003506f0 Call Trace: count_matching_names kernel/locking/lockdep.c:881 [inline] register_lock_class+0x26d/0x4c0 kernel/locking/lockdep.c:1347 __lock_acquire+0xa6/0x1c90 kernel/locking/lockdep.c:5115 lock_acquire kernel/locking/lockdep.c:5871 [inline] lock_acquire+0x179/0x350 kernel/locking/lockdep.c:5828 __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:1523 [inline] dummy_timer+0x1c59/0x3a30 drivers/usb/gadget/udc/dummy_hcd.c:1979 __run_hrtimer kernel/time/hrtimer.c:1761 [inline] __hrtimer_run_queues+0x1ff/0xad0 kernel/time/hrtimer.c:1825 hrtimer_run_softirq+0x17d/0x350 kernel/time/hrtimer.c:1842 handle_softirqs+0x208/0x8d0 kernel/softirq.c:579 __do_softirq kernel/softirq.c:613 [inline] invoke_softirq kernel/softirq.c:453 [inline] __irq_exit_rcu+0xfa/0x160 kernel/softirq.c:680 irq_exit_rcu+0x9/0x30 kernel/softirq.c:696 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1050 [inline] sysvec_apic_timer_interrupt+0x90/0xb0 arch/x86/kernel/apic/apic.c:1050 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702 RIP: 0010:virt_to_folio include/linux/mm.h:1178 [inline] RIP: 0010:kfree+0x79/0x470 mm/slub.c:4834 Code: 82 d7 01 00 00 48 83 fb 10 0f 86 ed 00 00 00 48 89 df e8 8a 9f 69 ff 48 c1 e8 0c 48 c1 e0 06 48 03 05 2b ed e7 06 48 8b 50 08 <49> 89 c6 f6 c2 01 0f 85 5d 02 00 00 0f 1f 44 00 00 41 80 7e 33 f5 RSP: 0018:ffffc90004eb7da0 EFLAGS: 00000282 RAX: ffffea00043bd980 RBX: ffff88810ef668a0 RCX: ffffffff813c557e RDX: ffff888100041640 RSI: ffffffff813c5588 RDI: 0000000000000007 RBP: ffffc90004eb7df8 R08: 0000000000000007 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000001 R12: ffffc90004eb7e78 R13: ffff88811b694700 R14: 00007fe75e5ddff0 R15: 0000000000000003 raw_ioctl_ep_write drivers/usb/gadget/legacy/raw_gadget.c:1153 [inline] raw_ioctl+0xab6/0x2c30 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+0x18e/0x210 fs/ioctl.c:893 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0x4b0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fe75ff7e76b 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:00007fe75e5ddf70 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 0000000000000010 RCX: 00007fe75ff7e76b RDX: 00007fe75e5ddff0 RSI: 0000000040085507 RDI: 0000000000000003 RBP: 0000000000000003 R08: 00007fe7602d0320 R09: 0000000000000000 R10: 0000000000000003 R11: 0000000000000246 R12: 0000200000002dc0 R13: 000000000000000c R14: 00007fe7601a5fa0 R15: 00007fffc9814768 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:strcmp+0x5b/0xb0 lib/string.c:284 Code: fa 48 c1 e8 03 83 e2 07 42 0f b6 04 28 38 d0 7f 04 84 c0 75 58 48 89 f0 48 89 f2 0f b6 6b ff 4c 8d 66 01 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:ffffc900000079b8 EFLAGS: 00010046 RAX: 0000000000000060 RBX: ffffffff87691841 RCX: 0000000000000001 RDX: 0000000000000000 RSI: 0000000000000300 RDI: ffffffff87691840 RBP: 0000000000000026 R08: 0000000000000001 R09: 0000000000000001 R10: ffff888138d4600b R11: 0000000000000001 R12: 0000000000000301 R13: dffffc0000000000 R14: 0000000000000000 R15: ffffffff8e773838 FS: 00007fe75e5df6c0(0000) GS:ffff888269160000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fe75e5bcff0 CR3: 0000000135074000 CR4: 00000000003506f0 ---------------- 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: 48 89 f0 mov %rsi,%rax 18: 48 89 f2 mov %rsi,%rdx 1b: 0f b6 6b ff movzbl -0x1(%rbx),%ebp 1f: 4c 8d 66 01 lea 0x1(%rsi),%r12 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