RBP: 00007f5532e7005d R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffff81aa9af R14: 00007f5531f4a300 R15: 0000000000022000 ---[ end trace adb4e59b2562c675 ]--- ------------[ cut here ]------------ kernel BUG at include/linux/netdevice.h:518! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 0 PID: 9059 Comm: syz-executor.5 Tainted: G W 5.10.118-syzkaller-00163-gfa7f6a5f56d9 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/29/2022 RIP: 0010:napi_enable include/linux/netdevice.h:518 [inline] RIP: 0010:tun_napi_init drivers/net/tun.c:278 [inline] RIP: 0010:tun_attach+0x14b3/0x14c0 drivers/net/tun.c:818 Code: 89 df e8 70 b5 b7 fe e9 cf fa ff ff e8 96 b9 7d fe 48 c7 c7 20 13 68 86 48 89 de e8 47 7a 7b ff e9 e0 fb ff ff e8 7d b9 7d fe <0f> 0b 66 66 2e 0f 1f 84 00 00 00 00 00 55 48 89 e5 41 57 41 56 41 RSP: 0018:ffffc9000712fb50 EFLAGS: 00010293 RAX: ffffffff82eef973 RBX: 0000000000000000 RCX: ffff8881069813c0 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: ffffc9000712fc70 R08: ffffffff82eeed75 R09: ffffed1023658086 R10: ffffed1023658086 R11: 1ffff11023658085 R12: ffff88811b2c0428 R13: ffff888156d18980 R14: ffff888156d18000 R15: dffffc0000000000 FS: 00007f5531f4a700(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007ffb3a8a6718 CR3: 000000010ef5e000 CR4: 00000000003506b0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: tun_set_iff+0xadf/0x1100 drivers/net/tun.c:2803 __tun_chr_ioctl+0x8ab/0x2130 drivers/net/tun.c:3084 tun_chr_ioctl+0x2a/0x40 drivers/net/tun.c:3360 vfs_ioctl fs/ioctl.c:48 [inline] __do_sys_ioctl fs/ioctl.c:753 [inline] __se_sys_ioctl+0x115/0x190 fs/ioctl.c:739 __x64_sys_ioctl+0x7b/0x90 fs/ioctl.c:739 do_syscall_64+0x34/0x70 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x7f5532e16109 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:00007f5531f4a168 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f5532f29100 RCX: 00007f5532e16109 RDX: 0000000020000200 RSI: 00000000400454ca RDI: 0000000000000003 RBP: 00007f5532e7005d R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffff81aa9af R14: 00007f5531f4a300 R15: 0000000000022000 Modules linked in: ---[ end trace adb4e59b2562c676 ]--- RIP: 0010:napi_enable include/linux/netdevice.h:518 [inline] RIP: 0010:tun_napi_init drivers/net/tun.c:278 [inline] RIP: 0010:tun_attach+0x14b3/0x14c0 drivers/net/tun.c:818 Code: 89 df e8 70 b5 b7 fe e9 cf fa ff ff e8 96 b9 7d fe 48 c7 c7 20 13 68 86 48 89 de e8 47 7a 7b ff e9 e0 fb ff ff e8 7d b9 7d fe <0f> 0b 66 66 2e 0f 1f 84 00 00 00 00 00 55 48 89 e5 41 57 41 56 41 RSP: 0018:ffffc9000712fb50 EFLAGS: 00010293 RAX: ffffffff82eef973 RBX: 0000000000000000 RCX: ffff8881069813c0 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: ffffc9000712fc70 R08: ffffffff82eeed75 R09: ffffed1023658086 R10: ffffed1023658086 R11: 1ffff11023658085 R12: ffff88811b2c0428 R13: ffff888156d18980 R14: ffff888156d18000 R15: dffffc0000000000 FS: 00007f5531f4a700(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000555556648b38 CR3: 000000010ef5e000 CR4: 00000000003506b0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400