Oops: general protection fault, probably for non-canonical address 0xdffffc0000000000: 0000 [#1] SMP KASAN PTI KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007] CPU: 0 UID: 0 PID: 6643 Comm: syz.4.265 Not tainted syzkaller #0 PREEMPT_{RT,(full)} Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026 RIP: 0010:dummy_udc_stop+0x74/0x120 drivers/usb/gadget/udc/dummy_hcd.c:1053 Code: 8d 1c c3 48 81 c3 c8 07 00 00 48 89 d8 48 c1 e8 03 42 80 3c 30 00 74 08 48 89 df e8 b6 2f 03 fb 48 8b 1b 48 89 d8 48 c1 e8 03 <42> 80 3c 30 00 74 08 48 89 df e8 9d 2f 03 fb 48 8b 1b 48 89 df e8 RSP: 0018:ffffc9000423fac0 EFLAGS: 00010246 RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffff8880256dbe00 RDX: 0000000000000002 RSI: 0000000000000003 RDI: 0000000000000005 RBP: 0000000000000003 R08: 0000000000000000 R09: 0000000000000000 R10: dffffc0000000000 R11: ffffffff872c0f10 R12: 1ffff1100551c2bd R13: ffffffff8c1f88b8 R14: dffffc0000000000 R15: ffff88801fac4c40 FS: 00007f62dc2f56c0(0000) GS:ffff888125c3a000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f377fb78658 CR3: 0000000026036000 CR4: 00000000003526f0 Call Trace: usb_gadget_udc_stop_locked drivers/usb/gadget/udc/core.c:1265 [inline] gadget_unbind_driver+0x25f/0x410 drivers/usb/gadget/udc/core.c:1727 device_remove drivers/base/dd.c:616 [inline] __device_release_driver drivers/base/dd.c:1349 [inline] device_release_driver_internal+0x48b/0x880 drivers/base/dd.c:1372 driver_detach+0x1f3/0x2d0 drivers/base/dd.c:1435 bus_remove_driver+0x229/0x320 drivers/base/bus.c:832 usb_gadget_unregister_driver+0x4e/0x70 drivers/usb/gadget/udc/core.c:1784 unregister_gadget drivers/usb/gadget/configfs.c:263 [inline] gadget_dev_desc_UDC_store+0x17a/0x2f0 drivers/usb/gadget/configfs.c:290 flush_write_buffer fs/configfs/file.c:207 [inline] configfs_write_iter+0x33a/0x430 fs/configfs/file.c:229 new_sync_write fs/read_write.c:595 [inline] vfs_write+0x61e/0xbb0 fs/read_write.c:687 ksys_write+0x156/0x270 fs/read_write.c:739 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x174/0x580 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f62de0be0d9 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:00007f62dc2f5028 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f62de346090 RCX: 00007f62de0be0d9 RDX: 0000000000000001 RSI: 0000200000000800 RDI: 0000000000000003 RBP: 00007f62de155024 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f62de346128 R14: 00007f62de346090 R15: 00007ffdd91ef508 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:dummy_udc_stop+0x74/0x120 drivers/usb/gadget/udc/dummy_hcd.c:1053 Code: 8d 1c c3 48 81 c3 c8 07 00 00 48 89 d8 48 c1 e8 03 42 80 3c 30 00 74 08 48 89 df e8 b6 2f 03 fb 48 8b 1b 48 89 d8 48 c1 e8 03 <42> 80 3c 30 00 74 08 48 89 df e8 9d 2f 03 fb 48 8b 1b 48 89 df e8 RSP: 0018:ffffc9000423fac0 EFLAGS: 00010246 RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffff8880256dbe00 RDX: 0000000000000002 RSI: 0000000000000003 RDI: 0000000000000005 RBP: 0000000000000003 R08: 0000000000000000 R09: 0000000000000000 R10: dffffc0000000000 R11: ffffffff872c0f10 R12: 1ffff1100551c2bd R13: ffffffff8c1f88b8 R14: dffffc0000000000 R15: ffff88801fac4c40 FS: 00007f62dc2f56c0(0000) GS:ffff888125c3a000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f377fb78658 CR3: 0000000026036000 CR4: 00000000003526f0 ---------------- Code disassembly (best guess): 0: 8d 1c c3 lea (%rbx,%rax,8),%ebx 3: 48 81 c3 c8 07 00 00 add $0x7c8,%rbx a: 48 89 d8 mov %rbx,%rax d: 48 c1 e8 03 shr $0x3,%rax 11: 42 80 3c 30 00 cmpb $0x0,(%rax,%r14,1) 16: 74 08 je 0x20 18: 48 89 df mov %rbx,%rdi 1b: e8 b6 2f 03 fb call 0xfb032fd6 20: 48 8b 1b mov (%rbx),%rbx 23: 48 89 d8 mov %rbx,%rax 26: 48 c1 e8 03 shr $0x3,%rax * 2a: 42 80 3c 30 00 cmpb $0x0,(%rax,%r14,1) <-- trapping instruction 2f: 74 08 je 0x39 31: 48 89 df mov %rbx,%rdi 34: e8 9d 2f 03 fb call 0xfb032fd6 39: 48 8b 1b mov (%rbx),%rbx 3c: 48 89 df mov %rbx,%rdi 3f: e8 .byte 0xe8