dummy_hcd dummy_hcd.0: remove, state 4 usb usb5: USB disconnect, device number 1 dummy_hcd dummy_hcd.0: stopped dummy_hcd dummy_hcd.0: USB bus 5 deregistered Oops: general protection fault, probably for non-canonical address 0xdffffc0000000000: 0000 [#1] SMP KASAN NOPTI KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007] CPU: 0 UID: 0 PID: 5332 Comm: syz.0.0 Not tainted syzkaller #0 PREEMPT(full) Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 RIP: 0010:dummy_udc_start+0xd0/0x1f0 drivers/usb/gadget/udc/dummy_hcd.c:1004 Code: 41 83 ff 03 74 18 41 83 ff 05 0f 85 93 00 00 00 e8 b5 6d 0e fa eb 0c e8 ae 6d 0e fa eb 05 e8 a7 6d 0e fa 4c 89 f0 48 c1 e8 03 <42> 80 3c 20 00 74 08 4c 89 f7 e8 e1 98 7d fa 4d 8b 36 4c 89 f7 e8 RSP: 0018:ffffc9000f70f830 EFLAGS: 00010246 RAX: 0000000000000000 RBX: ffff88803333e050 RCX: 0000000000100000 RDX: ffffc9000ed71000 RSI: 0000000000001adf RDI: 0000000000001ae0 RBP: ffff88801f7c8000 R08: ffff888000c64a80 R09: 0000000000000004 R10: 0000000000000005 R11: 0000000000000002 R12: dffffc0000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000003 FS: 00007f95370196c0(0000) GS:ffff88808c545000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f95361874c0 CR3: 00000000434fa000 CR4: 0000000000352ef0 Call Trace: usb_gadget_udc_start_locked drivers/usb/gadget/udc/core.c:1237 [inline] gadget_bind_driver+0x3a8/0x9e0 drivers/usb/gadget/udc/core.c:1667 call_driver_probe drivers/base/dd.c:-1 [inline] really_probe+0x254/0xae0 drivers/base/dd.c:706 __driver_probe_device+0x1e8/0x360 drivers/base/dd.c:868 driver_probe_device+0x4f/0x240 drivers/base/dd.c:898 __driver_attach+0x339/0x600 drivers/base/dd.c:1292 bus_for_each_dev+0x23b/0x2c0 drivers/base/bus.c:383 bus_add_driver+0x345/0x670 drivers/base/bus.c:763 driver_register+0x23a/0x320 drivers/base/driver.c:174 usb_gadget_register_driver_owner+0xf9/0x270 drivers/usb/gadget/udc/core.c:1752 raw_ioctl_run drivers/usb/gadget/legacy/raw_gadget.c:596 [inline] raw_ioctl+0x1541/0x41c0 drivers/usb/gadget/legacy/raw_gadget.c:1307 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:597 [inline] __se_sys_ioctl+0xfc/0x170 fs/ioctl.c:583 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:0x7f953619db2b 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:00007f9537016ec0 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 0000000000000005 RCX: 00007f953619db2b RDX: 0000000000000000 RSI: 0000000000005501 RDI: 0000000000000005 RBP: 00007f9537017f90 R08: 0000000000000001 R09: 00000000ffffffff R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00002000000002c0 R14: 0000000000000000 R15: 0000000000000000 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:dummy_udc_start+0xd0/0x1f0 drivers/usb/gadget/udc/dummy_hcd.c:1004 Code: 41 83 ff 03 74 18 41 83 ff 05 0f 85 93 00 00 00 e8 b5 6d 0e fa eb 0c e8 ae 6d 0e fa eb 05 e8 a7 6d 0e fa 4c 89 f0 48 c1 e8 03 <42> 80 3c 20 00 74 08 4c 89 f7 e8 e1 98 7d fa 4d 8b 36 4c 89 f7 e8 RSP: 0018:ffffc9000f70f830 EFLAGS: 00010246 RAX: 0000000000000000 RBX: ffff88803333e050 RCX: 0000000000100000 RDX: ffffc9000ed71000 RSI: 0000000000001adf RDI: 0000000000001ae0 RBP: ffff88801f7c8000 R08: ffff888000c64a80 R09: 0000000000000004 R10: 0000000000000005 R11: 0000000000000002 R12: dffffc0000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000003 FS: 00007f95370196c0(0000) GS:ffff88808c545000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f95361874c0 CR3: 00000000434fa000 CR4: 0000000000352ef0 ---------------- 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 93 00 00 00 jne 0xa3 10: e8 b5 6d 0e fa call 0xfa0e6dca 15: eb 0c jmp 0x23 17: e8 ae 6d 0e fa call 0xfa0e6dca 1c: eb 05 jmp 0x23 1e: e8 a7 6d 0e fa call 0xfa0e6dca 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 e1 98 7d fa call 0xfa7d991a 39: 4d 8b 36 mov (%r14),%r14 3c: 4c 89 f7 mov %r14,%rdi 3f: e8 .byte 0xe8