ip_tables: iptables: counters copy to user failed while replacing table ------------[ cut here ]------------ kernel BUG at net/core/dev.c:10116! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 17418 Comm: syz.1.5766 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/07/2026 RIP: 0010:register_netdevice+0x153e/0x1550 net/core/dev.c:10116 Code: ff 44 89 f1 80 e1 07 fe c1 38 c1 0f 8c 0f fd ff ff 4c 89 f7 e8 23 bf c1 fd e9 02 fd ff ff e8 39 23 7c fd 0f 0b e8 32 23 7c fd <0f> 0b e8 2b 23 7c fd 0f 0b 66 0f 1f 84 00 00 00 00 00 55 48 89 e5 RSP: 0018:ffffc90000ce7560 EFLAGS: 00010287 RAX: ffffffff83f54eee RBX: ffff88811329e528 RCX: 0000000000080000 RDX: ffffc90005d0a000 RSI: 00000000000077c5 RDI: 00000000000077c6 RBP: ffffc90000ce76c0 R08: ffffffff87783a47 R09: 1ffffffff0ef0748 R10: dffffc0000000000 R11: fffffbfff0ef0749 R12: ffff88811329e000 R13: dffffc0000000000 R14: 0000000000000003 R15: ffffffff87c2a080 FS: 00007fe3c3f166c0(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000000 CR3: 000000013f431000 CR4: 00000000003506a0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: register_netdev+0x3e/0x50 net/core/dev.c:10333 gether_register_netdev+0x63/0x110 drivers/usb/gadget/function/u_ether.c:886 ecm_bind+0x17f/0x780 drivers/usb/gadget/function/f_ecm.c:712 usb_add_function+0x2cf/0x830 drivers/usb/gadget/composite.c:337 configfs_composite_bind+0xa9c/0x13b0 drivers/usb/gadget/configfs.c:1443 gadget_bind_driver+0x2eb/0x990 drivers/usb/gadget/udc/core.c:1582 call_driver_probe drivers/base/dd.c:-1 [inline] really_probe+0x2d7/0x9a0 drivers/base/dd.c:639 __driver_probe_device+0x193/0x270 drivers/base/dd.c:808 driver_probe_device+0x54/0x3e0 drivers/base/dd.c:838 __driver_attach+0x41a/0x5d0 drivers/base/dd.c:1224 bus_for_each_dev+0x18c/0x200 drivers/base/bus.c:303 driver_attach+0x42/0x50 drivers/base/dd.c:1241 bus_add_driver+0x322/0x560 drivers/base/bus.c:620 driver_register+0x335/0x440 drivers/base/driver.c:246 usb_gadget_register_driver_owner+0xf8/0x270 drivers/usb/gadget/udc/core.c:1672 gadget_dev_desc_UDC_store+0x220/0x340 drivers/usb/gadget/configfs.c:327 flush_write_buffer fs/configfs/file.c:207 [inline] configfs_write_iter+0x323/0x410 fs/configfs/file.c:229 call_write_iter include/linux/fs.h:2282 [inline] new_sync_write fs/read_write.c:491 [inline] vfs_write+0x5ef/0xd00 fs/read_write.c:584 ksys_write+0x14a/0x260 fs/read_write.c:637 __do_sys_write fs/read_write.c:649 [inline] __se_sys_write fs/read_write.c:646 [inline] __x64_sys_write+0x7b/0x90 fs/read_write.c:646 x64_sys_call+0x27b/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:2 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7fe3c2f9f559 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:00007fe3c3f16028 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007fe3c3226180 RCX: 00007fe3c2f9f559 RDX: 000000000000000b RSI: 00002000000004c0 RDI: 0000000000000009 RBP: 00007fe3c3036b20 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fe3c3226218 R14: 00007fe3c3226180 R15: 00007ffc58a2c6a8 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:register_netdevice+0x153e/0x1550 net/core/dev.c:10116 Code: ff 44 89 f1 80 e1 07 fe c1 38 c1 0f 8c 0f fd ff ff 4c 89 f7 e8 23 bf c1 fd e9 02 fd ff ff e8 39 23 7c fd 0f 0b e8 32 23 7c fd <0f> 0b e8 2b 23 7c fd 0f 0b 66 0f 1f 84 00 00 00 00 00 55 48 89 e5 RSP: 0018:ffffc90000ce7560 EFLAGS: 00010287 RAX: ffffffff83f54eee RBX: ffff88811329e528 RCX: 0000000000080000 RDX: ffffc90005d0a000 RSI: 00000000000077c5 RDI: 00000000000077c6 RBP: ffffc90000ce76c0 R08: ffffffff87783a47 R09: 1ffffffff0ef0748 R10: dffffc0000000000 R11: fffffbfff0ef0749 R12: ffff88811329e000 R13: dffffc0000000000 R14: 0000000000000003 R15: ffffffff87c2a080 FS: 00007fe3c3f166c0(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000000 CR3: 000000013f431000 CR4: 00000000003506a0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400