Too BIG xdp->frame_sz = 4160 WARNING: CPU: 1 PID: 4970 at net/core/filter.c:3848 bpf_xdp_adjust_tail+0x1a8/0x1b0 net/core/filter.c:3837 Modules linked in: CPU: 1 PID: 4970 Comm: syz-executor.5 Not tainted 5.15.119-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/27/2023 pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : bpf_xdp_adjust_tail+0x1a8/0x1b0 net/core/filter.c:3837 lr : ____bpf_xdp_adjust_tail net/core/filter.c:3848 [inline] lr : bpf_xdp_adjust_tail+0x1a4/0x1b0 net/core/filter.c:3837 sp : ffff80001e6476d0 x29: ffff80001e6476d0 x28: ffff000106cf8f00 x27: 1ffff00003cc8f1b x26: ffff000106cf8ec1 x25: dfff800000000000 x24: 0000000000001040 x23: ffff000106cf8ec1 x22: 0000000000000000 x21: ffff80001e6478d0 x20: ffff80001e6478d8 x19: ffff800016cf0000 x18: 0000000000000201 x17: ff80800008335ea8 x16: ffff80001195eeac x15: ffff800008335ea8 x14: 00000000ffffffff x13: ffffffffffffffff x12: 0000000000040000 x11: 0000000000001af5 x10: ffff80001db99000 x9 : d6473d7b599dcf00 x8 : d6473d7b599dcf00 x7 : 0000000000000001 x6 : 0000000000000001 x5 : ffff80001e646e38 x4 : ffff8000149cfca0 x3 : ffff80000854e3cc x2 : 0000000000000001 x1 : 0000000000000200 x0 : ffffffffffffffea Call trace: bpf_xdp_adjust_tail+0x1a8/0x1b0 net/core/filter.c:3837 bpf_prog_4add87e5301a4105+0x3c/0xf30 bpf_dispatcher_xdp_func+0x30/0x44 net/core/filter.c:10686 __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+0x2634/0x3774 drivers/net/tun.c:1796 tun_chr_write_iter+0xfc/0x20c 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+0x87c/0xb3c fs/read_write.c:594 ksys_write+0x15c/0x26c fs/read_write.c:647 __do_sys_write fs/read_write.c:659 [inline] __se_sys_write fs/read_write.c:656 [inline] __arm64_sys_write+0x7c/0x90 fs/read_write.c:656 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142 do_el0_svc+0x58/0x14c arch/arm64/kernel/syscall.c:181 el0_svc+0x7c/0x1f0 arch/arm64/kernel/entry-common.c:596 el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:614 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584 irq event stamp: 1271 hardirqs last enabled at (1270): [] __up_console_sem+0xb4/0x100 kernel/printk/printk.c:257 hardirqs last disabled at (1271): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:387 softirqs last enabled at (1242): [] local_bh_enable+0x10/0x34 include/linux/bottom_half.h:31 softirqs last disabled at (1252): [] local_bh_disable+0x10/0x34 include/linux/bottom_half.h:18 ---[ end trace fc0478da6056b73a ]--- Illegal XDP return value 4294967274, expect packet loss!