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: 2397 Comm: syz.5.785 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026 RIP: 0010:set_link_state+0x2a/0x1210 drivers/usb/gadget/udc/dummy_hcd.c:432 Code: 55 48 89 e5 41 57 41 56 41 55 41 54 53 48 83 ec 60 49 89 fd 48 bb 00 00 00 00 00 fc ff df e8 4d fc 57 fe 4c 89 e8 48 c1 e8 03 <80> 3c 18 00 74 08 4c 89 ef e8 c8 71 92 fe 4d 8b 75 00 49 8d 95 8b RSP: 0018:ffffc90000c37a48 EFLAGS: 00010046 RAX: 0000000000000000 RBX: dffffc0000000000 RCX: 0000000000080000 RDX: ffffc900097cd000 RSI: 0000000000000034 RDI: 0000000000000035 RBP: ffffc90000c37ad0 R08: 0000000000000003 R09: 0000000000000004 R10: dffffc0000000000 R11: fffff52000186f48 R12: 0000000000000a06 R13: 0000000000000000 R14: ffff88810b81c000 R15: 0000000000000000 FS: 00007f5be74d76c0(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000000 CR3: 0000000136c3e000 CR4: 00000000003506b0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: dummy_pullup+0xd9/0x220 drivers/usb/gadget/udc/dummy_hcd.c:909 usb_gadget_disconnect_locked+0x133/0x3b0 drivers/usb/gadget/udc/core.c:744 usb_gadget_remove_driver+0x55/0x330 drivers/usb/gadget/udc/core.c:1492 usb_gadget_unregister_driver+0x181/0x480 drivers/usb/gadget/udc/core.c:1656 unregister_gadget drivers/usb/gadget/configfs.c:284 [inline] gadget_dev_desc_UDC_store+0x1c2/0x330 drivers/usb/gadget/configfs.c:311 flush_write_buffer fs/configfs/file.c:251 [inline] configfs_write_file+0x320/0x3d0 fs/configfs/file.c:283 vfs_write+0x344/0xd70 fs/read_write.c:603 ksys_write+0x14a/0x260 fs/read_write.c:658 __do_sys_write fs/read_write.c:670 [inline] __se_sys_write fs/read_write.c:667 [inline] __x64_sys_write+0x7b/0x90 fs/read_write.c:667 do_syscall_64+0x31/0x40 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x61/0xcb RIP: 0033:0x7f5be8a7e0d9 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:00007f5be74d7028 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f5be8d05fa0 RCX: 00007f5be8a7e0d9 RDX: 0000000000000001 RSI: 00002000000004c0 RDI: 0000000000000005 RBP: 00007f5be8b15024 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f5be8d06038 R14: 00007f5be8d05fa0 R15: 00007ffebcb52bb8 Modules linked in: ---[ end trace 7283f71c22063a48 ]--- RIP: 0010:set_link_state+0x2a/0x1210 drivers/usb/gadget/udc/dummy_hcd.c:432 Code: 55 48 89 e5 41 57 41 56 41 55 41 54 53 48 83 ec 60 49 89 fd 48 bb 00 00 00 00 00 fc ff df e8 4d fc 57 fe 4c 89 e8 48 c1 e8 03 <80> 3c 18 00 74 08 4c 89 ef e8 c8 71 92 fe 4d 8b 75 00 49 8d 95 8b RSP: 0018:ffffc90000c37a48 EFLAGS: 00010046 RAX: 0000000000000000 RBX: dffffc0000000000 RCX: 0000000000080000 RDX: ffffc900097cd000 RSI: 0000000000000034 RDI: 0000000000000035 RBP: ffffc90000c37ad0 R08: 0000000000000003 R09: 0000000000000004 R10: dffffc0000000000 R11: fffff52000186f48 R12: 0000000000000a06 R13: 0000000000000000 R14: ffff88810b81c000 R15: 0000000000000000 FS: 00007f5be74d76c0(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000000 CR3: 0000000136c3e000 CR4: 00000000003506b0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: 55 push %rbp 1: 48 89 e5 mov %rsp,%rbp 4: 41 57 push %r15 6: 41 56 push %r14 8: 41 55 push %r13 a: 41 54 push %r12 c: 53 push %rbx d: 48 83 ec 60 sub $0x60,%rsp 11: 49 89 fd mov %rdi,%r13 14: 48 bb 00 00 00 00 00 movabs $0xdffffc0000000000,%rbx 1b: fc ff df 1e: e8 4d fc 57 fe call 0xfe57fc70 23: 4c 89 e8 mov %r13,%rax 26: 48 c1 e8 03 shr $0x3,%rax * 2a: 80 3c 18 00 cmpb $0x0,(%rax,%rbx,1) <-- trapping instruction 2e: 74 08 je 0x38 30: 4c 89 ef mov %r13,%rdi 33: e8 c8 71 92 fe call 0xfe927200 38: 4d 8b 75 00 mov 0x0(%r13),%r14 3c: 49 rex.WB 3d: 8d .byte 0x8d 3e: 95 xchg %eax,%ebp 3f: 8b .byte 0x8b