Oops: general protection fault, probably for non-canonical address 0xdffffc0000000000: 0000 [#1] SMP KASAN PTI
KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007]
CPU: 1 UID: 0 PID: 9859 Comm: syz.2.1610 Tainted: G             L      syzkaller #0 PREEMPT(full) 
Tainted: [L]=SOFTLOCKUP
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014
RIP: 0010:dummy_set_selfpowered+0xbe/0x160
Code: 8d 34 c6 49 81 c6 90 06 00 00 4c 89 f0 48 c1 e8 03 42 80 3c 20 00 74 08 4c 89 f7 e8 dc 15 7d fa 4d 8b 3e 4c 89 f8 48 c1 e8 03 <42> 80 3c 20 00 74 08 4c 89 ff e8 c3 15 7d fa 41 be 88 12 00 00 4d
RSP: 0018:ffffc900085ff780 EFLAGS: 00010246
RAX: 0000000000000000 RBX: 0000000000000001 RCX: 0000000000000002
RDX: ffff888111845a00 RSI: 0000000000000003 RDI: 0000000000000005
RBP: 0000000000000003 R08: ffff8881012d491f R09: 1ffff1102025a923
R10: dffffc0000000000 R11: ffffffff87b7aab0 R12: dffffc0000000000
R13: ffff8881b8c5e530 R14: ffff88810d25d290 R15: 0000000000000000
FS:  00007f20cd4b46c0(0000) GS:ffff8882a8f4d000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f20cd4b3ff8 CR3: 0000000165fb4000 CR4: 00000000000006f0
Call Trace:
 <TASK>
 usb_gadget_set_selfpowered+0x75/0x260
 composite_dev_prepare+0x2fa/0x320
 configfs_composite_bind+0xa5/0x1410
 gadget_bind_driver+0x2ca/0x9e0
 really_probe+0x254/0xae0
 __driver_probe_device+0x1e8/0x360
 driver_probe_device+0x4f/0x240
 __driver_attach+0x339/0x600
 bus_for_each_dev+0x23b/0x2c0
 bus_add_driver+0x345/0x670
 driver_register+0x23a/0x320
 usb_gadget_register_driver_owner+0xf9/0x270
 gadget_dev_desc_UDC_store+0x1c9/0x2f0
 configfs_write_iter+0x337/0x430
 vfs_write+0x612/0xba0
 ksys_write+0x150/0x270
 do_syscall_64+0x174/0x580
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f20cc59e019
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:00007f20cd4b4028 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f20cc825fa0 RCX: 00007f20cc59e019
RDX: 000000000000000b RSI: 0000200000000d00 RDI: 0000000000000003
RBP: 00007f20cc63500c R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f20cc826038 R14: 00007f20cc825fa0 R15: 00007ffcff7ab6c8
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:dummy_set_selfpowered+0xbe/0x160
Code: 8d 34 c6 49 81 c6 90 06 00 00 4c 89 f0 48 c1 e8 03 42 80 3c 20 00 74 08 4c 89 f7 e8 dc 15 7d fa 4d 8b 3e 4c 89 f8 48 c1 e8 03 <42> 80 3c 20 00 74 08 4c 89 ff e8 c3 15 7d fa 41 be 88 12 00 00 4d
RSP: 0018:ffffc900085ff780 EFLAGS: 00010246
RAX: 0000000000000000 RBX: 0000000000000001 RCX: 0000000000000002
RDX: ffff888111845a00 RSI: 0000000000000003 RDI: 0000000000000005
RBP: 0000000000000003 R08: ffff8881012d491f R09: 1ffff1102025a923
R10: dffffc0000000000 R11: ffffffff87b7aab0 R12: dffffc0000000000
R13: ffff8881b8c5e530 R14: ffff88810d25d290 R15: 0000000000000000
FS:  00007f20cd4b46c0(0000) GS:ffff8882a8f4d000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000110c451d88 CR3: 0000000165fb4000 CR4: 00000000000006f0
