------------[ cut here ]------------ WARNING: CPU: 1 PID: 23649 at net/core/dev.c:6374 netif_napi_add_weight+0x8de/0xb00 net/core/dev.c:6374 Modules linked in: CPU: 1 PID: 23649 Comm: syz-executor.4 Not tainted 5.19.0-rc2-syzkaller-00312-g4875d94c69d5 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:netif_napi_add_weight+0x8de/0xb00 net/core/dev.c:6374 Code: 08 84 c0 0f 85 b5 00 00 00 48 8b 04 24 80 a0 b1 0b 00 00 fd e9 6c fd ff ff e8 6e 01 27 fa 0f 0b e9 98 fc ff ff e8 62 01 27 fa <0f> 0b e9 54 fd ff ff e8 f6 c5 73 fa e9 40 fe ff ff e8 dc c5 73 fa RSP: 0018:ffffc90002e37b18 EFLAGS: 00010293 RAX: 0000000000000000 RBX: ffff88807e4e6000 RCX: 0000000000000000 RDX: ffff88807e319d80 RSI: ffffffff8753709e RDI: 0000000000000001 RBP: ffff88807e4e65e8 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000001 R12: ffff888078678001 R13: ffff88807e4e65d8 R14: ffff888078678c80 R15: 0000000000000000 FS: 00007f86c25d3700(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fc409e14300 CR3: 0000000060e1e000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: netif_napi_add_tx_weight include/linux/netdevice.h:2559 [inline] netif_napi_add_tx include/linux/netdevice.h:2578 [inline] tun_napi_init drivers/net/tun.c:271 [inline] tun_attach.isra.0+0x1096/0x16c0 drivers/net/tun.c:812 tun_net_init+0x45e/0x660 drivers/net/tun.c:993 register_netdevice+0x57d/0x15b0 net/core/dev.c:9993 tun_set_iff drivers/net/tun.c:2809 [inline] __tun_chr_ioctl+0x2a19/0x3da0 drivers/net/tun.c:3068 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:870 [inline] __se_sys_ioctl fs/ioctl.c:856 [inline] __x64_sys_ioctl+0x193/0x200 fs/ioctl.c:856 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x46/0xb0 RIP: 0033:0x7f86c1489109 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 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 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f86c25d3168 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f86c159c100 RCX: 00007f86c1489109 RDX: 0000000020000200 RSI: 00000000400454ca RDI: 0000000000000003 RBP: 00007f86c14e305d R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffdf696431f R14: 00007f86c25d3300 R15: 0000000000022000