BUG: Bad page state in process syz.8.1456 pfn:527d0 page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff8880527d0e58 pfn:0x527d0 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 dead000000000040 ffff888022ab0000 0000000000000000 raw: ffff8880527d0e58 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 12278, tgid 12277 (syz.8.1456), ts 560487651574, free_ts 560334632927 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+0x365c/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:5073 [inline] netif_receive_generic_xdp net/core/dev.c:5112 [inline] do_xdp_generic+0x505/0xd30 net/core/dev.c:5180 __netif_receive_skb_core+0x1ce9/0x4690 net/core/dev.c:5524 __netif_receive_skb_one_core net/core/dev.c:5702 [inline] __netif_receive_skb+0x12f/0x650 net/core/dev.c:5817 netif_receive_skb_internal net/core/dev.c:5903 [inline] netif_receive_skb+0x1e8/0x890 net/core/dev.c:5962 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+0xaed/0xd30 fs/read_write.c:679 ksys_write+0x18f/0x2b0 fs/read_write.c:731 page last free pid 12212 tgid 12210 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1127 [inline] free_unref_page+0xd3f/0x1010 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:1685 __mmput+0x115/0x3c0 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 get_signal+0x16b2/0x1750 kernel/signal.c:3017 arch_do_signal_or_restart+0x96/0x860 arch/x86/kernel/signal.c:337 exit_to_user_mode_loop kernel/entry/common.c:111 [inline] exit_to_user_mode_prepare include/linux/entry-common.h:329 [inline] __syscall_exit_to_user_mode_work kernel/entry/common.c:207 [inline] syscall_exit_to_user_mode+0xce/0x340 kernel/entry/common.c:218 do_syscall_64+0x100/0x230 arch/x86/entry/common.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f Modules linked in: CPU: 0 UID: 0 PID: 12278 Comm: syz.8.1456 Not tainted 6.13.0-rc7-syzkaller-00019-gc45323b7560e #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+0xfb1/0x1010 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/0x24 __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:5005 netif_receive_generic_xdp net/core/dev.c:5118 [inline] do_xdp_generic+0x757/0xd30 net/core/dev.c:5180 __netif_receive_skb_core+0x1ce9/0x4690 net/core/dev.c:5524 __netif_receive_skb_one_core net/core/dev.c:5702 [inline] __netif_receive_skb+0x12f/0x650 net/core/dev.c:5817 netif_receive_skb_internal net/core/dev.c:5903 [inline] netif_receive_skb+0x1e8/0x890 net/core/dev.c:5962 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+0xaed/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:0x7fc8a41847df 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:00007fc8a5049000 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007fc8a4375fa0 RCX: 00007fc8a41847df RDX: 0000000000011dc0 RSI: 0000000020000780 RDI: 00000000000000c8 RBP: 00007fc8a4201b08 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000011dc0 R11: 0000000000000293 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fc8a4375fa0 R15: 00007ffc0b8e2028 BUG: Bad page state in process syz.8.1456 pfn:2a376 page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff88802a376af8 pfn:0x2a376 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 dead000000000040 ffff888022ab0000 0000000000000000 raw: ffff88802a376af8 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 12278, tgid 12277 (syz.8.1456), ts 560487639654, free_ts 560334644656 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+0x365c/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:5073 [inline] netif_receive_generic_xdp net/core/dev.c:5112 [inline] do_xdp_generic+0x505/0xd30 net/core/dev.c:5180 __netif_receive_skb_core+0x1ce9/0x4690 net/core/dev.c:5524 __netif_receive_skb_one_core net/core/dev.c:5702 [inline] __netif_receive_skb+0x12f/0x650 net/core/dev.c:5817 netif_receive_skb_internal net/core/dev.c:5903 [inline] netif_receive_skb+0x1e8/0x890 net/core/dev.c:5962 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+0xaed/0xd30 fs/read_write.c:679 ksys_write+0x18f/0x2b0 fs/read_write.c:731 page last free pid 12212 tgid 12210 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1127 [inline] free_unref_page+0xd3f/0x1010 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:1685 __mmput+0x115/0x3c0 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 get_signal+0x16b2/0x1750 kernel/signal.c:3017 arch_do_signal_or_restart+0x96/0x860 arch/x86/kernel/signal.c:337 exit_to_user_mode_loop kernel/entry/common.c:111 [inline] exit_to_user_mode_prepare include/linux/entry-common.h:329 [inline] __syscall_exit_to_user_mode_work kernel/entry/common.c:207 [inline] syscall_exit_to_user_mode+0xce/0x340 kernel/entry/common.c:218 do_syscall_64+0x100/0x230 arch/x86/entry/common.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f Modules linked in: CPU: 0 UID: 0 PID: 12278 Comm: syz.8.1456 Tainted: G B 6.13.0-rc7-syzkaller-00019-gc45323b7560e #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+0xfb1/0x1010 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/0x24 __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:5005 netif_receive_generic_xdp net/core/dev.c:5118 [inline] do_xdp_generic+0x757/0xd30 net/core/dev.c:5180 __netif_receive_skb_core+0x1ce9/0x4690 net/core/dev.c:5524 __netif_receive_skb_one_core net/core/dev.c:5702 [inline] __netif_receive_skb+0x12f/0x650 net/core/dev.c:5817 netif_receive_skb_internal net/core/dev.c:5903 [inline] netif_receive_skb+0x1e8/0x890 net/core/dev.c:5962 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+0xaed/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:0x7fc8a41847df 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:00007fc8a5049000 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007fc8a4375fa0 RCX: 00007fc8a41847df RDX: 0000000000011dc0 RSI: 0000000020000780 RDI: 00000000000000c8 RBP: 00007fc8a4201b08 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000011dc0 R11: 0000000000000293 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fc8a4375fa0 R15: 00007ffc0b8e2028 BUG: Bad page state in process syz.8.1456 pfn:355ac page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff8880355ac0e0 pfn:0x355ac flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 dead000000000040 ffff888022ab0000 0000000000000000 raw: ffff8880355ac0e0 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 12278, tgid 12277 (syz.8.1456), ts 560487627754, free_ts 560341662916 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+0x365c/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:5073 [inline] netif_receive_generic_xdp net/core/dev.c:5112 [inline] do_xdp_generic+0x505/0xd30 net/core/dev.c:5180 __netif_receive_skb_core+0x1ce9/0x4690 net/core/dev.c:5524 __netif_receive_skb_one_core net/core/dev.c:5702 [inline] __netif_receive_skb+0x12f/0x650 net/core/dev.c:5817 netif_receive_skb_internal net/core/dev.c:5903 [inline] netif_receive_skb+0x1e8/0x890 net/core/dev.c:5962 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+0xaed/0xd30 fs/read_write.c:679 ksys_write+0x18f/0x2b0 fs/read_write.c:731 page last free pid 5837 tgid 5837 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1127 [inline] free_unref_page+0xd3f/0x1010 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:3236 [inline] process_scheduled_works+0xa68/0x1840 kernel/workqueue.c:3317 worker_thread+0x870/0xd30 kernel/workqueue.c:3398 kthread+0x2f2/0x390 kernel/kthread.c:389 ret_from_fork+0x4d/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: 12278 Comm: syz.8.1456 Tainted: G B 6.13.0-rc7-syzkaller-00019-gc45323b7560e #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+0xfb1/0x1010 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/0x24 __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:5005 netif_receive_generic_xdp net/core/dev.c:5118 [inline] do_xdp_generic+0x757/0xd30 net/core/dev.c:5180 __netif_receive_skb_core+0x1ce9/0x4690 net/core/dev.c:5524 __netif_receive_skb_one_core net/core/dev.c:5702 [inline] __netif_receive_skb+0x12f/0x650 net/core/dev.c:5817 netif_receive_skb_internal net/core/dev.c:5903 [inline] netif_receive_skb+0x1e8/0x890 net/core/dev.c:5962 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+0xaed/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:0x7fc8a41847df 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:00007fc8a5049000 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007fc8a4375fa0 RCX: 00007fc8a41847df RDX: 0000000000011dc0 RSI: 0000000020000780 RDI: 00000000000000c8 RBP: 00007fc8a4201b08 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000011dc0 R11: 0000000000000293 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fc8a4375fa0 R15: 00007ffc0b8e2028 BUG: Bad page state in process syz.8.1456 pfn:510eb page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff888000000000 pfn:0x510eb flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 dead000000000040 ffff888022ab0000 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 12278, tgid 12277 (syz.8.1456), ts 560487607674, free_ts 560341674796 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+0x365c/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:5073 [inline] netif_receive_generic_xdp net/core/dev.c:5112 [inline] do_xdp_generic+0x505/0xd30 net/core/dev.c:5180 __netif_receive_skb_core+0x1ce9/0x4690 net/core/dev.c:5524 __netif_receive_skb_one_core net/core/dev.c:5702 [inline] __netif_receive_skb+0x12f/0x650 net/core/dev.c:5817 netif_receive_skb_internal net/core/dev.c:5903 [inline] netif_receive_skb+0x1e8/0x890 net/core/dev.c:5962 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+0xaed/0xd30 fs/read_write.c:679 ksys_write+0x18f/0x2b0 fs/read_write.c:731 page last free pid 5837 tgid 5837 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1127 [inline] free_unref_page+0xd3f/0x1010 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:3236 [inline] process_scheduled_works+0xa68/0x1840 kernel/workqueue.c:3317 worker_thread+0x870/0xd30 kernel/workqueue.c:3398 kthread+0x2f2/0x390 kernel/kthread.c:389 ret_from_fork+0x4d/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: 12278 Comm: syz.8.1456 Tainted: G B 6.13.0-rc7-syzkaller-00019-gc45323b7560e #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+0xfb1/0x1010 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/0x24 __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:5005 netif_receive_generic_xdp net/core/dev.c:5118 [inline] do_xdp_generic+0x757/0xd30 net/core/dev.c:5180 __netif_receive_skb_core+0x1ce9/0x4690 net/core/dev.c:5524 __netif_receive_skb_one_core net/core/dev.c:5702 [inline] __netif_receive_skb+0x12f/0x650 net/core/dev.c:5817 netif_receive_skb_internal net/core/dev.c:5903 [inline] netif_receive_skb+0x1e8/0x890 net/core/dev.c:5962 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+0xaed/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:0x7fc8a41847df 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:00007fc8a5049000 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007fc8a4375fa0 RCX: 00007fc8a41847df RDX: 0000000000011dc0 RSI: 0000000020000780 RDI: 00000000000000c8 RBP: 00007fc8a4201b08 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000011dc0 R11: 0000000000000293 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fc8a4375fa0 R15: 00007ffc0b8e2028 BUG: Bad page state in process syz.8.1456 pfn:65778 page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff888065778dc0 pfn:0x65778 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 dead000000000040 ffff888022ab0000 0000000000000000 raw: ffff888065778dc0 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 12278, tgid 12277 (syz.8.1456), ts 560487595934, free_ts 560341685125 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+0x365c/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:5073 [inline] netif_receive_generic_xdp net/core/dev.c:5112 [inline] do_xdp_generic+0x505/0xd30 net/core/dev.c:5180 __netif_receive_skb_core+0x1ce9/0x4690 net/core/dev.c:5524 __netif_receive_skb_one_core net/core/dev.c:5702 [inline] __netif_receive_skb+0x12f/0x650 net/core/dev.c:5817 netif_receive_skb_internal net/core/dev.c:5903 [inline] netif_receive_skb+0x1e8/0x890 net/core/dev.c:5962 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+0xaed/0xd30 fs/read_write.c:679 ksys_write+0x18f/0x2b0 fs/read_write.c:731 page last free pid 5837 tgid 5837 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1127 [inline] free_unref_page+0xd3f/0x1010 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:3236 [inline] process_scheduled_works+0xa68/0x1840 kernel/workqueue.c:3317 worker_thread+0x870/0xd30 kernel/workqueue.c:3398 kthread+0x2f2/0x390 kernel/kthread.c:389 ret_from_fork+0x4d/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: 12278 Comm: syz.8.1456 Tainted: G B 6.13.0-rc7-syzkaller-00019-gc45323b7560e #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+0xfb1/0x1010 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/0x24 __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:5005 netif_receive_generic_xdp net/core/dev.c:5118 [inline] do_xdp_generic+0x757/0xd30 net/core/dev.c:5180 __netif_receive_skb_core+0x1ce9/0x4690 net/core/dev.c:5524 __netif_receive_skb_one_core net/core/dev.c:5702 [inline] __netif_receive_skb+0x12f/0x650 net/core/dev.c:5817 netif_receive_skb_internal net/core/dev.c:5903 [inline] netif_receive_skb+0x1e8/0x890 net/core/dev.c:5962 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+0xaed/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:0x7fc8a41847df 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:00007fc8a5049000 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007fc8a4375fa0 RCX: 00007fc8a41847df RDX: 0000000000011dc0 RSI: 0000000020000780 RDI: 00000000000000c8 RBP: 00007fc8a4201b08 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000011dc0 R11: 0000000000000293 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fc8a4375fa0 R15: 00007ffc0b8e2028 BUG: Bad page state in process syz.8.1456 pfn:7d76b page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x7d76b flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 dead000000000040 ffff888022ab0000 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 12278, tgid 12277 (syz.8.1456), ts 560487584014, free_ts 560341704735 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+0x365c/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:5073 [inline] netif_receive_generic_xdp net/core/dev.c:5112 [inline] do_xdp_generic+0x505/0xd30 net/core/dev.c:5180 __netif_receive_skb_core+0x1ce9/0x4690 net/core/dev.c:5524 __netif_receive_skb_one_core net/core/dev.c:5702 [inline] __netif_receive_skb+0x12f/0x650 net/core/dev.c:5817 netif_receive_skb_internal net/core/dev.c:5903 [inline] netif_receive_skb+0x1e8/0x890 net/core/dev.c:5962 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+0xaed/0xd30 fs/read_write.c:679 ksys_write+0x18f/0x2b0 fs/read_write.c:731 page last free pid 5837 tgid 5837 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1127 [inline] free_unref_page+0xd3f/0x1010 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:3236 [inline] process_scheduled_works+0xa68/0x1840 kernel/workqueue.c:3317 worker_thread+0x870/0xd30 kernel/workqueue.c:3398 kthread+0x2f2/0x390 kernel/kthread.c:389 ret_from_fork+0x4d/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: 12278 Comm: syz.8.1456 Tainted: G B 6.13.0-rc7-syzkaller-00019-gc45323b7560e #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+0xfb1/0x1010 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/0x24 __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:5005 netif_receive_generic_xdp net/core/dev.c:5118 [inline] do_xdp_generic+0x757/0xd30 net/core/dev.c:5180 __netif_receive_skb_core+0x1ce9/0x4690 net/core/dev.c:5524 __netif_receive_skb_one_core net/core/dev.c:5702 [inline] __netif_receive_skb+0x12f/0x650 net/core/dev.c:5817 netif_receive_skb_internal net/core/dev.c:5903 [inline] netif_receive_skb+0x1e8/0x890 net/core/dev.c:5962 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+0xaed/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:0x7fc8a41847df 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:00007fc8a5049000 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007fc8a4375fa0 RCX: 00007fc8a41847df RDX: 0000000000011dc0 RSI: 0000000020000780 RDI: 00000000000000c8 RBP: 00007fc8a4201b08 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000011dc0 R11: 0000000000000293 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fc8a4375fa0 R15: 00007ffc0b8e2028 BUG: Bad page state in process syz.8.1456 pfn:56ec2 page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff888000000000 pfn:0x56ec2 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 dead000000000040 ffff888022ab0000 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 12278, tgid 12277 (syz.8.1456), ts 560487572014, free_ts 560341723845 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+0x365c/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:5073 [inline] netif_receive_generic_xdp net/core/dev.c:5112 [inline] do_xdp_generic+0x505/0xd30 net/core/dev.c:5180 __netif_receive_skb_core+0x1ce9/0x4690 net/core/dev.c:5524 __netif_receive_skb_one_core net/core/dev.c:5702 [inline] __netif_receive_skb+0x12f/0x650 net/core/dev.c:5817 netif_receive_skb_internal net/core/dev.c:5903 [inline] netif_receive_skb+0x1e8/0x890 net/core/dev.c:5962 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+0xaed/0xd30 fs/read_write.c:679 ksys_write+0x18f/0x2b0 fs/read_write.c:731 page last free pid 5837 tgid 5837 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1127 [inline] free_unref_page+0xd3f/0x1010 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:3236 [inline] process_scheduled_works+0xa68/0x1840 kernel/workqueue.c:3317 worker_thread+0x870/0xd30 kernel/workqueue.c:3398 kthread+0x2f2/0x390 kernel/kthread.c:389 ret_from_fork+0x4d/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: 12278 Comm: syz.8.1456 Tainted: G B 6.13.0-rc7-syzkaller-00019-gc45323b7560e #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+0xfb1/0x1010 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/0x24 __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:5005 netif_receive_generic_xdp net/core/dev.c:5118 [inline] do_xdp_generic+0x757/0xd30 net/core/dev.c:5180 __netif_receive_skb_core+0x1ce9/0x4690 net/core/dev.c:5524 __netif_receive_skb_one_core net/core/dev.c:5702 [inline] __netif_receive_skb+0x12f/0x650 net/core/dev.c:5817 netif_receive_skb_internal net/core/dev.c:5903 [inline] netif_receive_skb+0x1e8/0x890 net/core/dev.c:5962 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+0xaed/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:0x7fc8a41847df 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:00007fc8a5049000 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007fc8a4375fa0 RCX: 00007fc8a41847df RDX: 0000000000011dc0 RSI: 0000000020000780 RDI: 00000000000000c8 RBP: 00007fc8a4201b08 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000011dc0 R11: 0000000000000293 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fc8a4375fa0 R15: 00007ffc0b8e2028 BUG: Bad page state in process syz.8.1456 pfn:2a30c page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff888000000000 pfn:0x2a30c flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 dead000000000040 ffff888022ab0000 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 12278, tgid 12277 (syz.8.1456), ts 560487560134, free_ts 560341733916 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+0x365c/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:5073 [inline] netif_receive_generic_xdp net/core/dev.c:5112 [inline] do_xdp_generic+0x505/0xd30 net/core/dev.c:5180 __netif_receive_skb_core+0x1ce9/0x4690 net/core/dev.c:5524 __netif_receive_skb_one_core net/core/dev.c:5702 [inline] __netif_receive_skb+0x12f/0x650 net/core/dev.c:5817 netif_receive_skb_internal net/core/dev.c:5903 [inline] netif_receive_skb+0x1e8/0x890 net/core/dev.c:5962 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+0xaed/0xd30 fs/read_write.c:679 ksys_write+0x18f/0x2b0 fs/read_write.c:731 page last free pid 5837 tgid 5837 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1127 [inline] free_unref_page+0xd3f/0x1010 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:3236 [inline] process_scheduled_works+0xa68/0x1840 kernel/workqueue.c:3317 worker_thread+0x870/0xd30 kernel/workqueue.c:3398 kthread+0x2f2/0x390 kernel/kthread.c:389 ret_from_fork+0x4d/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: 12278 Comm: syz.8.1456 Tainted: G B 6.13.0-rc7-syzkaller-00019-gc45323b7560e #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+0xfb1/0x1010 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/0x24 __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:5005 netif_receive_generic_xdp net/core/dev.c:5118 [inline] do_xdp_generic+0x757/0xd30 net/core/dev.c:5180 __netif_receive_skb_core+0x1ce9/0x4690 net/core/dev.c:5524 __netif_receive_skb_one_core net/core/dev.c:5702 [inline] __netif_receive_skb+0x12f/0x650 net/core/dev.c:5817 netif_receive_skb_internal net/core/dev.c:5903 [inline] netif_receive_skb+0x1e8/0x890 net/core/dev.c:5962 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+0xaed/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:0x7fc8a41847df 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:00007fc8a5049000 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007fc8a4375fa0 RCX: 00007fc8a41847df RDX: 0000000000011dc0 RSI: 0000000020000780 RDI: 00000000000000c8 RBP: 00007fc8a4201b08 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000011dc0 R11: 0000000000000293 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fc8a4375fa0 R15: 00007ffc0b8e2028 BUG: Bad page state in process syz.8.1456 pfn:29878 page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff888029878000 pfn:0x29878 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 dead000000000040 ffff888022ab0000 0000000000000000 raw: ffff888029878000 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 12278, tgid 12277 (syz.8.1456), ts 560487548044, free_ts 560341787745 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+0x365c/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:5073 [inline] netif_receive_generic_xdp net/core/dev.c:5112 [inline] do_xdp_generic+0x505/0xd30 net/core/dev.c:5180 __netif_receive_skb_core+0x1ce9/0x4690 net/core/dev.c:5524 __netif_receive_skb_one_core net/core/dev.c:5702 [inline] __netif_receive_skb+0x12f/0x650 net/core/dev.c:5817 netif_receive_skb_internal net/core/dev.c:5903 [inline] netif_receive_skb+0x1e8/0x890 net/core/dev.c:5962 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+0xaed/0xd30 fs/read_write.c:679 ksys_write+0x18f/0x2b0 fs/read_write.c:731 page last free pid 5837 tgid 5837 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1127 [inline] free_unref_page+0xd3f/0x1010 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:3236 [inline] process_scheduled_works+0xa68/0x1840 kernel/workqueue.c:3317 worker_thread+0x870/0xd30 kernel/workqueue.c:3398 kthread+0x2f2/0x390 kernel/kthread.c:389 ret_from_fork+0x4d/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: 12278 Comm: syz.8.1456 Tainted: G B 6.13.0-rc7-syzkaller-00019-gc45323b7560e #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+0xfb1/0x1010 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/0x24 __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:5005 netif_receive_generic_xdp net/core/dev.c:5118 [inline] do_xdp_generic+0x757/0xd30 net/core/dev.c:5180 __netif_receive_skb_core+0x1ce9/0x4690 net/core/dev.c:5524 __netif_receive_skb_one_core net/core/dev.c:5702 [inline] __netif_receive_skb+0x12f/0x650 net/core/dev.c:5817 netif_receive_skb_internal net/core/dev.c:5903 [inline] netif_receive_skb+0x1e8/0x890 net/core/dev.c:5962 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+0xaed/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:0x7fc8a41847df 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:00007fc8a5049000 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007fc8a4375fa0 RCX: 00007fc8a41847df RDX: 0000000000011dc0 RSI: 0000000020000780 RDI: 00000000000000c8 RBP: 00007fc8a4201b08 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000011dc0 R11: 0000000000000293 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fc8a4375fa0 R15: 00007ffc0b8e2028 BUG: Bad page state in process syz.8.1456 pfn:5884c page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x5884c flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 dead000000000040 ffff888022ab0000 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 12278, tgid 12277 (syz.8.1456), ts 560487536384, free_ts 560341797095 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+0x365c/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:5073 [inline] netif_receive_generic_xdp net/core/dev.c:5112 [inline] do_xdp_generic+0x505/0xd30 net/core/dev.c:5180 __netif_receive_skb_core+0x1ce9/0x4690 net/core/dev.c:5524 __netif_receive_skb_one_core net/core/dev.c:5702 [inline] __netif_receive_skb+0x12f/0x650 net/core/dev.c:5817 netif_receive_skb_internal net/core/dev.c:5903 [inline] netif_receive_skb+0x1e8/0x890 net/core/dev.c:5962 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+0xaed/0xd30 fs/read_write.c:679 ksys_write+0x18f/0x2b0 fs/read_write.c:731 page last free pid 5837 tgid 5837 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1127 [inline] free_unref_page+0xd3f/0x1010 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:3236 [inline] process_scheduled_works+0xa68/0x1840 kernel/workqueue.c:3317 worker_thread+0x870/0xd30 kernel/workqueue.c:3398 kthread+0x2f2/0x390 kernel/kthread.c:389 ret_from_fork+0x4d/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: 12278 Comm: syz.8.1456 Tainted: G B 6.13.0-rc7-syzkaller-00019-gc45323b7560e #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+0xfb1/0x1010 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/0x24 __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:5005 netif_receive_generic_xdp net/core/dev.c:5118 [inline] do_xdp_generic+0x757/0xd30 net/core/dev.c:5180 __netif_receive_skb_core+0x1ce9/0x4690 net/core/dev.c:5524 __netif_receive_skb_one_core net/core/dev.c:5702 [inline] __netif_receive_skb+0x12f/0x650 net/core/dev.c:5817 netif_receive_skb_internal net/core/dev.c:5903 [inline] netif_receive_skb+0x1e8/0x890 net/core/dev.c:5962 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+0xaed/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:0x7fc8a41847df 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:00007fc8a5049000 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007fc8a4375fa0 RCX: 00007fc8a41847df RDX: 0000000000011dc0 RSI: 0000000020000780 RDI: 00000000000000c8 RBP: 00007fc8a4201b08 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000011dc0 R11: 0000000000000293 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fc8a4375fa0 R15: 00007ffc0b8e2028 BUG: Bad page state in process syz.8.1456 pfn:58848 page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff88805884e000 pfn:0x58848 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 dead000000000040 ffff888022ab0000 0000000000000000 raw: ffff88805884e000 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 12278, tgid 12277 (syz.8.1456), ts 560487524804, free_ts 560341806855 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+0x365c/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:5073 [inline] netif_receive_generic_xdp net/core/dev.c:5112 [inline] do_xdp_generic+0x505/0xd30 net/core/dev.c:5180 __netif_receive_skb_core+0x1ce9/0x4690 net/core/dev.c:5524 __netif_receive_skb_one_core net/core/dev.c:5702 [inline] __netif_receive_skb+0x12f/0x650 net/core/dev.c:5817 netif_receive_skb_internal net/core/dev.c:5903 [inline] netif_receive_skb+0x1e8/0x890 net/core/dev.c:5962 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+0xaed/0xd30 fs/read_write.c:679 ksys_write+0x18f/0x2b0 fs/read_write.c:731 page last free pid 5837 tgid 5837 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1127 [inline] free_unref_page+0xd3f/0x1010 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:3236 [inline] process_scheduled_works+0xa68/0x1840 kernel/workqueue.c:3317 worker_thread+0x870/0xd30 kernel/workqueue.c:3398 kthread+0x2f2/0x390 kernel/kthread.c:389 ret_from_fork+0x4d/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: 12278 Comm: syz.8.1456 Tainted: G B 6.13.0-rc7-syzkaller-00019-gc45323b7560e #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+0xfb1/0x1010 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/0x24 __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:5005 netif_receive_generic_xdp net/core/dev.c:5118 [inline] do_xdp_generic+0x757/0xd30 net/core/dev.c:5180 __netif_receive_skb_core+0x1ce9/0x4690 net/core/dev.c:5524 __netif_receive_skb_one_core net/core/dev.c:5702 [inline] __netif_receive_skb+0x12f/0x650 net/core/dev.c:5817 netif_receive_skb_internal net/core/dev.c:5903 [inline] netif_receive_skb+0x1e8/0x890 net/core/dev.c:5962 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+0xaed/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:0x7fc8a41847df 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:00007fc8a5049000 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007fc8a4375fa0 RCX: 00007fc8a41847df RDX: 0000000000011dc0 RSI: 0000000020000780 RDI: 00000000000000c8 RBP: 00007fc8a4201b08 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000011dc0 R11: 0000000000000293 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fc8a4375fa0 R15: 00007ffc0b8e2028