------------[ cut here ]------------ kernel BUG at net/core/dev.c:11577! Oops: invalid opcode: 0000 [#1] SMP KASAN NOPTI CPU: 0 UID: 0 PID: 6676 Comm: syz.2.324 Not tainted syzkaller #0 PREEMPT(full) 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:11577 Code: 0f 0b e8 05 4d 55 f8 48 8d 3d 8e 8b c0 08 ba 34 2d 00 00 48 c7 c6 80 67 5c 8d 67 48 0f b9 3a e9 0a f6 ff ff e8 e3 4c 55 f8 90 <0f> 0b e8 db 4c 55 f8 90 0f 0b 48 8b 5c 24 18 48 8b 6c 24 20 e8 c9 RSP: 0000:ffffc90006a47778 EFLAGS: 00010283 RAX: 000000000000330e RBX: 1ffff92000d48ef8 RCX: ffffc9000cc04000 RDX: 0000000000080000 RSI: ffffffff89b865dd RDI: 0000000000000001 RBP: ffff888023978000 R08: 0000000000000000 R09: 0000000000000003 R10: ffffffff91f2b147 R11: 0000000000000000 R12: 0000000000000003 R13: ffff888023978f50 R14: ffff888023979089 R15: ffff888061afd8bc FS: 0000000000000000(0000) GS:ffff888095292000(0063) knlGS:00000000f5456b40 CS: 0010 DS: 002b ES: 002b CR0: 0000000080050033 CR2: 00000000f727fb81 CR3: 000000004e7b9000 CR4: 0000000000352ef0 Call Trace: register_netdev+0x34/0x50 net/core/dev.c:11790 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:386 bus_add_driver+0x4bf/0x620 drivers/base/bus.c:785 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:0xf7fa8fbc 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:00000000f545650c EFLAGS: 00000292 ORIG_RAX: 0000000000000004 RAX: ffffffffffffffda RBX: 0000000000000004 RCX: 0000000080000480 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:11577 Code: 0f 0b e8 05 4d 55 f8 48 8d 3d 8e 8b c0 08 ba 34 2d 00 00 48 c7 c6 80 67 5c 8d 67 48 0f b9 3a e9 0a f6 ff ff e8 e3 4c 55 f8 90 <0f> 0b e8 db 4c 55 f8 90 0f 0b 48 8b 5c 24 18 48 8b 6c 24 20 e8 c9 RSP: 0000:ffffc90006a47778 EFLAGS: 00010283 RAX: 000000000000330e RBX: 1ffff92000d48ef8 RCX: ffffc9000cc04000 RDX: 0000000000080000 RSI: ffffffff89b865dd RDI: 0000000000000001 RBP: ffff888023978000 R08: 0000000000000000 R09: 0000000000000003 R10: ffffffff91f2b147 R11: 0000000000000000 R12: 0000000000000003 R13: ffff888023978f50 R14: ffff888023979089 R15: ffff888061afd8bc FS: 0000000000000000(0000) GS:ffff888095292000(0063) knlGS:00000000f5456b40 CS: 0010 DS: 002b ES: 002b CR0: 0000000080050033 CR2: 00000000f727fb81 CR3: 000000004e7b9000 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