------------[ cut here ]------------ Too BIG xdp->frame_sz = 4160 WARNING: CPU: 0 PID: 15399 at net/core/filter.c:4120 bpf_xdp_adjust_tail+0x228/0x230 net/core/filter.c:4102 Modules linked in: CPU: 0 PID: 15399 Comm: syz-executor.1 Not tainted 6.4.0-rc7-syzkaller-ge40939bbfc68 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/03/2023 pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : bpf_xdp_adjust_tail+0x228/0x230 net/core/filter.c:4102 lr : ____bpf_xdp_adjust_tail net/core/filter.c:4120 [inline] lr : bpf_xdp_adjust_tail+0x224/0x230 net/core/filter.c:4102 sp : ffff800099b37700 x29: ffff800099b37700 x28: ffff000140130ec1 x27: 1ffff00013366f23 x26: dfff800000000000 x25: ffff800099b37928 x24: 0000000000000000 x23: 0000000000001040 x22: ffff000140130ec1 x21: ffff800099b37910 x20: ffff800099b37918 x19: ffff800090b6d000 x18: ffff0001b4230028 x17: 0000000000000000 x16: ffff80008a4483a0 x15: 0000000000000201 x14: 1ffff00011bde0ac x13: dfff800000000000 x12: 0000000000000001 x11: 0000000000040000 x10: 0000000000000658 x9 : 39af5160525eee00 x8 : 39af5160525eee00 x7 : ffff800080350318 x6 : 0000000000000000 x5 : 0000000000000001 x4 : 0000000000000001 x3 : ffff800080597614 x2 : 0000000000000001 x1 : 0000000100000200 x0 : ffffffffffffffea Call trace: bpf_xdp_adjust_tail+0x228/0x230 net/core/filter.c:4102 bpf_prog_4add87e5301a4105+0x50/0x80 bpf_dispatcher_xdp_func+0x30/0x44 net/core/filter.c:11432 __bpf_prog_run include/linux/filter.h:600 [inline] bpf_prog_run_xdp include/linux/filter.h:775 [inline] tun_build_skb drivers/net/tun.c:1709 [inline] tun_get_user+0x24f8/0x35e0 drivers/net/tun.c:1817 tun_chr_write_iter+0xfc/0x204 drivers/net/tun.c:2043 call_write_iter include/linux/fs.h:1868 [inline] new_sync_write fs/read_write.c:491 [inline] vfs_write+0x618/0x918 fs/read_write.c:584 ksys_write+0x15c/0x26c fs/read_write.c:637 __do_sys_write fs/read_write.c:649 [inline] __se_sys_write fs/read_write.c:646 [inline] __arm64_sys_write+0x7c/0x90 fs/read_write.c:646 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2c0 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x244 arch/arm64/kernel/syscall.c:142 do_el0_svc+0x64/0x198 arch/arm64/kernel/syscall.c:191 el0_svc+0x4c/0x160 arch/arm64/kernel/entry-common.c:647 el0t_64_sync_handler+0x84/0xfc arch/arm64/kernel/entry-common.c:665 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:591 irq event stamp: 7003 hardirqs last enabled at (7002): [] console_trylock_spinning+0x1dc/0x2e8 kernel/printk/printk.c:1961 hardirqs last disabled at (7003): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:407 softirqs last enabled at (6982): [] local_bh_enable+0x10/0x34 include/linux/bottom_half.h:32 softirqs last disabled at (6990): [] local_bh_disable+0x10/0x34 include/linux/bottom_half.h:19 ---[ end trace 0000000000000000 ]--- Illegal XDP return value 4294967274 on prog (id 37) dev syz_tun, expect packet loss!