gadgetfs: bound to dummy_udc driver general protection fault, probably for non-canonical address 0xdffffc0000000000: 0000 [#1] PREEMPT SMP KASAN KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007] CPU: 0 PID: 7608 Comm: syz.4.604 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/16/2026 RIP: 0010:dummy_udc_start+0xcd/0x1e0 drivers/usb/gadget/udc/dummy_hcd.c:1003 Code: 41 83 ff 03 74 18 41 83 ff 05 0f 85 8e 00 00 00 e8 28 2d cd fa eb 0c e8 21 2d cd fa eb 05 e8 1a 2d cd fa 4c 89 f0 48 c1 e8 03 <42> 80 3c 20 00 74 08 4c 89 f7 e8 84 aa 25 fb 4d 8b 36 4c 89 f7 e8 RSP: 0018:ffffc900042ff8b0 EFLAGS: 00010246 RAX: 0000000000000000 RBX: ffffffff8de5b020 RCX: 0000000000080000 RDX: ffffc9000bb79000 RSI: 000000000002965f RDI: 0000000000029660 RBP: ffff8881447a2000 R08: ffff8880229a3c00 R09: 0000000000000004 R10: 0000000000000005 R11: 0000000000000002 R12: dffffc0000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000002 FS: 00007f2ffb11b6c0(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f2ffb0fad58 CR3: 0000000021a4b000 CR4: 00000000003506f0 Call Trace: usb_gadget_udc_start_locked drivers/usb/gadget/udc/core.c:1227 [inline] gadget_bind_driver+0x390/0x770 drivers/usb/gadget/udc/core.c:1656 call_driver_probe drivers/base/dd.c:-1 [inline] really_probe+0x247/0xae0 drivers/base/dd.c:717 __driver_probe_device+0x1f5/0x390 drivers/base/dd.c:879 driver_probe_device+0x4f/0x420 drivers/base/dd.c:909 __driver_attach+0x444/0x6d0 drivers/base/dd.c:1295 bus_for_each_dev+0x235/0x2b0 drivers/base/bus.c:370 bus_add_driver+0x340/0x630 drivers/base/bus.c:723 driver_register+0x23a/0x310 drivers/base/driver.c:246 usb_gadget_register_driver_owner+0xf9/0x270 drivers/usb/gadget/udc/core.c:1730 dev_config+0xe49/0x1260 drivers/usb/gadget/legacy/inode.c:1878 vfs_write+0x299/0x9a0 fs/read_write.c:582 ksys_write+0x151/0x260 fs/read_write.c:637 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x55/0xb0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7f2ffa19de99 Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f2ffb11b028 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f2ffa425fa0 RCX: 00007f2ffa19de99 RDX: 000000000000001f RSI: 0000200000000400 RDI: 0000000000000003 RBP: 00007f2ffa233eaf R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f2ffa426038 R14: 00007f2ffa425fa0 R15: 00007ffdecc68338 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:dummy_udc_start+0xcd/0x1e0 drivers/usb/gadget/udc/dummy_hcd.c:1003 Code: 41 83 ff 03 74 18 41 83 ff 05 0f 85 8e 00 00 00 e8 28 2d cd fa eb 0c e8 21 2d cd fa eb 05 e8 1a 2d cd fa 4c 89 f0 48 c1 e8 03 <42> 80 3c 20 00 74 08 4c 89 f7 e8 84 aa 25 fb 4d 8b 36 4c 89 f7 e8 RSP: 0018:ffffc900042ff8b0 EFLAGS: 00010246 RAX: 0000000000000000 RBX: ffffffff8de5b020 RCX: 0000000000080000 RDX: ffffc9000bb79000 RSI: 000000000002965f RDI: 0000000000029660 RBP: ffff8881447a2000 R08: ffff8880229a3c00 R09: 0000000000000004 R10: 0000000000000005 R11: 0000000000000002 R12: dffffc0000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000002 FS: 00007f2ffb11b6c0(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007ffcd7452568 CR3: 0000000021a4b000 CR4: 00000000003506f0 ---------------- Code disassembly (best guess): 0: 41 83 ff 03 cmp $0x3,%r15d 4: 74 18 je 0x1e 6: 41 83 ff 05 cmp $0x5,%r15d a: 0f 85 8e 00 00 00 jne 0x9e 10: e8 28 2d cd fa call 0xfacd2d3d 15: eb 0c jmp 0x23 17: e8 21 2d cd fa call 0xfacd2d3d 1c: eb 05 jmp 0x23 1e: e8 1a 2d cd fa call 0xfacd2d3d 23: 4c 89 f0 mov %r14,%rax 26: 48 c1 e8 03 shr $0x3,%rax * 2a: 42 80 3c 20 00 cmpb $0x0,(%rax,%r12,1) <-- trapping instruction 2f: 74 08 je 0x39 31: 4c 89 f7 mov %r14,%rdi 34: e8 84 aa 25 fb call 0xfb25aabd 39: 4d 8b 36 mov (%r14),%r14 3c: 4c 89 f7 mov %r14,%rdi 3f: e8 .byte 0xe8