------------[ cut here ]------------ Too BIG xdp->frame_sz = 131072 WARNING: CPU: 0 PID: 4308 at net/core/filter.c:4069 bpf_xdp_adjust_tail+0x228/0x230 net/core/filter.c:4051 Modules linked in: CPU: 0 PID: 4308 Comm: syz-executor280 Not tainted 6.1.15-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/02/2023 pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : bpf_xdp_adjust_tail+0x228/0x230 net/core/filter.c:4051 lr : ____bpf_xdp_adjust_tail net/core/filter.c:4069 [inline] lr : bpf_xdp_adjust_tail+0x224/0x230 net/core/filter.c:4051 sp : ffff80001dcd74b0 x29: ffff80001dcd74b0 x28: ffff0000c16efeef x27: 1ffff00003b9aee1 x26: dfff800000000000 x25: ffff80001dcd7718 x24: 0000000000000000 x23: 0000000000020000 x22: ffff0000c16efeef x21: ffff80001dcd7700 x20: ffff80001dcd7708 x19: ffff800018061000 x18: ffff80001dcd68c0 x17: 0000000000000000 x16: ffff8000122508ac x15: 0000000000000000 x14: 0000000000000000 x13: 0000000000000001 x12: 0000000000000001 x11: ff80800008349608 x10: 0000000000000000 x9 : b6fdd2d00c68cf00 x8 : b6fdd2d00c68cf00 x7 : 0000000000000001 x6 : 0000000000000001 x5 : ffff80001dcd6db8 x4 : ffff800015823840 x3 : ffff8000085890fc x2 : 0000000000000001 x1 : 0000000100000200 x0 : ffffffffffffffea Call trace: bpf_xdp_adjust_tail+0x228/0x230 net/core/filter.c:4051 bpf_prog_4add87e5301a4105+0x50/0x80 bpf_dispatcher_xdp_func+0x30/0x44 net/core/filter.c:11348 __bpf_prog_run include/linux/filter.h:600 [inline] bpf_prog_run_xdp include/linux/filter.h:775 [inline] bpf_prog_run_generic_xdp+0x428/0xf44 net/core/dev.c:4759 netif_receive_generic_xdp net/core/dev.c:4845 [inline] do_xdp_generic+0x348/0x634 net/core/dev.c:4904 tun_get_user+0x2070/0x3ac8 drivers/net/tun.c:1932 tun_chr_write_iter+0xfc/0x204 drivers/net/tun.c:2036 call_write_iter include/linux/fs.h:2205 [inline] new_sync_write fs/read_write.c:491 [inline] vfs_write+0x610/0x914 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/0x258 arch/arm64/kernel/syscall.c:142 do_el0_svc+0x64/0x218 arch/arm64/kernel/syscall.c:206 el0_svc+0x58/0x168 arch/arm64/kernel/entry-common.c:637 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:581 irq event stamp: 15539 hardirqs last enabled at (15538): [] __up_console_sem+0xb4/0x100 kernel/printk/printk.c:261 hardirqs last disabled at (15539): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:405 softirqs last enabled at (15366): [] spin_unlock_bh include/linux/spinlock.h:395 [inline] softirqs last enabled at (15366): [] bpf_link_settle+0x80/0x148 kernel/bpf/syscall.c:2863 softirqs last disabled at (15476): [] local_bh_disable+0x10/0x34 include/linux/bottom_half.h:19 ---[ end trace 0000000000000000 ]--- Illegal XDP return value 4294967274 on prog (id 1) dev syz_tun, expect packet loss!