------------[ cut here ]------------ kernel BUG at net/core/dev.c:11443! Oops: invalid opcode: 0000 [#1] SMP KASAN NOPTI CPU: 3 UID: 0 PID: 8424 Comm: syz.3.752 Tainted: G L syzkaller #0 PREEMPT(full) 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:register_netdevice+0x1233/0x25a0 net/core/dev.c:11443 Code: 0f 0b e8 c0 8e 67 f8 48 8d 3d 79 5d af 08 ba ae 2c 00 00 48 c7 c6 00 94 39 8d 67 48 0f b9 3a e9 a5 ee ff ff e8 9e 8e 67 f8 90 <0f> 0b e8 96 8e 67 f8 90 0f 0b 48 8b 5c 24 18 48 8b 6c 24 20 e8 84 RSP: 0018:ffffc9000364f798 EFLAGS: 00010293 RAX: 0000000000000000 RBX: 1ffff920006c9efc RCX: 0000000000000000 RDX: ffff888058904b00 RSI: ffffffff89a4d4b2 RDI: ffff888058904b00 RBP: ffff88802e8ac000 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000003 R11: 0000000000000000 R12: 0000000000000003 R13: ffff88802e8acf10 R14: ffff88802e8ad049 R15: ffff888036ad70bc FS: 00007f45cf3a46c0(0000) GS:ffff8880d4c40000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f45ce588b80 CR3: 0000000062eae000 CR4: 0000000000352ef0 Call Trace: register_netdev+0x34/0x50 net/core/dev.c:11666 gether_register_netdev+0x93/0x130 drivers/usb/gadget/function/u_ether.c:873 ecm_bind+0x848/0xc00 drivers/usb/gadget/function/f_ecm.c:696 usb_add_function+0x219/0x890 drivers/usb/gadget/composite.c:333 configfs_composite_bind+0xd83/0x1960 drivers/usb/gadget/configfs.c:1802 gadget_bind_driver+0x28c/0xbf0 drivers/usb/gadget/udc/core.c:1662 call_driver_probe drivers/base/dd.c:628 [inline] really_probe+0x241/0xa60 drivers/base/dd.c:706 __driver_probe_device+0x210/0x460 drivers/base/dd.c:868 driver_probe_device+0x4a/0x140 drivers/base/dd.c:898 __driver_attach+0x21f/0x5b0 drivers/base/dd.c:1292 bus_for_each_dev+0x13e/0x1d0 drivers/base/bus.c:383 bus_add_driver+0x305/0x5b0 drivers/base/bus.c:763 driver_register+0x1e2/0x360 drivers/base/driver.c:174 usb_gadget_register_driver_owner+0x132/0x210 drivers/usb/gadget/udc/core.c:1752 gadget_dev_desc_UDC_store+0x1b0/0x2e0 drivers/usb/gadget/configfs.c:300 flush_write_buffer fs/configfs/file.c:207 [inline] configfs_write_iter+0x302/0x4e0 fs/configfs/file.c:229 new_sync_write fs/read_write.c:595 [inline] vfs_write+0x6af/0x1050 fs/read_write.c:687 ksys_write+0x12a/0x250 fs/read_write.c:739 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x123/0x790 arch/x86/entry/syscall_64.c:84 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f45ce59f559 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:00007f45cf3a4028 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f45ce826180 RCX: 00007f45ce59f559 RDX: 000000000000000c RSI: 00002000000004c0 RDI: 0000000000000004 RBP: 00007f45ce636b20 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f45ce826218 R14: 00007f45ce826180 R15: 00007ffd199e60f8 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:register_netdevice+0x1233/0x25a0 net/core/dev.c:11443 Code: 0f 0b e8 c0 8e 67 f8 48 8d 3d 79 5d af 08 ba ae 2c 00 00 48 c7 c6 00 94 39 8d 67 48 0f b9 3a e9 a5 ee ff ff e8 9e 8e 67 f8 90 <0f> 0b e8 96 8e 67 f8 90 0f 0b 48 8b 5c 24 18 48 8b 6c 24 20 e8 84 RSP: 0018:ffffc9000364f798 EFLAGS: 00010293 RAX: 0000000000000000 RBX: 1ffff920006c9efc RCX: 0000000000000000 RDX: ffff888058904b00 RSI: ffffffff89a4d4b2 RDI: ffff888058904b00 RBP: ffff88802e8ac000 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000003 R11: 0000000000000000 R12: 0000000000000003 R13: ffff88802e8acf10 R14: ffff88802e8ad049 R15: ffff888036ad70bc FS: 00007f45cf3a46c0(0000) GS:ffff8880d4b40000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f0c3ab57e20 CR3: 0000000062eae000 CR4: 0000000000352ef0