program: mkdirat(0xffffffffffffff9c, &(0x7f00000001c0)='./proc\x00', 0x1ff) mount(0x0, &(0x7f0000000200)='./proc\x00', &(0x7f0000000240)='proc\x00', 0x4000, 0x0) r0 = openat(0xffffffffffffff9c, &(0x7f0000002680)='./proc/thread-self/fail-nth\x00', 0x2, 0x0) write(r0, &(0x7f00000026c0)='270', 0x3) mkdirat(0xffffffffffffff9c, &(0x7f0000000140)='./config\x00', 0x1ff) mount(0x0, &(0x7f0000000480)='./config\x00', &(0x7f0000000500)='configfs\x00', 0x0, 0x0) mkdirat(0xffffffffffffff9c, &(0x7f0000000540)='./config/usb_gadget/g1\x00', 0x1ff) r1 = syz_open_dev$dri(&(0x7f0000000000), 0x1ff, 0x20000) r2 = syz_open_dev$dri(&(0x7f0000000040), 0x1ff, 0x0) ioctl$DRM_IOCTL_MODE_GETRESOURCES(r2, 0xc04064a0, &(0x7f0000000080)={0x0, &(0x7f00000000c0)=[0x0], 0x0, 0x0, 0x0, 0x1}) ioctl$DRM_IOCTL_MODE_PAGE_FLIP(r1, 0xc01864b0, &(0x7f0000000100)={r3, 0x0, 0x9, 0x0, 0xfbfffffffffffffd}) mkdirat(0xffffffffffffff9c, &(0x7f0000000580)='./config/usb_gadget/g1/functions/ecm.usb0\x00', 0x1ff) mkdirat(0xffffffffffffff9c, &(0x7f00000005c0)='./config/usb_gadget/g1/configs/c.1\x00', 0x1ff) symlinkat(&(0x7f0000000600)='./config/usb_gadget/g1/functions/ecm.usb0\x00', 0xffffffffffffff9c, &(0x7f0000000640)='./config/usb_gadget/g1/configs/c.1/ecm.usb0\x00') r4 = openat(0xffffffffffffff9c, &(0x7f0000000680)='./config/usb_gadget/g1/UDC\x00', 0x1, 0x0) write(r4, &(0x7f00000006c0)='dummy_udc.0', 0xb) mkdirat(0xffffffffffffff9c, &(0x7f00000001c0)='./proc\x00', 0x1ff) (async) mount(0x0, &(0x7f0000000200)='./proc\x00', &(0x7f0000000240)='proc\x00', 0x4000, 0x0) (async) openat(0xffffffffffffff9c, &(0x7f0000002680)='./proc/thread-self/fail-nth\x00', 0x2, 0x0) (async) write(r0, &(0x7f00000026c0)='270', 0x3) (async) mkdirat(0xffffffffffffff9c, &(0x7f0000000140)='./config\x00', 0x1ff) (async) mount(0x0, &(0x7f0000000480)='./config\x00', &(0x7f0000000500)='configfs\x00', 0x0, 0x0) (async) mkdirat(0xffffffffffffff9c, &(0x7f0000000540)='./config/usb_gadget/g1\x00', 0x1ff) (async) syz_open_dev$dri(&(0x7f0000000000), 0x1ff, 0x20000) (async) syz_open_dev$dri(&(0x7f0000000040), 0x1ff, 0x0) (async) ioctl$DRM_IOCTL_MODE_GETRESOURCES(r2, 0xc04064a0, &(0x7f0000000080)={0x0, &(0x7f00000000c0)=[0x0], 0x0, 0x0, 0x0, 0x1}) (async) ioctl$DRM_IOCTL_MODE_PAGE_FLIP(r1, 0xc01864b0, &(0x7f0000000100)={r3, 0x0, 0x9, 0x0, 0xfbfffffffffffffd}) (async) mkdirat(0xffffffffffffff9c, &(0x7f0000000580)='./config/usb_gadget/g1/functions/ecm.usb0\x00', 0x1ff) (async) mkdirat(0xffffffffffffff9c, &(0x7f00000005c0)='./config/usb_gadget/g1/configs/c.1\x00', 0x1ff) (async) symlinkat(&(0x7f0000000600)='./config/usb_gadget/g1/functions/ecm.usb0\x00', 0xffffffffffffff9c, &(0x7f0000000640)='./config/usb_gadget/g1/configs/c.1/ecm.usb0\x00') (async) openat(0xffffffffffffff9c, &(0x7f0000000680)='./config/usb_gadget/g1/UDC\x00', 0x1, 0x0) (async) write(r4, &(0x7f00000006c0)='dummy_udc.0', 0xb) (async) [ 102.351701][ T5291] Bluetooth: hci0: command tx timeout [ 102.504823][ T5330] FAULT_INJECTION: forcing a failure. [ 102.504823][ T5330] name failslab, interval 1, probability 0, space 0, times 1 [ 102.504852][ T5330] CPU: 0 UID: 0 PID: 5330 Comm: syz.0.0 Not tainted syzkaller #0 PREEMPT(full) [ 102.504867][ T5330] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 102.504887][ T5330] Call Trace: [ 102.504902][ T5330] [ 102.504909][ T5330] dump_stack_lvl+0xe8/0x150 [ 102.504983][ T5330] should_fail_ex+0x410/0x560 [ 102.505051][ T5330] should_failslab+0xa8/0x100 [ 102.505077][ T5330] ? __kernfs_new_node+0xe6/0x980 [ 102.505105][ T5330] kmem_cache_alloc_noprof+0xa1/0x600 [ 102.505139][ T5330] ? __kernfs_new_node+0xe6/0x980 [ 102.505157][ T5330] __kernfs_new_node+0xe6/0x980 [ 102.505177][ T5330] ? __pfx___kernfs_new_node+0x10/0x10 [ 102.505192][ T5330] ? kernfs_root+0x1c/0x230 [ 102.505210][ T5330] ? kernfs_root+0x1c/0x230 [ 102.505222][ T5330] ? kernfs_root+0x1c/0x230 [ 102.505233][ T5330] ? kernfs_root+0x1c/0x230 [ 102.505248][ T5330] kernfs_new_node+0xea/0x140 [ 102.505267][ T5330] __kernfs_create_file+0x4b/0x2e0 [ 102.505284][ T5330] sysfs_add_file_mode_ns+0x237/0x300 [ 102.505309][ T5330] internal_create_group+0x679/0x1180 [ 102.505331][ T5330] ? __pfx_internal_create_group+0x10/0x10 [ 102.505347][ T5330] ? up_write+0x19d/0x4a0 [ 102.505380][ T5330] sysfs_create_groups+0x59/0x120 [ 102.505395][ T5330] device_add_attrs+0xde/0x600 [ 102.505413][ T5330] ? __pfx_device_add_attrs+0x10/0x10 [ 102.505432][ T5330] ? device_add_class_symlinks+0x21f/0x240 [ 102.505451][ T5330] device_add+0x488/0xb80 [ 102.505469][ T5330] netdev_register_kobject+0x197/0x350 [ 102.505547][ T5330] register_netdevice+0x1433/0x1eb0 [ 102.505576][ T5330] ? __pfx_register_netdevice+0x10/0x10 [ 102.505593][ T5330] ? __hw_addr_insert+0x1f8/0x220 [ 102.505611][ T5330] ? dev_addr_mod+0x1ba/0x350 [ 102.505627][ T5330] register_netdev+0x40/0x60 [ 102.505641][ T5330] gether_register_netdev+0x84/0x180 [ 102.505661][ T5330] ecm_bind+0x201/0xa30 [ 102.505682][ T5330] usb_add_function+0x2e1/0x9f0 [ 102.505701][ T5330] ? check_remote_wakeup_config+0x58/0x1c0 [ 102.505721][ T5330] configfs_composite_bind+0xde0/0x1410 [ 102.505756][ T5330] ? __pfx_configfs_composite_bind+0x10/0x10 [ 102.505774][ T5330] gadget_bind_driver+0x2ca/0x9e0 [ 102.505797][ T5330] ? __pfx_gadget_bind_driver+0x10/0x10 [ 102.505811][ T5330] really_probe+0x254/0xae0 [ 102.505833][ T5330] __driver_probe_device+0x1e8/0x360 [ 102.505853][ T5330] driver_probe_device+0x4f/0x240 [ 102.505873][ T5330] __driver_attach+0x339/0x600 [ 102.505893][ T5330] bus_for_each_dev+0x23b/0x2c0 [ 102.505907][ T5330] ? __pfx___driver_attach+0x10/0x10 [ 102.505924][ T5330] ? __pfx_bus_for_each_dev+0x10/0x10 [ 102.505942][ T5330] ? do_raw_spin_unlock+0x4d/0x200 [ 102.505965][ T5330] bus_add_driver+0x345/0x670 [ 102.505985][ T5330] driver_register+0x23a/0x320 [ 102.506006][ T5330] usb_gadget_register_driver_owner+0xf9/0x270 [ 102.506024][ T5330] gadget_dev_desc_UDC_store+0x1c9/0x2f0 [ 102.506040][ T5330] ? __pfx_gadget_dev_desc_UDC_store+0x10/0x10 [ 102.506057][ T5330] configfs_write_iter+0x337/0x430 [ 102.506076][ T5330] vfs_write+0x612/0xba0 [ 102.506111][ T5330] ? __pfx_vfs_write+0x10/0x10 [ 102.506138][ T5330] ? __fget_files+0x2a/0x420 [ 102.506163][ T5330] ksys_write+0x150/0x270 [ 102.506184][ T5330] ? __pfx_ksys_write+0x10/0x10 [ 102.506211][ T5330] do_syscall_64+0x166/0x520 [ 102.506225][ T5330] ? trace_irq_disable+0x3b/0x140 [ 102.506248][ T5330] ? entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 102.506261][ T5330] ? clear_bhb_loop+0x70/0xc0 [ 102.506278][ T5330] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 102.506291][ T5330] RIP: 0033:0x7fbf1b79e559 [ 102.506306][ T5330] 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 [ 102.506316][ T5330] RSP: 002b:00007fbf1c5bdfe8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 [ 102.506333][ T5330] RAX: ffffffffffffffda RBX: 00007fbf1ba25fa0 RCX: 00007fbf1b79e559 [ 102.506342][ T5330] RDX: 000000000000000b RSI: 00002000000006c0 RDI: 0000000000000006 [ 102.506350][ T5330] RBP: 00007fbf1b835ab8 R08: 0000000000000000 R09: 0000000000000000 [ 102.506358][ T5330] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 [ 102.506365][ T5330] R13: 00007fbf1ba26038 R14: 00007fbf1ba25fa0 R15: 00007ffd1ef6b718 [ 102.506388][ T5330] [ 102.508347][ T5330] udc dummy_udc.0: failed to start g1: -12 [ 102.740615][ T5330] configfs-gadget.g1 gadget.0: probe with driver configfs-gadget.g1 failed with error -12 [ 102.767185][ T5330] UDC core: g1: couldn't find an available UDC or it's busy [ 102.778620][ T5331] ------------[ cut here ]------------ [ 102.778632][ T5331] kernel BUG at net/core/dev.c:11443! [ 102.779455][ T5331] Oops: invalid opcode: 0000 [#1] SMP KASAN NOPTI [ 102.787131][ T5331] CPU: 0 UID: 0 PID: 5331 Comm: syz.0.0 Not tainted syzkaller #0 PREEMPT(full) [ 102.791005][ T5331] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 102.795371][ T5331] RIP: 0010:register_netdevice+0x1e94/0x1eb0 [ 102.798053][ T5331] Code: ff 44 89 f1 80 e1 07 38 c1 0f 8c be fb ff ff 4c 89 f7 e8 2f a5 82 f8 e9 b1 fb ff ff e8 85 29 10 f8 90 0f 0b e8 7d 29 10 f8 90 <0f> 0b e8 75 29 10 f8 90 0f 0b e8 6d 29 10 f8 41 be 42 00 00 00 e9 [ 102.806299][ T5331] RSP: 0018:ffffc9000e4a7580 EFLAGS: 00010293 [ 102.808949][ T5331] RAX: ffffffff89b7f8b3 RBX: 1ffff92001c94ec4 RCX: ffff888034f1a580 [ 102.812339][ T5331] RDX: 0000000000000000 RSI: 0000000000000003 RDI: 0000000000000000 [ 102.815710][ T5331] RBP: ffffc9000e4a7700 R08: ffffffff91258127 R09: 1ffffffff224b024 [ 102.819232][ T5331] R10: dffffc0000000000 R11: fffffbfff224b025 R12: ffff888043388f10 [ 102.822739][ T5331] R13: dffffc0000000000 R14: 0000000000000003 R15: ffff888043388000 [ 102.826215][ T5331] FS: 00007fbf1c59d6c0(0000) GS:ffff88808b0b4000(0000) knlGS:0000000000000000 [ 102.829920][ T5331] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 102.832760][ T5331] CR2: 00007fbf17acbfe8 CR3: 00000000134dd000 CR4: 0000000000352ef0 [ 102.836197][ T5331] Call Trace: [ 102.837652][ T5331] [ 102.838928][ T5331] ? register_netdev+0x18/0x60 [ 102.841030][ T5331] ? __pfx___mutex_lock+0x10/0x10 [ 102.842969][ T5331] ? __pfx_register_netdevice+0x10/0x10 [ 102.845055][ T5331] ? __hw_addr_insert+0x1f8/0x220 [ 102.846954][ T5331] ? dev_addr_mod+0x174/0x350 [ 102.849145][ T5331] ? dev_addr_mod+0x1ba/0x350 [ 102.851196][ T5331] register_netdev+0x40/0x60 [ 102.853238][ T5331] gether_register_netdev+0x84/0x180 [ 102.855496][ T5331] ecm_bind+0x201/0xa30 [ 102.857090][ T5331] ? rcu_is_watching+0x16/0xb0 [ 102.859218][ T5331] usb_add_function+0x2e1/0x9f0 [ 102.861321][ T5331] ? check_remote_wakeup_config+0x58/0x1c0 [ 102.863838][ T5331] configfs_composite_bind+0xde0/0x1410 [ 102.866258][ T5331] ? __pfx_configfs_composite_bind+0x10/0x10 [ 102.868868][ T5331] gadget_bind_driver+0x2ca/0x9e0 [ 102.871054][ T5331] ? __pfx_gadget_bind_driver+0x10/0x10 [ 102.873461][ T5331] really_probe+0x254/0xae0 [ 102.875479][ T5331] __driver_probe_device+0x1e8/0x360 [ 102.877789][ T5331] driver_probe_device+0x4f/0x240 [ 102.880000][ T5331] __driver_attach+0x339/0x600 [ 102.882185][ T5331] bus_for_each_dev+0x23b/0x2c0 [ 102.884275][ T5331] ? __pfx___driver_attach+0x10/0x10 [ 102.886585][ T5331] ? __pfx_bus_for_each_dev+0x10/0x10 [ 102.888939][ T5331] ? do_raw_spin_unlock+0x4d/0x200 [ 102.891177][ T5331] bus_add_driver+0x345/0x670 [ 102.893227][ T5331] driver_register+0x23a/0x320 [ 102.895368][ T5331] usb_gadget_register_driver_owner+0xf9/0x270 [ 102.897988][ T5331] gadget_dev_desc_UDC_store+0x1c9/0x2f0 [ 102.900397][ T5331] ? __pfx_gadget_dev_desc_UDC_store+0x10/0x10 [ 102.903018][ T5331] configfs_write_iter+0x337/0x430 [ 102.904934][ T5331] vfs_write+0x612/0xba0 [ 102.906626][ T5331] ? __pfx_vfs_write+0x10/0x10 [ 102.908491][ T5331] ? __fget_files+0x2a/0x420 [ 102.910348][ T5331] ksys_write+0x150/0x270 [ 102.912018][ T5331] ? __pfx_ksys_write+0x10/0x10 [ 102.914009][ T5331] do_syscall_64+0x166/0x520 [ 102.916129][ T5331] ? trace_irq_disable+0x3b/0x140 [ 102.918313][ T5331] ? entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 102.920963][ T5331] ? clear_bhb_loop+0x70/0xc0 [ 102.923053][ T5331] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 102.925629][ T5331] RIP: 0033:0x7fbf1b79e559 [ 102.927571][ T5331] 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 [ 102.935818][ T5331] RSP: 002b:00007fbf1c59cfe8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 [ 102.939395][ T5331] RAX: ffffffffffffffda RBX: 00007fbf1ba26090 RCX: 00007fbf1b79e559 [ 102.942859][ T5331] RDX: 000000000000000b RSI: 00002000000006c0 RDI: 0000000000000006 [ 102.946233][ T5331] RBP: 00007fbf1b835ab8 R08: 0000000000000000 R09: 0000000000000000 [ 102.949550][ T5331] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 [ 102.952878][ T5331] R13: 00007fbf1ba26128 R14: 00007fbf1ba26090 R15: 00007ffd1ef6b718 [ 102.956157][ T5331] [ 102.957329][ T5331] Modules linked in: [ 102.959592][ T5331] ---[ end trace 0000000000000000 ]--- [ 102.967135][ T5331] RIP: 0010:register_netdevice+0x1e94/0x1eb0 [ 102.967166][ T5331] Code: ff 44 89 f1 80 e1 07 38 c1 0f 8c be fb ff ff 4c 89 f7 e8 2f a5 82 f8 e9 b1 fb ff ff e8 85 29 10 f8 90 0f 0b e8 7d 29 10 f8 90 <0f> 0b e8 75 29 10 f8 90 0f 0b e8 6d 29 10 f8 41 be 42 00 00 00 e9 [ 102.967177][ T5331] RSP: 0018:ffffc9000e4a7580 EFLAGS: 00010293 [ 102.967189][ T5331] RAX: ffffffff89b7f8b3 RBX: 1ffff92001c94ec4 RCX: ffff888034f1a580 [ 102.967198][ T5331] RDX: 0000000000000000 RSI: 0000000000000003 RDI: 0000000000000000 [ 102.967206][ T5331] RBP: ffffc9000e4a7700 R08: ffffffff91258127 R09: 1ffffffff224b024 [ 102.967215][ T5331] R10: dffffc0000000000 R11: fffffbfff224b025 R12: ffff888043388f10 [ 102.967224][ T5331] R13: dffffc0000000000 R14: 0000000000000003 R15: ffff888043388000 [ 102.967232][ T5331] FS: 00007fbf1c59d6c0(0000) GS:ffff88808b0b4000(0000) knlGS:0000000000000000 [ 102.967242][ T5331] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 102.967250][ T5331] CR2: 00007fbf17acbfe8 CR3: 00000000134dd000 CR4: 0000000000352ef0 [ 102.967292][ T5331] Kernel panic - not syncing: Fatal exception [ 103.009861][ T5331] Kernel Offset: disabled [ 103.011611][ T5331] Rebooting in 86400 seconds..