------------[ cut here ]------------ Too BIG xdp->frame_sz = 4160 WARNING: CPU: 0 PID: 3376 at net/core/filter.c:3848 ____bpf_xdp_adjust_tail net/core/filter.c:3848 [inline] WARNING: CPU: 0 PID: 3376 at net/core/filter.c:3848 bpf_xdp_adjust_tail+0x19b/0x1b0 net/core/filter.c:3837 Modules linked in: CPU: 0 PID: 3376 Comm: syz-executor.3 Not tainted 5.15.117-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/27/2023 RIP: 0010:____bpf_xdp_adjust_tail net/core/filter.c:3848 [inline] RIP: 0010:bpf_xdp_adjust_tail+0x19b/0x1b0 net/core/filter.c:3837 Code: 0f 8c e0 fe ff ff e8 44 ff 8c f9 e9 d6 fe ff ff e8 4a a3 43 f9 c6 05 c7 26 94 05 01 48 c7 c7 c0 23 7a 8b 89 ee e8 a5 76 0f f9 <0f> 0b 48 c7 c0 ea ff ff ff e9 7c ff ff ff 0f 1f 80 00 00 00 00 55 RSP: 0018:ffffc90002f3f988 EFLAGS: 00010246 RAX: 568918abf3525f00 RBX: ffffc90002f3fb10 RCX: 0000000000040000 RDX: ffffc90003b94000 RSI: 0000000000002ff1 RDI: 0000000000002ff2 RBP: 0000000000001040 R08: ffffffff8166491c R09: ffffed1017344f24 R10: 0000000000000000 R11: dffffc0000000001 R12: ffff888097860ec1 R13: ffff888097860ec1 R14: ffffc90002f3fb18 R15: 1ffff920005e7f63 FS: 00007f2b5eb12700(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020001001 CR3: 00000000a697f000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 000000000000000a DR6: 00000000ffff0ff0 DR7: 0000000000000400 Call Trace: bpf_prog_4add87e5301a4105+0x12/0x33c __bpf_prog_run include/linux/filter.h:625 [inline] bpf_prog_run_xdp include/linux/filter.h:800 [inline] tun_build_skb drivers/net/tun.c:1689 [inline] tun_get_user+0x2d76/0x40f0 drivers/net/tun.c:1796 tun_chr_write_iter+0x10c/0x1e0 drivers/net/tun.c:2018 call_write_iter include/linux/fs.h:2103 [inline] new_sync_write fs/read_write.c:507 [inline] vfs_write+0xacf/0xe50 fs/read_write.c:594 ksys_write+0x1a2/0x2c0 fs/read_write.c:647 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x61/0xcb RIP: 0033:0x7f2b60551fff Code: 89 54 24 18 48 89 74 24 10 89 7c 24 08 e8 99 fd ff ff 48 8b 54 24 18 48 8b 74 24 10 41 89 c0 8b 7c 24 08 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 31 44 89 c7 48 89 44 24 08 e8 cc fd ff ff 48 RSP: 002b:00007f2b5eb12130 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f2b606bff80 RCX: 00007f2b60551fff RDX: 0000000000000d81 RSI: 0000000020001000 RDI: 00000000000000c8 RBP: 00007f2b605eb493 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000d81 R11: 0000000000000293 R12: 0000000000000000 R13: 00007fff8710c87f R14: 00007f2b5eb12300 R15: 0000000000022000