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: 20278 Comm: syz.2.3415 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/16/2026 RIP: 0010:dummy_set_selfpowered+0xb7/0x150 drivers/usb/gadget/udc/dummy_hcd.c:887 Code: 94 c0 4d 8d b4 c6 38 06 00 00 4c 89 f0 48 c1 e8 03 42 80 3c 20 00 74 08 4c 89 f7 e8 33 b2 53 fb 4d 8b 3e 4c 89 f8 48 c1 e8 03 <42> 80 3c 20 00 74 08 4c 89 ff e8 1a b2 53 fb 41 be 30 12 00 00 4d RSP: 0018:ffffc9000e8477e0 EFLAGS: 00010246 RAX: 0000000000000000 RBX: 0000000000000001 RCX: 0000000000000002 RDX: ffff88802e5f8000 RSI: 0000000000000003 RDI: 0000000000000005 RBP: 0000000000000003 R08: ffff8880174734df R09: 1ffff11002e8e69b R10: dffffc0000000000 R11: ffffed1002e8e69c R12: dffffc0000000000 R13: ffff8880793674a8 R14: ffff888027f89238 R15: 0000000000000000 FS: 00007fe34b5a26c0(0000) GS:ffff8880b8f00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f7803e0d048 CR3: 000000004f692000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: usb_gadget_set_selfpowered+0x6a/0x2b0 drivers/usb/gadget/udc/core.c:578 composite_dev_prepare+0x2f3/0x310 drivers/usb/gadget/composite.c:2338 configfs_composite_bind+0xa1/0xf60 drivers/usb/gadget/configfs.c:1302 gadget_bind_driver+0x2af/0x760 drivers/usb/gadget/udc/core.c:1651 call_driver_probe drivers/base/dd.c:-1 [inline] really_probe+0x24a/0xb40 drivers/base/dd.c:638 __driver_probe_device+0x1f5/0x390 drivers/base/dd.c:804 driver_probe_device+0x4f/0x420 drivers/base/dd.c:834 __driver_attach+0x43d/0x6c0 drivers/base/dd.c:1220 bus_for_each_dev+0x182/0x1f0 drivers/base/bus.c:303 bus_add_driver+0x324/0x5d0 drivers/base/bus.c:620 driver_register+0x32d/0x430 drivers/base/driver.c:246 usb_gadget_register_driver_owner+0xf5/0x260 drivers/usb/gadget/udc/core.c:1730 gadget_dev_desc_UDC_store+0x1c3/0x2e0 drivers/usb/gadget/configfs.c:290 flush_write_buffer fs/configfs/file.c:207 [inline] configfs_write_iter+0x30b/0x400 fs/configfs/file.c:229 call_write_iter include/linux/fs.h:2265 [inline] new_sync_write fs/read_write.c:491 [inline] vfs_write+0x482/0x9a0 fs/read_write.c:584 ksys_write+0x14d/0x260 fs/read_write.c:637 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7fe34a79de99 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:00007fe34b5a2028 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007fe34aa26270 RCX: 00007fe34a79de99 RDX: 000000000000000b RSI: 0000200000000940 RDI: 0000000000000009 RBP: 00007fe34a833eaf R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fe34aa26308 R14: 00007fe34aa26270 R15: 00007ffe8c7e6fb8 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:dummy_set_selfpowered+0xb7/0x150 drivers/usb/gadget/udc/dummy_hcd.c:887 Code: 94 c0 4d 8d b4 c6 38 06 00 00 4c 89 f0 48 c1 e8 03 42 80 3c 20 00 74 08 4c 89 f7 e8 33 b2 53 fb 4d 8b 3e 4c 89 f8 48 c1 e8 03 <42> 80 3c 20 00 74 08 4c 89 ff e8 1a b2 53 fb 41 be 30 12 00 00 4d RSP: 0018:ffffc9000e8477e0 EFLAGS: 00010246 RAX: 0000000000000000 RBX: 0000000000000001 RCX: 0000000000000002 RDX: ffff88802e5f8000 RSI: 0000000000000003 RDI: 0000000000000005 RBP: 0000000000000003 R08: ffff8880174734df R09: 1ffff11002e8e69b R10: dffffc0000000000 R11: ffffed1002e8e69c R12: dffffc0000000000 R13: ffff8880793674a8 R14: ffff888027f89238 R15: 0000000000000000 FS: 00007fe34b5a26c0(0000) GS:ffff8880b8f00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055556d69ea78 CR3: 000000004f692000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess), 2 bytes skipped: 0: 4d 8d b4 c6 38 06 00 lea 0x638(%r14,%rax,8),%r14 7: 00 8: 4c 89 f0 mov %r14,%rax b: 48 c1 e8 03 shr $0x3,%rax f: 42 80 3c 20 00 cmpb $0x0,(%rax,%r12,1) 14: 74 08 je 0x1e 16: 4c 89 f7 mov %r14,%rdi 19: e8 33 b2 53 fb call 0xfb53b251 1e: 4d 8b 3e mov (%r14),%r15 21: 4c 89 f8 mov %r15,%rax 24: 48 c1 e8 03 shr $0x3,%rax * 28: 42 80 3c 20 00 cmpb $0x0,(%rax,%r12,1) <-- trapping instruction 2d: 74 08 je 0x37 2f: 4c 89 ff mov %r15,%rdi 32: e8 1a b2 53 fb call 0xfb53b251 37: 41 be 30 12 00 00 mov $0x1230,%r14d 3d: 4d rex.WRB