BUG: Bad page state in process syz.0.15 pfn:2546d page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff88802546d140 pfn:0x2546d flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 dead000000000040 ffff8880216a6000 0000000000000000 raw: ffff88802546d140 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 6612, tgid 6611 (syz.0.15), ts 115692805134, free_ts 115167509591 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1f3/0x230 mm/page_alloc.c:1558 prep_new_page mm/page_alloc.c:1566 [inline] get_page_from_freelist+0x3651/0x37a0 mm/page_alloc.c:3476 __alloc_pages_noprof+0x292/0x710 mm/page_alloc.c:4753 alloc_pages_bulk_noprof+0x70b/0xcc0 mm/page_alloc.c:4701 alloc_pages_bulk_array_node_noprof include/linux/gfp.h:239 [inline] __page_pool_alloc_pages_slow+0x122/0x690 net/core/page_pool.c:538 page_pool_alloc_netmem net/core/page_pool.c:590 [inline] page_pool_alloc_pages+0xd0/0x1c0 net/core/page_pool.c:597 page_pool_alloc include/net/page_pool/helpers.h:129 [inline] page_pool_dev_alloc include/net/page_pool/helpers.h:167 [inline] skb_pp_cow_data+0xc43/0x1640 net/core/skbuff.c:983 netif_skb_check_for_xdp net/core/dev.c:5041 [inline] netif_receive_generic_xdp net/core/dev.c:5080 [inline] do_xdp_generic+0x505/0xd30 net/core/dev.c:5148 __netif_receive_skb_core+0x1ce9/0x4690 net/core/dev.c:5492 __netif_receive_skb_one_core net/core/dev.c:5670 [inline] __netif_receive_skb+0x12f/0x650 net/core/dev.c:5785 netif_receive_skb_internal net/core/dev.c:5871 [inline] netif_receive_skb+0x1e8/0x890 net/core/dev.c:5930 tun_rx_batched+0x1b7/0x8f0 drivers/net/tun.c:1550 tun_get_user+0x30cc/0x48a0 drivers/net/tun.c:2007 tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:2053 new_sync_write fs/read_write.c:586 [inline] vfs_write+0xaeb/0xd30 fs/read_write.c:679 ksys_write+0x18f/0x2b0 fs/read_write.c:731 page last free pid 6595 tgid 6595 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1127 [inline] free_unref_folios+0xe23/0x1890 mm/page_alloc.c:2706 folios_put_refs+0x76c/0x860 mm/swap.c:962 free_pages_and_swap_cache+0x2ea/0x690 mm/swap_state.c:332 __tlb_batch_free_encoded_pages mm/mmu_gather.c:136 [inline] tlb_batch_pages_flush mm/mmu_gather.c:149 [inline] tlb_flush_mmu_free mm/mmu_gather.c:366 [inline] tlb_flush_mmu+0x3a3/0x680 mm/mmu_gather.c:373 tlb_finish_mmu+0xd4/0x200 mm/mmu_gather.c:465 exit_mmap+0x496/0xc20 mm/mmap.c:1681 __mmput+0x115/0x3b0 kernel/fork.c:1348 exit_mm+0x220/0x310 kernel/exit.c:570 do_exit+0x9ad/0x28e0 kernel/exit.c:925 do_group_exit+0x207/0x2c0 kernel/exit.c:1087 __do_sys_exit_group kernel/exit.c:1098 [inline] __se_sys_exit_group kernel/exit.c:1096 [inline] __x64_sys_exit_group+0x3f/0x40 kernel/exit.c:1096 x64_sys_call+0x26a8/0x26b0 arch/x86/include/generated/asm/syscalls_64.h:232 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 Modules linked in: CPU: 0 UID: 0 PID: 6612 Comm: syz.0.15 Not tainted 6.13.0-rc4-syzkaller-g4bbf9020becb #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 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_unref_page+0xf9e/0x1000 mm/page_alloc.c:2659 bpf_xdp_shrink_data net/core/filter.c:4157 [inline] bpf_xdp_frags_shrink_tail+0x3ee/0x7e0 net/core/filter.c:4178 ____bpf_xdp_adjust_tail net/core/filter.c:4203 [inline] bpf_xdp_adjust_tail+0x1c3/0x200 net/core/filter.c:4196 bpf_prog_f476d5219b92964a+0x1e/0x20 __bpf_prog_run include/linux/filter.h:701 [inline] bpf_prog_run_xdp include/net/xdp.h:514 [inline] bpf_prog_run_generic_xdp+0x686/0x1510 net/core/dev.c:4973 netif_receive_generic_xdp net/core/dev.c:5086 [inline] do_xdp_generic+0x757/0xd30 net/core/dev.c:5148 __netif_receive_skb_core+0x1ce9/0x4690 net/core/dev.c:5492 __netif_receive_skb_one_core net/core/dev.c:5670 [inline] __netif_receive_skb+0x12f/0x650 net/core/dev.c:5785 netif_receive_skb_internal net/core/dev.c:5871 [inline] netif_receive_skb+0x1e8/0x890 net/core/dev.c:5930 tun_rx_batched+0x1b7/0x8f0 drivers/net/tun.c:1550 tun_get_user+0x30cc/0x48a0 drivers/net/tun.c:2007 tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:2053 new_sync_write fs/read_write.c:586 [inline] vfs_write+0xaeb/0xd30 fs/read_write.c:679 ksys_write+0x18f/0x2b0 fs/read_write.c:731 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:0x7f994ab7e98f 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:00007f994b8f2020 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f994ad45fa0 RCX: 00007f994ab7e98f RDX: 0000000000011dc0 RSI: 00000000200004c0 RDI: 00000000000000c8 RBP: 00007f994abf3cc8 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000011dc0 R11: 0000000000000293 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f994ad45fa0 R15: 00007ffd240077b8 BUG: Bad page state in process syz.0.15 pfn:7902b page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff88807902bb40 pfn:0x7902b flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 dead000000000040 ffff8880216a6000 0000000000000000 raw: ffff88807902bb40 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 6612, tgid 6611 (syz.0.15), ts 115692795762, free_ts 115167518303 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1f3/0x230 mm/page_alloc.c:1558 prep_new_page mm/page_alloc.c:1566 [inline] get_page_from_freelist+0x3651/0x37a0 mm/page_alloc.c:3476 __alloc_pages_noprof+0x292/0x710 mm/page_alloc.c:4753 alloc_pages_bulk_noprof+0x70b/0xcc0 mm/page_alloc.c:4701 alloc_pages_bulk_array_node_noprof include/linux/gfp.h:239 [inline] __page_pool_alloc_pages_slow+0x122/0x690 net/core/page_pool.c:538 page_pool_alloc_netmem net/core/page_pool.c:590 [inline] page_pool_alloc_pages+0xd0/0x1c0 net/core/page_pool.c:597 page_pool_alloc include/net/page_pool/helpers.h:129 [inline] page_pool_dev_alloc include/net/page_pool/helpers.h:167 [inline] skb_pp_cow_data+0xc43/0x1640 net/core/skbuff.c:983 netif_skb_check_for_xdp net/core/dev.c:5041 [inline] netif_receive_generic_xdp net/core/dev.c:5080 [inline] do_xdp_generic+0x505/0xd30 net/core/dev.c:5148 __netif_receive_skb_core+0x1ce9/0x4690 net/core/dev.c:5492 __netif_receive_skb_one_core net/core/dev.c:5670 [inline] __netif_receive_skb+0x12f/0x650 net/core/dev.c:5785 netif_receive_skb_internal net/core/dev.c:5871 [inline] netif_receive_skb+0x1e8/0x890 net/core/dev.c:5930 tun_rx_batched+0x1b7/0x8f0 drivers/net/tun.c:1550 tun_get_user+0x30cc/0x48a0 drivers/net/tun.c:2007 tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:2053 new_sync_write fs/read_write.c:586 [inline] vfs_write+0xaeb/0xd30 fs/read_write.c:679 ksys_write+0x18f/0x2b0 fs/read_write.c:731 page last free pid 6595 tgid 6595 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1127 [inline] free_unref_folios+0xe23/0x1890 mm/page_alloc.c:2706 folios_put_refs+0x76c/0x860 mm/swap.c:962 free_pages_and_swap_cache+0x2ea/0x690 mm/swap_state.c:332 __tlb_batch_free_encoded_pages mm/mmu_gather.c:136 [inline] tlb_batch_pages_flush mm/mmu_gather.c:149 [inline] tlb_flush_mmu_free mm/mmu_gather.c:366 [inline] tlb_flush_mmu+0x3a3/0x680 mm/mmu_gather.c:373 tlb_finish_mmu+0xd4/0x200 mm/mmu_gather.c:465 exit_mmap+0x496/0xc20 mm/mmap.c:1681 __mmput+0x115/0x3b0 kernel/fork.c:1348 exit_mm+0x220/0x310 kernel/exit.c:570 do_exit+0x9ad/0x28e0 kernel/exit.c:925 do_group_exit+0x207/0x2c0 kernel/exit.c:1087 __do_sys_exit_group kernel/exit.c:1098 [inline] __se_sys_exit_group kernel/exit.c:1096 [inline] __x64_sys_exit_group+0x3f/0x40 kernel/exit.c:1096 x64_sys_call+0x26a8/0x26b0 arch/x86/include/generated/asm/syscalls_64.h:232 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 Modules linked in: CPU: 0 UID: 0 PID: 6612 Comm: syz.0.15 Tainted: G B 6.13.0-rc4-syzkaller-g4bbf9020becb #0 Tainted: [B]=BAD_PAGE Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 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_unref_page+0xf9e/0x1000 mm/page_alloc.c:2659 bpf_xdp_shrink_data net/core/filter.c:4157 [inline] bpf_xdp_frags_shrink_tail+0x3ee/0x7e0 net/core/filter.c:4178 ____bpf_xdp_adjust_tail net/core/filter.c:4203 [inline] bpf_xdp_adjust_tail+0x1c3/0x200 net/core/filter.c:4196 bpf_prog_f476d5219b92964a+0x1e/0x20 __bpf_prog_run include/linux/filter.h:701 [inline] bpf_prog_run_xdp include/net/xdp.h:514 [inline] bpf_prog_run_generic_xdp+0x686/0x1510 net/core/dev.c:4973 netif_receive_generic_xdp net/core/dev.c:5086 [inline] do_xdp_generic+0x757/0xd30 net/core/dev.c:5148 __netif_receive_skb_core+0x1ce9/0x4690 net/core/dev.c:5492 __netif_receive_skb_one_core net/core/dev.c:5670 [inline] __netif_receive_skb+0x12f/0x650 net/core/dev.c:5785 netif_receive_skb_internal net/core/dev.c:5871 [inline] netif_receive_skb+0x1e8/0x890 net/core/dev.c:5930 tun_rx_batched+0x1b7/0x8f0 drivers/net/tun.c:1550 tun_get_user+0x30cc/0x48a0 drivers/net/tun.c:2007 tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:2053 new_sync_write fs/read_write.c:586 [inline] vfs_write+0xaeb/0xd30 fs/read_write.c:679 ksys_write+0x18f/0x2b0 fs/read_write.c:731 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:0x7f994ab7e98f 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:00007f994b8f2020 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f994ad45fa0 RCX: 00007f994ab7e98f RDX: 0000000000011dc0 RSI: 00000000200004c0 RDI: 00000000000000c8 RBP: 00007f994abf3cc8 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000011dc0 R11: 0000000000000293 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f994ad45fa0 R15: 00007ffd240077b8 BUG: Bad page state in process syz.0.15 pfn:27648 page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff888027648e58 pfn:0x27648 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 dead000000000040 ffff8880216a6000 0000000000000000 raw: ffff888027648e58 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 6612, tgid 6611 (syz.0.15), ts 115692785971, free_ts 115167536005 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1f3/0x230 mm/page_alloc.c:1558 prep_new_page mm/page_alloc.c:1566 [inline] get_page_from_freelist+0x3651/0x37a0 mm/page_alloc.c:3476 __alloc_pages_noprof+0x292/0x710 mm/page_alloc.c:4753 alloc_pages_bulk_noprof+0x70b/0xcc0 mm/page_alloc.c:4701 alloc_pages_bulk_array_node_noprof include/linux/gfp.h:239 [inline] __page_pool_alloc_pages_slow+0x122/0x690 net/core/page_pool.c:538 page_pool_alloc_netmem net/core/page_pool.c:590 [inline] page_pool_alloc_pages+0xd0/0x1c0 net/core/page_pool.c:597 page_pool_alloc include/net/page_pool/helpers.h:129 [inline] page_pool_dev_alloc include/net/page_pool/helpers.h:167 [inline] skb_pp_cow_data+0xc43/0x1640 net/core/skbuff.c:983 netif_skb_check_for_xdp net/core/dev.c:5041 [inline] netif_receive_generic_xdp net/core/dev.c:5080 [inline] do_xdp_generic+0x505/0xd30 net/core/dev.c:5148 __netif_receive_skb_core+0x1ce9/0x4690 net/core/dev.c:5492 __netif_receive_skb_one_core net/core/dev.c:5670 [inline] __netif_receive_skb+0x12f/0x650 net/core/dev.c:5785 netif_receive_skb_internal net/core/dev.c:5871 [inline] netif_receive_skb+0x1e8/0x890 net/core/dev.c:5930 tun_rx_batched+0x1b7/0x8f0 drivers/net/tun.c:1550 tun_get_user+0x30cc/0x48a0 drivers/net/tun.c:2007 tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:2053 new_sync_write fs/read_write.c:586 [inline] vfs_write+0xaeb/0xd30 fs/read_write.c:679 ksys_write+0x18f/0x2b0 fs/read_write.c:731 page last free pid 6595 tgid 6595 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1127 [inline] free_unref_folios+0xe23/0x1890 mm/page_alloc.c:2706 folios_put_refs+0x76c/0x860 mm/swap.c:962 free_pages_and_swap_cache+0x2ea/0x690 mm/swap_state.c:332 __tlb_batch_free_encoded_pages mm/mmu_gather.c:136 [inline] tlb_batch_pages_flush mm/mmu_gather.c:149 [inline] tlb_flush_mmu_free mm/mmu_gather.c:366 [inline] tlb_flush_mmu+0x3a3/0x680 mm/mmu_gather.c:373 tlb_finish_mmu+0xd4/0x200 mm/mmu_gather.c:465 exit_mmap+0x496/0xc20 mm/mmap.c:1681 __mmput+0x115/0x3b0 kernel/fork.c:1348 exit_mm+0x220/0x310 kernel/exit.c:570 do_exit+0x9ad/0x28e0 kernel/exit.c:925 do_group_exit+0x207/0x2c0 kernel/exit.c:1087 __do_sys_exit_group kernel/exit.c:1098 [inline] __se_sys_exit_group kernel/exit.c:1096 [inline] __x64_sys_exit_group+0x3f/0x40 kernel/exit.c:1096 x64_sys_call+0x26a8/0x26b0 arch/x86/include/generated/asm/syscalls_64.h:232 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 Modules linked in: CPU: 0 UID: 0 PID: 6612 Comm: syz.0.15 Tainted: G B 6.13.0-rc4-syzkaller-g4bbf9020becb #0 Tainted: [B]=BAD_PAGE Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 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_unref_page+0xf9e/0x1000 mm/page_alloc.c:2659 bpf_xdp_shrink_data net/core/filter.c:4157 [inline] bpf_xdp_frags_shrink_tail+0x3ee/0x7e0 net/core/filter.c:4178 ____bpf_xdp_adjust_tail net/core/filter.c:4203 [inline] bpf_xdp_adjust_tail+0x1c3/0x200 net/core/filter.c:4196 bpf_prog_f476d5219b92964a+0x1e/0x20 __bpf_prog_run include/linux/filter.h:701 [inline] bpf_prog_run_xdp include/net/xdp.h:514 [inline] bpf_prog_run_generic_xdp+0x686/0x1510 net/core/dev.c:4973 netif_receive_generic_xdp net/core/dev.c:5086 [inline] do_xdp_generic+0x757/0xd30 net/core/dev.c:5148 __netif_receive_skb_core+0x1ce9/0x4690 net/core/dev.c:5492 __netif_receive_skb_one_core net/core/dev.c:5670 [inline] __netif_receive_skb+0x12f/0x650 net/core/dev.c:5785 netif_receive_skb_internal net/core/dev.c:5871 [inline] netif_receive_skb+0x1e8/0x890 net/core/dev.c:5930 tun_rx_batched+0x1b7/0x8f0 drivers/net/tun.c:1550 tun_get_user+0x30cc/0x48a0 drivers/net/tun.c:2007 tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:2053 new_sync_write fs/read_write.c:586 [inline] vfs_write+0xaeb/0xd30 fs/read_write.c:679 ksys_write+0x18f/0x2b0 fs/read_write.c:731 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:0x7f994ab7e98f 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:00007f994b8f2020 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f994ad45fa0 RCX: 00007f994ab7e98f RDX: 0000000000011dc0 RSI: 00000000200004c0 RDI: 00000000000000c8 RBP: 00007f994abf3cc8 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000011dc0 R11: 0000000000000293 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f994ad45fa0 R15: 00007ffd240077b8 BUG: Bad page state in process syz.0.15 pfn:33a63 page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff888033a630f0 pfn:0x33a63 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 dead000000000040 ffff8880216a6000 0000000000000000 raw: ffff888033a630f0 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 6612, tgid 6611 (syz.0.15), ts 115692776685, free_ts 115167561535 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1f3/0x230 mm/page_alloc.c:1558 prep_new_page mm/page_alloc.c:1566 [inline] get_page_from_freelist+0x3651/0x37a0 mm/page_alloc.c:3476 __alloc_pages_noprof+0x292/0x710 mm/page_alloc.c:4753 alloc_pages_bulk_noprof+0x70b/0xcc0 mm/page_alloc.c:4701 alloc_pages_bulk_array_node_noprof include/linux/gfp.h:239 [inline] __page_pool_alloc_pages_slow+0x122/0x690 net/core/page_pool.c:538 page_pool_alloc_netmem net/core/page_pool.c:590 [inline] page_pool_alloc_pages+0xd0/0x1c0 net/core/page_pool.c:597 page_pool_alloc include/net/page_pool/helpers.h:129 [inline] page_pool_dev_alloc include/net/page_pool/helpers.h:167 [inline] skb_pp_cow_data+0xc43/0x1640 net/core/skbuff.c:983 netif_skb_check_for_xdp net/core/dev.c:5041 [inline] netif_receive_generic_xdp net/core/dev.c:5080 [inline] do_xdp_generic+0x505/0xd30 net/core/dev.c:5148 __netif_receive_skb_core+0x1ce9/0x4690 net/core/dev.c:5492 __netif_receive_skb_one_core net/core/dev.c:5670 [inline] __netif_receive_skb+0x12f/0x650 net/core/dev.c:5785 netif_receive_skb_internal net/core/dev.c:5871 [inline] netif_receive_skb+0x1e8/0x890 net/core/dev.c:5930 tun_rx_batched+0x1b7/0x8f0 drivers/net/tun.c:1550 tun_get_user+0x30cc/0x48a0 drivers/net/tun.c:2007 tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:2053 new_sync_write fs/read_write.c:586 [inline] vfs_write+0xaeb/0xd30 fs/read_write.c:679 ksys_write+0x18f/0x2b0 fs/read_write.c:731 page last free pid 6595 tgid 6595 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1127 [inline] free_unref_folios+0xe23/0x1890 mm/page_alloc.c:2706 folios_put_refs+0x76c/0x860 mm/swap.c:962 free_pages_and_swap_cache+0x2ea/0x690 mm/swap_state.c:332 __tlb_batch_free_encoded_pages mm/mmu_gather.c:136 [inline] tlb_batch_pages_flush mm/mmu_gather.c:149 [inline] tlb_flush_mmu_free mm/mmu_gather.c:366 [inline] tlb_flush_mmu+0x3a3/0x680 mm/mmu_gather.c:373 tlb_finish_mmu+0xd4/0x200 mm/mmu_gather.c:465 exit_mmap+0x496/0xc20 mm/mmap.c:1681 __mmput+0x115/0x3b0 kernel/fork.c:1348 exit_mm+0x220/0x310 kernel/exit.c:570 do_exit+0x9ad/0x28e0 kernel/exit.c:925 do_group_exit+0x207/0x2c0 kernel/exit.c:1087 __do_sys_exit_group kernel/exit.c:1098 [inline] __se_sys_exit_group kernel/exit.c:1096 [inline] __x64_sys_exit_group+0x3f/0x40 kernel/exit.c:1096 x64_sys_call+0x26a8/0x26b0 arch/x86/include/generated/asm/syscalls_64.h:232 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 Modules linked in: CPU: 0 UID: 0 PID: 6612 Comm: syz.0.15 Tainted: G B 6.13.0-rc4-syzkaller-g4bbf9020becb #0 Tainted: [B]=BAD_PAGE Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 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_unref_page+0xf9e/0x1000 mm/page_alloc.c:2659 bpf_xdp_shrink_data net/core/filter.c:4157 [inline] bpf_xdp_frags_shrink_tail+0x3ee/0x7e0 net/core/filter.c:4178 ____bpf_xdp_adjust_tail net/core/filter.c:4203 [inline] bpf_xdp_adjust_tail+0x1c3/0x200 net/core/filter.c:4196 bpf_prog_f476d5219b92964a+0x1e/0x20 __bpf_prog_run include/linux/filter.h:701 [inline] bpf_prog_run_xdp include/net/xdp.h:514 [inline] bpf_prog_run_generic_xdp+0x686/0x1510 net/core/dev.c:4973 netif_receive_generic_xdp net/core/dev.c:5086 [inline] do_xdp_generic+0x757/0xd30 net/core/dev.c:5148 __netif_receive_skb_core+0x1ce9/0x4690 net/core/dev.c:5492 __netif_receive_skb_one_core net/core/dev.c:5670 [inline] __netif_receive_skb+0x12f/0x650 net/core/dev.c:5785 netif_receive_skb_internal net/core/dev.c:5871 [inline] netif_receive_skb+0x1e8/0x890 net/core/dev.c:5930 tun_rx_batched+0x1b7/0x8f0 drivers/net/tun.c:1550 tun_get_user+0x30cc/0x48a0 drivers/net/tun.c:2007 tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:2053 new_sync_write fs/read_write.c:586 [inline] vfs_write+0xaeb/0xd30 fs/read_write.c:679 ksys_write+0x18f/0x2b0 fs/read_write.c:731 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:0x7f994ab7e98f 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:00007f994b8f2020 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f994ad45fa0 RCX: 00007f994ab7e98f RDX: 0000000000011dc0 RSI: 00000000200004c0 RDI: 00000000000000c8 RBP: 00007f994abf3cc8 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000011dc0 R11: 0000000000000293 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f994ad45fa0 R15: 00007ffd240077b8 BUG: Bad page state in process syz.0.15 pfn:34644 page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff888034644280 pfn:0x34644 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 dead000000000040 ffff8880216a6000 0000000000000000 raw: ffff888034644280 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 6612, tgid 6611 (syz.0.15), ts 115692765971, free_ts 115167570067 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1f3/0x230 mm/page_alloc.c:1558 prep_new_page mm/page_alloc.c:1566 [inline] get_page_from_freelist+0x3651/0x37a0 mm/page_alloc.c:3476 __alloc_pages_noprof+0x292/0x710 mm/page_alloc.c:4753 alloc_pages_bulk_noprof+0x70b/0xcc0 mm/page_alloc.c:4701 alloc_pages_bulk_array_node_noprof include/linux/gfp.h:239 [inline] __page_pool_alloc_pages_slow+0x122/0x690 net/core/page_pool.c:538 page_pool_alloc_netmem net/core/page_pool.c:590 [inline] page_pool_alloc_pages+0xd0/0x1c0 net/core/page_pool.c:597 page_pool_alloc include/net/page_pool/helpers.h:129 [inline] page_pool_dev_alloc include/net/page_pool/helpers.h:167 [inline] skb_pp_cow_data+0xc43/0x1640 net/core/skbuff.c:983 netif_skb_check_for_xdp net/core/dev.c:5041 [inline] netif_receive_generic_xdp net/core/dev.c:5080 [inline] do_xdp_generic+0x505/0xd30 net/core/dev.c:5148 __netif_receive_skb_core+0x1ce9/0x4690 net/core/dev.c:5492 __netif_receive_skb_one_core net/core/dev.c:5670 [inline] __netif_receive_skb+0x12f/0x650 net/core/dev.c:5785 netif_receive_skb_internal net/core/dev.c:5871 [inline] netif_receive_skb+0x1e8/0x890 net/core/dev.c:5930 tun_rx_batched+0x1b7/0x8f0 drivers/net/tun.c:1550 tun_get_user+0x30cc/0x48a0 drivers/net/tun.c:2007 tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:2053 new_sync_write fs/read_write.c:586 [inline] vfs_write+0xaeb/0xd30 fs/read_write.c:679 ksys_write+0x18f/0x2b0 fs/read_write.c:731 page last free pid 6595 tgid 6595 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1127 [inline] free_unref_folios+0xe23/0x1890 mm/page_alloc.c:2706 folios_put_refs+0x76c/0x860 mm/swap.c:962 free_pages_and_swap_cache+0x2ea/0x690 mm/swap_state.c:332 __tlb_batch_free_encoded_pages mm/mmu_gather.c:136 [inline] tlb_batch_pages_flush mm/mmu_gather.c:149 [inline] tlb_flush_mmu_free mm/mmu_gather.c:366 [inline] tlb_flush_mmu+0x3a3/0x680 mm/mmu_gather.c:373 tlb_finish_mmu+0xd4/0x200 mm/mmu_gather.c:465 exit_mmap+0x496/0xc20 mm/mmap.c:1681 __mmput+0x115/0x3b0 kernel/fork.c:1348 exit_mm+0x220/0x310 kernel/exit.c:570 do_exit+0x9ad/0x28e0 kernel/exit.c:925 do_group_exit+0x207/0x2c0 kernel/exit.c:1087 __do_sys_exit_group kernel/exit.c:1098 [inline] __se_sys_exit_group kernel/exit.c:1096 [inline] __x64_sys_exit_group+0x3f/0x40 kernel/exit.c:1096 x64_sys_call+0x26a8/0x26b0 arch/x86/include/generated/asm/syscalls_64.h:232 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 Modules linked in: CPU: 0 UID: 0 PID: 6612 Comm: syz.0.15 Tainted: G B 6.13.0-rc4-syzkaller-g4bbf9020becb #0 Tainted: [B]=BAD_PAGE Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 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_unref_page+0xf9e/0x1000 mm/page_alloc.c:2659 bpf_xdp_shrink_data net/core/filter.c:4157 [inline] bpf_xdp_frags_shrink_tail+0x3ee/0x7e0 net/core/filter.c:4178 ____bpf_xdp_adjust_tail net/core/filter.c:4203 [inline] bpf_xdp_adjust_tail+0x1c3/0x200 net/core/filter.c:4196 bpf_prog_f476d5219b92964a+0x1e/0x20 __bpf_prog_run include/linux/filter.h:701 [inline] bpf_prog_run_xdp include/net/xdp.h:514 [inline] bpf_prog_run_generic_xdp+0x686/0x1510 net/core/dev.c:4973 netif_receive_generic_xdp net/core/dev.c:5086 [inline] do_xdp_generic+0x757/0xd30 net/core/dev.c:5148 __netif_receive_skb_core+0x1ce9/0x4690 net/core/dev.c:5492 __netif_receive_skb_one_core net/core/dev.c:5670 [inline] __netif_receive_skb+0x12f/0x650 net/core/dev.c:5785 netif_receive_skb_internal net/core/dev.c:5871 [inline] netif_receive_skb+0x1e8/0x890 net/core/dev.c:5930 tun_rx_batched+0x1b7/0x8f0 drivers/net/tun.c:1550 tun_get_user+0x30cc/0x48a0 drivers/net/tun.c:2007 tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:2053 new_sync_write fs/read_write.c:586 [inline] vfs_write+0xaeb/0xd30 fs/read_write.c:679 ksys_write+0x18f/0x2b0 fs/read_write.c:731 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:0x7f994ab7e98f 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:00007f994b8f2020 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f994ad45fa0 RCX: 00007f994ab7e98f RDX: 0000000000011dc0 RSI: 00000000200004c0 RDI: 00000000000000c8 RBP: 00007f994abf3cc8 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000011dc0 R11: 0000000000000293 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f994ad45fa0 R15: 00007ffd240077b8 BUG: Bad page state in process syz.0.15 pfn:79e84 page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff88807baa2600 pfn:0x79e84 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 dead000000000040 ffff8880216a6000 0000000000000000 raw: ffff88807baa2600 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 6612, tgid 6611 (syz.0.15), ts 115692755078, free_ts 115167583866 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1f3/0x230 mm/page_alloc.c:1558 prep_new_page mm/page_alloc.c:1566 [inline] get_page_from_freelist+0x3651/0x37a0 mm/page_alloc.c:3476 __alloc_pages_noprof+0x292/0x710 mm/page_alloc.c:4753 alloc_pages_bulk_noprof+0x70b/0xcc0 mm/page_alloc.c:4701 alloc_pages_bulk_array_node_noprof include/linux/gfp.h:239 [inline] __page_pool_alloc_pages_slow+0x122/0x690 net/core/page_pool.c:538 page_pool_alloc_netmem net/core/page_pool.c:590 [inline] page_pool_alloc_pages+0xd0/0x1c0 net/core/page_pool.c:597 page_pool_alloc include/net/page_pool/helpers.h:129 [inline] page_pool_dev_alloc include/net/page_pool/helpers.h:167 [inline] skb_pp_cow_data+0xc43/0x1640 net/core/skbuff.c:983 netif_skb_check_for_xdp net/core/dev.c:5041 [inline] netif_receive_generic_xdp net/core/dev.c:5080 [inline] do_xdp_generic+0x505/0xd30 net/core/dev.c:5148 __netif_receive_skb_core+0x1ce9/0x4690 net/core/dev.c:5492 __netif_receive_skb_one_core net/core/dev.c:5670 [inline] __netif_receive_skb+0x12f/0x650 net/core/dev.c:5785 netif_receive_skb_internal net/core/dev.c:5871 [inline] netif_receive_skb+0x1e8/0x890 net/core/dev.c:5930 tun_rx_batched+0x1b7/0x8f0 drivers/net/tun.c:1550 tun_get_user+0x30cc/0x48a0 drivers/net/tun.c:2007 tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:2053 new_sync_write fs/read_write.c:586 [inline] vfs_write+0xaeb/0xd30 fs/read_write.c:679 ksys_write+0x18f/0x2b0 fs/read_write.c:731 page last free pid 6595 tgid 6595 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1127 [inline] free_unref_folios+0xe23/0x1890 mm/page_alloc.c:2706 folios_put_refs+0x76c/0x860 mm/swap.c:962 free_pages_and_swap_cache+0x5c8/0x690 mm/swap_state.c:335 __tlb_batch_free_encoded_pages mm/mmu_gather.c:136 [inline] tlb_batch_pages_flush mm/mmu_gather.c:149 [inline] tlb_flush_mmu_free mm/mmu_gather.c:366 [inline] tlb_flush_mmu+0x3a3/0x680 mm/mmu_gather.c:373 tlb_finish_mmu+0xd4/0x200 mm/mmu_gather.c:465 exit_mmap+0x496/0xc20 mm/mmap.c:1681 __mmput+0x115/0x3b0 kernel/fork.c:1348 exit_mm+0x220/0x310 kernel/exit.c:570 do_exit+0x9ad/0x28e0 kernel/exit.c:925 do_group_exit+0x207/0x2c0 kernel/exit.c:1087 __do_sys_exit_group kernel/exit.c:1098 [inline] __se_sys_exit_group kernel/exit.c:1096 [inline] __x64_sys_exit_group+0x3f/0x40 kernel/exit.c:1096 x64_sys_call+0x26a8/0x26b0 arch/x86/include/generated/asm/syscalls_64.h:232 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 Modules linked in: CPU: 0 UID: 0 PID: 6612 Comm: syz.0.15 Tainted: G B 6.13.0-rc4-syzkaller-g4bbf9020becb #0 Tainted: [B]=BAD_PAGE Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 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_unref_page+0xf9e/0x1000 mm/page_alloc.c:2659 bpf_xdp_shrink_data net/core/filter.c:4157 [inline] bpf_xdp_frags_shrink_tail+0x3ee/0x7e0 net/core/filter.c:4178 ____bpf_xdp_adjust_tail net/core/filter.c:4203 [inline] bpf_xdp_adjust_tail+0x1c3/0x200 net/core/filter.c:4196 bpf_prog_f476d5219b92964a+0x1e/0x20 __bpf_prog_run include/linux/filter.h:701 [inline] bpf_prog_run_xdp include/net/xdp.h:514 [inline] bpf_prog_run_generic_xdp+0x686/0x1510 net/core/dev.c:4973 netif_receive_generic_xdp net/core/dev.c:5086 [inline] do_xdp_generic+0x757/0xd30 net/core/dev.c:5148 __netif_receive_skb_core+0x1ce9/0x4690 net/core/dev.c:5492 __netif_receive_skb_one_core net/core/dev.c:5670 [inline] __netif_receive_skb+0x12f/0x650 net/core/dev.c:5785 netif_receive_skb_internal net/core/dev.c:5871 [inline] netif_receive_skb+0x1e8/0x890 net/core/dev.c:5930 tun_rx_batched+0x1b7/0x8f0 drivers/net/tun.c:1550 tun_get_user+0x30cc/0x48a0 drivers/net/tun.c:2007 tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:2053 new_sync_write fs/read_write.c:586 [inline] vfs_write+0xaeb/0xd30 fs/read_write.c:679 ksys_write+0x18f/0x2b0 fs/read_write.c:731 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:0x7f994ab7e98f 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:00007f994b8f2020 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f994ad45fa0 RCX: 00007f994ab7e98f RDX: 0000000000011dc0 RSI: 00000000200004c0 RDI: 00000000000000c8 RBP: 00007f994abf3cc8 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000011dc0 R11: 0000000000000293 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f994ad45fa0 R15: 00007ffd240077b8 BUG: Bad page state in process syz.0.15 pfn:342f5 page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff8880342f53c0 pfn:0x342f5 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 dead000000000040 ffff8880216a6000 0000000000000000 raw: ffff8880342f53c0 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 6612, tgid 6611 (syz.0.15), ts 115692743838, free_ts 115167598991 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1f3/0x230 mm/page_alloc.c:1558 prep_new_page mm/page_alloc.c:1566 [inline] get_page_from_freelist+0x3651/0x37a0 mm/page_alloc.c:3476 __alloc_pages_noprof+0x292/0x710 mm/page_alloc.c:4753 alloc_pages_bulk_noprof+0x70b/0xcc0 mm/page_alloc.c:4701 alloc_pages_bulk_array_node_noprof include/linux/gfp.h:239 [inline] __page_pool_alloc_pages_slow+0x122/0x690 net/core/page_pool.c:538 page_pool_alloc_netmem net/core/page_pool.c:590 [inline] page_pool_alloc_pages+0xd0/0x1c0 net/core/page_pool.c:597 page_pool_alloc include/net/page_pool/helpers.h:129 [inline] page_pool_dev_alloc include/net/page_pool/helpers.h:167 [inline] skb_pp_cow_data+0xc43/0x1640 net/core/skbuff.c:983 netif_skb_check_for_xdp net/core/dev.c:5041 [inline] netif_receive_generic_xdp net/core/dev.c:5080 [inline] do_xdp_generic+0x505/0xd30 net/core/dev.c:5148 __netif_receive_skb_core+0x1ce9/0x4690 net/core/dev.c:5492 __netif_receive_skb_one_core net/core/dev.c:5670 [inline] __netif_receive_skb+0x12f/0x650 net/core/dev.c:5785 netif_receive_skb_internal net/core/dev.c:5871 [inline] netif_receive_skb+0x1e8/0x890 net/core/dev.c:5930 tun_rx_batched+0x1b7/0x8f0 drivers/net/tun.c:1550 tun_get_user+0x30cc/0x48a0 drivers/net/tun.c:2007 tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:2053 new_sync_write fs/read_write.c:586 [inline] vfs_write+0xaeb/0xd30 fs/read_write.c:679 ksys_write+0x18f/0x2b0 fs/read_write.c:731 page last free pid 6595 tgid 6595 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1127 [inline] free_unref_folios+0xe23/0x1890 mm/page_alloc.c:2706 folios_put_refs+0x76c/0x860 mm/swap.c:962 free_pages_and_swap_cache+0x5c8/0x690 mm/swap_state.c:335 __tlb_batch_free_encoded_pages mm/mmu_gather.c:136 [inline] tlb_batch_pages_flush mm/mmu_gather.c:149 [inline] tlb_flush_mmu_free mm/mmu_gather.c:366 [inline] tlb_flush_mmu+0x3a3/0x680 mm/mmu_gather.c:373 tlb_finish_mmu+0xd4/0x200 mm/mmu_gather.c:465 exit_mmap+0x496/0xc20 mm/mmap.c:1681 __mmput+0x115/0x3b0 kernel/fork.c:1348 exit_mm+0x220/0x310 kernel/exit.c:570 do_exit+0x9ad/0x28e0 kernel/exit.c:925 do_group_exit+0x207/0x2c0 kernel/exit.c:1087 __do_sys_exit_group kernel/exit.c:1098 [inline] __se_sys_exit_group kernel/exit.c:1096 [inline] __x64_sys_exit_group+0x3f/0x40 kernel/exit.c:1096 x64_sys_call+0x26a8/0x26b0 arch/x86/include/generated/asm/syscalls_64.h:232 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 Modules linked in: CPU: 0 UID: 0 PID: 6612 Comm: syz.0.15 Tainted: G B 6.13.0-rc4-syzkaller-g4bbf9020becb #0 Tainted: [B]=BAD_PAGE Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 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_unref_page+0xf9e/0x1000 mm/page_alloc.c:2659 bpf_xdp_shrink_data net/core/filter.c:4157 [inline] bpf_xdp_frags_shrink_tail+0x3ee/0x7e0 net/core/filter.c:4178 ____bpf_xdp_adjust_tail net/core/filter.c:4203 [inline] bpf_xdp_adjust_tail+0x1c3/0x200 net/core/filter.c:4196 bpf_prog_f476d5219b92964a+0x1e/0x20 __bpf_prog_run include/linux/filter.h:701 [inline] bpf_prog_run_xdp include/net/xdp.h:514 [inline] bpf_prog_run_generic_xdp+0x686/0x1510 net/core/dev.c:4973 netif_receive_generic_xdp net/core/dev.c:5086 [inline] do_xdp_generic+0x757/0xd30 net/core/dev.c:5148 __netif_receive_skb_core+0x1ce9/0x4690 net/core/dev.c:5492 __netif_receive_skb_one_core net/core/dev.c:5670 [inline] __netif_receive_skb+0x12f/0x650 net/core/dev.c:5785 netif_receive_skb_internal net/core/dev.c:5871 [inline] netif_receive_skb+0x1e8/0x890 net/core/dev.c:5930 tun_rx_batched+0x1b7/0x8f0 drivers/net/tun.c:1550 tun_get_user+0x30cc/0x48a0 drivers/net/tun.c:2007 tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:2053 new_sync_write fs/read_write.c:586 [inline] vfs_write+0xaeb/0xd30 fs/read_write.c:679 ksys_write+0x18f/0x2b0 fs/read_write.c:731 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:0x7f994ab7e98f 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:00007f994b8f2020 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f994ad45fa0 RCX: 00007f994ab7e98f RDX: 0000000000011dc0 RSI: 00000000200004c0 RDI: 00000000000000c8 RBP: 00007f994abf3cc8 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000011dc0 R11: 0000000000000293 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f994ad45fa0 R15: 00007ffd240077b8 BUG: Bad page state in process syz.0.15 pfn:20f13 page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff888020f13000 pfn:0x20f13 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 dead000000000040 ffff8880216a6000 0000000000000000 raw: ffff888020f13000 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 6612, tgid 6611 (syz.0.15), ts 115692732517, free_ts 115167610501 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1f3/0x230 mm/page_alloc.c:1558 prep_new_page mm/page_alloc.c:1566 [inline] get_page_from_freelist+0x3651/0x37a0 mm/page_alloc.c:3476 __alloc_pages_noprof+0x292/0x710 mm/page_alloc.c:4753 alloc_pages_bulk_noprof+0x70b/0xcc0 mm/page_alloc.c:4701 alloc_pages_bulk_array_node_noprof include/linux/gfp.h:239 [inline] __page_pool_alloc_pages_slow+0x122/0x690 net/core/page_pool.c:538 page_pool_alloc_netmem net/core/page_pool.c:590 [inline] page_pool_alloc_pages+0xd0/0x1c0 net/core/page_pool.c:597 page_pool_alloc include/net/page_pool/helpers.h:129 [inline] page_pool_dev_alloc include/net/page_pool/helpers.h:167 [inline] skb_pp_cow_data+0xc43/0x1640 net/core/skbuff.c:983 netif_skb_check_for_xdp net/core/dev.c:5041 [inline] netif_receive_generic_xdp net/core/dev.c:5080 [inline] do_xdp_generic+0x505/0xd30 net/core/dev.c:5148 __netif_receive_skb_core+0x1ce9/0x4690 net/core/dev.c:5492 __netif_receive_skb_one_core net/core/dev.c:5670 [inline] __netif_receive_skb+0x12f/0x650 net/core/dev.c:5785 netif_receive_skb_internal net/core/dev.c:5871 [inline] netif_receive_skb+0x1e8/0x890 net/core/dev.c:5930 tun_rx_batched+0x1b7/0x8f0 drivers/net/tun.c:1550 tun_get_user+0x30cc/0x48a0 drivers/net/tun.c:2007 tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:2053 new_sync_write fs/read_write.c:586 [inline] vfs_write+0xaeb/0xd30 fs/read_write.c:679 ksys_write+0x18f/0x2b0 fs/read_write.c:731 page last free pid 6595 tgid 6595 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1127 [inline] free_unref_page+0xd2c/0x1000 mm/page_alloc.c:2659 tlb_batch_list_free mm/mmu_gather.c:159 [inline] tlb_finish_mmu+0x11f/0x200 mm/mmu_gather.c:468 exit_mmap+0x496/0xc20 mm/mmap.c:1681 __mmput+0x115/0x3b0 kernel/fork.c:1348 exit_mm+0x220/0x310 kernel/exit.c:570 do_exit+0x9ad/0x28e0 kernel/exit.c:925 do_group_exit+0x207/0x2c0 kernel/exit.c:1087 __do_sys_exit_group kernel/exit.c:1098 [inline] __se_sys_exit_group kernel/exit.c:1096 [inline] __x64_sys_exit_group+0x3f/0x40 kernel/exit.c:1096 x64_sys_call+0x26a8/0x26b0 arch/x86/include/generated/asm/syscalls_64.h:232 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 Modules linked in: CPU: 0 UID: 0 PID: 6612 Comm: syz.0.15 Tainted: G B 6.13.0-rc4-syzkaller-g4bbf9020becb #0 Tainted: [B]=BAD_PAGE Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 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_unref_page+0xf9e/0x1000 mm/page_alloc.c:2659 bpf_xdp_shrink_data net/core/filter.c:4157 [inline] bpf_xdp_frags_shrink_tail+0x3ee/0x7e0 net/core/filter.c:4178 ____bpf_xdp_adjust_tail net/core/filter.c:4203 [inline] bpf_xdp_adjust_tail+0x1c3/0x200 net/core/filter.c:4196 bpf_prog_f476d5219b92964a+0x1e/0x20 __bpf_prog_run include/linux/filter.h:701 [inline] bpf_prog_run_xdp include/net/xdp.h:514 [inline] bpf_prog_run_generic_xdp+0x686/0x1510 net/core/dev.c:4973 netif_receive_generic_xdp net/core/dev.c:5086 [inline] do_xdp_generic+0x757/0xd30 net/core/dev.c:5148 __netif_receive_skb_core+0x1ce9/0x4690 net/core/dev.c:5492 __netif_receive_skb_one_core net/core/dev.c:5670 [inline] __netif_receive_skb+0x12f/0x650 net/core/dev.c:5785 netif_receive_skb_internal net/core/dev.c:5871 [inline] netif_receive_skb+0x1e8/0x890 net/core/dev.c:5930 tun_rx_batched+0x1b7/0x8f0 drivers/net/tun.c:1550 tun_get_user+0x30cc/0x48a0 drivers/net/tun.c:2007 tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:2053 new_sync_write fs/read_write.c:586 [inline] vfs_write+0xaeb/0xd30 fs/read_write.c:679 ksys_write+0x18f/0x2b0 fs/read_write.c:731 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:0x7f994ab7e98f 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:00007f994b8f2020 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f994ad45fa0 RCX: 00007f994ab7e98f RDX: 0000000000011dc0 RSI: 00000000200004c0 RDI: 00000000000000c8 RBP: 00007f994abf3cc8 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000011dc0 R11: 0000000000000293 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f994ad45fa0 R15: 00007ffd240077b8 BUG: Bad page state in process syz.0.15 pfn:33ece page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff888033ece000 pfn:0x33ece flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 dead000000000040 ffff8880216a6000 0000000000000000 raw: ffff888033ece000 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 6612, tgid 6611 (syz.0.15), ts 115692721338, free_ts 115167619770 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1f3/0x230 mm/page_alloc.c:1558 prep_new_page mm/page_alloc.c:1566 [inline] get_page_from_freelist+0x3651/0x37a0 mm/page_alloc.c:3476 __alloc_pages_noprof+0x292/0x710 mm/page_alloc.c:4753 alloc_pages_bulk_noprof+0x70b/0xcc0 mm/page_alloc.c:4701 alloc_pages_bulk_array_node_noprof include/linux/gfp.h:239 [inline] __page_pool_alloc_pages_slow+0x122/0x690 net/core/page_pool.c:538 page_pool_alloc_netmem net/core/page_pool.c:590 [inline] page_pool_alloc_pages+0xd0/0x1c0 net/core/page_pool.c:597 page_pool_alloc include/net/page_pool/helpers.h:129 [inline] page_pool_dev_alloc include/net/page_pool/helpers.h:167 [inline] skb_pp_cow_data+0xc43/0x1640 net/core/skbuff.c:983 netif_skb_check_for_xdp net/core/dev.c:5041 [inline] netif_receive_generic_xdp net/core/dev.c:5080 [inline] do_xdp_generic+0x505/0xd30 net/core/dev.c:5148 __netif_receive_skb_core+0x1ce9/0x4690 net/core/dev.c:5492 __netif_receive_skb_one_core net/core/dev.c:5670 [inline] __netif_receive_skb+0x12f/0x650 net/core/dev.c:5785 netif_receive_skb_internal net/core/dev.c:5871 [inline] netif_receive_skb+0x1e8/0x890 net/core/dev.c:5930 tun_rx_batched+0x1b7/0x8f0 drivers/net/tun.c:1550 tun_get_user+0x30cc/0x48a0 drivers/net/tun.c:2007 tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:2053 new_sync_write fs/read_write.c:586 [inline] vfs_write+0xaeb/0xd30 fs/read_write.c:679 ksys_write+0x18f/0x2b0 fs/read_write.c:731 page last free pid 6595 tgid 6595 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1127 [inline] free_unref_page+0xd2c/0x1000 mm/page_alloc.c:2659 tlb_batch_list_free mm/mmu_gather.c:159 [inline] tlb_finish_mmu+0x11f/0x200 mm/mmu_gather.c:468 exit_mmap+0x496/0xc20 mm/mmap.c:1681 __mmput+0x115/0x3b0 kernel/fork.c:1348 exit_mm+0x220/0x310 kernel/exit.c:570 do_exit+0x9ad/0x28e0 kernel/exit.c:925 do_group_exit+0x207/0x2c0 kernel/exit.c:1087 __do_sys_exit_group kernel/exit.c:1098 [inline] __se_sys_exit_group kernel/exit.c:1096 [inline] __x64_sys_exit_group+0x3f/0x40 kernel/exit.c:1096 x64_sys_call+0x26a8/0x26b0 arch/x86/include/generated/asm/syscalls_64.h:232 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 Modules linked in: CPU: 0 UID: 0 PID: 6612 Comm: syz.0.15 Tainted: G B 6.13.0-rc4-syzkaller-g4bbf9020becb #0 Tainted: [B]=BAD_PAGE Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 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_unref_page+0xf9e/0x1000 mm/page_alloc.c:2659 bpf_xdp_shrink_data net/core/filter.c:4157 [inline] bpf_xdp_frags_shrink_tail+0x3ee/0x7e0 net/core/filter.c:4178 ____bpf_xdp_adjust_tail net/core/filter.c:4203 [inline] bpf_xdp_adjust_tail+0x1c3/0x200 net/core/filter.c:4196 bpf_prog_f476d5219b92964a+0x1e/0x20 __bpf_prog_run include/linux/filter.h:701 [inline] bpf_prog_run_xdp include/net/xdp.h:514 [inline] bpf_prog_run_generic_xdp+0x686/0x1510 net/core/dev.c:4973 netif_receive_generic_xdp net/core/dev.c:5086 [inline] do_xdp_generic+0x757/0xd30 net/core/dev.c:5148 __netif_receive_skb_core+0x1ce9/0x4690 net/core/dev.c:5492 __netif_receive_skb_one_core net/core/dev.c:5670 [inline] __netif_receive_skb+0x12f/0x650 net/core/dev.c:5785 netif_receive_skb_internal net/core/dev.c:5871 [inline] netif_receive_skb+0x1e8/0x890 net/core/dev.c:5930 tun_rx_batched+0x1b7/0x8f0 drivers/net/tun.c:1550 tun_get_user+0x30cc/0x48a0 drivers/net/tun.c:2007 tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:2053 new_sync_write fs/read_write.c:586 [inline] vfs_write+0xaeb/0xd30 fs/read_write.c:679 ksys_write+0x18f/0x2b0 fs/read_write.c:731 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:0x7f994ab7e98f 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:00007f994b8f2020 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f994ad45fa0 RCX: 00007f994ab7e98f RDX: 0000000000011dc0 RSI: 00000000200004c0 RDI: 00000000000000c8 RBP: 00007f994abf3cc8 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000011dc0 R11: 0000000000000293 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f994ad45fa0 R15: 00007ffd240077b8 BUG: Bad page state in process syz.0.15 pfn:73fc7 page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff888073fc7000 pfn:0x73fc7 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 dead000000000040 ffff8880216a6000 0000000000000000 raw: ffff888073fc7000 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 6612, tgid 6611 (syz.0.15), ts 115692710374, free_ts 115203644938 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1f3/0x230 mm/page_alloc.c:1558 prep_new_page mm/page_alloc.c:1566 [inline] get_page_from_freelist+0x3651/0x37a0 mm/page_alloc.c:3476 __alloc_pages_noprof+0x292/0x710 mm/page_alloc.c:4753 alloc_pages_bulk_noprof+0x70b/0xcc0 mm/page_alloc.c:4701 alloc_pages_bulk_array_node_noprof include/linux/gfp.h:239 [inline] __page_pool_alloc_pages_slow+0x122/0x690 net/core/page_pool.c:538 page_pool_alloc_netmem net/core/page_pool.c:590 [inline] page_pool_alloc_pages+0xd0/0x1c0 net/core/page_pool.c:597 page_pool_alloc include/net/page_pool/helpers.h:129 [inline] page_pool_dev_alloc include/net/page_pool/helpers.h:167 [inline] skb_pp_cow_data+0xc43/0x1640 net/core/skbuff.c:983 netif_skb_check_for_xdp net/core/dev.c:5041 [inline] netif_receive_generic_xdp net/core/dev.c:5080 [inline] do_xdp_generic+0x505/0xd30 net/core/dev.c:5148 __netif_receive_skb_core+0x1ce9/0x4690 net/core/dev.c:5492 __netif_receive_skb_one_core net/core/dev.c:5670 [inline] __netif_receive_skb+0x12f/0x650 net/core/dev.c:5785 netif_receive_skb_internal net/core/dev.c:5871 [inline] netif_receive_skb+0x1e8/0x890 net/core/dev.c:5930 tun_rx_batched+0x1b7/0x8f0 drivers/net/tun.c:1550 tun_get_user+0x30cc/0x48a0 drivers/net/tun.c:2007 tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:2053 new_sync_write fs/read_write.c:586 [inline] vfs_write+0xaeb/0xd30 fs/read_write.c:679 ksys_write+0x18f/0x2b0 fs/read_write.c:731 page last free pid 6599 tgid 6599 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1127 [inline] free_unref_folios+0xe23/0x1890 mm/page_alloc.c:2706 folios_put_refs+0x76c/0x860 mm/swap.c:962 free_pages_and_swap_cache+0x2ea/0x690 mm/swap_state.c:332 __tlb_batch_free_encoded_pages mm/mmu_gather.c:136 [inline] tlb_batch_pages_flush mm/mmu_gather.c:149 [inline] tlb_flush_mmu_free mm/mmu_gather.c:366 [inline] tlb_flush_mmu+0x3a3/0x680 mm/mmu_gather.c:373 tlb_finish_mmu+0xd4/0x200 mm/mmu_gather.c:465 exit_mmap+0x496/0xc20 mm/mmap.c:1681 __mmput+0x115/0x3b0 kernel/fork.c:1348 exec_mmap+0x779/0x860 fs/exec.c:1018 begin_new_exec+0x1285/0x1f90 fs/exec.c:1274 load_elf_binary+0x95b/0x2770 fs/binfmt_elf.c:1002 search_binary_handler fs/exec.c:1748 [inline] exec_binprm fs/exec.c:1790 [inline] bprm_execve+0xaf5/0x17a0 fs/exec.c:1842 do_execveat_common+0x55f/0x6f0 fs/exec.c:1949 do_execve fs/exec.c:2023 [inline] __do_sys_execve fs/exec.c:2099 [inline] __se_sys_execve fs/exec.c:2094 [inline] __x64_sys_execve+0x92/0xb0 fs/exec.c:2094 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 Modules linked in: CPU: 0 UID: 0 PID: 6612 Comm: syz.0.15 Tainted: G B 6.13.0-rc4-syzkaller-g4bbf9020becb #0 Tainted: [B]=BAD_PAGE Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 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_unref_page+0xf9e/0x1000 mm/page_alloc.c:2659 bpf_xdp_shrink_data net/core/filter.c:4157 [inline] bpf_xdp_frags_shrink_tail+0x3ee/0x7e0 net/core/filter.c:4178 ____bpf_xdp_adjust_tail net/core/filter.c:4203 [inline] bpf_xdp_adjust_tail+0x1c3/0x200 net/core/filter.c:4196 bpf_prog_f476d5219b92964a+0x1e/0x20 __bpf_prog_run include/linux/filter.h:701 [inline] bpf_prog_run_xdp include/net/xdp.h:514 [inline] bpf_prog_run_generic_xdp+0x686/0x1510 net/core/dev.c:4973 netif_receive_generic_xdp net/core/dev.c:5086 [inline] do_xdp_generic+0x757/0xd30 net/core/dev.c:5148 __netif_receive_skb_core+0x1ce9/0x4690 net/core/dev.c:5492 __netif_receive_skb_one_core net/core/dev.c:5670 [inline] __netif_receive_skb+0x12f/0x650 net/core/dev.c:5785 netif_receive_skb_internal net/core/dev.c:5871 [inline] netif_receive_skb+0x1e8/0x890 net/core/dev.c:5930 tun_rx_batched+0x1b7/0x8f0 drivers/net/tun.c:1550 tun_get_user+0x30cc/0x48a0 drivers/net/tun.c:2007 tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:2053 new_sync_write fs/read_write.c:586 [inline] vfs_write+0xaeb/0xd30 fs/read_write.c:679 ksys_write+0x18f/0x2b0 fs/read_write.c:731 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:0x7f994ab7e98f 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:00007f994b8f2020 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f994ad45fa0 RCX: 00007f994ab7e98f RDX: 0000000000011dc0 RSI: 00000000200004c0 RDI: 00000000000000c8 RBP: 00007f994abf3cc8 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000011dc0 R11: 0000000000000293 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f994ad45fa0 R15: 00007ffd240077b8 BUG: Bad page state in process syz.0.15 pfn:1e762 page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1e762 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 dead000000000040 ffff8880216a6000 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 6612, tgid 6611 (syz.0.15), ts 115692699265, free_ts 115214696309 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1f3/0x230 mm/page_alloc.c:1558 prep_new_page mm/page_alloc.c:1566 [inline] get_page_from_freelist+0x3651/0x37a0 mm/page_alloc.c:3476 __alloc_pages_noprof+0x292/0x710 mm/page_alloc.c:4753 alloc_pages_bulk_noprof+0x70b/0xcc0 mm/page_alloc.c:4701 alloc_pages_bulk_array_node_noprof include/linux/gfp.h:239 [inline] __page_pool_alloc_pages_slow+0x122/0x690 net/core/page_pool.c:538 page_pool_alloc_netmem net/core/page_pool.c:590 [inline] page_pool_alloc_pages+0xd0/0x1c0 net/core/page_pool.c:597 page_pool_alloc include/net/page_pool/helpers.h:129 [inline] page_pool_dev_alloc include/net/page_pool/helpers.h:167 [inline] skb_pp_cow_data+0xc43/0x1640 net/core/skbuff.c:983 netif_skb_check_for_xdp net/core/dev.c:5041 [inline] netif_receive_generic_xdp net/core/dev.c:5080 [inline] do_xdp_generic+0x505/0xd30 net/core/dev.c:5148 __netif_receive_skb_core+0x1ce9/0x4690 net/core/dev.c:5492 __netif_receive_skb_one_core net/core/dev.c:5670 [inline] __netif_receive_skb+0x12f/0x650 net/core/dev.c:5785 netif_receive_skb_internal net/core/dev.c:5871 [inline] netif_receive_skb+0x1e8/0x890 net/core/dev.c:5930 tun_rx_batched+0x1b7/0x8f0 drivers/net/tun.c:1550 tun_get_user+0x30cc/0x48a0 drivers/net/tun.c:2007 tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:2053 new_sync_write fs/read_write.c:586 [inline] vfs_write+0xaeb/0xd30 fs/read_write.c:679 ksys_write+0x18f/0x2b0 fs/read_write.c:731 page last free pid 25 tgid 25 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1127 [inline] free_unref_page+0xd2c/0x1000 mm/page_alloc.c:2659 vfree+0x1c3/0x360 mm/vmalloc.c:3383 delayed_vfree_work+0x56/0x80 mm/vmalloc.c:3303 process_one_work kernel/workqueue.c:3229 [inline] process_scheduled_works+0xa66/0x1840 kernel/workqueue.c:3310 worker_thread+0x870/0xd30 kernel/workqueue.c:3391 kthread+0x2f0/0x390 kernel/kthread.c:389 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 Modules linked in: CPU: 0 UID: 0 PID: 6612 Comm: syz.0.15 Tainted: G B 6.13.0-rc4-syzkaller-g4bbf9020becb #0 Tainted: [B]=BAD_PAGE Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 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_unref_page+0xf9e/0x1000 mm/page_alloc.c:2659 bpf_xdp_shrink_data net/core/filter.c:4157 [inline] bpf_xdp_frags_shrink_tail+0x3ee/0x7e0 net/core/filter.c:4178 ____bpf_xdp_adjust_tail net/core/filter.c:4203 [inline] bpf_xdp_adjust_tail+0x1c3/0x200 net/core/filter.c:4196 bpf_prog_f476d5219b92964a+0x1e/0x20 __bpf_prog_run include/linux/filter.h:701 [inline] bpf_prog_run_xdp include/net/xdp.h:514 [inline] bpf_prog_run_generic_xdp+0x686/0x1510 net/core/dev.c:4973 netif_receive_generic_xdp net/core/dev.c:5086 [inline] do_xdp_generic+0x757/0xd30 net/core/dev.c:5148 __netif_receive_skb_core+0x1ce9/0x4690 net/core/dev.c:5492 __netif_receive_skb_one_core net/core/dev.c:5670 [inline] __netif_receive_skb+0x12f/0x650 net/core/dev.c:5785 netif_receive_skb_internal net/core/dev.c:5871 [inline] netif_receive_skb+0x1e8/0x890 net/core/dev.c:5930 tun_rx_batched+0x1b7/0x8f0 drivers/net/tun.c:1550 tun_get_user+0x30cc/0x48a0 drivers/net/tun.c:2007 tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:2053 new_sync_write fs/read_write.c:586 [inline] vfs_write+0xaeb/0xd30 fs/read_write.c:679 ksys_write+0x18f/0x2b0 fs/read_write.c:731 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:0x7f994ab7e98f 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:00007f994b8f2020 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f994ad45fa0 RCX: 00007f994ab7e98f RDX: 0000000000011dc0 RSI: 00000000200004c0 RDI: 00000000000000c8 RBP: 00007f994abf3cc8 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000011dc0 R11: 0000000000000293 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f994ad45fa0 R15: 00007ffd240077b8