Oops: general protection fault, probably for non-canonical address 0xdffffc0000000000: 0000 [#1] SMP KASAN NOPTI KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007] CPU: 2 UID: 0 PID: 5927 Comm: syz.0.7 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+0x91/0x1d0 drivers/usb/gadget/udc/dummy_hcd.c:1022 Code: df 48 89 fa 48 c1 ea 03 80 3c 02 00 0f 85 28 01 00 00 4c 8b ab 90 06 00 00 48 b8 00 00 00 00 00 fc ff df 4c 89 ea 48 c1 ea 03 <80> 3c 02 00 0f 85 10 01 00 00 83 ed 01 bf 02 00 00 00 49 8b 5d 00 RSP: 0018:ffffc900069dfb28 EFLAGS: 00010246 RAX: dffffc0000000000 RBX: ffff888021580c00 RCX: ffffc9000c803000 RDX: 0000000000000000 RSI: ffffffff87ce6d67 RDI: ffff888021581290 RBP: 0000000000000003 R08: 0000000000000005 R09: 0000000000000005 R10: 0000000000000003 R11: 0000000000000000 R12: ffff88802aa0a050 R13: 0000000000000000 R14: ffff888025f8e4f1 R15: ffff888025f8e008 FS: 0000000000000000(0000) GS:ffff888096de1000(0063) knlGS:00000000f545cb40 CS: 0010 DS: 002b ES: 002b CR0: 0000000080050033 CR2: 000000008025f018 CR3: 000000006d05a000 CR4: 0000000000352ef0 Call Trace: usb_gadget_udc_start_locked drivers/usb/gadget/udc/core.c:1237 [inline] gadget_bind_driver+0x4ac/0xbf0 drivers/usb/gadget/udc/core.c:1667 call_driver_probe drivers/base/dd.c:628 [inline] really_probe+0x241/0xa60 drivers/base/dd.c:706 __driver_probe_device+0x20e/0x450 drivers/base/dd.c:868 driver_probe_device+0x4a/0x140 drivers/base/dd.c:898 __driver_attach+0x21f/0x5b0 drivers/base/dd.c:1292 bus_for_each_dev+0x13e/0x1d0 drivers/base/bus.c:383 bus_add_driver+0x305/0x5b0 drivers/base/bus.c:763 driver_register+0x1e2/0x360 drivers/base/driver.c:174 usb_gadget_register_driver_owner+0x132/0x210 drivers/usb/gadget/udc/core.c:1752 raw_ioctl_run drivers/usb/gadget/legacy/raw_gadget.c:596 [inline] raw_ioctl+0x1a85/0x2b80 drivers/usb/gadget/legacy/raw_gadget.c:1307 __do_compat_sys_ioctl fs/ioctl.c:695 [inline] __se_compat_sys_ioctl fs/ioctl.c:638 [inline] __ia32_compat_sys_ioctl+0x2cf/0x360 fs/ioctl.c:638 do_syscall_32_irqs_on arch/x86/entry/syscall_32.c:83 [inline] __do_fast_syscall_32+0xe7/0x970 arch/x86/entry/syscall_32.c:307 do_fast_syscall_32+0x32/0x70 arch/x86/entry/syscall_32.c:332 entry_SYSENTER_compat_after_hwframe+0x84/0x8e RIP: 0023:0xf708efec Code: Unable to access opcode bytes at 0xf708efc2. RSP: 002b:00000000f545a424 EFLAGS: 00000292 ORIG_RAX: 0000000000000036 RAX: ffffffffffffffda RBX: 000000000000000c RCX: 0000000000005501 RDX: 0000000000000000 RSI: 00000000f7457ff4 RDI: 00000000f545b4c0 RBP: 00000000f7457ff4 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000292 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:dummy_udc_start+0x91/0x1d0 drivers/usb/gadget/udc/dummy_hcd.c:1022 Code: df 48 89 fa 48 c1 ea 03 80 3c 02 00 0f 85 28 01 00 00 4c 8b ab 90 06 00 00 48 b8 00 00 00 00 00 fc ff df 4c 89 ea 48 c1 ea 03 <80> 3c 02 00 0f 85 10 01 00 00 83 ed 01 bf 02 00 00 00 49 8b 5d 00 RSP: 0018:ffffc900069dfb28 EFLAGS: 00010246 RAX: dffffc0000000000 RBX: ffff888021580c00 RCX: ffffc9000c803000 RDX: 0000000000000000 RSI: ffffffff87ce6d67 RDI: ffff888021581290 RBP: 0000000000000003 R08: 0000000000000005 R09: 0000000000000005 R10: 0000000000000003 R11: 0000000000000000 R12: ffff88802aa0a050 R13: 0000000000000000 R14: ffff888025f8e4f1 R15: ffff888025f8e008 FS: 0000000000000000(0000) GS:ffff888096de1000(0063) knlGS:00000000f545cb40 CS: 0010 DS: 002b ES: 002b CR0: 0000000080050033 CR2: 00000000f708f000 CR3: 000000006d05a000 CR4: 0000000000352ef0 ---------------- Code disassembly (best guess): 0: df 48 89 fisttps -0x77(%rax) 3: fa cli 4: 48 c1 ea 03 shr $0x3,%rdx 8: 80 3c 02 00 cmpb $0x0,(%rdx,%rax,1) c: 0f 85 28 01 00 00 jne 0x13a 12: 4c 8b ab 90 06 00 00 mov 0x690(%rbx),%r13 19: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax 20: fc ff df 23: 4c 89 ea mov %r13,%rdx 26: 48 c1 ea 03 shr $0x3,%rdx * 2a: 80 3c 02 00 cmpb $0x0,(%rdx,%rax,1) <-- trapping instruction 2e: 0f 85 10 01 00 00 jne 0x144 34: 83 ed 01 sub $0x1,%ebp 37: bf 02 00 00 00 mov $0x2,%edi 3c: 49 8b 5d 00 mov 0x0(%r13),%rbx