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: 9325 Comm: syz.0.1422 Tainted: G L syzkaller #0 PREEMPT(lazy) Tainted: [L]=SOFTLOCKUP Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 RIP: 0010:set_link_state+0x27/0xc70 drivers/usb/gadget/udc/dummy_hcd.c:455 Code: 90 90 90 41 57 41 56 41 55 41 54 55 53 48 89 fb 48 83 ec 18 e8 da 0f 3b fa 48 89 da 48 b8 00 00 00 00 00 fc ff df 48 c1 ea 03 <80> 3c 02 00 0f 85 35 0b 00 00 4c 8d ab a3 00 00 00 48 8b 2b 48 b8 RSP: 0000:ffffc9000c80f838 EFLAGS: 00010046 RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffffffff87cead03 RDX: 0000000000000000 RSI: ffffffff87ce9e26 RDI: 0000000000000000 RBP: 0000000000000000 R08: 0000000000000005 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000293 R13: ffff888029d6c000 R14: 0000000000000000 R15: ffff888029d6cc00 FS: 0000000000000000(0000) GS:ffff888096bdf000(0000) knlGS:0000000000000000 CS: 0010 DS: 002b ES: 002b CR0: 0000000080050033 CR2: 00000000f7f255c0 CR3: 00000000665c2000 CR4: 0000000000352ef0 Call Trace: dummy_pullup+0xf3/0x170 drivers/usb/gadget/udc/dummy_hcd.c:933 usb_gadget_disconnect_locked+0x142/0x4e0 drivers/usb/gadget/udc/core.c:785 gadget_unbind_driver+0xd8/0x4f0 drivers/usb/gadget/udc/core.c:1718 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 driver_detach+0xd8/0x1b0 drivers/base/dd.c:1435 bus_remove_driver+0x13b/0x2e0 drivers/base/bus.c:832 driver_unregister+0x76/0xb0 drivers/base/driver.c:202 usb_gadget_unregister_driver+0x49/0x70 drivers/usb/gadget/udc/core.c:1784 raw_release+0x19b/0x260 drivers/usb/gadget/legacy/raw_gadget.c:463 __fput+0x3ff/0xb50 fs/file_table.c:512 task_work_run+0x150/0x240 kernel/task_work.c:233 exit_task_work include/linux/task_work.h:40 [inline] do_exit+0x951/0x2ae0 kernel/exit.c:1009 do_group_exit+0xd5/0x2a0 kernel/exit.c:1152 get_signal+0x1ec7/0x21e0 kernel/signal.c:3046 arch_do_signal_or_restart+0x91/0x7a0 arch/x86/kernel/signal.c:337 __exit_to_user_mode_loop kernel/entry/common.c:66 [inline] exit_to_user_mode_loop+0x139/0x6f0 kernel/entry/common.c:101 __exit_to_user_mode_prepare include/linux/irq-entry-common.h:207 [inline] syscall_exit_to_user_mode_prepare include/linux/irq-entry-common.h:230 [inline] syscall_exit_to_user_mode include/linux/entry-common.h:318 [inline] __do_fast_syscall_32+0x701/0x970 arch/x86/entry/syscall_32.c:310 do_fast_syscall_32+0x32/0x70 arch/x86/entry/syscall_32.c:332 entry_SYSENTER_compat_after_hwframe+0x84/0x8e RIP: 0023:0xf6fdefec Code: Unable to access opcode bytes at 0xf6fdefc2. RSP: 002b:00000000f53cb424 EFLAGS: 00000292 ORIG_RAX: 0000000000000036 RAX: fffffffffffffffc RBX: 0000000000000003 RCX: 0000000080085502 RDX: 00000000f53cc4c0 RSI: 00000000f73a7ff4 RDI: 00000000f53cb4ec RBP: 00000000f73a7ff4 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000292 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:set_link_state+0x27/0xc70 drivers/usb/gadget/udc/dummy_hcd.c:455 Code: 90 90 90 41 57 41 56 41 55 41 54 55 53 48 89 fb 48 83 ec 18 e8 da 0f 3b fa 48 89 da 48 b8 00 00 00 00 00 fc ff df 48 c1 ea 03 <80> 3c 02 00 0f 85 35 0b 00 00 4c 8d ab a3 00 00 00 48 8b 2b 48 b8 RSP: 0000:ffffc9000c80f838 EFLAGS: 00010046 RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffffffff87cead03 RDX: 0000000000000000 RSI: ffffffff87ce9e26 RDI: 0000000000000000 RBP: 0000000000000000 R08: 0000000000000005 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000293 R13: ffff888029d6c000 R14: 0000000000000000 R15: ffff888029d6cc00 FS: 0000000000000000(0000) GS:ffff888096bdf000(0000) knlGS:0000000000000000 CS: 0010 DS: 002b ES: 002b CR0: 0000000080050033 CR2: 00000000f7f255c0 CR3: 00000000665c2000 CR4: 0000000000352ef0 ---------------- Code disassembly (best guess): 0: 90 nop 1: 90 nop 2: 90 nop 3: 41 57 push %r15 5: 41 56 push %r14 7: 41 55 push %r13 9: 41 54 push %r12 b: 55 push %rbp c: 53 push %rbx d: 48 89 fb mov %rdi,%rbx 10: 48 83 ec 18 sub $0x18,%rsp 14: e8 da 0f 3b fa call 0xfa3b0ff3 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 35 0b 00 00 jne 0xb69 34: 4c 8d ab a3 00 00 00 lea 0xa3(%rbx),%r13 3b: 48 8b 2b mov (%rbx),%rbp 3e: 48 rex.W 3f: b8 .byte 0xb8