Oops: general protection fault, probably for non-canonical address 0xdffffc0000000000: 0000 [#1] SMP KASAN PTI
KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007]
CPU: 0 UID: 0 PID: 23080 Comm: syz.7.6956 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 3c 4d 7f fa 4d 8b 3e 4c 89 f8 48 c1 e8 03 <42> 80 3c 20 00 74 08 4c 89 ff e8 23 4d 7f fa 41 be 88 12 00 00 4d
RSP: 0018:ffffc9000430f780 EFLAGS: 00010246
RAX: 0000000000000000 RBX: 0000000000000001 RCX: 0000000000000002
RDX: ffff88804efc3c00 RSI: 0000000000000003 RDI: 0000000000000005
RBP: 0000000000000003 R08: ffff8881012d491f R09: 1ffff1102025a923
R10: dffffc0000000000 R11: ffffffff87b59730 R12: dffffc0000000000
R13: ffff8881bc9a6530 R14: ffff88816c9ad290 R15: 0000000000000000
FS:  00007f3c06b076c0(0000) GS:ffff88818d95c000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b2e915ff8 CR3: 0000000055272000 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:0x7f3c05b9e0d9
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:00007f3c06b07028 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f3c05e26090 RCX: 00007f3c05b9e0d9
RDX: 000000000000000b RSI: 0000200000000380 RDI: 0000000000000005
RBP: 00007f3c05c35024 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f3c05e26128 R14: 00007f3c05e26090 R15: 00007ffcfefee328
 </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 3c 4d 7f fa 4d 8b 3e 4c 89 f8 48 c1 e8 03 <42> 80 3c 20 00 74 08 4c 89 ff e8 23 4d 7f fa 41 be 88 12 00 00 4d
RSP: 0018:ffffc9000430f780 EFLAGS: 00010246
RAX: 0000000000000000 RBX: 0000000000000001 RCX: 0000000000000002
RDX: ffff88804efc3c00 RSI: 0000000000000003 RDI: 0000000000000005
RBP: 0000000000000003 R08: ffff8881012d491f R09: 1ffff1102025a923
R10: dffffc0000000000 R11: ffffffff87b59730 R12: dffffc0000000000
R13: ffff8881bc9a6530 R14: ffff88816c9ad290 R15: 0000000000000000
FS:  00007f3c06b076c0(0000) GS:ffff88818d95c000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b33b11ff8 CR3: 0000000055272000 CR4: 00000000000006f0
