BUG: Bad page state in process syz.1.96 pfn:5ba2c page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff888000000000 pfn:0x5ba2c flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 dead000000000040 ffff888021aec000 0000000000000000 raw: ffff888000000000 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 6257, tgid 6254 (syz.1.96), ts 147017333581, free_ts 146993430352 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x181/0x1b0 mm/page_alloc.c:1551 prep_new_page mm/page_alloc.c:1559 [inline] get_page_from_freelist+0xfce/0x2f80 mm/page_alloc.c:3477 __alloc_frozen_pages_noprof+0x221/0x2470 mm/page_alloc.c:4740 __alloc_pages_noprof mm/page_alloc.c:4774 [inline] alloc_pages_bulk_noprof+0x6f9/0x1390 mm/page_alloc.c:4694 alloc_pages_bulk_node_noprof include/linux/gfp.h:235 [inline] __page_pool_alloc_pages_slow+0x18c/0x770 net/core/page_pool.c:542 page_pool_alloc_netmems net/core/page_pool.c:593 [inline] page_pool_alloc_netmems+0xc4/0x160 net/core/page_pool.c:580 page_pool_alloc_frag_netmem+0x220/0x760 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+0x571/0xf10 net/core/skbuff.c:893 skb_cow_data_for_xdp+0x88/0xb0 net/core/skbuff.c:927 netif_skb_check_for_xdp net/core/dev.c:5259 [inline] netif_receive_generic_xdp net/core/dev.c:5298 [inline] do_xdp_generic+0x3f1/0xe70 net/core/dev.c:5366 tun_get_user+0x1e04/0x3e50 drivers/net/tun.c:1929 tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:2053 new_sync_write fs/read_write.c:591 [inline] vfs_write+0x5b1/0x1150 fs/read_write.c:684 ksys_write+0x12b/0x250 fs/read_write.c:736 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 15 tgid 15 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1127 [inline] free_frozen_pages+0x6db/0xfb0 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 include/asm-generic/tlb.h:216 [inline] __tlb_remove_table_free mm/mmu_gather.c:227 [inline] tlb_remove_table_rcu+0x116/0x1a0 mm/mmu_gather.c:282 rcu_do_batch kernel/rcu/tree.c:2568 [inline] rcu_core+0x7a0/0x14d0 kernel/rcu/tree.c:2824 handle_softirqs+0x216/0x8f0 kernel/softirq.c:561 run_ksoftirqd kernel/softirq.c:950 [inline] run_ksoftirqd+0x3a/0x60 kernel/softirq.c:942 smpboot_thread_fn+0x664/0xa30 kernel/smpboot.c:164 kthread+0x3b2/0x750 kernel/kthread.c:464 ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:148 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 Modules linked in: CPU: 0 UID: 0 PID: 6257 Comm: syz.1.96 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+0x16c/0x1f0 lib/dump_stack.c:120 bad_page+0xb3/0x1f0 mm/page_alloc.c:501 free_page_is_bad_report mm/page_alloc.c:913 [inline] free_page_is_bad mm/page_alloc.c:923 [inline] free_pages_prepare mm/page_alloc.c:1119 [inline] free_frozen_pages+0x701/0xfb0 mm/page_alloc.c:2660 page_frag_free+0x255/0x2a0 mm/page_frag_cache.c:169 __xdp_return+0x363/0xac0 net/core/xdp.c:447 bpf_xdp_shrink_data net/core/filter.c:4155 [inline] bpf_xdp_frags_shrink_tail net/core/filter.c:4175 [inline] ____bpf_xdp_adjust_tail net/core/filter.c:4200 [inline] bpf_xdp_adjust_tail+0x9de/0xf70 net/core/filter.c:4193 bpf_prog_f476d5219b92964a+0x1e/0x24 __bpf_prog_run include/linux/filter.h:701 [inline] bpf_prog_run_xdp include/net/xdp.h:654 [inline] bpf_prog_run_generic_xdp+0x623/0x1500 net/core/dev.c:5191 netif_receive_generic_xdp net/core/dev.c:5304 [inline] do_xdp_generic+0x70a/0xe70 net/core/dev.c:5366 tun_get_user+0x1e04/0x3e50 drivers/net/tun.c:1929 tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:2053 new_sync_write fs/read_write.c:591 [inline] vfs_write+0x5b1/0x1150 fs/read_write.c:684 ksys_write+0x12b/0x250 fs/read_write.c:736 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fe51838bc1f 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:00007fe519231000 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007fe5185a5fa0 RCX: 00007fe51838bc1f RDX: 000000000000fdef RSI: 0000200000000a80 RDI: 00000000000000c8 RBP: 00007fe51840e2a0 R08: 0000000000000000 R09: 0000000000000000 R10: 000000000000fdef R11: 0000000000000293 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fe5185a5fa0 R15: 00007fff0b8c5c38 BUG: Bad page state in process syz.1.96 pfn:5dea6 page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff88805dea6000 pfn:0x5dea6 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 dead000000000040 ffff888021aec000 0000000000000000 raw: ffff88805dea6000 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 6257, tgid 6254 (syz.1.96), ts 147017319690, free_ts 146993449821 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x181/0x1b0 mm/page_alloc.c:1551 prep_new_page mm/page_alloc.c:1559 [inline] get_page_from_freelist+0xfce/0x2f80 mm/page_alloc.c:3477 __alloc_frozen_pages_noprof+0x221/0x2470 mm/page_alloc.c:4740 __alloc_pages_noprof mm/page_alloc.c:4774 [inline] alloc_pages_bulk_noprof+0x6f9/0x1390 mm/page_alloc.c:4694 alloc_pages_bulk_node_noprof include/linux/gfp.h:235 [inline] __page_pool_alloc_pages_slow+0x18c/0x770 net/core/page_pool.c:542 page_pool_alloc_netmems net/core/page_pool.c:593 [inline] page_pool_alloc_netmems+0xc4/0x160 net/core/page_pool.c:580 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+0x776/0xf10 net/core/skbuff.c:893 skb_cow_data_for_xdp+0x88/0xb0 net/core/skbuff.c:927 netif_skb_check_for_xdp net/core/dev.c:5259 [inline] netif_receive_generic_xdp net/core/dev.c:5298 [inline] do_xdp_generic+0x3f1/0xe70 net/core/dev.c:5366 tun_get_user+0x1e04/0x3e50 drivers/net/tun.c:1929 tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:2053 new_sync_write fs/read_write.c:591 [inline] vfs_write+0x5b1/0x1150 fs/read_write.c:684 ksys_write+0x12b/0x250 fs/read_write.c:736 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 15 tgid 15 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1127 [inline] free_frozen_pages+0x6db/0xfb0 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 include/asm-generic/tlb.h:216 [inline] __tlb_remove_table_free mm/mmu_gather.c:227 [inline] tlb_remove_table_rcu+0x116/0x1a0 mm/mmu_gather.c:282 rcu_do_batch kernel/rcu/tree.c:2568 [inline] rcu_core+0x7a0/0x14d0 kernel/rcu/tree.c:2824 handle_softirqs+0x216/0x8f0 kernel/softirq.c:561 run_ksoftirqd kernel/softirq.c:950 [inline] run_ksoftirqd+0x3a/0x60 kernel/softirq.c:942 smpboot_thread_fn+0x664/0xa30 kernel/smpboot.c:164 kthread+0x3b2/0x750 kernel/kthread.c:464 ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:148 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 Modules linked in: CPU: 0 UID: 0 PID: 6257 Comm: syz.1.96 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+0x16c/0x1f0 lib/dump_stack.c:120 bad_page+0xb3/0x1f0 mm/page_alloc.c:501 free_page_is_bad_report mm/page_alloc.c:913 [inline] free_page_is_bad mm/page_alloc.c:923 [inline] free_pages_prepare mm/page_alloc.c:1119 [inline] free_frozen_pages+0x701/0xfb0 mm/page_alloc.c:2660 page_frag_free+0x255/0x2a0 mm/page_frag_cache.c:169 __xdp_return+0x363/0xac0 net/core/xdp.c:447 bpf_xdp_shrink_data net/core/filter.c:4155 [inline] bpf_xdp_frags_shrink_tail net/core/filter.c:4175 [inline] ____bpf_xdp_adjust_tail net/core/filter.c:4200 [inline] bpf_xdp_adjust_tail+0x9de/0xf70 net/core/filter.c:4193 bpf_prog_f476d5219b92964a+0x1e/0x24 __bpf_prog_run include/linux/filter.h:701 [inline] bpf_prog_run_xdp include/net/xdp.h:654 [inline] bpf_prog_run_generic_xdp+0x623/0x1500 net/core/dev.c:5191 netif_receive_generic_xdp net/core/dev.c:5304 [inline] do_xdp_generic+0x70a/0xe70 net/core/dev.c:5366 tun_get_user+0x1e04/0x3e50 drivers/net/tun.c:1929 tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:2053 new_sync_write fs/read_write.c:591 [inline] vfs_write+0x5b1/0x1150 fs/read_write.c:684 ksys_write+0x12b/0x250 fs/read_write.c:736 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fe51838bc1f 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:00007fe519231000 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007fe5185a5fa0 RCX: 00007fe51838bc1f RDX: 000000000000fdef RSI: 0000200000000a80 RDI: 00000000000000c8 RBP: 00007fe51840e2a0 R08: 0000000000000000 R09: 0000000000000000 R10: 000000000000fdef R11: 0000000000000293 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fe5185a5fa0 R15: 00007fff0b8c5c38 BUG: Bad page state in process syz.1.96 pfn:32b3d page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff888000000000 pfn:0x32b3d flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 dead000000000040 ffff888021aec000 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 6257, tgid 6254 (syz.1.96), ts 147017306561, free_ts 146993469882 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x181/0x1b0 mm/page_alloc.c:1551 prep_new_page mm/page_alloc.c:1559 [inline] get_page_from_freelist+0xfce/0x2f80 mm/page_alloc.c:3477 __alloc_frozen_pages_noprof+0x221/0x2470 mm/page_alloc.c:4740 __alloc_pages_noprof mm/page_alloc.c:4774 [inline] alloc_pages_bulk_noprof+0x6f9/0x1390 mm/page_alloc.c:4694 alloc_pages_bulk_node_noprof include/linux/gfp.h:235 [inline] __page_pool_alloc_pages_slow+0x18c/0x770 net/core/page_pool.c:542 page_pool_alloc_netmems net/core/page_pool.c:593 [inline] page_pool_alloc_netmems+0xc4/0x160 net/core/page_pool.c:580 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+0x776/0xf10 net/core/skbuff.c:893 skb_cow_data_for_xdp+0x88/0xb0 net/core/skbuff.c:927 netif_skb_check_for_xdp net/core/dev.c:5259 [inline] netif_receive_generic_xdp net/core/dev.c:5298 [inline] do_xdp_generic+0x3f1/0xe70 net/core/dev.c:5366 tun_get_user+0x1e04/0x3e50 drivers/net/tun.c:1929 tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:2053 new_sync_write fs/read_write.c:591 [inline] vfs_write+0x5b1/0x1150 fs/read_write.c:684 ksys_write+0x12b/0x250 fs/read_write.c:736 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 15 tgid 15 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1127 [inline] free_frozen_pages+0x6db/0xfb0 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 include/asm-generic/tlb.h:216 [inline] __tlb_remove_table_free mm/mmu_gather.c:227 [inline] tlb_remove_table_rcu+0x116/0x1a0 mm/mmu_gather.c:282 rcu_do_batch kernel/rcu/tree.c:2568 [inline] rcu_core+0x7a0/0x14d0 kernel/rcu/tree.c:2824 handle_softirqs+0x216/0x8f0 kernel/softirq.c:561 run_ksoftirqd kernel/softirq.c:950 [inline] run_ksoftirqd+0x3a/0x60 kernel/softirq.c:942 smpboot_thread_fn+0x664/0xa30 kernel/smpboot.c:164 kthread+0x3b2/0x750 kernel/kthread.c:464 ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:148 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 Modules linked in: CPU: 0 UID: 0 PID: 6257 Comm: syz.1.96 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+0x16c/0x1f0 lib/dump_stack.c:120 bad_page+0xb3/0x1f0 mm/page_alloc.c:501 free_page_is_bad_report mm/page_alloc.c:913 [inline] free_page_is_bad mm/page_alloc.c:923 [inline] free_pages_prepare mm/page_alloc.c:1119 [inline] free_frozen_pages+0x701/0xfb0 mm/page_alloc.c:2660 page_frag_free+0x255/0x2a0 mm/page_frag_cache.c:169 __xdp_return+0x363/0xac0 net/core/xdp.c:447 bpf_xdp_shrink_data net/core/filter.c:4155 [inline] bpf_xdp_frags_shrink_tail net/core/filter.c:4175 [inline] ____bpf_xdp_adjust_tail net/core/filter.c:4200 [inline] bpf_xdp_adjust_tail+0x9de/0xf70 net/core/filter.c:4193 bpf_prog_f476d5219b92964a+0x1e/0x24 __bpf_prog_run include/linux/filter.h:701 [inline] bpf_prog_run_xdp include/net/xdp.h:654 [inline] bpf_prog_run_generic_xdp+0x623/0x1500 net/core/dev.c:5191 netif_receive_generic_xdp net/core/dev.c:5304 [inline] do_xdp_generic+0x70a/0xe70 net/core/dev.c:5366 tun_get_user+0x1e04/0x3e50 drivers/net/tun.c:1929 tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:2053 new_sync_write fs/read_write.c:591 [inline] vfs_write+0x5b1/0x1150 fs/read_write.c:684 ksys_write+0x12b/0x250 fs/read_write.c:736 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fe51838bc1f 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:00007fe519231000 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007fe5185a5fa0 RCX: 00007fe51838bc1f RDX: 000000000000fdef RSI: 0000200000000a80 RDI: 00000000000000c8 RBP: 00007fe51840e2a0 R08: 0000000000000000 R09: 0000000000000000 R10: 000000000000fdef R11: 0000000000000293 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fe5185a5fa0 R15: 00007fff0b8c5c38 BUG: Bad page state in process syz.1.96 pfn:7c3a6 page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff88807c3a6dc0 pfn:0x7c3a6 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 dead000000000040 ffff888021aec000 0000000000000000 raw: ffff88807c3a6dc0 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 6257, tgid 6254 (syz.1.96), ts 147017292881, free_ts 146993490141 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x181/0x1b0 mm/page_alloc.c:1551 prep_new_page mm/page_alloc.c:1559 [inline] get_page_from_freelist+0xfce/0x2f80 mm/page_alloc.c:3477 __alloc_frozen_pages_noprof+0x221/0x2470 mm/page_alloc.c:4740 __alloc_pages_noprof mm/page_alloc.c:4774 [inline] alloc_pages_bulk_noprof+0x6f9/0x1390 mm/page_alloc.c:4694 alloc_pages_bulk_node_noprof include/linux/gfp.h:235 [inline] __page_pool_alloc_pages_slow+0x18c/0x770 net/core/page_pool.c:542 page_pool_alloc_netmems net/core/page_pool.c:593 [inline] page_pool_alloc_netmems+0xc4/0x160 net/core/page_pool.c:580 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+0x776/0xf10 net/core/skbuff.c:893 skb_cow_data_for_xdp+0x88/0xb0 net/core/skbuff.c:927 netif_skb_check_for_xdp net/core/dev.c:5259 [inline] netif_receive_generic_xdp net/core/dev.c:5298 [inline] do_xdp_generic+0x3f1/0xe70 net/core/dev.c:5366 tun_get_user+0x1e04/0x3e50 drivers/net/tun.c:1929 tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:2053 new_sync_write fs/read_write.c:591 [inline] vfs_write+0x5b1/0x1150 fs/read_write.c:684 ksys_write+0x12b/0x250 fs/read_write.c:736 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 15 tgid 15 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1127 [inline] free_frozen_pages+0x6db/0xfb0 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 include/asm-generic/tlb.h:216 [inline] __tlb_remove_table_free mm/mmu_gather.c:227 [inline] tlb_remove_table_rcu+0x116/0x1a0 mm/mmu_gather.c:282 rcu_do_batch kernel/rcu/tree.c:2568 [inline] rcu_core+0x7a0/0x14d0 kernel/rcu/tree.c:2824 handle_softirqs+0x216/0x8f0 kernel/softirq.c:561 run_ksoftirqd kernel/softirq.c:950 [inline] run_ksoftirqd+0x3a/0x60 kernel/softirq.c:942 smpboot_thread_fn+0x664/0xa30 kernel/smpboot.c:164 kthread+0x3b2/0x750 kernel/kthread.c:464 ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:148 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 Modules linked in: CPU: 0 UID: 0 PID: 6257 Comm: syz.1.96 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+0x16c/0x1f0 lib/dump_stack.c:120 bad_page+0xb3/0x1f0 mm/page_alloc.c:501 free_page_is_bad_report mm/page_alloc.c:913 [inline] free_page_is_bad mm/page_alloc.c:923 [inline] free_pages_prepare mm/page_alloc.c:1119 [inline] free_frozen_pages+0x701/0xfb0 mm/page_alloc.c:2660 page_frag_free+0x255/0x2a0 mm/page_frag_cache.c:169 __xdp_return+0x363/0xac0 net/core/xdp.c:447 bpf_xdp_shrink_data net/core/filter.c:4155 [inline] bpf_xdp_frags_shrink_tail net/core/filter.c:4175 [inline] ____bpf_xdp_adjust_tail net/core/filter.c:4200 [inline] bpf_xdp_adjust_tail+0x9de/0xf70 net/core/filter.c:4193 bpf_prog_f476d5219b92964a+0x1e/0x24 __bpf_prog_run include/linux/filter.h:701 [inline] bpf_prog_run_xdp include/net/xdp.h:654 [inline] bpf_prog_run_generic_xdp+0x623/0x1500 net/core/dev.c:5191 netif_receive_generic_xdp net/core/dev.c:5304 [inline] do_xdp_generic+0x70a/0xe70 net/core/dev.c:5366 tun_get_user+0x1e04/0x3e50 drivers/net/tun.c:1929 tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:2053 new_sync_write fs/read_write.c:591 [inline] vfs_write+0x5b1/0x1150 fs/read_write.c:684 ksys_write+0x12b/0x250 fs/read_write.c:736 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fe51838bc1f 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:00007fe519231000 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007fe5185a5fa0 RCX: 00007fe51838bc1f RDX: 000000000000fdef RSI: 0000200000000a80 RDI: 00000000000000c8 RBP: 00007fe51840e2a0 R08: 0000000000000000 R09: 0000000000000000 R10: 000000000000fdef R11: 0000000000000293 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fe5185a5fa0 R15: 00007fff0b8c5c38 BUG: Bad page state in process syz.1.96 pfn:7e8f2 page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff88807e8f2280 pfn:0x7e8f2 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 dead000000000040 ffff888021aec000 0000000000000000 raw: ffff88807e8f2280 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 6257, tgid 6254 (syz.1.96), ts 147017279631, free_ts 146993510621 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x181/0x1b0 mm/page_alloc.c:1551 prep_new_page mm/page_alloc.c:1559 [inline] get_page_from_freelist+0xfce/0x2f80 mm/page_alloc.c:3477 __alloc_frozen_pages_noprof+0x221/0x2470 mm/page_alloc.c:4740 __alloc_pages_noprof mm/page_alloc.c:4774 [inline] alloc_pages_bulk_noprof+0x6f9/0x1390 mm/page_alloc.c:4694 alloc_pages_bulk_node_noprof include/linux/gfp.h:235 [inline] __page_pool_alloc_pages_slow+0x18c/0x770 net/core/page_pool.c:542 page_pool_alloc_netmems net/core/page_pool.c:593 [inline] page_pool_alloc_netmems+0xc4/0x160 net/core/page_pool.c:580 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+0x776/0xf10 net/core/skbuff.c:893 skb_cow_data_for_xdp+0x88/0xb0 net/core/skbuff.c:927 netif_skb_check_for_xdp net/core/dev.c:5259 [inline] netif_receive_generic_xdp net/core/dev.c:5298 [inline] do_xdp_generic+0x3f1/0xe70 net/core/dev.c:5366 tun_get_user+0x1e04/0x3e50 drivers/net/tun.c:1929 tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:2053 new_sync_write fs/read_write.c:591 [inline] vfs_write+0x5b1/0x1150 fs/read_write.c:684 ksys_write+0x12b/0x250 fs/read_write.c:736 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 15 tgid 15 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1127 [inline] free_frozen_pages+0x6db/0xfb0 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 include/asm-generic/tlb.h:216 [inline] __tlb_remove_table_free mm/mmu_gather.c:227 [inline] tlb_remove_table_rcu+0x116/0x1a0 mm/mmu_gather.c:282 rcu_do_batch kernel/rcu/tree.c:2568 [inline] rcu_core+0x7a0/0x14d0 kernel/rcu/tree.c:2824 handle_softirqs+0x216/0x8f0 kernel/softirq.c:561 run_ksoftirqd kernel/softirq.c:950 [inline] run_ksoftirqd+0x3a/0x60 kernel/softirq.c:942 smpboot_thread_fn+0x664/0xa30 kernel/smpboot.c:164 kthread+0x3b2/0x750 kernel/kthread.c:464 ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:148 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 Modules linked in: CPU: 0 UID: 0 PID: 6257 Comm: syz.1.96 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+0x16c/0x1f0 lib/dump_stack.c:120 bad_page+0xb3/0x1f0 mm/page_alloc.c:501 free_page_is_bad_report mm/page_alloc.c:913 [inline] free_page_is_bad mm/page_alloc.c:923 [inline] free_pages_prepare mm/page_alloc.c:1119 [inline] free_frozen_pages+0x701/0xfb0 mm/page_alloc.c:2660 page_frag_free+0x255/0x2a0 mm/page_frag_cache.c:169 __xdp_return+0x363/0xac0 net/core/xdp.c:447 bpf_xdp_shrink_data net/core/filter.c:4155 [inline] bpf_xdp_frags_shrink_tail net/core/filter.c:4175 [inline] ____bpf_xdp_adjust_tail net/core/filter.c:4200 [inline] bpf_xdp_adjust_tail+0x9de/0xf70 net/core/filter.c:4193 bpf_prog_f476d5219b92964a+0x1e/0x24 __bpf_prog_run include/linux/filter.h:701 [inline] bpf_prog_run_xdp include/net/xdp.h:654 [inline] bpf_prog_run_generic_xdp+0x623/0x1500 net/core/dev.c:5191 netif_receive_generic_xdp net/core/dev.c:5304 [inline] do_xdp_generic+0x70a/0xe70 net/core/dev.c:5366 tun_get_user+0x1e04/0x3e50 drivers/net/tun.c:1929 tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:2053 new_sync_write fs/read_write.c:591 [inline] vfs_write+0x5b1/0x1150 fs/read_write.c:684 ksys_write+0x12b/0x250 fs/read_write.c:736 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fe51838bc1f 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:00007fe519231000 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007fe5185a5fa0 RCX: 00007fe51838bc1f RDX: 000000000000fdef RSI: 0000200000000a80 RDI: 00000000000000c8 RBP: 00007fe51840e2a0 R08: 0000000000000000 R09: 0000000000000000 R10: 000000000000fdef R11: 0000000000000293 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fe5185a5fa0 R15: 00007fff0b8c5c38 BUG: Bad page state in process syz.1.96 pfn:2f807 page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff88802f807780 pfn:0x2f807 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 dead000000000040 ffff888021aec000 0000000000000000 raw: ffff88802f807780 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 6257, tgid 6254 (syz.1.96), ts 147017266581, free_ts 146993531891 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x181/0x1b0 mm/page_alloc.c:1551 prep_new_page mm/page_alloc.c:1559 [inline] get_page_from_freelist+0xfce/0x2f80 mm/page_alloc.c:3477 __alloc_frozen_pages_noprof+0x221/0x2470 mm/page_alloc.c:4740 __alloc_pages_noprof mm/page_alloc.c:4774 [inline] alloc_pages_bulk_noprof+0x6f9/0x1390 mm/page_alloc.c:4694 alloc_pages_bulk_node_noprof include/linux/gfp.h:235 [inline] __page_pool_alloc_pages_slow+0x18c/0x770 net/core/page_pool.c:542 page_pool_alloc_netmems net/core/page_pool.c:593 [inline] page_pool_alloc_netmems+0xc4/0x160 net/core/page_pool.c:580 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+0x776/0xf10 net/core/skbuff.c:893 skb_cow_data_for_xdp+0x88/0xb0 net/core/skbuff.c:927 netif_skb_check_for_xdp net/core/dev.c:5259 [inline] netif_receive_generic_xdp net/core/dev.c:5298 [inline] do_xdp_generic+0x3f1/0xe70 net/core/dev.c:5366 tun_get_user+0x1e04/0x3e50 drivers/net/tun.c:1929 tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:2053 new_sync_write fs/read_write.c:591 [inline] vfs_write+0x5b1/0x1150 fs/read_write.c:684 ksys_write+0x12b/0x250 fs/read_write.c:736 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 15 tgid 15 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1127 [inline] free_frozen_pages+0x6db/0xfb0 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 include/asm-generic/tlb.h:216 [inline] __tlb_remove_table_free mm/mmu_gather.c:227 [inline] tlb_remove_table_rcu+0x116/0x1a0 mm/mmu_gather.c:282 rcu_do_batch kernel/rcu/tree.c:2568 [inline] rcu_core+0x7a0/0x14d0 kernel/rcu/tree.c:2824 handle_softirqs+0x216/0x8f0 kernel/softirq.c:561 run_ksoftirqd kernel/softirq.c:950 [inline] run_ksoftirqd+0x3a/0x60 kernel/softirq.c:942 smpboot_thread_fn+0x664/0xa30 kernel/smpboot.c:164 kthread+0x3b2/0x750 kernel/kthread.c:464 ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:148 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 Modules linked in: CPU: 0 UID: 0 PID: 6257 Comm: syz.1.96 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+0x16c/0x1f0 lib/dump_stack.c:120 bad_page+0xb3/0x1f0 mm/page_alloc.c:501 free_page_is_bad_report mm/page_alloc.c:913 [inline] free_page_is_bad mm/page_alloc.c:923 [inline] free_pages_prepare mm/page_alloc.c:1119 [inline] free_frozen_pages+0x701/0xfb0 mm/page_alloc.c:2660 page_frag_free+0x255/0x2a0 mm/page_frag_cache.c:169 __xdp_return+0x363/0xac0 net/core/xdp.c:447 bpf_xdp_shrink_data net/core/filter.c:4155 [inline] bpf_xdp_frags_shrink_tail net/core/filter.c:4175 [inline] ____bpf_xdp_adjust_tail net/core/filter.c:4200 [inline] bpf_xdp_adjust_tail+0x9de/0xf70 net/core/filter.c:4193 bpf_prog_f476d5219b92964a+0x1e/0x24 __bpf_prog_run include/linux/filter.h:701 [inline] bpf_prog_run_xdp include/net/xdp.h:654 [inline] bpf_prog_run_generic_xdp+0x623/0x1500 net/core/dev.c:5191 netif_receive_generic_xdp net/core/dev.c:5304 [inline] do_xdp_generic+0x70a/0xe70 net/core/dev.c:5366 tun_get_user+0x1e04/0x3e50 drivers/net/tun.c:1929 tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:2053 new_sync_write fs/read_write.c:591 [inline] vfs_write+0x5b1/0x1150 fs/read_write.c:684 ksys_write+0x12b/0x250 fs/read_write.c:736 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fe51838bc1f 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:00007fe519231000 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007fe5185a5fa0 RCX: 00007fe51838bc1f RDX: 000000000000fdef RSI: 0000200000000a80 RDI: 00000000000000c8 RBP: 00007fe51840e2a0 R08: 0000000000000000 R09: 0000000000000000 R10: 000000000000fdef R11: 0000000000000293 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fe5185a5fa0 R15: 00007fff0b8c5c38 BUG: Bad page state in process syz.1.96 pfn:7263d page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff88807263dc80 pfn:0x7263d flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 dead000000000040 ffff888021aec000 0000000000000000 raw: ffff88807263dc80 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 6257, tgid 6254 (syz.1.96), ts 147017253271, free_ts 146993552131 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x181/0x1b0 mm/page_alloc.c:1551 prep_new_page mm/page_alloc.c:1559 [inline] get_page_from_freelist+0xfce/0x2f80 mm/page_alloc.c:3477 __alloc_frozen_pages_noprof+0x221/0x2470 mm/page_alloc.c:4740 __alloc_pages_noprof mm/page_alloc.c:4774 [inline] alloc_pages_bulk_noprof+0x6f9/0x1390 mm/page_alloc.c:4694 alloc_pages_bulk_node_noprof include/linux/gfp.h:235 [inline] __page_pool_alloc_pages_slow+0x18c/0x770 net/core/page_pool.c:542 page_pool_alloc_netmems net/core/page_pool.c:593 [inline] page_pool_alloc_netmems+0xc4/0x160 net/core/page_pool.c:580 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+0x776/0xf10 net/core/skbuff.c:893 skb_cow_data_for_xdp+0x88/0xb0 net/core/skbuff.c:927 netif_skb_check_for_xdp net/core/dev.c:5259 [inline] netif_receive_generic_xdp net/core/dev.c:5298 [inline] do_xdp_generic+0x3f1/0xe70 net/core/dev.c:5366 tun_get_user+0x1e04/0x3e50 drivers/net/tun.c:1929 tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:2053 new_sync_write fs/read_write.c:591 [inline] vfs_write+0x5b1/0x1150 fs/read_write.c:684 ksys_write+0x12b/0x250 fs/read_write.c:736 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 15 tgid 15 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1127 [inline] free_frozen_pages+0x6db/0xfb0 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 include/asm-generic/tlb.h:216 [inline] __tlb_remove_table_free mm/mmu_gather.c:227 [inline] tlb_remove_table_rcu+0x116/0x1a0 mm/mmu_gather.c:282 rcu_do_batch kernel/rcu/tree.c:2568 [inline] rcu_core+0x7a0/0x14d0 kernel/rcu/tree.c:2824 handle_softirqs+0x216/0x8f0 kernel/softirq.c:561 run_ksoftirqd kernel/softirq.c:950 [inline] run_ksoftirqd+0x3a/0x60 kernel/softirq.c:942 smpboot_thread_fn+0x664/0xa30 kernel/smpboot.c:164 kthread+0x3b2/0x750 kernel/kthread.c:464 ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:148 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 Modules linked in: CPU: 0 UID: 0 PID: 6257 Comm: syz.1.96 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+0x16c/0x1f0 lib/dump_stack.c:120 bad_page+0xb3/0x1f0 mm/page_alloc.c:501 free_page_is_bad_report mm/page_alloc.c:913 [inline] free_page_is_bad mm/page_alloc.c:923 [inline] free_pages_prepare mm/page_alloc.c:1119 [inline] free_frozen_pages+0x701/0xfb0 mm/page_alloc.c:2660 page_frag_free+0x255/0x2a0 mm/page_frag_cache.c:169 __xdp_return+0x363/0xac0 net/core/xdp.c:447 bpf_xdp_shrink_data net/core/filter.c:4155 [inline] bpf_xdp_frags_shrink_tail net/core/filter.c:4175 [inline] ____bpf_xdp_adjust_tail net/core/filter.c:4200 [inline] bpf_xdp_adjust_tail+0x9de/0xf70 net/core/filter.c:4193 bpf_prog_f476d5219b92964a+0x1e/0x24 __bpf_prog_run include/linux/filter.h:701 [inline] bpf_prog_run_xdp include/net/xdp.h:654 [inline] bpf_prog_run_generic_xdp+0x623/0x1500 net/core/dev.c:5191 netif_receive_generic_xdp net/core/dev.c:5304 [inline] do_xdp_generic+0x70a/0xe70 net/core/dev.c:5366 tun_get_user+0x1e04/0x3e50 drivers/net/tun.c:1929 tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:2053 new_sync_write fs/read_write.c:591 [inline] vfs_write+0x5b1/0x1150 fs/read_write.c:684 ksys_write+0x12b/0x250 fs/read_write.c:736 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fe51838bc1f 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:00007fe519231000 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007fe5185a5fa0 RCX: 00007fe51838bc1f RDX: 000000000000fdef RSI: 0000200000000a80 RDI: 00000000000000c8 RBP: 00007fe51840e2a0 R08: 0000000000000000 R09: 0000000000000000 R10: 000000000000fdef R11: 0000000000000293 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fe5185a5fa0 R15: 00007fff0b8c5c38 BUG: Bad page state in process syz.1.96 pfn:27ebc page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff888027ebc640 pfn:0x27ebc flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 dead000000000040 ffff888021aec000 0000000000000000 raw: ffff888027ebc640 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 6257, tgid 6254 (syz.1.96), ts 147017239600, free_ts 146993572611 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x181/0x1b0 mm/page_alloc.c:1551 prep_new_page mm/page_alloc.c:1559 [inline] get_page_from_freelist+0xfce/0x2f80 mm/page_alloc.c:3477 __alloc_frozen_pages_noprof+0x221/0x2470 mm/page_alloc.c:4740 __alloc_pages_noprof mm/page_alloc.c:4774 [inline] alloc_pages_bulk_noprof+0x6f9/0x1390 mm/page_alloc.c:4694 alloc_pages_bulk_node_noprof include/linux/gfp.h:235 [inline] __page_pool_alloc_pages_slow+0x18c/0x770 net/core/page_pool.c:542 page_pool_alloc_netmems net/core/page_pool.c:593 [inline] page_pool_alloc_netmems+0xc4/0x160 net/core/page_pool.c:580 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+0x776/0xf10 net/core/skbuff.c:893 skb_cow_data_for_xdp+0x88/0xb0 net/core/skbuff.c:927 netif_skb_check_for_xdp net/core/dev.c:5259 [inline] netif_receive_generic_xdp net/core/dev.c:5298 [inline] do_xdp_generic+0x3f1/0xe70 net/core/dev.c:5366 tun_get_user+0x1e04/0x3e50 drivers/net/tun.c:1929 tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:2053 new_sync_write fs/read_write.c:591 [inline] vfs_write+0x5b1/0x1150 fs/read_write.c:684 ksys_write+0x12b/0x250 fs/read_write.c:736 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 15 tgid 15 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1127 [inline] free_frozen_pages+0x6db/0xfb0 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 include/asm-generic/tlb.h:216 [inline] __tlb_remove_table_free mm/mmu_gather.c:227 [inline] tlb_remove_table_rcu+0x116/0x1a0 mm/mmu_gather.c:282 rcu_do_batch kernel/rcu/tree.c:2568 [inline] rcu_core+0x7a0/0x14d0 kernel/rcu/tree.c:2824 handle_softirqs+0x216/0x8f0 kernel/softirq.c:561 run_ksoftirqd kernel/softirq.c:950 [inline] run_ksoftirqd+0x3a/0x60 kernel/softirq.c:942 smpboot_thread_fn+0x664/0xa30 kernel/smpboot.c:164 kthread+0x3b2/0x750 kernel/kthread.c:464 ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:148 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 Modules linked in: CPU: 0 UID: 0 PID: 6257 Comm: syz.1.96 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+0x16c/0x1f0 lib/dump_stack.c:120 bad_page+0xb3/0x1f0 mm/page_alloc.c:501 free_page_is_bad_report mm/page_alloc.c:913 [inline] free_page_is_bad mm/page_alloc.c:923 [inline] free_pages_prepare mm/page_alloc.c:1119 [inline] free_frozen_pages+0x701/0xfb0 mm/page_alloc.c:2660 page_frag_free+0x255/0x2a0 mm/page_frag_cache.c:169 __xdp_return+0x363/0xac0 net/core/xdp.c:447 bpf_xdp_shrink_data net/core/filter.c:4155 [inline] bpf_xdp_frags_shrink_tail net/core/filter.c:4175 [inline] ____bpf_xdp_adjust_tail net/core/filter.c:4200 [inline] bpf_xdp_adjust_tail+0x9de/0xf70 net/core/filter.c:4193 bpf_prog_f476d5219b92964a+0x1e/0x24 __bpf_prog_run include/linux/filter.h:701 [inline] bpf_prog_run_xdp include/net/xdp.h:654 [inline] bpf_prog_run_generic_xdp+0x623/0x1500 net/core/dev.c:5191 netif_receive_generic_xdp net/core/dev.c:5304 [inline] do_xdp_generic+0x70a/0xe70 net/core/dev.c:5366 tun_get_user+0x1e04/0x3e50 drivers/net/tun.c:1929 tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:2053 new_sync_write fs/read_write.c:591 [inline] vfs_write+0x5b1/0x1150 fs/read_write.c:684 ksys_write+0x12b/0x250 fs/read_write.c:736 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fe51838bc1f 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:00007fe519231000 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007fe5185a5fa0 RCX: 00007fe51838bc1f RDX: 000000000000fdef RSI: 0000200000000a80 RDI: 00000000000000c8 RBP: 00007fe51840e2a0 R08: 0000000000000000 R09: 0000000000000000 R10: 000000000000fdef R11: 0000000000000293 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fe5185a5fa0 R15: 00007fff0b8c5c38 BUG: Bad page state in process syz.1.96 pfn:2927b page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff88802927bdc0 pfn:0x2927b flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 dead000000000040 ffff888021aec000 0000000000000000 raw: ffff88802927bdc0 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 6257, tgid 6254 (syz.1.96), ts 147017226591, free_ts 146993592852 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x181/0x1b0 mm/page_alloc.c:1551 prep_new_page mm/page_alloc.c:1559 [inline] get_page_from_freelist+0xfce/0x2f80 mm/page_alloc.c:3477 __alloc_frozen_pages_noprof+0x221/0x2470 mm/page_alloc.c:4740 __alloc_pages_noprof mm/page_alloc.c:4774 [inline] alloc_pages_bulk_noprof+0x6f9/0x1390 mm/page_alloc.c:4694 alloc_pages_bulk_node_noprof include/linux/gfp.h:235 [inline] __page_pool_alloc_pages_slow+0x18c/0x770 net/core/page_pool.c:542 page_pool_alloc_netmems net/core/page_pool.c:593 [inline] page_pool_alloc_netmems+0xc4/0x160 net/core/page_pool.c:580 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+0x776/0xf10 net/core/skbuff.c:893 skb_cow_data_for_xdp+0x88/0xb0 net/core/skbuff.c:927 netif_skb_check_for_xdp net/core/dev.c:5259 [inline] netif_receive_generic_xdp net/core/dev.c:5298 [inline] do_xdp_generic+0x3f1/0xe70 net/core/dev.c:5366 tun_get_user+0x1e04/0x3e50 drivers/net/tun.c:1929 tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:2053 new_sync_write fs/read_write.c:591 [inline] vfs_write+0x5b1/0x1150 fs/read_write.c:684 ksys_write+0x12b/0x250 fs/read_write.c:736 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 15 tgid 15 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1127 [inline] free_frozen_pages+0x6db/0xfb0 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 include/asm-generic/tlb.h:216 [inline] __tlb_remove_table_free mm/mmu_gather.c:227 [inline] tlb_remove_table_rcu+0x116/0x1a0 mm/mmu_gather.c:282 rcu_do_batch kernel/rcu/tree.c:2568 [inline] rcu_core+0x7a0/0x14d0 kernel/rcu/tree.c:2824 handle_softirqs+0x216/0x8f0 kernel/softirq.c:561 run_ksoftirqd kernel/softirq.c:950 [inline] run_ksoftirqd+0x3a/0x60 kernel/softirq.c:942 smpboot_thread_fn+0x664/0xa30 kernel/smpboot.c:164 kthread+0x3b2/0x750 kernel/kthread.c:464 ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:148 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 Modules linked in: CPU: 0 UID: 0 PID: 6257 Comm: syz.1.96 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+0x16c/0x1f0 lib/dump_stack.c:120 bad_page+0xb3/0x1f0 mm/page_alloc.c:501 free_page_is_bad_report mm/page_alloc.c:913 [inline] free_page_is_bad mm/page_alloc.c:923 [inline] free_pages_prepare mm/page_alloc.c:1119 [inline] free_frozen_pages+0x701/0xfb0 mm/page_alloc.c:2660 page_frag_free+0x255/0x2a0 mm/page_frag_cache.c:169 __xdp_return+0x363/0xac0 net/core/xdp.c:447 bpf_xdp_shrink_data net/core/filter.c:4155 [inline] bpf_xdp_frags_shrink_tail net/core/filter.c:4175 [inline] ____bpf_xdp_adjust_tail net/core/filter.c:4200 [inline] bpf_xdp_adjust_tail+0x9de/0xf70 net/core/filter.c:4193 bpf_prog_f476d5219b92964a+0x1e/0x24 __bpf_prog_run include/linux/filter.h:701 [inline] bpf_prog_run_xdp include/net/xdp.h:654 [inline] bpf_prog_run_generic_xdp+0x623/0x1500 net/core/dev.c:5191 netif_receive_generic_xdp net/core/dev.c:5304 [inline] do_xdp_generic+0x70a/0xe70 net/core/dev.c:5366 tun_get_user+0x1e04/0x3e50 drivers/net/tun.c:1929 tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:2053 new_sync_write fs/read_write.c:591 [inline] vfs_write+0x5b1/0x1150 fs/read_write.c:684 ksys_write+0x12b/0x250 fs/read_write.c:736 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fe51838bc1f 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:00007fe519231000 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007fe5185a5fa0 RCX: 00007fe51838bc1f RDX: 000000000000fdef RSI: 0000200000000a80 RDI: 00000000000000c8 RBP: 00007fe51840e2a0 R08: 0000000000000000 R09: 0000000000000000 R10: 000000000000fdef R11: 0000000000000293 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fe5185a5fa0 R15: 00007fff0b8c5c38 BUG: Bad page state in process syz.1.96 pfn:7c91e page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff888000000000 pfn:0x7c91e flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 dead000000000040 ffff888021aec000 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 6257, tgid 6254 (syz.1.96), ts 147017213621, free_ts 146993613532 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x181/0x1b0 mm/page_alloc.c:1551 prep_new_page mm/page_alloc.c:1559 [inline] get_page_from_freelist+0xfce/0x2f80 mm/page_alloc.c:3477 __alloc_frozen_pages_noprof+0x221/0x2470 mm/page_alloc.c:4740 __alloc_pages_noprof mm/page_alloc.c:4774 [inline] alloc_pages_bulk_noprof+0x6f9/0x1390 mm/page_alloc.c:4694 alloc_pages_bulk_node_noprof include/linux/gfp.h:235 [inline] __page_pool_alloc_pages_slow+0x18c/0x770 net/core/page_pool.c:542 page_pool_alloc_netmems net/core/page_pool.c:593 [inline] page_pool_alloc_netmems+0xc4/0x160 net/core/page_pool.c:580 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+0x776/0xf10 net/core/skbuff.c:893 skb_cow_data_for_xdp+0x88/0xb0 net/core/skbuff.c:927 netif_skb_check_for_xdp net/core/dev.c:5259 [inline] netif_receive_generic_xdp net/core/dev.c:5298 [inline] do_xdp_generic+0x3f1/0xe70 net/core/dev.c:5366 tun_get_user+0x1e04/0x3e50 drivers/net/tun.c:1929 tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:2053 new_sync_write fs/read_write.c:591 [inline] vfs_write+0x5b1/0x1150 fs/read_write.c:684 ksys_write+0x12b/0x250 fs/read_write.c:736 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 15 tgid 15 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1127 [inline] free_frozen_pages+0x6db/0xfb0 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 include/asm-generic/tlb.h:216 [inline] __tlb_remove_table_free mm/mmu_gather.c:227 [inline] tlb_remove_table_rcu+0x116/0x1a0 mm/mmu_gather.c:282 rcu_do_batch kernel/rcu/tree.c:2568 [inline] rcu_core+0x7a0/0x14d0 kernel/rcu/tree.c:2824 handle_softirqs+0x216/0x8f0 kernel/softirq.c:561 run_ksoftirqd kernel/softirq.c:950 [inline] run_ksoftirqd+0x3a/0x60 kernel/softirq.c:942 smpboot_thread_fn+0x664/0xa30 kernel/smpboot.c:164 kthread+0x3b2/0x750 kernel/kthread.c:464 ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:148 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 Modules linked in: CPU: 0 UID: 0 PID: 6257 Comm: syz.1.96 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+0x16c/0x1f0 lib/dump_stack.c:120 bad_page+0xb3/0x1f0 mm/page_alloc.c:501 free_page_is_bad_report mm/page_alloc.c:913 [inline] free_page_is_bad mm/page_alloc.c:923 [inline] free_pages_prepare mm/page_alloc.c:1119 [inline] free_frozen_pages+0x701/0xfb0 mm/page_alloc.c:2660 page_frag_free+0x255/0x2a0 mm/page_frag_cache.c:169 __xdp_return+0x363/0xac0 net/core/xdp.c:447 bpf_xdp_shrink_data net/core/filter.c:4155 [inline] bpf_xdp_frags_shrink_tail net/core/filter.c:4175 [inline] ____bpf_xdp_adjust_tail net/core/filter.c:4200 [inline] bpf_xdp_adjust_tail+0x9de/0xf70 net/core/filter.c:4193 bpf_prog_f476d5219b92964a+0x1e/0x24 __bpf_prog_run include/linux/filter.h:701 [inline] bpf_prog_run_xdp include/net/xdp.h:654 [inline] bpf_prog_run_generic_xdp+0x623/0x1500 net/core/dev.c:5191 netif_receive_generic_xdp net/core/dev.c:5304 [inline] do_xdp_generic+0x70a/0xe70 net/core/dev.c:5366 tun_get_user+0x1e04/0x3e50 drivers/net/tun.c:1929 tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:2053 new_sync_write fs/read_write.c:591 [inline] vfs_write+0x5b1/0x1150 fs/read_write.c:684 ksys_write+0x12b/0x250 fs/read_write.c:736 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fe51838bc1f 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:00007fe519231000 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007fe5185a5fa0 RCX: 00007fe51838bc1f RDX: 000000000000fdef RSI: 0000200000000a80 RDI: 00000000000000c8 RBP: 00007fe51840e2a0 R08: 0000000000000000 R09: 0000000000000000 R10: 000000000000fdef R11: 0000000000000293 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fe5185a5fa0 R15: 00007fff0b8c5c38 BUG: Bad page state in process syz.1.96 pfn:12656 page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff888012656d80 pfn:0x12656 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 dead000000000040 ffff888021aec000 0000000000000000 raw: ffff888012656d80 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 6257, tgid 6254 (syz.1.96), ts 147017200850, free_ts 146993633701 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x181/0x1b0 mm/page_alloc.c:1551 prep_new_page mm/page_alloc.c:1559 [inline] get_page_from_freelist+0xfce/0x2f80 mm/page_alloc.c:3477 __alloc_frozen_pages_noprof+0x221/0x2470 mm/page_alloc.c:4740 __alloc_pages_noprof mm/page_alloc.c:4774 [inline] alloc_pages_bulk_noprof+0x6f9/0x1390 mm/page_alloc.c:4694 alloc_pages_bulk_node_noprof include/linux/gfp.h:235 [inline] __page_pool_alloc_pages_slow+0x18c/0x770 net/core/page_pool.c:542 page_pool_alloc_netmems net/core/page_pool.c:593 [inline] page_pool_alloc_netmems+0xc4/0x160 net/core/page_pool.c:580 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+0x776/0xf10 net/core/skbuff.c:893 skb_cow_data_for_xdp+0x88/0xb0 net/core/skbuff.c:927 netif_skb_check_for_xdp net/core/dev.c:5259 [inline] netif_receive_generic_xdp net/core/dev.c:5298 [inline] do_xdp_generic+0x3f1/0xe70 net/core/dev.c:5366 tun_get_user+0x1e04/0x3e50 drivers/net/tun.c:1929 tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:2053 new_sync_write fs/read_write.c:591 [inline] vfs_write+0x5b1/0x1150 fs/read_write.c:684 ksys_write+0x12b/0x250 fs/read_write.c:736 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 15 tgid 15 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1127 [inline] free_frozen_pages+0x6db/0xfb0 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 include/asm-generic/tlb.h:216 [inline] __tlb_remove_table_free mm/mmu_gather.c:227 [inline] tlb_remove_table_rcu+0x116/0x1a0 mm/mmu_gather.c:282 rcu_do_batch kernel/rcu/tree.c:2568 [inline] rcu_core+0x7a0/0x14d0 kernel/rcu/tree.c:2824 handle_softirqs+0x216/0x8f0 kernel/softirq.c:561 run_ksoftirqd kernel/softirq.c:950 [inline] run_ksoftirqd+0x3a/0x60 kernel/softirq.c:942 smpboot_thread_fn+0x664/0xa30 kernel/smpboot.c:164 kthread+0x3b2/0x750 kernel/kthread.c:464 ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:148 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 Modules linked in: CPU: 0 UID: 0 PID: 6257 Comm: syz.1.96 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+0x16c/0x1f0 lib/dump_stack.c:120 bad_page+0xb3/0x1f0 mm/page_alloc.c:501 free_page_is_bad_report mm/page_alloc.c:913 [inline] free_page_is_bad mm/page_alloc.c:923 [inline] free_pages_prepare mm/page_alloc.c:1119 [inline] free_frozen_pages+0x701/0xfb0 mm/page_alloc.c:2660 page_frag_free+0x255/0x2a0 mm/page_frag_cache.c:169 __xdp_return+0x363/0xac0 net/core/xdp.c:447 bpf_xdp_shrink_data net/core/filter.c:4155 [inline] bpf_xdp_frags_shrink_tail net/core/filter.c:4175 [inline] ____bpf_xdp_adjust_tail net/core/filter.c:4200 [inline] bpf_xdp_adjust_tail+0x9de/0xf70 net/core/filter.c:4193 bpf_prog_f476d5219b92964a+0x1e/0x24 __bpf_prog_run include/linux/filter.h:701 [inline] bpf_prog_run_xdp include/net/xdp.h:654 [inline] bpf_prog_run_generic_xdp+0x623/0x1500 net/core/dev.c:5191 netif_receive_generic_xdp net/core/dev.c:5304 [inline] do_xdp_generic+0x70a/0xe70 net/core/dev.c:5366 tun_get_user+0x1e04/0x3e50 drivers/net/tun.c:1929 tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:2053 new_sync_write fs/read_write.c:591 [inline] vfs_write+0x5b1/0x1150 fs/read_write.c:684 ksys_write+0x12b/0x250 fs/read_write.c:736 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fe51838bc1f 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:00007fe519231000 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007fe5185a5fa0 RCX: 00007fe51838bc1f RDX: 000000000000fdef RSI: 0000200000000a80 RDI: 00000000000000c8 RBP: 00007fe51840e2a0 R08: 0000000000000000 R09: 0000000000000000 R10: 000000000000fdef R11: 0000000000000293 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fe5185a5fa0 R15: 00007fff0b8c5c38 BUG: Bad page state in process syz.1.96 pfn:3430d page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff888000000000 pfn:0x3430d flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 dead000000000040 ffff888021aec000 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 6257, tgid 6254 (syz.1.96), ts 147017187271, free_ts 146993653922 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x181/0x1b0 mm/page_alloc.c:1551 prep_new_page mm/page_alloc.c:1559 [inline] get_page_from_freelist+0xfce/0x2f80 mm/page_alloc.c:3477 __alloc_frozen_pages_noprof+0x221/0x2470 mm/page_alloc.c:4740 __alloc_pages_noprof mm/page_alloc.c:4774 [inline] alloc_pages_bulk_noprof+0x6f9/0x1390 mm/page_alloc.c:4694 alloc_pages_bulk_node_noprof include/linux/gfp.h:235 [inline] __page_pool_alloc_pages_slow+0x18c/0x770 net/core/page_pool.c:542 page_pool_alloc_netmems net/core/page_pool.c:593 [inline] page_pool_alloc_netmems+0xc4/0x160 net/core/page_pool.c:580 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+0x776/0xf10 net/core/skbuff.c:893 skb_cow_data_for_xdp+0x88/0xb0 net/core/skbuff.c:927 netif_skb_check_for_xdp net/core/dev.c:5259 [inline] netif_receive_generic_xdp net/core/dev.c:5298 [inline] do_xdp_generic+0x3f1/0xe70 net/core/dev.c:5366 tun_get_user+0x1e04/0x3e50 drivers/net/tun.c:1929 tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:2053 new_sync_write fs/read_write.c:591 [inline] vfs_write+0x5b1/0x1150 fs/read_write.c:684 ksys_write+0x12b/0x250 fs/read_write.c:736 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 15 tgid 15 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1127 [inline] free_frozen_pages+0x6db/0xfb0 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 include/asm-generic/tlb.h:216 [inline] __tlb_remove_table_free mm/mmu_gather.c:227 [inline] tlb_remove_table_rcu+0x116/0x1a0 mm/mmu_gather.c:282 rcu_do_batch kernel/rcu/tree.c:2568 [inline] rcu_core+0x7a0/0x14d0 kernel/rcu/tree.c:2824 handle_softirqs+0x216/0x8f0 kernel/softirq.c:561 run_ksoftirqd kernel/softirq.c:950 [inline] run_ksoftirqd+0x3a/0x60 kernel/softirq.c:942 smpboot_thread_fn+0x664/0xa30 kernel/smpboot.c:164 kthread+0x3b2/0x750 kernel/kthread.c:464 ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:148 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 Modules linked in: CPU: 0 UID: 0 PID: 6257 Comm: syz.1.96 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+0x16c/0x1f0 lib/dump_stack.c:120 bad_page+0xb3/0x1f0 mm/page_alloc.c:501 free_page_is_bad_report mm/page_alloc.c:913 [inline] free_page_is_bad mm/page_alloc.c:923 [inline] free_pages_prepare mm/page_alloc.c:1119 [inline] free_frozen_pages+0x701/0xfb0 mm/page_alloc.c:2660 page_frag_free+0x255/0x2a0 mm/page_frag_cache.c:169 __xdp_return+0x363/0xac0 net/core/xdp.c:447 bpf_xdp_shrink_data net/core/filter.c:4155 [inline] bpf_xdp_frags_shrink_tail net/core/filter.c:4175 [inline] ____bpf_xdp_adjust_tail net/core/filter.c:4200 [inline] bpf_xdp_adjust_tail+0x9de/0xf70 net/core/filter.c:4193 bpf_prog_f476d5219b92964a+0x1e/0x24 __bpf_prog_run include/linux/filter.h:701 [inline] bpf_prog_run_xdp include/net/xdp.h:654 [inline] bpf_prog_run_generic_xdp+0x623/0x1500 net/core/dev.c:5191 netif_receive_generic_xdp net/core/dev.c:5304 [inline] do_xdp_generic+0x70a/0xe70 net/core/dev.c:5366 tun_get_user+0x1e04/0x3e50 drivers/net/tun.c:1929 tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:2053 new_sync_write fs/read_write.c:591 [inline] vfs_write+0x5b1/0x1150 fs/read_write.c:684 ksys_write+0x12b/0x250 fs/read_write.c:736 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fe51838bc1f 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:00007fe519231000 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007fe5185a5fa0 RCX: 00007fe51838bc1f RDX: 000000000000fdef RSI: 0000200000000a80 RDI: 00000000000000c8 RBP: 00007fe51840e2a0 R08: 0000000000000000 R09: 0000000000000000 R10: 000000000000fdef R11: 0000000000000293 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fe5185a5fa0 R15: 00007fff0b8c5c38