Oops: general protection fault, probably for non-canonical address 0xdffffc0000000000: 0000 [#1] SMP KASAN NOPTI KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007] CPU: 3 UID: 0 PID: 20504 Comm: syz.1.2283 Tainted: G S L syzkaller #0 PREEMPT(full) Tainted: [S]=CPU_OUT_OF_SPEC, [L]=SOFTLOCKUP Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 RIP: 0010:dummy_udc_stop+0x8f/0x180 drivers/usb/gadget/udc/dummy_hcd.c:1053 Code: c1 ea 03 80 3c 02 00 0f 85 f9 00 00 00 48 8b 9b 90 06 00 00 e8 d2 e0 3a fa 48 89 da 48 b8 00 00 00 00 00 fc ff df 48 c1 ea 03 <80> 3c 02 00 0f 85 c5 00 00 00 48 8b 1b 48 89 df e8 fc 27 ed 03 48 RSP: 0018:ffffc9000610f900 EFLAGS: 00010246 RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffffc9000cf42000 RDX: 0000000000000000 RSI: ffffffff87cecd2e RDI: ffff88802250d290 RBP: 0000000000000003 R08: 0000000000000005 R09: 0000000000000005 R10: 0000000000000003 R11: 0000000000000000 R12: ffff888050fba438 R13: ffff8880008ab540 R14: ffff88802250cc00 R15: ffffffff8cb7c320 FS: 0000000000000000(0000) GS:ffff888096ee1000(0063) knlGS:00000000f53d6b40 CS: 0010 DS: 002b ES: 002b CR0: 0000000080050033 CR2: 00000000f72ae9ea CR3: 0000000060d71000 CR4: 0000000000352ef0 Call Trace: usb_gadget_udc_stop_locked drivers/usb/gadget/udc/core.c:1265 [inline] gadget_unbind_driver+0x2ca/0x4f0 drivers/usb/gadget/udc/core.c:1727 device_remove+0xcb/0x180 drivers/base/dd.c:616 __device_release_driver drivers/base/dd.c:1349 [inline] device_release_driver_internal+0x44e/0x620 drivers/base/dd.c:1372 bus_remove_device+0x2bc/0x560 drivers/base/bus.c:664 device_del+0x376/0x9b0 drivers/base/core.c:3961 usb_del_gadget+0x1b2/0x2d0 drivers/usb/gadget/udc/core.c:1591 usb_del_gadget_udc+0x15/0x30 drivers/usb/gadget/udc/core.c:1614 platform_remove+0x5f/0x80 drivers/base/platform.c:1456 device_remove+0xcb/0x180 drivers/base/dd.c:616 __device_release_driver drivers/base/dd.c:1349 [inline] device_release_driver_internal+0x44e/0x620 drivers/base/dd.c:1372 unbind_store+0xf8/0x110 drivers/base/bus.c:244 drv_attr_store+0x74/0xb0 drivers/base/bus.c:125 sysfs_kf_write+0xf2/0x150 fs/sysfs/file.c:145 kernfs_fop_write_iter+0x3e0/0x5f0 fs/kernfs/file.c:345 new_sync_write fs/read_write.c:595 [inline] vfs_write+0x6ac/0x1050 fs/read_write.c:687 ksys_write+0x12a/0x250 fs/read_write.c:739 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:0xf7f14fec Code: Unable to access opcode bytes at 0xf7f14fc2. RSP: 002b:00000000f53d650c EFLAGS: 00000292 ORIG_RAX: 0000000000000004 RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000080000280 RDX: 000000000000000c RSI: 0000000000000000 RDI: 0000000000000000 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:dummy_udc_stop+0x8f/0x180 drivers/usb/gadget/udc/dummy_hcd.c:1053 Code: c1 ea 03 80 3c 02 00 0f 85 f9 00 00 00 48 8b 9b 90 06 00 00 e8 d2 e0 3a fa 48 89 da 48 b8 00 00 00 00 00 fc ff df 48 c1 ea 03 <80> 3c 02 00 0f 85 c5 00 00 00 48 8b 1b 48 89 df e8 fc 27 ed 03 48 RSP: 0018:ffffc9000610f900 EFLAGS: 00010246 RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffffc9000cf42000 RDX: 0000000000000000 RSI: ffffffff87cecd2e RDI: ffff88802250d290 RBP: 0000000000000003 R08: 0000000000000005 R09: 0000000000000005 R10: 0000000000000003 R11: 0000000000000000 R12: ffff888050fba438 R13: ffff8880008ab540 R14: ffff88802250cc00 R15: ffffffff8cb7c320 FS: 0000000000000000(0000) GS:ffff888096ee1000(0063) knlGS:00000000f53d6b40 CS: 0010 DS: 002b ES: 002b CR0: 0000000080050033 CR2: 00000000f53b5da4 CR3: 0000000060d71000 CR4: 0000000000352ef0 ---------------- Code disassembly (best guess): 0: c1 ea 03 shr $0x3,%edx 3: 80 3c 02 00 cmpb $0x0,(%rdx,%rax,1) 7: 0f 85 f9 00 00 00 jne 0x106 d: 48 8b 9b 90 06 00 00 mov 0x690(%rbx),%rbx 14: e8 d2 e0 3a fa call 0xfa3ae0eb 19: 48 89 da mov %rbx,%rdx 1c: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax 23: fc ff df 26: 48 c1 ea 03 shr $0x3,%rdx * 2a: 80 3c 02 00 cmpb $0x0,(%rdx,%rax,1) <-- trapping instruction 2e: 0f 85 c5 00 00 00 jne 0xf9 34: 48 8b 1b mov (%rbx),%rbx 37: 48 89 df mov %rbx,%rdi 3a: e8 fc 27 ed 03 call 0x3ed283b 3f: 48 rex.W