------------[ cut here ]------------ WARNING: CPU: 0 PID: 2784 at net/core/dev.c:9593 xa_insert include/linux/xarray.h:782 [inline] WARNING: CPU: 0 PID: 2784 at net/core/dev.c:9593 dev_index_reserve+0x6f/0xf0 net/core/dev.c:9601 Modules linked in: CPU: 0 PID: 2784 Comm: syz-executor.0 Not tainted 6.5.0-rc5-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/06/2023 RIP: 0010:dev_index_reserve+0x6f/0xf0 net/core/dev.c:9593 Code: 2e 2e 31 c0 4c 89 f7 e8 5f 40 33 00 4c 89 f7 48 89 de 31 d2 b9 c0 0c 00 00 e8 6d e0 30 00 89 c3 4c 89 f7 e8 93 41 33 00 eb 59 <0f> 0b bd ea ff ff ff eb 55 48 83 c3 50 bf c0 0c 00 00 e8 0a f9 34 RSP: 0018:ffffc90000edbdd0 EFLAGS: 00010286 RAX: 70ea968d578ba300 RBX: 0000000000000000 RCX: 0000000000000000 RDX: 0000000000000000 RSI: 000000009063a344 RDI: ffff888118cc1780 RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: ffff888113254000 R13: ffff888112d9f200 R14: ffff888118cc1780 R15: ffff888113254000 FS: 00007f04592406c0(0000) GS:ffff888237c00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000000 CR3: 00000001137d7000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: register_netdevice+0x219/0x6b0 net/core/dev.c:10081 tun_set_iff+0x2d4/0x3a0 drivers/net/tun.c:2850 __tun_chr_ioctl+0x25d/0xc50 drivers/net/tun.c:3118 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:870 [inline] __se_sys_ioctl+0x6d/0xb0 fs/ioctl.c:856 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f04596bdae9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 00 00 90 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 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f04592400c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f04597dcf80 RCX: 00007f04596bdae9 RDX: 0000000020000200 RSI: 00000000400454ca RDI: 0000000000000004 RBP: 00007f045970947a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f04597dcf80 R15: 00007ffe04d6f438