BUG: Bad page state in process syz.4.3921 pfn:7e8f8 page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff88807e8f8000 pfn:0x7e8f8 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 dead000000000040 ffff888022aff000 0000000000000000 raw: ffff88807e8f8000 3fffffffffffffff 00000000ffffffff 0000000000000000 page dumped because: page_pool leak page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0x2820(GFP_ATOMIC|__GFP_NOWARN), pid 17509, tgid 17508 (syz.4.3921), ts 851666439683, free_ts 851572976513 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1f4/0x240 mm/page_alloc.c:1551 prep_new_page mm/page_alloc.c:1559 [inline] get_page_from_freelist+0x3651/0x37a0 mm/page_alloc.c:3477 __alloc_frozen_pages_noprof+0x292/0x710 mm/page_alloc.c:4740 __alloc_pages_noprof mm/page_alloc.c:4774 [inline] alloc_pages_bulk_noprof+0x847/0xae0 mm/page_alloc.c:4694 alloc_pages_bulk_node_noprof include/linux/gfp.h:235 [inline] __page_pool_alloc_pages_slow+0x11f/0x690 net/core/page_pool.c:542 page_pool_alloc_netmems net/core/page_pool.c:593 [inline] page_pool_alloc_frag_netmem+0x59c/0x940 net/core/page_pool.c:998 page_pool_alloc_netmem include/net/page_pool/helpers.h:131 [inline] page_pool_alloc include/net/page_pool/helpers.h:160 [inline] page_pool_dev_alloc include/net/page_pool/helpers.h:181 [inline] skb_pp_cow_data+0xcea/0x1720 net/core/skbuff.c:893 netif_skb_check_for_xdp net/core/dev.c:5259 [inline] netif_receive_generic_xdp net/core/dev.c:5298 [inline] do_xdp_generic+0x505/0xd30 net/core/dev.c:5366 tun_get_user+0x2a4b/0x4860 drivers/net/tun.c:1929 tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:2053 new_sync_write fs/read_write.c:591 [inline] vfs_write+0xacf/0xd10 fs/read_write.c:684 ksys_write+0x18f/0x2b0 fs/read_write.c:736 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 23 tgid 23 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1127 [inline] free_frozen_pages+0xe04/0x10e0 mm/page_alloc.c:2660 rcu_do_batch kernel/rcu/tree.c:2568 [inline] rcu_core+0xaaa/0x17a0 kernel/rcu/tree.c:2824 handle_softirqs+0x2d4/0x9b0 kernel/softirq.c:561 run_ksoftirqd+0xca/0x130 kernel/softirq.c:950 smpboot_thread_fn+0x544/0xa30 kernel/smpboot.c:164 kthread+0x7a9/0x920 kernel/kthread.c:464 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:148 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 Modules linked in: CPU: 1 UID: 0 PID: 17509 Comm: syz.4.3921 Not tainted 6.14.0-syzkaller-00685-g3ba7dfb8da62 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:120 bad_page+0x176/0x1d0 mm/page_alloc.c:501 free_page_is_bad mm/page_alloc.c:923 [inline] free_pages_prepare mm/page_alloc.c:1119 [inline] free_frozen_pages+0x1079/0x10e0 mm/page_alloc.c:2660 bpf_xdp_shrink_data net/core/filter.c:4155 [inline] bpf_xdp_frags_shrink_tail+0x3b3/0x780 net/core/filter.c:4175 ____bpf_xdp_adjust_tail net/core/filter.c:4200 [inline] bpf_xdp_adjust_tail+0x1c6/0x210 net/core/filter.c:4193 bpf_prog_f476d5219b92964a+0x1e/0x20 __bpf_prog_run include/linux/filter.h:701 [inline] bpf_prog_run_xdp include/net/xdp.h:654 [inline] bpf_prog_run_generic_xdp+0x686/0x1510 net/core/dev.c:5191 netif_receive_generic_xdp net/core/dev.c:5304 [inline] do_xdp_generic+0x757/0xd30 net/core/dev.c:5366 tun_get_user+0x2a4b/0x4860 drivers/net/tun.c:1929 tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:2053 new_sync_write fs/read_write.c:591 [inline] vfs_write+0xacf/0xd10 fs/read_write.c:684 ksys_write+0x18f/0x2b0 fs/read_write.c:736 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f507d78bc1f Code: 89 54 24 18 48 89 74 24 10 89 7c 24 08 e8 f9 92 02 00 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 4c 93 02 00 48 RSP: 002b:00007f507e5a7000 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f507d9a5fa0 RCX: 00007f507d78bc1f RDX: 000000000000fdef RSI: 0000200000000a80 RDI: 00000000000000c8 RBP: 00007f507d80e2a0 R08: 0000000000000000 R09: 0000000000000000 R10: 000000000000fdef R11: 0000000000000293 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f507d9a5fa0 R15: 00007ffda7d2a7e8 BUG: Bad page state in process syz.4.3921 pfn:2876b page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff88802876b000 pfn:0x2876b flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 dead000000000040 ffff888022aff000 0000000000000000 raw: ffff88802876b000 0000000000000001 00000000ffffffff 0000000000000000 page dumped because: page_pool leak page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0x2820(GFP_ATOMIC|__GFP_NOWARN), pid 17509, tgid 17508 (syz.4.3921), ts 851666421080, free_ts 851572994383 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1f4/0x240 mm/page_alloc.c:1551 prep_new_page mm/page_alloc.c:1559 [inline] get_page_from_freelist+0x3651/0x37a0 mm/page_alloc.c:3477 __alloc_frozen_pages_noprof+0x292/0x710 mm/page_alloc.c:4740 __alloc_pages_noprof mm/page_alloc.c:4774 [inline] alloc_pages_bulk_noprof+0x847/0xae0 mm/page_alloc.c:4694 alloc_pages_bulk_node_noprof include/linux/gfp.h:235 [inline] __page_pool_alloc_pages_slow+0x11f/0x690 net/core/page_pool.c:542 page_pool_alloc_netmem include/net/page_pool/helpers.h:128 [inline] page_pool_alloc include/net/page_pool/helpers.h:160 [inline] page_pool_dev_alloc include/net/page_pool/helpers.h:181 [inline] skb_pp_cow_data+0xcc8/0x1720 net/core/skbuff.c:893 netif_skb_check_for_xdp net/core/dev.c:5259 [inline] netif_receive_generic_xdp net/core/dev.c:5298 [inline] do_xdp_generic+0x505/0xd30 net/core/dev.c:5366 tun_get_user+0x2a4b/0x4860 drivers/net/tun.c:1929 tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:2053 new_sync_write fs/read_write.c:591 [inline] vfs_write+0xacf/0xd10 fs/read_write.c:684 ksys_write+0x18f/0x2b0 fs/read_write.c:736 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 23 tgid 23 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1127 [inline] free_frozen_pages+0xe04/0x10e0 mm/page_alloc.c:2660 rcu_do_batch kernel/rcu/tree.c:2568 [inline] rcu_core+0xaaa/0x17a0 kernel/rcu/tree.c:2824 handle_softirqs+0x2d4/0x9b0 kernel/softirq.c:561 run_ksoftirqd+0xca/0x130 kernel/softirq.c:950 smpboot_thread_fn+0x544/0xa30 kernel/smpboot.c:164 kthread+0x7a9/0x920 kernel/kthread.c:464 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:148 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 Modules linked in: CPU: 1 UID: 0 PID: 17509 Comm: syz.4.3921 Tainted: G B 6.14.0-syzkaller-00685-g3ba7dfb8da62 #0 Tainted: [B]=BAD_PAGE Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:120 bad_page+0x176/0x1d0 mm/page_alloc.c:501 free_page_is_bad mm/page_alloc.c:923 [inline] free_pages_prepare mm/page_alloc.c:1119 [inline] free_frozen_pages+0x1079/0x10e0 mm/page_alloc.c:2660 bpf_xdp_shrink_data net/core/filter.c:4155 [inline] bpf_xdp_frags_shrink_tail+0x3b3/0x780 net/core/filter.c:4175 ____bpf_xdp_adjust_tail net/core/filter.c:4200 [inline] bpf_xdp_adjust_tail+0x1c6/0x210 net/core/filter.c:4193 bpf_prog_f476d5219b92964a+0x1e/0x20 __bpf_prog_run include/linux/filter.h:701 [inline] bpf_prog_run_xdp include/net/xdp.h:654 [inline] bpf_prog_run_generic_xdp+0x686/0x1510 net/core/dev.c:5191 netif_receive_generic_xdp net/core/dev.c:5304 [inline] do_xdp_generic+0x757/0xd30 net/core/dev.c:5366 tun_get_user+0x2a4b/0x4860 drivers/net/tun.c:1929 tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:2053 new_sync_write fs/read_write.c:591 [inline] vfs_write+0xacf/0xd10 fs/read_write.c:684 ksys_write+0x18f/0x2b0 fs/read_write.c:736 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f507d78bc1f Code: 89 54 24 18 48 89 74 24 10 89 7c 24 08 e8 f9 92 02 00 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 4c 93 02 00 48 RSP: 002b:00007f507e5a7000 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f507d9a5fa0 RCX: 00007f507d78bc1f RDX: 000000000000fdef RSI: 0000200000000a80 RDI: 00000000000000c8 RBP: 00007f507d80e2a0 R08: 0000000000000000 R09: 0000000000000000 R10: 000000000000fdef R11: 0000000000000293 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f507d9a5fa0 R15: 00007ffda7d2a7e8 BUG: Bad page state in process syz.4.3921 pfn:2f4c0 page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff88802f4c0000 pfn:0x2f4c0 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 dead000000000040 ffff888022aff000 0000000000000000 raw: ffff88802f4c0000 0000000000000001 00000000ffffffff 0000000000000000 page dumped because: page_pool leak page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0x2820(GFP_ATOMIC|__GFP_NOWARN), pid 17509, tgid 17508 (syz.4.3921), ts 851666408338, free_ts 851573013088 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1f4/0x240 mm/page_alloc.c:1551 prep_new_page mm/page_alloc.c:1559 [inline] get_page_from_freelist+0x3651/0x37a0 mm/page_alloc.c:3477 __alloc_frozen_pages_noprof+0x292/0x710 mm/page_alloc.c:4740 __alloc_pages_noprof mm/page_alloc.c:4774 [inline] alloc_pages_bulk_noprof+0x847/0xae0 mm/page_alloc.c:4694 alloc_pages_bulk_node_noprof include/linux/gfp.h:235 [inline] __page_pool_alloc_pages_slow+0x11f/0x690 net/core/page_pool.c:542 page_pool_alloc_netmem include/net/page_pool/helpers.h:128 [inline] page_pool_alloc include/net/page_pool/helpers.h:160 [inline] page_pool_dev_alloc include/net/page_pool/helpers.h:181 [inline] skb_pp_cow_data+0xcc8/0x1720 net/core/skbuff.c:893 netif_skb_check_for_xdp net/core/dev.c:5259 [inline] netif_receive_generic_xdp net/core/dev.c:5298 [inline] do_xdp_generic+0x505/0xd30 net/core/dev.c:5366 tun_get_user+0x2a4b/0x4860 drivers/net/tun.c:1929 tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:2053 new_sync_write fs/read_write.c:591 [inline] vfs_write+0xacf/0xd10 fs/read_write.c:684 ksys_write+0x18f/0x2b0 fs/read_write.c:736 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 23 tgid 23 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1127 [inline] free_frozen_pages+0xe04/0x10e0 mm/page_alloc.c:2660 rcu_do_batch kernel/rcu/tree.c:2568 [inline] rcu_core+0xaaa/0x17a0 kernel/rcu/tree.c:2824 handle_softirqs+0x2d4/0x9b0 kernel/softirq.c:561 run_ksoftirqd+0xca/0x130 kernel/softirq.c:950 smpboot_thread_fn+0x544/0xa30 kernel/smpboot.c:164 kthread+0x7a9/0x920 kernel/kthread.c:464 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:148 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 Modules linked in: CPU: 1 UID: 0 PID: 17509 Comm: syz.4.3921 Tainted: G B 6.14.0-syzkaller-00685-g3ba7dfb8da62 #0 Tainted: [B]=BAD_PAGE Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:120 bad_page+0x176/0x1d0 mm/page_alloc.c:501 free_page_is_bad mm/page_alloc.c:923 [inline] free_pages_prepare mm/page_alloc.c:1119 [inline] free_frozen_pages+0x1079/0x10e0 mm/page_alloc.c:2660 bpf_xdp_shrink_data net/core/filter.c:4155 [inline] bpf_xdp_frags_shrink_tail+0x3b3/0x780 net/core/filter.c:4175 ____bpf_xdp_adjust_tail net/core/filter.c:4200 [inline] bpf_xdp_adjust_tail+0x1c6/0x210 net/core/filter.c:4193 bpf_prog_f476d5219b92964a+0x1e/0x20 __bpf_prog_run include/linux/filter.h:701 [inline] bpf_prog_run_xdp include/net/xdp.h:654 [inline] bpf_prog_run_generic_xdp+0x686/0x1510 net/core/dev.c:5191 netif_receive_generic_xdp net/core/dev.c:5304 [inline] do_xdp_generic+0x757/0xd30 net/core/dev.c:5366 tun_get_user+0x2a4b/0x4860 drivers/net/tun.c:1929 tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:2053 new_sync_write fs/read_write.c:591 [inline] vfs_write+0xacf/0xd10 fs/read_write.c:684 ksys_write+0x18f/0x2b0 fs/read_write.c:736 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f507d78bc1f Code: 89 54 24 18 48 89 74 24 10 89 7c 24 08 e8 f9 92 02 00 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 4c 93 02 00 48 RSP: 002b:00007f507e5a7000 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f507d9a5fa0 RCX: 00007f507d78bc1f RDX: 000000000000fdef RSI: 0000200000000a80 RDI: 00000000000000c8 RBP: 00007f507d80e2a0 R08: 0000000000000000 R09: 0000000000000000 R10: 000000000000fdef R11: 0000000000000293 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f507d9a5fa0 R15: 00007ffda7d2a7e8 BUG: Bad page state in process syz.4.3921 pfn:69e8d page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff888069e8d000 pfn:0x69e8d flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 dead000000000040 ffff888022aff000 0000000000000000 raw: ffff888069e8d000 0000000000000001 00000000ffffffff 0000000000000000 page dumped because: page_pool leak page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0x2820(GFP_ATOMIC|__GFP_NOWARN), pid 17509, tgid 17508 (syz.4.3921), ts 851666394839, free_ts 851588147622 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1f4/0x240 mm/page_alloc.c:1551 prep_new_page mm/page_alloc.c:1559 [inline] get_page_from_freelist+0x3651/0x37a0 mm/page_alloc.c:3477 __alloc_frozen_pages_noprof+0x292/0x710 mm/page_alloc.c:4740 __alloc_pages_noprof mm/page_alloc.c:4774 [inline] alloc_pages_bulk_noprof+0x847/0xae0 mm/page_alloc.c:4694 alloc_pages_bulk_node_noprof include/linux/gfp.h:235 [inline] __page_pool_alloc_pages_slow+0x11f/0x690 net/core/page_pool.c:542 page_pool_alloc_netmem include/net/page_pool/helpers.h:128 [inline] page_pool_alloc include/net/page_pool/helpers.h:160 [inline] page_pool_dev_alloc include/net/page_pool/helpers.h:181 [inline] skb_pp_cow_data+0xcc8/0x1720 net/core/skbuff.c:893 netif_skb_check_for_xdp net/core/dev.c:5259 [inline] netif_receive_generic_xdp net/core/dev.c:5298 [inline] do_xdp_generic+0x505/0xd30 net/core/dev.c:5366 tun_get_user+0x2a4b/0x4860 drivers/net/tun.c:1929 tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:2053 new_sync_write fs/read_write.c:591 [inline] vfs_write+0xacf/0xd10 fs/read_write.c:684 ksys_write+0x18f/0x2b0 fs/read_write.c:736 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 5198 tgid 5198 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1127 [inline] free_frozen_pages+0xe04/0x10e0 mm/page_alloc.c:2660 rcu_do_batch kernel/rcu/tree.c:2568 [inline] rcu_core+0xaaa/0x17a0 kernel/rcu/tree.c:2824 handle_softirqs+0x2d4/0x9b0 kernel/softirq.c:561 __do_softirq kernel/softirq.c:595 [inline] invoke_softirq kernel/softirq.c:435 [inline] __irq_exit_rcu+0xf7/0x220 kernel/softirq.c:662 irq_exit_rcu+0x9/0x30 kernel/softirq.c:678 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1049 [inline] sysvec_apic_timer_interrupt+0xa6/0xc0 arch/x86/kernel/apic/apic.c:1049 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702 Modules linked in: CPU: 1 UID: 0 PID: 17509 Comm: syz.4.3921 Tainted: G B 6.14.0-syzkaller-00685-g3ba7dfb8da62 #0 Tainted: [B]=BAD_PAGE Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:120 bad_page+0x176/0x1d0 mm/page_alloc.c:501 free_page_is_bad mm/page_alloc.c:923 [inline] free_pages_prepare mm/page_alloc.c:1119 [inline] free_frozen_pages+0x1079/0x10e0 mm/page_alloc.c:2660 bpf_xdp_shrink_data net/core/filter.c:4155 [inline] bpf_xdp_frags_shrink_tail+0x3b3/0x780 net/core/filter.c:4175 ____bpf_xdp_adjust_tail net/core/filter.c:4200 [inline] bpf_xdp_adjust_tail+0x1c6/0x210 net/core/filter.c:4193 bpf_prog_f476d5219b92964a+0x1e/0x20 __bpf_prog_run include/linux/filter.h:701 [inline] bpf_prog_run_xdp include/net/xdp.h:654 [inline] bpf_prog_run_generic_xdp+0x686/0x1510 net/core/dev.c:5191 netif_receive_generic_xdp net/core/dev.c:5304 [inline] do_xdp_generic+0x757/0xd30 net/core/dev.c:5366 tun_get_user+0x2a4b/0x4860 drivers/net/tun.c:1929 tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:2053 new_sync_write fs/read_write.c:591 [inline] vfs_write+0xacf/0xd10 fs/read_write.c:684 ksys_write+0x18f/0x2b0 fs/read_write.c:736 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f507d78bc1f Code: 89 54 24 18 48 89 74 24 10 89 7c 24 08 e8 f9 92 02 00 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 4c 93 02 00 48 RSP: 002b:00007f507e5a7000 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f507d9a5fa0 RCX: 00007f507d78bc1f RDX: 000000000000fdef RSI: 0000200000000a80 RDI: 00000000000000c8 RBP: 00007f507d80e2a0 R08: 0000000000000000 R09: 0000000000000000 R10: 000000000000fdef R11: 0000000000000293 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f507d9a5fa0 R15: 00007ffda7d2a7e8 BUG: Bad page state in process syz.4.3921 pfn:5e592 page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff88805e592000 pfn:0x5e592 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 dead000000000040 ffff888022aff000 0000000000000000 raw: ffff88805e592000 0000000000000001 00000000ffffffff 0000000000000000 page dumped because: page_pool leak page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0x2820(GFP_ATOMIC|__GFP_NOWARN), pid 17509, tgid 17508 (syz.4.3921), ts 851666381496, free_ts 851588173996 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1f4/0x240 mm/page_alloc.c:1551 prep_new_page mm/page_alloc.c:1559 [inline] get_page_from_freelist+0x3651/0x37a0 mm/page_alloc.c:3477 __alloc_frozen_pages_noprof+0x292/0x710 mm/page_alloc.c:4740 __alloc_pages_noprof mm/page_alloc.c:4774 [inline] alloc_pages_bulk_noprof+0x847/0xae0 mm/page_alloc.c:4694 alloc_pages_bulk_node_noprof include/linux/gfp.h:235 [inline] __page_pool_alloc_pages_slow+0x11f/0x690 net/core/page_pool.c:542 page_pool_alloc_netmem include/net/page_pool/helpers.h:128 [inline] page_pool_alloc include/net/page_pool/helpers.h:160 [inline] page_pool_dev_alloc include/net/page_pool/helpers.h:181 [inline] skb_pp_cow_data+0xcc8/0x1720 net/core/skbuff.c:893 netif_skb_check_for_xdp net/core/dev.c:5259 [inline] netif_receive_generic_xdp net/core/dev.c:5298 [inline] do_xdp_generic+0x505/0xd30 net/core/dev.c:5366 tun_get_user+0x2a4b/0x4860 drivers/net/tun.c:1929 tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:2053 new_sync_write fs/read_write.c:591 [inline] vfs_write+0xacf/0xd10 fs/read_write.c:684 ksys_write+0x18f/0x2b0 fs/read_write.c:736 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 5198 tgid 5198 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1127 [inline] free_frozen_pages+0xe04/0x10e0 mm/page_alloc.c:2660 rcu_do_batch kernel/rcu/tree.c:2568 [inline] rcu_core+0xaaa/0x17a0 kernel/rcu/tree.c:2824 handle_softirqs+0x2d4/0x9b0 kernel/softirq.c:561 __do_softirq kernel/softirq.c:595 [inline] invoke_softirq kernel/softirq.c:435 [inline] __irq_exit_rcu+0xf7/0x220 kernel/softirq.c:662 irq_exit_rcu+0x9/0x30 kernel/softirq.c:678 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1049 [inline] sysvec_apic_timer_interrupt+0xa6/0xc0 arch/x86/kernel/apic/apic.c:1049 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702 Modules linked in: CPU: 1 UID: 0 PID: 17509 Comm: syz.4.3921 Tainted: G B 6.14.0-syzkaller-00685-g3ba7dfb8da62 #0 Tainted: [B]=BAD_PAGE Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:120 bad_page+0x176/0x1d0 mm/page_alloc.c:501 free_page_is_bad mm/page_alloc.c:923 [inline] free_pages_prepare mm/page_alloc.c:1119 [inline] free_frozen_pages+0x1079/0x10e0 mm/page_alloc.c:2660 bpf_xdp_shrink_data net/core/filter.c:4155 [inline] bpf_xdp_frags_shrink_tail+0x3b3/0x780 net/core/filter.c:4175 ____bpf_xdp_adjust_tail net/core/filter.c:4200 [inline] bpf_xdp_adjust_tail+0x1c6/0x210 net/core/filter.c:4193 bpf_prog_f476d5219b92964a+0x1e/0x20 __bpf_prog_run include/linux/filter.h:701 [inline] bpf_prog_run_xdp include/net/xdp.h:654 [inline] bpf_prog_run_generic_xdp+0x686/0x1510 net/core/dev.c:5191 netif_receive_generic_xdp net/core/dev.c:5304 [inline] do_xdp_generic+0x757/0xd30 net/core/dev.c:5366 tun_get_user+0x2a4b/0x4860 drivers/net/tun.c:1929 tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:2053 new_sync_write fs/read_write.c:591 [inline] vfs_write+0xacf/0xd10 fs/read_write.c:684 ksys_write+0x18f/0x2b0 fs/read_write.c:736 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f507d78bc1f Code: 89 54 24 18 48 89 74 24 10 89 7c 24 08 e8 f9 92 02 00 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 4c 93 02 00 48 RSP: 002b:00007f507e5a7000 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f507d9a5fa0 RCX: 00007f507d78bc1f RDX: 000000000000fdef RSI: 0000200000000a80 RDI: 00000000000000c8 RBP: 00007f507d80e2a0 R08: 0000000000000000 R09: 0000000000000000 R10: 000000000000fdef R11: 0000000000000293 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f507d9a5fa0 R15: 00007ffda7d2a7e8 BUG: Bad page state in process syz.4.3921 pfn:68aac page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff888068aac000 pfn:0x68aac flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 dead000000000040 ffff888022aff000 0000000000000000 raw: ffff888068aac000 0000000000000001 00000000ffffffff 0000000000000000 page dumped because: page_pool leak page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0x2820(GFP_ATOMIC|__GFP_NOWARN), pid 17509, tgid 17508 (syz.4.3921), ts 851666368461, free_ts 851588197781 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1f4/0x240 mm/page_alloc.c:1551 prep_new_page mm/page_alloc.c:1559 [inline] get_page_from_freelist+0x3651/0x37a0 mm/page_alloc.c:3477 __alloc_frozen_pages_noprof+0x292/0x710 mm/page_alloc.c:4740 __alloc_pages_noprof mm/page_alloc.c:4774 [inline] alloc_pages_bulk_noprof+0x847/0xae0 mm/page_alloc.c:4694 alloc_pages_bulk_node_noprof include/linux/gfp.h:235 [inline] __page_pool_alloc_pages_slow+0x11f/0x690 net/core/page_pool.c:542 page_pool_alloc_netmem include/net/page_pool/helpers.h:128 [inline] page_pool_alloc include/net/page_pool/helpers.h:160 [inline] page_pool_dev_alloc include/net/page_pool/helpers.h:181 [inline] skb_pp_cow_data+0xcc8/0x1720 net/core/skbuff.c:893 netif_skb_check_for_xdp net/core/dev.c:5259 [inline] netif_receive_generic_xdp net/core/dev.c:5298 [inline] do_xdp_generic+0x505/0xd30 net/core/dev.c:5366 tun_get_user+0x2a4b/0x4860 drivers/net/tun.c:1929 tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:2053 new_sync_write fs/read_write.c:591 [inline] vfs_write+0xacf/0xd10 fs/read_write.c:684 ksys_write+0x18f/0x2b0 fs/read_write.c:736 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 5198 tgid 5198 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1127 [inline] free_frozen_pages+0xe04/0x10e0 mm/page_alloc.c:2660 rcu_do_batch kernel/rcu/tree.c:2568 [inline] rcu_core+0xaaa/0x17a0 kernel/rcu/tree.c:2824 handle_softirqs+0x2d4/0x9b0 kernel/softirq.c:561 __do_softirq kernel/softirq.c:595 [inline] invoke_softirq kernel/softirq.c:435 [inline] __irq_exit_rcu+0xf7/0x220 kernel/softirq.c:662 irq_exit_rcu+0x9/0x30 kernel/softirq.c:678 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1049 [inline] sysvec_apic_timer_interrupt+0xa6/0xc0 arch/x86/kernel/apic/apic.c:1049 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702 Modules linked in: CPU: 1 UID: 0 PID: 17509 Comm: syz.4.3921 Tainted: G B 6.14.0-syzkaller-00685-g3ba7dfb8da62 #0 Tainted: [B]=BAD_PAGE Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:120 bad_page+0x176/0x1d0 mm/page_alloc.c:501 free_page_is_bad mm/page_alloc.c:923 [inline] free_pages_prepare mm/page_alloc.c:1119 [inline] free_frozen_pages+0x1079/0x10e0 mm/page_alloc.c:2660 bpf_xdp_shrink_data net/core/filter.c:4155 [inline] bpf_xdp_frags_shrink_tail+0x3b3/0x780 net/core/filter.c:4175 ____bpf_xdp_adjust_tail net/core/filter.c:4200 [inline] bpf_xdp_adjust_tail+0x1c6/0x210 net/core/filter.c:4193 bpf_prog_f476d5219b92964a+0x1e/0x20 __bpf_prog_run include/linux/filter.h:701 [inline] bpf_prog_run_xdp include/net/xdp.h:654 [inline] bpf_prog_run_generic_xdp+0x686/0x1510 net/core/dev.c:5191 netif_receive_generic_xdp net/core/dev.c:5304 [inline] do_xdp_generic+0x757/0xd30 net/core/dev.c:5366 tun_get_user+0x2a4b/0x4860 drivers/net/tun.c:1929 tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:2053 new_sync_write fs/read_write.c:591 [inline] vfs_write+0xacf/0xd10 fs/read_write.c:684 ksys_write+0x18f/0x2b0 fs/read_write.c:736 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f507d78bc1f Code: 89 54 24 18 48 89 74 24 10 89 7c 24 08 e8 f9 92 02 00 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 4c 93 02 00 48 RSP: 002b:00007f507e5a7000 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f507d9a5fa0 RCX: 00007f507d78bc1f RDX: 000000000000fdef RSI: 0000200000000a80 RDI: 00000000000000c8 RBP: 00007f507d80e2a0 R08: 0000000000000000 R09: 0000000000000000 R10: 000000000000fdef R11: 0000000000000293 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f507d9a5fa0 R15: 00007ffda7d2a7e8 BUG: Bad page state in process syz.4.3921 pfn:7bc74 page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff88807bc74000 pfn:0x7bc74 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 dead000000000040 ffff888022aff000 0000000000000000 raw: ffff88807bc74000 0000000000000001 00000000ffffffff 0000000000000000 page dumped because: page_pool leak page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0x2820(GFP_ATOMIC|__GFP_NOWARN), pid 17509, tgid 17508 (syz.4.3921), ts 851666355064, free_ts 851588223750 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1f4/0x240 mm/page_alloc.c:1551 prep_new_page mm/page_alloc.c:1559 [inline] get_page_from_freelist+0x3651/0x37a0 mm/page_alloc.c:3477 __alloc_frozen_pages_noprof+0x292/0x710 mm/page_alloc.c:4740 __alloc_pages_noprof mm/page_alloc.c:4774 [inline] alloc_pages_bulk_noprof+0x847/0xae0 mm/page_alloc.c:4694 alloc_pages_bulk_node_noprof include/linux/gfp.h:235 [inline] __page_pool_alloc_pages_slow+0x11f/0x690 net/core/page_pool.c:542 page_pool_alloc_netmem include/net/page_pool/helpers.h:128 [inline] page_pool_alloc include/net/page_pool/helpers.h:160 [inline] page_pool_dev_alloc include/net/page_pool/helpers.h:181 [inline] skb_pp_cow_data+0xcc8/0x1720 net/core/skbuff.c:893 netif_skb_check_for_xdp net/core/dev.c:5259 [inline] netif_receive_generic_xdp net/core/dev.c:5298 [inline] do_xdp_generic+0x505/0xd30 net/core/dev.c:5366 tun_get_user+0x2a4b/0x4860 drivers/net/tun.c:1929 tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:2053 new_sync_write fs/read_write.c:591 [inline] vfs_write+0xacf/0xd10 fs/read_write.c:684 ksys_write+0x18f/0x2b0 fs/read_write.c:736 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 5198 tgid 5198 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1127 [inline] free_frozen_pages+0xe04/0x10e0 mm/page_alloc.c:2660 rcu_do_batch kernel/rcu/tree.c:2568 [inline] rcu_core+0xaaa/0x17a0 kernel/rcu/tree.c:2824 handle_softirqs+0x2d4/0x9b0 kernel/softirq.c:561 __do_softirq kernel/softirq.c:595 [inline] invoke_softirq kernel/softirq.c:435 [inline] __irq_exit_rcu+0xf7/0x220 kernel/softirq.c:662 irq_exit_rcu+0x9/0x30 kernel/softirq.c:678 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1049 [inline] sysvec_apic_timer_interrupt+0xa6/0xc0 arch/x86/kernel/apic/apic.c:1049 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702 Modules linked in: CPU: 1 UID: 0 PID: 17509 Comm: syz.4.3921 Tainted: G B 6.14.0-syzkaller-00685-g3ba7dfb8da62 #0 Tainted: [B]=BAD_PAGE Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:120 bad_page+0x176/0x1d0 mm/page_alloc.c:501 free_page_is_bad mm/page_alloc.c:923 [inline] free_pages_prepare mm/page_alloc.c:1119 [inline] free_frozen_pages+0x1079/0x10e0 mm/page_alloc.c:2660 bpf_xdp_shrink_data net/core/filter.c:4155 [inline] bpf_xdp_frags_shrink_tail+0x3b3/0x780 net/core/filter.c:4175 ____bpf_xdp_adjust_tail net/core/filter.c:4200 [inline] bpf_xdp_adjust_tail+0x1c6/0x210 net/core/filter.c:4193 bpf_prog_f476d5219b92964a+0x1e/0x20 __bpf_prog_run include/linux/filter.h:701 [inline] bpf_prog_run_xdp include/net/xdp.h:654 [inline] bpf_prog_run_generic_xdp+0x686/0x1510 net/core/dev.c:5191 netif_receive_generic_xdp net/core/dev.c:5304 [inline] do_xdp_generic+0x757/0xd30 net/core/dev.c:5366 tun_get_user+0x2a4b/0x4860 drivers/net/tun.c:1929 tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:2053 new_sync_write fs/read_write.c:591 [inline] vfs_write+0xacf/0xd10 fs/read_write.c:684 ksys_write+0x18f/0x2b0 fs/read_write.c:736 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f507d78bc1f Code: 89 54 24 18 48 89 74 24 10 89 7c 24 08 e8 f9 92 02 00 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 4c 93 02 00 48 RSP: 002b:00007f507e5a7000 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f507d9a5fa0 RCX: 00007f507d78bc1f RDX: 000000000000fdef RSI: 0000200000000a80 RDI: 00000000000000c8 RBP: 00007f507d80e2a0 R08: 0000000000000000 R09: 0000000000000000 R10: 000000000000fdef R11: 0000000000000293 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f507d9a5fa0 R15: 00007ffda7d2a7e8 BUG: Bad page state in process syz.4.3921 pfn:33c91 page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff888033c91000 pfn:0x33c91 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 dead000000000040 ffff888022aff000 0000000000000000 raw: ffff888033c91000 0000000000000001 00000000ffffffff 0000000000000000 page dumped because: page_pool leak page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0x2820(GFP_ATOMIC|__GFP_NOWARN), pid 17509, tgid 17508 (syz.4.3921), ts 851666341658, free_ts 851588247866 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1f4/0x240 mm/page_alloc.c:1551 prep_new_page mm/page_alloc.c:1559 [inline] get_page_from_freelist+0x3651/0x37a0 mm/page_alloc.c:3477 __alloc_frozen_pages_noprof+0x292/0x710 mm/page_alloc.c:4740 __alloc_pages_noprof mm/page_alloc.c:4774 [inline] alloc_pages_bulk_noprof+0x847/0xae0 mm/page_alloc.c:4694 alloc_pages_bulk_node_noprof include/linux/gfp.h:235 [inline] __page_pool_alloc_pages_slow+0x11f/0x690 net/core/page_pool.c:542 page_pool_alloc_netmem include/net/page_pool/helpers.h:128 [inline] page_pool_alloc include/net/page_pool/helpers.h:160 [inline] page_pool_dev_alloc include/net/page_pool/helpers.h:181 [inline] skb_pp_cow_data+0xcc8/0x1720 net/core/skbuff.c:893 netif_skb_check_for_xdp net/core/dev.c:5259 [inline] netif_receive_generic_xdp net/core/dev.c:5298 [inline] do_xdp_generic+0x505/0xd30 net/core/dev.c:5366 tun_get_user+0x2a4b/0x4860 drivers/net/tun.c:1929 tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:2053 new_sync_write fs/read_write.c:591 [inline] vfs_write+0xacf/0xd10 fs/read_write.c:684 ksys_write+0x18f/0x2b0 fs/read_write.c:736 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 5198 tgid 5198 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1127 [inline] free_frozen_pages+0xe04/0x10e0 mm/page_alloc.c:2660 rcu_do_batch kernel/rcu/tree.c:2568 [inline] rcu_core+0xaaa/0x17a0 kernel/rcu/tree.c:2824 handle_softirqs+0x2d4/0x9b0 kernel/softirq.c:561 __do_softirq kernel/softirq.c:595 [inline] invoke_softirq kernel/softirq.c:435 [inline] __irq_exit_rcu+0xf7/0x220 kernel/softirq.c:662 irq_exit_rcu+0x9/0x30 kernel/softirq.c:678 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1049 [inline] sysvec_apic_timer_interrupt+0xa6/0xc0 arch/x86/kernel/apic/apic.c:1049 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702 Modules linked in: CPU: 1 UID: 0 PID: 17509 Comm: syz.4.3921 Tainted: G B 6.14.0-syzkaller-00685-g3ba7dfb8da62 #0 Tainted: [B]=BAD_PAGE Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:120 bad_page+0x176/0x1d0 mm/page_alloc.c:501 free_page_is_bad mm/page_alloc.c:923 [inline] free_pages_prepare mm/page_alloc.c:1119 [inline] free_frozen_pages+0x1079/0x10e0 mm/page_alloc.c:2660 bpf_xdp_shrink_data net/core/filter.c:4155 [inline] bpf_xdp_frags_shrink_tail+0x3b3/0x780 net/core/filter.c:4175 ____bpf_xdp_adjust_tail net/core/filter.c:4200 [inline] bpf_xdp_adjust_tail+0x1c6/0x210 net/core/filter.c:4193 bpf_prog_f476d5219b92964a+0x1e/0x20 __bpf_prog_run include/linux/filter.h:701 [inline] bpf_prog_run_xdp include/net/xdp.h:654 [inline] bpf_prog_run_generic_xdp+0x686/0x1510 net/core/dev.c:5191 netif_receive_generic_xdp net/core/dev.c:5304 [inline] do_xdp_generic+0x757/0xd30 net/core/dev.c:5366 tun_get_user+0x2a4b/0x4860 drivers/net/tun.c:1929 tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:2053 new_sync_write fs/read_write.c:591 [inline] vfs_write+0xacf/0xd10 fs/read_write.c:684 ksys_write+0x18f/0x2b0 fs/read_write.c:736 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f507d78bc1f Code: 89 54 24 18 48 89 74 24 10 89 7c 24 08 e8 f9 92 02 00 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 4c 93 02 00 48 RSP: 002b:00007f507e5a7000 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f507d9a5fa0 RCX: 00007f507d78bc1f RDX: 000000000000fdef RSI: 0000200000000a80 RDI: 00000000000000c8 RBP: 00007f507d80e2a0 R08: 0000000000000000 R09: 0000000000000000 R10: 000000000000fdef R11: 0000000000000293 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f507d9a5fa0 R15: 00007ffda7d2a7e8 BUG: Bad page state in process syz.4.3921 pfn:32da0 page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff888032da0000 pfn:0x32da0 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 dead000000000040 ffff888022aff000 0000000000000000 raw: ffff888032da0000 0000000000000001 00000000ffffffff 0000000000000000 page dumped because: page_pool leak page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0x2820(GFP_ATOMIC|__GFP_NOWARN), pid 17509, tgid 17508 (syz.4.3921), ts 851666328524, free_ts 851588273375 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1f4/0x240 mm/page_alloc.c:1551 prep_new_page mm/page_alloc.c:1559 [inline] get_page_from_freelist+0x3651/0x37a0 mm/page_alloc.c:3477 __alloc_frozen_pages_noprof+0x292/0x710 mm/page_alloc.c:4740 __alloc_pages_noprof mm/page_alloc.c:4774 [inline] alloc_pages_bulk_noprof+0x847/0xae0 mm/page_alloc.c:4694 alloc_pages_bulk_node_noprof include/linux/gfp.h:235 [inline] __page_pool_alloc_pages_slow+0x11f/0x690 net/core/page_pool.c:542 page_pool_alloc_netmem include/net/page_pool/helpers.h:128 [inline] page_pool_alloc include/net/page_pool/helpers.h:160 [inline] page_pool_dev_alloc include/net/page_pool/helpers.h:181 [inline] skb_pp_cow_data+0xcc8/0x1720 net/core/skbuff.c:893 netif_skb_check_for_xdp net/core/dev.c:5259 [inline] netif_receive_generic_xdp net/core/dev.c:5298 [inline] do_xdp_generic+0x505/0xd30 net/core/dev.c:5366 tun_get_user+0x2a4b/0x4860 drivers/net/tun.c:1929 tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:2053 new_sync_write fs/read_write.c:591 [inline] vfs_write+0xacf/0xd10 fs/read_write.c:684 ksys_write+0x18f/0x2b0 fs/read_write.c:736 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 5198 tgid 5198 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1127 [inline] free_frozen_pages+0xe04/0x10e0 mm/page_alloc.c:2660 rcu_do_batch kernel/rcu/tree.c:2568 [inline] rcu_core+0xaaa/0x17a0 kernel/rcu/tree.c:2824 handle_softirqs+0x2d4/0x9b0 kernel/softirq.c:561 __do_softirq kernel/softirq.c:595 [inline] invoke_softirq kernel/softirq.c:435 [inline] __irq_exit_rcu+0xf7/0x220 kernel/softirq.c:662 irq_exit_rcu+0x9/0x30 kernel/softirq.c:678 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1049 [inline] sysvec_apic_timer_interrupt+0xa6/0xc0 arch/x86/kernel/apic/apic.c:1049 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702 Modules linked in: CPU: 1 UID: 0 PID: 17509 Comm: syz.4.3921 Tainted: G B 6.14.0-syzkaller-00685-g3ba7dfb8da62 #0 Tainted: [B]=BAD_PAGE Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:120 bad_page+0x176/0x1d0 mm/page_alloc.c:501 free_page_is_bad mm/page_alloc.c:923 [inline] free_pages_prepare mm/page_alloc.c:1119 [inline] free_frozen_pages+0x1079/0x10e0 mm/page_alloc.c:2660 bpf_xdp_shrink_data net/core/filter.c:4155 [inline] bpf_xdp_frags_shrink_tail+0x3b3/0x780 net/core/filter.c:4175 ____bpf_xdp_adjust_tail net/core/filter.c:4200 [inline] bpf_xdp_adjust_tail+0x1c6/0x210 net/core/filter.c:4193 bpf_prog_f476d5219b92964a+0x1e/0x20 __bpf_prog_run include/linux/filter.h:701 [inline] bpf_prog_run_xdp include/net/xdp.h:654 [inline] bpf_prog_run_generic_xdp+0x686/0x1510 net/core/dev.c:5191 netif_receive_generic_xdp net/core/dev.c:5304 [inline] do_xdp_generic+0x757/0xd30 net/core/dev.c:5366 tun_get_user+0x2a4b/0x4860 drivers/net/tun.c:1929 tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:2053 new_sync_write fs/read_write.c:591 [inline] vfs_write+0xacf/0xd10 fs/read_write.c:684 ksys_write+0x18f/0x2b0 fs/read_write.c:736 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f507d78bc1f Code: 89 54 24 18 48 89 74 24 10 89 7c 24 08 e8 f9 92 02 00 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 4c 93 02 00 48 RSP: 002b:00007f507e5a7000 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f507d9a5fa0 RCX: 00007f507d78bc1f RDX: 000000000000fdef RSI: 0000200000000a80 RDI: 00000000000000c8 RBP: 00007f507d80e2a0 R08: 0000000000000000 R09: 0000000000000000 R10: 000000000000fdef R11: 0000000000000293 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f507d9a5fa0 R15: 00007ffda7d2a7e8 BUG: Bad page state in process syz.4.3921 pfn:3541e page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff88803541e380 pfn:0x3541e flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 dead000000000040 ffff888022aff000 0000000000000000 raw: ffff88803541e380 0000000000000001 00000000ffffffff 0000000000000000 page dumped because: page_pool leak page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0x2820(GFP_ATOMIC|__GFP_NOWARN), pid 17509, tgid 17508 (syz.4.3921), ts 851666315381, free_ts 851628715330 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1f4/0x240 mm/page_alloc.c:1551 prep_new_page mm/page_alloc.c:1559 [inline] get_page_from_freelist+0x3651/0x37a0 mm/page_alloc.c:3477 __alloc_frozen_pages_noprof+0x292/0x710 mm/page_alloc.c:4740 __alloc_pages_noprof mm/page_alloc.c:4774 [inline] alloc_pages_bulk_noprof+0x847/0xae0 mm/page_alloc.c:4694 alloc_pages_bulk_node_noprof include/linux/gfp.h:235 [inline] __page_pool_alloc_pages_slow+0x11f/0x690 net/core/page_pool.c:542 page_pool_alloc_netmem include/net/page_pool/helpers.h:128 [inline] page_pool_alloc include/net/page_pool/helpers.h:160 [inline] page_pool_dev_alloc include/net/page_pool/helpers.h:181 [inline] skb_pp_cow_data+0xcc8/0x1720 net/core/skbuff.c:893 netif_skb_check_for_xdp net/core/dev.c:5259 [inline] netif_receive_generic_xdp net/core/dev.c:5298 [inline] do_xdp_generic+0x505/0xd30 net/core/dev.c:5366 tun_get_user+0x2a4b/0x4860 drivers/net/tun.c:1929 tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:2053 new_sync_write fs/read_write.c:591 [inline] vfs_write+0xacf/0xd10 fs/read_write.c:684 ksys_write+0x18f/0x2b0 fs/read_write.c:736 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 23 tgid 23 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1127 [inline] free_frozen_pages+0xe04/0x10e0 mm/page_alloc.c:2660 pagetable_free include/linux/mm.h:2923 [inline] pagetable_dtor_free include/linux/mm.h:3021 [inline] __tlb_remove_table+0x33c/0x420 include/asm-generic/tlb.h:216 __tlb_remove_table_free mm/mmu_gather.c:227 [inline] tlb_remove_table_rcu+0x76/0xf0 mm/mmu_gather.c:282 rcu_do_batch kernel/rcu/tree.c:2568 [inline] rcu_core+0xaaa/0x17a0 kernel/rcu/tree.c:2824 handle_softirqs+0x2d4/0x9b0 kernel/softirq.c:561 run_ksoftirqd+0xca/0x130 kernel/softirq.c:950 smpboot_thread_fn+0x544/0xa30 kernel/smpboot.c:164 kthread+0x7a9/0x920 kernel/kthread.c:464 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:148 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 Modules linked in: CPU: 1 UID: 0 PID: 17509 Comm: syz.4.3921 Tainted: G B 6.14.0-syzkaller-00685-g3ba7dfb8da62 #0 Tainted: [B]=BAD_PAGE Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:120 bad_page+0x176/0x1d0 mm/page_alloc.c:501 free_page_is_bad mm/page_alloc.c:923 [inline] free_pages_prepare mm/page_alloc.c:1119 [inline] free_frozen_pages+0x1079/0x10e0 mm/page_alloc.c:2660 bpf_xdp_shrink_data net/core/filter.c:4155 [inline] bpf_xdp_frags_shrink_tail+0x3b3/0x780 net/core/filter.c:4175 ____bpf_xdp_adjust_tail net/core/filter.c:4200 [inline] bpf_xdp_adjust_tail+0x1c6/0x210 net/core/filter.c:4193 bpf_prog_f476d5219b92964a+0x1e/0x20 __bpf_prog_run include/linux/filter.h:701 [inline] bpf_prog_run_xdp include/net/xdp.h:654 [inline] bpf_prog_run_generic_xdp+0x686/0x1510 net/core/dev.c:5191 netif_receive_generic_xdp net/core/dev.c:5304 [inline] do_xdp_generic+0x757/0xd30 net/core/dev.c:5366 tun_get_user+0x2a4b/0x4860 drivers/net/tun.c:1929 tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:2053 new_sync_write fs/read_write.c:591 [inline] vfs_write+0xacf/0xd10 fs/read_write.c:684 ksys_write+0x18f/0x2b0 fs/read_write.c:736 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f507d78bc1f Code: 89 54 24 18 48 89 74 24 10 89 7c 24 08 e8 f9 92 02 00 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 4c 93 02 00 48 RSP: 002b:00007f507e5a7000 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f507d9a5fa0 RCX: 00007f507d78bc1f RDX: 000000000000fdef RSI: 0000200000000a80 RDI: 00000000000000c8 RBP: 00007f507d80e2a0 R08: 0000000000000000 R09: 0000000000000000 R10: 000000000000fdef R11: 0000000000000293 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f507d9a5fa0 R15: 00007ffda7d2a7e8 BUG: Bad page state in process syz.4.3921 pfn:35449 page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff888000000000 pfn:0x35449 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 dead000000000040 ffff888022aff000 0000000000000000 raw: ffff888000000000 0000000000000001 00000000ffffffff 0000000000000000 page dumped because: page_pool leak page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0x2820(GFP_ATOMIC|__GFP_NOWARN), pid 17509, tgid 17508 (syz.4.3921), ts 851666302258, free_ts 851628739050 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1f4/0x240 mm/page_alloc.c:1551 prep_new_page mm/page_alloc.c:1559 [inline] get_page_from_freelist+0x3651/0x37a0 mm/page_alloc.c:3477 __alloc_frozen_pages_noprof+0x292/0x710 mm/page_alloc.c:4740 __alloc_pages_noprof mm/page_alloc.c:4774 [inline] alloc_pages_bulk_noprof+0x847/0xae0 mm/page_alloc.c:4694 alloc_pages_bulk_node_noprof include/linux/gfp.h:235 [inline] __page_pool_alloc_pages_slow+0x11f/0x690 net/core/page_pool.c:542 page_pool_alloc_netmem include/net/page_pool/helpers.h:128 [inline] page_pool_alloc include/net/page_pool/helpers.h:160 [inline] page_pool_dev_alloc include/net/page_pool/helpers.h:181 [inline] skb_pp_cow_data+0xcc8/0x1720 net/core/skbuff.c:893 netif_skb_check_for_xdp net/core/dev.c:5259 [inline] netif_receive_generic_xdp net/core/dev.c:5298 [inline] do_xdp_generic+0x505/0xd30 net/core/dev.c:5366 tun_get_user+0x2a4b/0x4860 drivers/net/tun.c:1929 tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:2053 new_sync_write fs/read_write.c:591 [inline] vfs_write+0xacf/0xd10 fs/read_write.c:684 ksys_write+0x18f/0x2b0 fs/read_write.c:736 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 23 tgid 23 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1127 [inline] free_frozen_pages+0xe04/0x10e0 mm/page_alloc.c:2660 pagetable_free include/linux/mm.h:2923 [inline] pagetable_dtor_free include/linux/mm.h:3021 [inline] __tlb_remove_table+0x33c/0x420 include/asm-generic/tlb.h:216 __tlb_remove_table_free mm/mmu_gather.c:227 [inline] tlb_remove_table_rcu+0x76/0xf0 mm/mmu_gather.c:282 rcu_do_batch kernel/rcu/tree.c:2568 [inline] rcu_core+0xaaa/0x17a0 kernel/rcu/tree.c:2824 handle_softirqs+0x2d4/0x9b0 kernel/softirq.c:561 run_ksoftirqd+0xca/0x130 kernel/softirq.c:950 smpboot_thread_fn+0x544/0xa30 kernel/smpboot.c:164 kthread+0x7a9/0x920 kernel/kthread.c:464 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:148 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 Modules linked in: CPU: 1 UID: 0 PID: 17509 Comm: syz.4.3921 Tainted: G B 6.14.0-syzkaller-00685-g3ba7dfb8da62 #0 Tainted: [B]=BAD_PAGE Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:120 bad_page+0x176/0x1d0 mm/page_alloc.c:501 free_page_is_bad mm/page_alloc.c:923 [inline] free_pages_prepare mm/page_alloc.c:1119 [inline] free_frozen_pages+0x1079/0x10e0 mm/page_alloc.c:2660 bpf_xdp_shrink_data net/core/filter.c:4155 [inline] bpf_xdp_frags_shrink_tail+0x3b3/0x780 net/core/filter.c:4175 ____bpf_xdp_adjust_tail net/core/filter.c:4200 [inline] bpf_xdp_adjust_tail+0x1c6/0x210 net/core/filter.c:4193 bpf_prog_f476d5219b92964a+0x1e/0x20 __bpf_prog_run include/linux/filter.h:701 [inline] bpf_prog_run_xdp include/net/xdp.h:654 [inline] bpf_prog_run_generic_xdp+0x686/0x1510 net/core/dev.c:5191 netif_receive_generic_xdp net/core/dev.c:5304 [inline] do_xdp_generic+0x757/0xd30 net/core/dev.c:5366 tun_get_user+0x2a4b/0x4860 drivers/net/tun.c:1929 tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:2053 new_sync_write fs/read_write.c:591 [inline] vfs_write+0xacf/0xd10 fs/read_write.c:684 ksys_write+0x18f/0x2b0 fs/read_write.c:736 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f507d78bc1f Code: 89 54 24 18 48 89 74 24 10 89 7c 24 08 e8 f9 92 02 00 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 4c 93 02 00 48 RSP: 002b:00007f507e5a7000 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f507d9a5fa0 RCX: 00007f507d78bc1f RDX: 000000000000fdef RSI: 0000200000000a80 RDI: 00000000000000c8 RBP: 00007f507d80e2a0 R08: 0000000000000000 R09: 0000000000000000 R10: 000000000000fdef R11: 0000000000000293 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f507d9a5fa0 R15: 00007ffda7d2a7e8 BUG: Bad page state in process syz.4.3921 pfn:6956d page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x6956d flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 dead000000000040 ffff888022aff000 0000000000000000 raw: 0000000000000000 0000000000000001 00000000ffffffff 0000000000000000 page dumped because: page_pool leak page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0x2820(GFP_ATOMIC|__GFP_NOWARN), pid 17509, tgid 17508 (syz.4.3921), ts 851666288964, free_ts 851628760800 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1f4/0x240 mm/page_alloc.c:1551 prep_new_page mm/page_alloc.c:1559 [inline] get_page_from_freelist+0x3651/0x37a0 mm/page_alloc.c:3477 __alloc_frozen_pages_noprof+0x292/0x710 mm/page_alloc.c:4740 __alloc_pages_noprof mm/page_alloc.c:4774 [inline] alloc_pages_bulk_noprof+0x847/0xae0 mm/page_alloc.c:4694 alloc_pages_bulk_node_noprof include/linux/gfp.h:235 [inline] __page_pool_alloc_pages_slow+0x11f/0x690 net/core/page_pool.c:542 page_pool_alloc_netmem include/net/page_pool/helpers.h:128 [inline] page_pool_alloc include/net/page_pool/helpers.h:160 [inline] page_pool_dev_alloc include/net/page_pool/helpers.h:181 [inline] skb_pp_cow_data+0xcc8/0x1720 net/core/skbuff.c:893 netif_skb_check_for_xdp net/core/dev.c:5259 [inline] netif_receive_generic_xdp net/core/dev.c:5298 [inline] do_xdp_generic+0x505/0xd30 net/core/dev.c:5366 tun_get_user+0x2a4b/0x4860 drivers/net/tun.c:1929 tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:2053 new_sync_write fs/read_write.c:591 [inline] vfs_write+0xacf/0xd10 fs/read_write.c:684 ksys_write+0x18f/0x2b0 fs/read_write.c:736 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 23 tgid 23 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1127 [inline] free_frozen_pages+0xe04/0x10e0 mm/page_alloc.c:2660 pagetable_free include/linux/mm.h:2923 [inline] pagetable_dtor_free include/linux/mm.h:3021 [inline] __tlb_remove_table+0x33c/0x420 include/asm-generic/tlb.h:216 __tlb_remove_table_free mm/mmu_gather.c:227 [inline] tlb_remove_table_rcu+0x76/0xf0 mm/mmu_gather.c:282 rcu_do_batch kernel/rcu/tree.c:2568 [inline] rcu_core+0xaaa/0x17a0 kernel/rcu/tree.c:2824 handle_softirqs+0x2d4/0x9b0 kernel/softirq.c:561 run_ksoftirqd+0xca/0x130 kernel/softirq.c:950 smpboot_thread_fn+0x544/0xa30 kernel/smpboot.c:164 kthread+0x7a9/0x920 kernel/kthread.c:464 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:148 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 Modules linked in: CPU: 1 UID: 0 PID: 17509 Comm: syz.4.3921 Tainted: G B 6.14.0-syzkaller-00685-g3ba7dfb8da62 #0 Tainted: [B]=BAD_PAGE Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:120 bad_page+0x176/0x1d0 mm/page_alloc.c:501 free_page_is_bad mm/page_alloc.c:923 [inline] free_pages_prepare mm/page_alloc.c:1119 [inline] free_frozen_pages+0x1079/0x10e0 mm/page_alloc.c:2660 bpf_xdp_shrink_data net/core/filter.c:4155 [inline] bpf_xdp_frags_shrink_tail+0x3b3/0x780 net/core/filter.c:4175 ____bpf_xdp_adjust_tail net/core/filter.c:4200 [inline] bpf_xdp_adjust_tail+0x1c6/0x210 net/core/filter.c:4193 bpf_prog_f476d5219b92964a+0x1e/0x20 __bpf_prog_run include/linux/filter.h:701 [inline] bpf_prog_run_xdp include/net/xdp.h:654 [inline] bpf_prog_run_generic_xdp+0x686/0x1510 net/core/dev.c:5191 netif_receive_generic_xdp net/core/dev.c:5304 [inline] do_xdp_generic+0x757/0xd30 net/core/dev.c:5366 tun_get_user+0x2a4b/0x4860 drivers/net/tun.c:1929 tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:2053 new_sync_write fs/read_write.c:591 [inline] vfs_write+0xacf/0xd10 fs/read_write.c:684 ksys_write+0x18f/0x2b0 fs/read_write.c:736 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f507d78bc1f Code: 89 54 24 18 48 89 74 24 10 89 7c 24 08 e8 f9 92 02 00 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 4c 93 02 00 48 RSP: 002b:00007f507e5a7000 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f507d9a5fa0 RCX: 00007f507d78bc1f RDX: 000000000000fdef RSI: 0000200000000a80 RDI: 00000000000000c8 RBP: 00007f507d80e2a0 R08: 0000000000000000 R09: 0000000000000000 R10: 000000000000fdef R11: 0000000000000293 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f507d9a5fa0 R15: 00007ffda7d2a7e8