------------[ cut here ]------------ kernel BUG at net/core/dev.c:11605! Oops: invalid opcode: 0000 [#1] SMP KASAN NOPTI CPU: 2 UID: 0 PID: 12999 Comm: syz.8.10140 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+0xace/0x26b0 net/core/dev.c:11605 Code: 0f 0b e8 f5 32 53 f8 48 8d 3d 6e f5 be 08 ba 50 2d 00 00 48 c7 c6 80 90 5c 8d 67 48 0f b9 3a e9 0a f6 ff ff e8 d3 32 53 f8 90 <0f> 0b e8 cb 32 53 f8 90 0f 0b 48 8b 5c 24 18 48 8b 6c 24 20 e8 b9 RSP: 0018:ffffc9000e49f778 EFLAGS: 00010283 RAX: 000000000000091c RBX: 1ffff92001c93ef8 RCX: ffffc9003843c000 RDX: 0000000000080000 RSI: ffffffff89baa1ed RDI: 0000000000000001 RBP: ffff888014db8000 R08: 0000000000000000 R09: 0000000000000003 R10: ffffffff91f34487 R11: 0000000000000000 R12: 0000000000000003 R13: ffff888014db8f50 R14: ffff888014db9089 R15: ffff8880232b00bc FS: 0000000000000000(0000) GS:ffff88809547e000(0063) knlGS:00000000f5406b40 CS: 0010 DS: 002b ES: 002b CR0: 0000000080050033 CR2: 000000002e3ffff8 CR3: 0000000067eac000 CR4: 0000000000352ef0 Call Trace: register_netdev+0x34/0x50 net/core/dev.c:11818 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:1663 call_driver_probe drivers/base/dd.c:629 [inline] really_probe+0x241/0xa60 drivers/base/dd.c:707 __driver_probe_device+0x210/0x460 drivers/base/dd.c:869 driver_probe_device+0x4a/0x140 drivers/base/dd.c:899 __driver_attach+0x231/0x5b0 drivers/base/dd.c:1300 bus_for_each_dev+0x13e/0x1d0 drivers/base/bus.c:383 bus_add_driver+0x4bf/0x620 drivers/base/bus.c:782 driver_register+0x1e2/0x360 drivers/base/driver.c:174 usb_gadget_register_driver_owner+0x132/0x210 drivers/usb/gadget/udc/core.c:1753 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_32_irqs_on arch/x86/entry/syscall_32.c:79 [inline] __do_fast_syscall_32+0x14b/0x8c0 arch/x86/entry/syscall_32.c:282 do_fast_syscall_32+0x32/0x70 arch/x86/entry/syscall_32.c:307 entry_SYSENTER_compat_after_hwframe+0x84/0x8e RIP: 0023:0xf73eefbc Code: d2 74 05 c1 e8 0c 89 02 8b 5d fc 31 c0 c9 c3 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 0f 1f 00 51 52 55 89 e5 0f 34 cd 80 <5d> 5a 59 c3 90 2e 8d b4 26 00 00 00 00 8d b4 26 00 00 00 00 58 b8 RSP: 002b:00000000f540650c EFLAGS: 00000292 ORIG_RAX: 0000000000000004 RAX: ffffffffffffffda RBX: 0000000000000008 RCX: 00000000800004c0 RDX: 000000000000000b RSI: 0000000000000000 RDI: 0000000000000000 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000292 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:register_netdevice+0xace/0x26b0 net/core/dev.c:11605 Code: 0f 0b e8 f5 32 53 f8 48 8d 3d 6e f5 be 08 ba 50 2d 00 00 48 c7 c6 80 90 5c 8d 67 48 0f b9 3a e9 0a f6 ff ff e8 d3 32 53 f8 90 <0f> 0b e8 cb 32 53 f8 90 0f 0b 48 8b 5c 24 18 48 8b 6c 24 20 e8 b9 RSP: 0018:ffffc9000e49f778 EFLAGS: 00010283 RAX: 000000000000091c RBX: 1ffff92001c93ef8 RCX: ffffc9003843c000 RDX: 0000000000080000 RSI: ffffffff89baa1ed RDI: 0000000000000001 RBP: ffff888014db8000 R08: 0000000000000000 R09: 0000000000000003 R10: ffffffff91f34487 R11: 0000000000000000 R12: 0000000000000003 R13: ffff888014db8f50 R14: ffff888014db9089 R15: ffff8880232b00bc FS: 0000000000000000(0000) GS:ffff88809527e000(0063) knlGS:00000000f5406b40 CS: 0010 DS: 002b ES: 002b CR0: 0000000080050033 CR2: 00000000f71c95d0 CR3: 0000000067eac000 CR4: 0000000000352ef0 ---------------- Code disassembly (best guess): 0: d2 74 05 c1 shlb %cl,-0x3f(%rbp,%rax,1) 4: e8 0c 89 02 8b call 0x8b028915 9: 5d pop %rbp a: fc cld b: 31 c0 xor %eax,%eax d: c9 leave e: c3 ret f: 90 nop 10: 90 nop 11: 90 nop 12: 90 nop 13: 90 nop 14: 90 nop 15: 90 nop 16: 90 nop 17: 90 nop 18: 90 nop 19: 90 nop 1a: 90 nop 1b: 90 nop 1c: 90 nop 1d: 90 nop 1e: 0f 1f 00 nopl (%rax) 21: 51 push %rcx 22: 52 push %rdx 23: 55 push %rbp 24: 89 e5 mov %esp,%ebp 26: 0f 34 sysenter 28: cd 80 int $0x80 * 2a: 5d pop %rbp <-- trapping instruction 2b: 5a pop %rdx 2c: 59 pop %rcx 2d: c3 ret 2e: 90 nop 2f: 2e 8d b4 26 00 00 00 cs lea 0x0(%rsi,%riz,1),%esi 36: 00 37: 8d b4 26 00 00 00 00 lea 0x0(%rsi,%riz,1),%esi 3e: 58 pop %rax 3f: b8 .byte 0xb8