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) r1 = syz_usb_connect$hid(0x6, 0x36, &(0x7f0000000000)=ANY=[@ANYRES64=r0], 0x0) syz_usb_control_io(r1, 0x0, 0x0) syz_usb_control_io(r1, &(0x7f0000000040)={0x2c, &(0x7f0000000080)=ANY=[@ANYBLOB=' mO'], 0x0, 0x0, 0x0, 0x0}, 0x0) sendmsg$ETHTOOL_MSG_WOL_SET(0xffffffffffffffff, &(0x7f00000000c0)={0x0, 0x0, &(0x7f0000000100)={&(0x7f0000000180)=ANY=[@ANYBLOB="1c000000", @ANYRES16, @ANYBLOB="470d000000000000000000000000080002"], 0x1c}}, 0x0) r2 = syz_init_net_socket$nl_rdma(0x10, 0x3, 0x10) sendmsg$netlink(r2, &(0x7f0000000280)={0x0, 0x0, &(0x7f00000002c0)=[{&(0x7f0000000300)=ANY=[@ANYBLOB="14020000140001002dbd7000000000000a"], 0x214}], 0x1}, 0x0) 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) 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') r3 = openat(0xffffffffffffff9c, &(0x7f0000000680)='./config/usb_gadget/g1/UDC\x00', 0x1, 0x0) write(r3, &(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) syz_usb_connect$hid(0x6, 0x36, &(0x7f0000000000)=ANY=[@ANYRES64=r0], 0x0) (async) syz_usb_control_io(r1, 0x0, 0x0) (async) syz_usb_control_io(r1, &(0x7f0000000040)={0x2c, &(0x7f0000000080)=ANY=[@ANYBLOB=' mO'], 0x0, 0x0, 0x0, 0x0}, 0x0) (async) sendmsg$ETHTOOL_MSG_WOL_SET(0xffffffffffffffff, &(0x7f00000000c0)={0x0, 0x0, &(0x7f0000000100)={&(0x7f0000000180)=ANY=[@ANYBLOB="1c000000", @ANYRES16, @ANYBLOB="470d000000000000000000000000080002"], 0x1c}}, 0x0) (async) syz_init_net_socket$nl_rdma(0x10, 0x3, 0x10) (async) sendmsg$netlink(r2, &(0x7f0000000280)={0x0, 0x0, &(0x7f00000002c0)=[{&(0x7f0000000300)=ANY=[@ANYBLOB="14020000140001002dbd7000000000000a"], 0x214}], 0x1}, 0x0) (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) 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(r3, &(0x7f00000006c0)='dummy_udc.0', 0xb) (async) [ 103.294267][ T47] Bluetooth: hci0: command tx timeout [ 103.404581][ T5331] netlink: 512 bytes leftover after parsing attributes in process `syz.0.0'. [ 103.427064][ T5331] FAULT_INJECTION: forcing a failure. [ 103.427064][ T5331] name failslab, interval 1, probability 0, space 0, times 1 [ 103.427101][ T5331] CPU: 0 UID: 0 PID: 5331 Comm: syz.0.0 Not tainted syzkaller #0 PREEMPT(full) [ 103.427113][ T5331] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 103.427131][ T5331] Call Trace: [ 103.427160][ T5331] [ 103.427168][ T5331] dump_stack_lvl+0xe8/0x150 [ 103.427283][ T5331] should_fail_ex+0x410/0x560 [ 103.427357][ T5331] should_failslab+0xa8/0x100 [ 103.427381][ T5331] ? __kernfs_new_node+0xe6/0x980 [ 103.427394][ T5331] kmem_cache_alloc_noprof+0xa1/0x600 [ 103.427413][ T5331] ? __kernfs_new_node+0xe6/0x980 [ 103.427430][ T5331] __kernfs_new_node+0xe6/0x980 [ 103.427449][ T5331] ? __pfx___kernfs_new_node+0x10/0x10 [ 103.427462][ T5331] ? kernfs_root+0x1c/0x230 [ 103.427476][ T5331] ? kernfs_root+0x1c/0x230 [ 103.427486][ T5331] ? kernfs_root+0x1c/0x230 [ 103.427502][ T5331] ? kernfs_root+0x1c/0x230 [ 103.427516][ T5331] kernfs_new_node+0xea/0x140 [ 103.427531][ T5331] __kernfs_create_file+0x4b/0x2e0 [ 103.427548][ T5331] sysfs_add_file_mode_ns+0x237/0x300 [ 103.427569][ T5331] internal_create_group+0x679/0x1180 [ 103.427590][ T5331] ? __pfx_internal_create_group+0x10/0x10 [ 103.427604][ T5331] ? up_write+0x19d/0x4a0 [ 103.427638][ T5331] sysfs_create_groups+0x59/0x120 [ 103.427653][ T5331] device_add_attrs+0xde/0x600 [ 103.427695][ T5331] ? __pfx_device_add_attrs+0x10/0x10 [ 103.427711][ T5331] ? device_add_class_symlinks+0x21f/0x240 [ 103.427726][ T5331] device_add+0x488/0xb80 [ 103.427742][ T5331] netdev_register_kobject+0x197/0x350 [ 103.427844][ T5331] register_netdevice+0x1433/0x1eb0 [ 103.427868][ T5331] ? __pfx_register_netdevice+0x10/0x10 [ 103.427882][ T5331] ? __hw_addr_insert+0x1f8/0x220 [ 103.427905][ T5331] ? dev_addr_mod+0x1ba/0x350 [ 103.427917][ T5331] register_netdev+0x40/0x60 [ 103.427929][ T5331] gether_register_netdev+0x84/0x180 [ 103.427962][ T5331] ecm_bind+0x201/0xa30 [ 103.427986][ T5331] usb_add_function+0x2e1/0x9f0 [ 103.428026][ T5331] ? check_remote_wakeup_config+0x58/0x1c0 [ 103.428044][ T5331] configfs_composite_bind+0xde0/0x1410 [ 103.428069][ T5331] ? __pfx_configfs_composite_bind+0x10/0x10 [ 103.428083][ T5331] gadget_bind_driver+0x2ca/0x9e0 [ 103.428105][ T5331] ? __pfx_gadget_bind_driver+0x10/0x10 [ 103.428116][ T5331] really_probe+0x254/0xae0 [ 103.428135][ T5331] __driver_probe_device+0x1e8/0x360 [ 103.428152][ T5331] driver_probe_device+0x4f/0x240 [ 103.428169][ T5331] __driver_attach+0x339/0x600 [ 103.428185][ T5331] bus_for_each_dev+0x23b/0x2c0 [ 103.428197][ T5331] ? __pfx___driver_attach+0x10/0x10 [ 103.428211][ T5331] ? __pfx_bus_for_each_dev+0x10/0x10 [ 103.428226][ T5331] ? do_raw_spin_unlock+0x4d/0x200 [ 103.428245][ T5331] bus_add_driver+0x345/0x670 [ 103.428262][ T5331] driver_register+0x23a/0x320 [ 103.428278][ T5331] usb_gadget_register_driver_owner+0xf9/0x270 [ 103.428292][ T5331] gadget_dev_desc_UDC_store+0x1c9/0x2f0 [ 103.428304][ T5331] ? __pfx_gadget_dev_desc_UDC_store+0x10/0x10 [ 103.428319][ T5331] configfs_write_iter+0x337/0x430 [ 103.428336][ T5331] vfs_write+0x612/0xba0 [ 103.428358][ T5331] ? __pfx_vfs_write+0x10/0x10 [ 103.428380][ T5331] ? __fget_files+0x2a/0x420 [ 103.428402][ T5331] ksys_write+0x150/0x270 [ 103.428419][ T5331] ? __pfx_ksys_write+0x10/0x10 [ 103.428442][ T5331] do_syscall_64+0x166/0x520 [ 103.428478][ T5331] ? trace_irq_disable+0x3b/0x140 [ 103.428498][ T5331] ? entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 103.428508][ T5331] ? clear_bhb_loop+0x70/0xc0 [ 103.428522][ T5331] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 103.428532][ T5331] RIP: 0033:0x7f8b2279e559 [ 103.428545][ 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 [ 103.428555][ T5331] RSP: 002b:00007f8b2360efe8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 [ 103.428568][ T5331] RAX: ffffffffffffffda RBX: 00007f8b22a25fa0 RCX: 00007f8b2279e559 [ 103.428576][ T5331] RDX: 000000000000000b RSI: 00002000000006c0 RDI: 0000000000000005 [ 103.428583][ T5331] RBP: 00007f8b228358b0 R08: 0000000000000000 R09: 0000000000000000 [ 103.428590][ T5331] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 [ 103.428596][ T5331] R13: 00007f8b22a26038 R14: 00007f8b22a25fa0 R15: 00007fff4f743f18 [ 103.428616][ T5331] [ 103.430074][ T5331] udc dummy_udc.0: failed to start g1: -12 [ 103.430090][ T5331] configfs-gadget.g1 gadget.0: probe with driver configfs-gadget.g1 failed with error -12 [ 103.434989][ T5331] UDC core: g1: couldn't find an available UDC or it's busy [ 103.660202][ T5332] netlink: 512 bytes leftover after parsing attributes in process `syz.0.0'. [ 103.664689][ T5332] ------------[ cut here ]------------ [ 103.664702][ T5332] kernel BUG at net/core/dev.c:11443! [ 103.664842][ T5332] Oops: invalid opcode: 0000 [#1] SMP KASAN NOPTI [ 103.676074][ T5332] CPU: 0 UID: 0 PID: 5332 Comm: syz.0.0 Not tainted syzkaller #0 PREEMPT(full) [ 103.680014][ T5332] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 103.684440][ T5332] RIP: 0010:register_netdevice+0x1e94/0x1eb0 [ 103.687002][ T5332] Code: ff 44 89 f1 80 e1 07 38 c1 0f 8c be fb ff ff 4c 89 f7 e8 5f b2 82 f8 e9 b1 fb ff ff e8 b5 33 10 f8 90 0f 0b e8 ad 33 10 f8 90 <0f> 0b e8 a5 33 10 f8 90 0f 0b e8 9d 33 10 f8 41 be 42 00 00 00 e9 [ 103.695199][ T5332] RSP: 0018:ffffc9000dd37580 EFLAGS: 00010293 [ 103.697879][ T5332] RAX: ffffffff89b7ede3 RBX: 1ffff92001ba6ec4 RCX: ffff888000ef8000 [ 103.701187][ T5332] RDX: 0000000000000000 RSI: 0000000000000003 RDI: 0000000000000000 [ 103.704632][ T5332] RBP: ffffc9000dd37700 R08: ffffffff91257fe7 R09: 1ffffffff224affc [ 103.708177][ T5332] R10: dffffc0000000000 R11: fffffbfff224affd R12: ffff888035318f10 [ 103.711756][ T5332] R13: dffffc0000000000 R14: 0000000000000003 R15: ffff888035318000 [ 103.715132][ T5332] FS: 00007f8b235ee6c0(0000) GS:ffff88808b0b4000(0000) knlGS:0000000000000000 [ 103.718974][ T5332] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 103.721788][ T5332] CR2: 00007f8b23589fa0 CR3: 0000000044d9c000 CR4: 0000000000352ef0 [ 103.725210][ T5332] Call Trace: [ 103.726723][ T5332] [ 103.728020][ T5332] ? trace_contention_end+0x3d/0x140 [ 103.730405][ T5332] ? __mutex_lock+0x30b/0x1550 [ 103.732543][ T5332] ? register_netdev+0x18/0x60 [ 103.734650][ T5332] ? __pfx___mutex_lock+0x10/0x10 [ 103.736831][ T5332] ? __pfx_register_netdevice+0x10/0x10 [ 103.739362][ T5332] ? __hw_addr_insert+0x1f8/0x220 [ 103.741624][ T5332] ? dev_addr_mod+0x174/0x350 [ 103.743711][ T5332] ? dev_addr_mod+0x1ba/0x350 [ 103.745737][ T5332] register_netdev+0x40/0x60 [ 103.747803][ T5332] gether_register_netdev+0x84/0x180 [ 103.750170][ T5332] ecm_bind+0x201/0xa30 [ 103.751954][ T5332] ? rcu_is_watching+0x16/0xb0 [ 103.753962][ T5332] usb_add_function+0x2e1/0x9f0 [ 103.756078][ T5332] ? check_remote_wakeup_config+0x58/0x1c0 [ 103.758627][ T5332] configfs_composite_bind+0xde0/0x1410 [ 103.761015][ T5332] ? __pfx_configfs_composite_bind+0x10/0x10 [ 103.763571][ T5332] gadget_bind_driver+0x2ca/0x9e0 [ 103.765696][ T5332] ? __pfx_gadget_bind_driver+0x10/0x10 [ 103.768107][ T5332] really_probe+0x254/0xae0 [ 103.770089][ T5332] __driver_probe_device+0x1e8/0x360 [ 103.772286][ T5332] driver_probe_device+0x4f/0x240 [ 103.774492][ T5332] __driver_attach+0x339/0x600 [ 103.776691][ T5332] bus_for_each_dev+0x23b/0x2c0 [ 103.778830][ T5332] ? __pfx___driver_attach+0x10/0x10 [ 103.781176][ T5332] ? __pfx_bus_for_each_dev+0x10/0x10 [ 103.783520][ T5332] ? do_raw_spin_unlock+0x4d/0x200 [ 103.785772][ T5332] bus_add_driver+0x345/0x670 [ 103.787868][ T5332] driver_register+0x23a/0x320 [ 103.789937][ T5332] usb_gadget_register_driver_owner+0xf9/0x270 [ 103.792632][ T5332] gadget_dev_desc_UDC_store+0x1c9/0x2f0 [ 103.795146][ T5332] ? __pfx_gadget_dev_desc_UDC_store+0x10/0x10 [ 103.797896][ T5332] configfs_write_iter+0x337/0x430 [ 103.800143][ T5332] vfs_write+0x612/0xba0 [ 103.802003][ T5332] ? __pfx_vfs_write+0x10/0x10 [ 103.804059][ T5332] ? __fget_files+0x2a/0x420 [ 103.806077][ T5332] ksys_write+0x150/0x270 [ 103.807965][ T5332] ? __pfx_ksys_write+0x10/0x10 [ 103.810139][ T5332] do_syscall_64+0x166/0x520 [ 103.815740][ T5332] ? trace_irq_disable+0x3b/0x140 [ 103.817892][ T5332] ? entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 103.822084][ T5332] ? clear_bhb_loop+0x70/0xc0 [ 103.824253][ T5332] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 103.826838][ T5332] RIP: 0033:0x7f8b2279e559 [ 103.828833][ T5332] 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 [ 103.837300][ T5332] RSP: 002b:00007f8b235edfe8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 [ 103.840914][ T5332] RAX: ffffffffffffffda RBX: 00007f8b22a26090 RCX: 00007f8b2279e559 [ 103.844329][ T5332] RDX: 000000000000000b RSI: 00002000000006c0 RDI: 0000000000000005 [ 103.847597][ T5332] RBP: 00007f8b228358b0 R08: 0000000000000000 R09: 0000000000000000 [ 103.850876][ T5332] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 [ 103.854163][ T5332] R13: 00007f8b22a26128 R14: 00007f8b22a26090 R15: 00007fff4f743f18 [ 103.857525][ T5332] [ 103.858833][ T5332] Modules linked in: [ 103.866006][ T5332] ---[ end trace 0000000000000000 ]--- [ 103.877866][ T5332] RIP: 0010:register_netdevice+0x1e94/0x1eb0 [ 103.877889][ T5332] Code: ff 44 89 f1 80 e1 07 38 c1 0f 8c be fb ff ff 4c 89 f7 e8 5f b2 82 f8 e9 b1 fb ff ff e8 b5 33 10 f8 90 0f 0b e8 ad 33 10 f8 90 <0f> 0b e8 a5 33 10 f8 90 0f 0b e8 9d 33 10 f8 41 be 42 00 00 00 e9 [ 103.877898][ T5332] RSP: 0018:ffffc9000dd37580 EFLAGS: 00010293 [ 103.877908][ T5332] RAX: ffffffff89b7ede3 RBX: 1ffff92001ba6ec4 RCX: ffff888000ef8000 [ 103.877916][ T5332] RDX: 0000000000000000 RSI: 0000000000000003 RDI: 0000000000000000 [ 103.877923][ T5332] RBP: ffffc9000dd37700 R08: ffffffff91257fe7 R09: 1ffffffff224affc [ 103.877931][ T5332] R10: dffffc0000000000 R11: fffffbfff224affd R12: ffff888035318f10 [ 103.877938][ T5332] R13: dffffc0000000000 R14: 0000000000000003 R15: ffff888035318000 [ 103.877945][ T5332] FS: 00007f8b235ee6c0(0000) GS:ffff88808b0b4000(0000) knlGS:0000000000000000 [ 103.877953][ T5332] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 103.877960][ T5332] CR2: 00007f8b23589fa0 CR3: 0000000044d9c000 CR4: 0000000000352ef0 [ 103.878002][ T5332] Kernel panic - not syncing: Fatal exception [ 103.919842][ T5332] Kernel Offset: disabled [ 103.921718][ T5332] Rebooting in 86400 seconds..