BUG: Bad page state in process syz.3.2183 pfn:4bf62 page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff888000000000 pfn:0x4bf62 flags: 0x4fff00000000000(node=1|zone=1|lastcpupid=0x7ff) raw: 04fff00000000000 dead000000000040 ffff88801f1b5000 0000000000000000 raw: ffff888000000000 3fffffffffffffff 00000000ffffffff 0000000000000000 page dumped because: page_pool leak page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0x2820(GFP_ATOMIC|__GFP_NOWARN), pid 12671, tgid 12670 (syz.3.2183), ts 341334725138, free_ts 340755729067 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x181/0x1b0 mm/page_alloc.c:1551 prep_new_page mm/page_alloc.c:1559 [inline] get_page_from_freelist+0xfce/0x2f80 mm/page_alloc.c:3477 __alloc_frozen_pages_noprof+0x221/0x2470 mm/page_alloc.c:4740 __alloc_pages_noprof mm/page_alloc.c:4774 [inline] alloc_pages_bulk_noprof+0x6f9/0x1390 mm/page_alloc.c:4694 alloc_pages_bulk_node_noprof include/linux/gfp.h:235 [inline] __page_pool_alloc_pages_slow+0x18c/0x770 net/core/page_pool.c:542 page_pool_alloc_netmems net/core/page_pool.c:593 [inline] page_pool_alloc_netmems+0xc4/0x160 net/core/page_pool.c:580 page_pool_alloc_frag_netmem+0x220/0x760 net/core/page_pool.c:998 page_pool_alloc_netmem include/net/page_pool/helpers.h:131 [inline] page_pool_alloc include/net/page_pool/helpers.h:160 [inline] page_pool_dev_alloc include/net/page_pool/helpers.h:181 [inline] skb_pp_cow_data+0x571/0xf10 net/core/skbuff.c:893 skb_cow_data_for_xdp+0x88/0xb0 net/core/skbuff.c:927 netif_skb_check_for_xdp net/core/dev.c:5259 [inline] netif_receive_generic_xdp net/core/dev.c:5298 [inline] do_xdp_generic+0x3f1/0xe70 net/core/dev.c:5366 tun_get_user+0x1e04/0x3e50 drivers/net/tun.c:1929 tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:2053 new_sync_write fs/read_write.c:591 [inline] vfs_write+0x5ae/0x1150 fs/read_write.c:684 ksys_write+0x12b/0x250 fs/read_write.c:736 do_syscall_32_irqs_on arch/x86/entry/common.c:165 [inline] __do_fast_syscall_32+0x73/0x120 arch/x86/entry/common.c:387 do_fast_syscall_32+0x32/0x80 arch/x86/entry/common.c:412 page last free pid 0 tgid 0 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1127 [inline] free_frozen_pages+0x6db/0xfb0 mm/page_alloc.c:2660 pagetable_free include/linux/mm.h:2923 [inline] pagetable_dtor_free include/linux/mm.h:3021 [inline] __tlb_remove_table include/asm-generic/tlb.h:216 [inline] __tlb_remove_table_free mm/mmu_gather.c:227 [inline] tlb_remove_table_rcu+0x116/0x1a0 mm/mmu_gather.c:282 rcu_do_batch kernel/rcu/tree.c:2546 [inline] rcu_core+0x79d/0x14d0 kernel/rcu/tree.c:2802 handle_softirqs+0x213/0x8f0 kernel/softirq.c:561 __do_softirq kernel/softirq.c:595 [inline] invoke_softirq kernel/softirq.c:435 [inline] __irq_exit_rcu+0x109/0x170 kernel/softirq.c:662 irq_exit_rcu+0x9/0x30 kernel/softirq.c:678 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1049 [inline] sysvec_apic_timer_interrupt+0xa4/0xc0 arch/x86/kernel/apic/apic.c:1049 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702 Modules linked in: CPU: 0 UID: 0 PID: 12671 Comm: syz.3.2183 Not tainted 6.14.0-syzkaller-00624-g2f2d52945852 #0 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x16c/0x1f0 lib/dump_stack.c:120 bad_page+0xb3/0x1f0 mm/page_alloc.c:501 free_page_is_bad_report mm/page_alloc.c:913 [inline] free_page_is_bad mm/page_alloc.c:923 [inline] free_pages_prepare mm/page_alloc.c:1119 [inline] free_frozen_pages+0x701/0xfb0 mm/page_alloc.c:2660 page_frag_free+0x255/0x2a0 mm/page_frag_cache.c:169 __xdp_return+0x363/0xac0 net/core/xdp.c:447 bpf_xdp_shrink_data net/core/filter.c:4155 [inline] bpf_xdp_frags_shrink_tail net/core/filter.c:4175 [inline] ____bpf_xdp_adjust_tail net/core/filter.c:4200 [inline] bpf_xdp_adjust_tail+0x9de/0xf70 net/core/filter.c:4193 bpf_prog_f476d5219b92964a+0x1e/0x20 __bpf_prog_run include/linux/filter.h:692 [inline] bpf_prog_run_xdp include/net/xdp.h:654 [inline] bpf_prog_run_generic_xdp+0xe33/0x1500 net/core/dev.c:5191 netif_receive_generic_xdp net/core/dev.c:5304 [inline] do_xdp_generic+0x70a/0xe70 net/core/dev.c:5366 tun_get_user+0x1e04/0x3e50 drivers/net/tun.c:1929 tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:2053 new_sync_write fs/read_write.c:591 [inline] vfs_write+0x5ae/0x1150 fs/read_write.c:684 ksys_write+0x12b/0x250 fs/read_write.c:736 do_syscall_32_irqs_on arch/x86/entry/common.c:165 [inline] __do_fast_syscall_32+0x73/0x120 arch/x86/entry/common.c:387 do_fast_syscall_32+0x32/0x80 arch/x86/entry/common.c:412 entry_SYSENTER_compat_after_hwframe+0x84/0x8e RIP: 0023:0xf744e579 Code: b8 01 10 06 03 74 b4 01 10 07 03 74 b0 01 10 08 03 74 d8 01 00 00 00 00 00 00 00 00 00 00 00 00 00 51 52 55 89 e5 0f 34 cd 80 <5d> 5a 59 c3 90 90 90 90 8d b4 26 00 00 00 00 8d b4 26 00 00 00 00 RSP: 002b:00000000f50d6520 EFLAGS: 00000293 ORIG_RAX: 0000000000000004 RAX: ffffffffffffffda RBX: 00000000000000c8 RCX: 0000000080000a80 RDX: 000000000000fdef RSI: 00000000f743cff4 RDI: 0000000000000000 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000296 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 BUG: Bad page state in process syz.3.2183 pfn:4b8ab page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x4b8ab flags: 0x4fff00000000000(node=1|zone=1|lastcpupid=0x7ff) raw: 04fff00000000000 dead000000000040 ffff88801f1b5000 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 12671, tgid 12670 (syz.3.2183), ts 341334720242, free_ts 340755765495 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x181/0x1b0 mm/page_alloc.c:1551 prep_new_page mm/page_alloc.c:1559 [inline] get_page_from_freelist+0xfce/0x2f80 mm/page_alloc.c:3477 __alloc_frozen_pages_noprof+0x221/0x2470 mm/page_alloc.c:4740 __alloc_pages_noprof mm/page_alloc.c:4774 [inline] alloc_pages_bulk_noprof+0x6f9/0x1390 mm/page_alloc.c:4694 alloc_pages_bulk_node_noprof include/linux/gfp.h:235 [inline] __page_pool_alloc_pages_slow+0x18c/0x770 net/core/page_pool.c:542 page_pool_alloc_netmems net/core/page_pool.c:593 [inline] page_pool_alloc_netmems+0xc4/0x160 net/core/page_pool.c:580 page_pool_alloc_netmem include/net/page_pool/helpers.h:128 [inline] page_pool_alloc include/net/page_pool/helpers.h:160 [inline] page_pool_dev_alloc include/net/page_pool/helpers.h:181 [inline] skb_pp_cow_data+0x776/0xf10 net/core/skbuff.c:893 skb_cow_data_for_xdp+0x88/0xb0 net/core/skbuff.c:927 netif_skb_check_for_xdp net/core/dev.c:5259 [inline] netif_receive_generic_xdp net/core/dev.c:5298 [inline] do_xdp_generic+0x3f1/0xe70 net/core/dev.c:5366 tun_get_user+0x1e04/0x3e50 drivers/net/tun.c:1929 tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:2053 new_sync_write fs/read_write.c:591 [inline] vfs_write+0x5ae/0x1150 fs/read_write.c:684 ksys_write+0x12b/0x250 fs/read_write.c:736 do_syscall_32_irqs_on arch/x86/entry/common.c:165 [inline] __do_fast_syscall_32+0x73/0x120 arch/x86/entry/common.c:387 do_fast_syscall_32+0x32/0x80 arch/x86/entry/common.c:412 entry_SYSENTER_compat_after_hwframe+0x84/0x8e page last free pid 0 tgid 0 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1127 [inline] free_frozen_pages+0x6db/0xfb0 mm/page_alloc.c:2660 pagetable_free include/linux/mm.h:2923 [inline] pagetable_dtor_free include/linux/mm.h:3021 [inline] __tlb_remove_table include/asm-generic/tlb.h:216 [inline] __tlb_remove_table_free mm/mmu_gather.c:227 [inline] tlb_remove_table_rcu+0x116/0x1a0 mm/mmu_gather.c:282 rcu_do_batch kernel/rcu/tree.c:2546 [inline] rcu_core+0x79d/0x14d0 kernel/rcu/tree.c:2802 handle_softirqs+0x213/0x8f0 kernel/softirq.c:561 __do_softirq kernel/softirq.c:595 [inline] invoke_softirq kernel/softirq.c:435 [inline] __irq_exit_rcu+0x109/0x170 kernel/softirq.c:662 irq_exit_rcu+0x9/0x30 kernel/softirq.c:678 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1049 [inline] sysvec_apic_timer_interrupt+0xa4/0xc0 arch/x86/kernel/apic/apic.c:1049 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702 Modules linked in: CPU: 0 UID: 0 PID: 12671 Comm: syz.3.2183 Tainted: G B 6.14.0-syzkaller-00624-g2f2d52945852 #0 Tainted: [B]=BAD_PAGE Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x16c/0x1f0 lib/dump_stack.c:120 bad_page+0xb3/0x1f0 mm/page_alloc.c:501 free_page_is_bad_report mm/page_alloc.c:913 [inline] free_page_is_bad mm/page_alloc.c:923 [inline] free_pages_prepare mm/page_alloc.c:1119 [inline] free_frozen_pages+0x701/0xfb0 mm/page_alloc.c:2660 page_frag_free+0x255/0x2a0 mm/page_frag_cache.c:169 __xdp_return+0x363/0xac0 net/core/xdp.c:447 bpf_xdp_shrink_data net/core/filter.c:4155 [inline] bpf_xdp_frags_shrink_tail net/core/filter.c:4175 [inline] ____bpf_xdp_adjust_tail net/core/filter.c:4200 [inline] bpf_xdp_adjust_tail+0x9de/0xf70 net/core/filter.c:4193 bpf_prog_f476d5219b92964a+0x1e/0x20 __bpf_prog_run include/linux/filter.h:692 [inline] bpf_prog_run_xdp include/net/xdp.h:654 [inline] bpf_prog_run_generic_xdp+0xe33/0x1500 net/core/dev.c:5191 netif_receive_generic_xdp net/core/dev.c:5304 [inline] do_xdp_generic+0x70a/0xe70 net/core/dev.c:5366 tun_get_user+0x1e04/0x3e50 drivers/net/tun.c:1929 tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:2053 new_sync_write fs/read_write.c:591 [inline] vfs_write+0x5ae/0x1150 fs/read_write.c:684 ksys_write+0x12b/0x250 fs/read_write.c:736 do_syscall_32_irqs_on arch/x86/entry/common.c:165 [inline] __do_fast_syscall_32+0x73/0x120 arch/x86/entry/common.c:387 do_fast_syscall_32+0x32/0x80 arch/x86/entry/common.c:412 entry_SYSENTER_compat_after_hwframe+0x84/0x8e RIP: 0023:0xf744e579 Code: b8 01 10 06 03 74 b4 01 10 07 03 74 b0 01 10 08 03 74 d8 01 00 00 00 00 00 00 00 00 00 00 00 00 00 51 52 55 89 e5 0f 34 cd 80 <5d> 5a 59 c3 90 90 90 90 8d b4 26 00 00 00 00 8d b4 26 00 00 00 00 RSP: 002b:00000000f50d6520 EFLAGS: 00000293 ORIG_RAX: 0000000000000004 RAX: ffffffffffffffda RBX: 00000000000000c8 RCX: 0000000080000a80 RDX: 000000000000fdef RSI: 00000000f743cff4 RDI: 0000000000000000 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000296 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 BUG: Bad page state in process syz.3.2183 pfn:49a99 page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x49a99 flags: 0x4fff00000000000(node=1|zone=1|lastcpupid=0x7ff) raw: 04fff00000000000 dead000000000040 ffff88801f1b5000 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 12671, tgid 12670 (syz.3.2183), ts 341334716122, free_ts 340755775006 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x181/0x1b0 mm/page_alloc.c:1551 prep_new_page mm/page_alloc.c:1559 [inline] get_page_from_freelist+0xfce/0x2f80 mm/page_alloc.c:3477 __alloc_frozen_pages_noprof+0x221/0x2470 mm/page_alloc.c:4740 __alloc_pages_noprof mm/page_alloc.c:4774 [inline] alloc_pages_bulk_noprof+0x6f9/0x1390 mm/page_alloc.c:4694 alloc_pages_bulk_node_noprof include/linux/gfp.h:235 [inline] __page_pool_alloc_pages_slow+0x18c/0x770 net/core/page_pool.c:542 page_pool_alloc_netmems net/core/page_pool.c:593 [inline] page_pool_alloc_netmems+0xc4/0x160 net/core/page_pool.c:580 page_pool_alloc_netmem include/net/page_pool/helpers.h:128 [inline] page_pool_alloc include/net/page_pool/helpers.h:160 [inline] page_pool_dev_alloc include/net/page_pool/helpers.h:181 [inline] skb_pp_cow_data+0x776/0xf10 net/core/skbuff.c:893 skb_cow_data_for_xdp+0x88/0xb0 net/core/skbuff.c:927 netif_skb_check_for_xdp net/core/dev.c:5259 [inline] netif_receive_generic_xdp net/core/dev.c:5298 [inline] do_xdp_generic+0x3f1/0xe70 net/core/dev.c:5366 tun_get_user+0x1e04/0x3e50 drivers/net/tun.c:1929 tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:2053 new_sync_write fs/read_write.c:591 [inline] vfs_write+0x5ae/0x1150 fs/read_write.c:684 ksys_write+0x12b/0x250 fs/read_write.c:736 do_syscall_32_irqs_on arch/x86/entry/common.c:165 [inline] __do_fast_syscall_32+0x73/0x120 arch/x86/entry/common.c:387 do_fast_syscall_32+0x32/0x80 arch/x86/entry/common.c:412 entry_SYSENTER_compat_after_hwframe+0x84/0x8e page last free pid 0 tgid 0 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1127 [inline] free_frozen_pages+0x6db/0xfb0 mm/page_alloc.c:2660 pagetable_free include/linux/mm.h:2923 [inline] pagetable_dtor_free include/linux/mm.h:3021 [inline] __tlb_remove_table include/asm-generic/tlb.h:216 [inline] __tlb_remove_table_free mm/mmu_gather.c:227 [inline] tlb_remove_table_rcu+0x116/0x1a0 mm/mmu_gather.c:282 rcu_do_batch kernel/rcu/tree.c:2546 [inline] rcu_core+0x79d/0x14d0 kernel/rcu/tree.c:2802 handle_softirqs+0x213/0x8f0 kernel/softirq.c:561 __do_softirq kernel/softirq.c:595 [inline] invoke_softirq kernel/softirq.c:435 [inline] __irq_exit_rcu+0x109/0x170 kernel/softirq.c:662 irq_exit_rcu+0x9/0x30 kernel/softirq.c:678 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1049 [inline] sysvec_apic_timer_interrupt+0xa4/0xc0 arch/x86/kernel/apic/apic.c:1049 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702 Modules linked in: CPU: 0 UID: 0 PID: 12671 Comm: syz.3.2183 Tainted: G B 6.14.0-syzkaller-00624-g2f2d52945852 #0 Tainted: [B]=BAD_PAGE Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x16c/0x1f0 lib/dump_stack.c:120 bad_page+0xb3/0x1f0 mm/page_alloc.c:501 free_page_is_bad_report mm/page_alloc.c:913 [inline] free_page_is_bad mm/page_alloc.c:923 [inline] free_pages_prepare mm/page_alloc.c:1119 [inline] free_frozen_pages+0x701/0xfb0 mm/page_alloc.c:2660 page_frag_free+0x255/0x2a0 mm/page_frag_cache.c:169 __xdp_return+0x363/0xac0 net/core/xdp.c:447 bpf_xdp_shrink_data net/core/filter.c:4155 [inline] bpf_xdp_frags_shrink_tail net/core/filter.c:4175 [inline] ____bpf_xdp_adjust_tail net/core/filter.c:4200 [inline] bpf_xdp_adjust_tail+0x9de/0xf70 net/core/filter.c:4193 bpf_prog_f476d5219b92964a+0x1e/0x20 __bpf_prog_run include/linux/filter.h:692 [inline] bpf_prog_run_xdp include/net/xdp.h:654 [inline] bpf_prog_run_generic_xdp+0xe33/0x1500 net/core/dev.c:5191 netif_receive_generic_xdp net/core/dev.c:5304 [inline] do_xdp_generic+0x70a/0xe70 net/core/dev.c:5366 tun_get_user+0x1e04/0x3e50 drivers/net/tun.c:1929 tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:2053 new_sync_write fs/read_write.c:591 [inline] vfs_write+0x5ae/0x1150 fs/read_write.c:684 ksys_write+0x12b/0x250 fs/read_write.c:736 do_syscall_32_irqs_on arch/x86/entry/common.c:165 [inline] __do_fast_syscall_32+0x73/0x120 arch/x86/entry/common.c:387 do_fast_syscall_32+0x32/0x80 arch/x86/entry/common.c:412 entry_SYSENTER_compat_after_hwframe+0x84/0x8e RIP: 0023:0xf744e579 Code: b8 01 10 06 03 74 b4 01 10 07 03 74 b0 01 10 08 03 74 d8 01 00 00 00 00 00 00 00 00 00 00 00 00 00 51 52 55 89 e5 0f 34 cd 80 <5d> 5a 59 c3 90 90 90 90 8d b4 26 00 00 00 00 8d b4 26 00 00 00 00 RSP: 002b:00000000f50d6520 EFLAGS: 00000293 ORIG_RAX: 0000000000000004 RAX: ffffffffffffffda RBX: 00000000000000c8 RCX: 0000000080000a80 RDX: 000000000000fdef RSI: 00000000f743cff4 RDI: 0000000000000000 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000296 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 BUG: Bad page state in process syz.3.2183 pfn:4c256 page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x4c256 flags: 0x4fff00000000000(node=1|zone=1|lastcpupid=0x7ff) raw: 04fff00000000000 dead000000000040 ffff88801f1b5000 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 12671, tgid 12670 (syz.3.2183), ts 341334711754, free_ts 340755784700 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x181/0x1b0 mm/page_alloc.c:1551 prep_new_page mm/page_alloc.c:1559 [inline] get_page_from_freelist+0xfce/0x2f80 mm/page_alloc.c:3477 __alloc_frozen_pages_noprof+0x221/0x2470 mm/page_alloc.c:4740 __alloc_pages_noprof mm/page_alloc.c:4774 [inline] alloc_pages_bulk_noprof+0x6f9/0x1390 mm/page_alloc.c:4694 alloc_pages_bulk_node_noprof include/linux/gfp.h:235 [inline] __page_pool_alloc_pages_slow+0x18c/0x770 net/core/page_pool.c:542 page_pool_alloc_netmems net/core/page_pool.c:593 [inline] page_pool_alloc_netmems+0xc4/0x160 net/core/page_pool.c:580 page_pool_alloc_netmem include/net/page_pool/helpers.h:128 [inline] page_pool_alloc include/net/page_pool/helpers.h:160 [inline] page_pool_dev_alloc include/net/page_pool/helpers.h:181 [inline] skb_pp_cow_data+0x776/0xf10 net/core/skbuff.c:893 skb_cow_data_for_xdp+0x88/0xb0 net/core/skbuff.c:927 netif_skb_check_for_xdp net/core/dev.c:5259 [inline] netif_receive_generic_xdp net/core/dev.c:5298 [inline] do_xdp_generic+0x3f1/0xe70 net/core/dev.c:5366 tun_get_user+0x1e04/0x3e50 drivers/net/tun.c:1929 tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:2053 new_sync_write fs/read_write.c:591 [inline] vfs_write+0x5ae/0x1150 fs/read_write.c:684 ksys_write+0x12b/0x250 fs/read_write.c:736 do_syscall_32_irqs_on arch/x86/entry/common.c:165 [inline] __do_fast_syscall_32+0x73/0x120 arch/x86/entry/common.c:387 do_fast_syscall_32+0x32/0x80 arch/x86/entry/common.c:412 entry_SYSENTER_compat_after_hwframe+0x84/0x8e page last free pid 0 tgid 0 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1127 [inline] free_frozen_pages+0x6db/0xfb0 mm/page_alloc.c:2660 pagetable_free include/linux/mm.h:2923 [inline] pagetable_dtor_free include/linux/mm.h:3021 [inline] __tlb_remove_table include/asm-generic/tlb.h:216 [inline] __tlb_remove_table_free mm/mmu_gather.c:227 [inline] tlb_remove_table_rcu+0x116/0x1a0 mm/mmu_gather.c:282 rcu_do_batch kernel/rcu/tree.c:2546 [inline] rcu_core+0x79d/0x14d0 kernel/rcu/tree.c:2802 handle_softirqs+0x213/0x8f0 kernel/softirq.c:561 __do_softirq kernel/softirq.c:595 [inline] invoke_softirq kernel/softirq.c:435 [inline] __irq_exit_rcu+0x109/0x170 kernel/softirq.c:662 irq_exit_rcu+0x9/0x30 kernel/softirq.c:678 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1049 [inline] sysvec_apic_timer_interrupt+0xa4/0xc0 arch/x86/kernel/apic/apic.c:1049 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702 Modules linked in: CPU: 0 UID: 0 PID: 12671 Comm: syz.3.2183 Tainted: G B 6.14.0-syzkaller-00624-g2f2d52945852 #0 Tainted: [B]=BAD_PAGE Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x16c/0x1f0 lib/dump_stack.c:120 bad_page+0xb3/0x1f0 mm/page_alloc.c:501 free_page_is_bad_report mm/page_alloc.c:913 [inline] free_page_is_bad mm/page_alloc.c:923 [inline] free_pages_prepare mm/page_alloc.c:1119 [inline] free_frozen_pages+0x701/0xfb0 mm/page_alloc.c:2660 page_frag_free+0x255/0x2a0 mm/page_frag_cache.c:169 __xdp_return+0x363/0xac0 net/core/xdp.c:447 bpf_xdp_shrink_data net/core/filter.c:4155 [inline] bpf_xdp_frags_shrink_tail net/core/filter.c:4175 [inline] ____bpf_xdp_adjust_tail net/core/filter.c:4200 [inline] bpf_xdp_adjust_tail+0x9de/0xf70 net/core/filter.c:4193 bpf_prog_f476d5219b92964a+0x1e/0x20 __bpf_prog_run include/linux/filter.h:692 [inline] bpf_prog_run_xdp include/net/xdp.h:654 [inline] bpf_prog_run_generic_xdp+0xe33/0x1500 net/core/dev.c:5191 netif_receive_generic_xdp net/core/dev.c:5304 [inline] do_xdp_generic+0x70a/0xe70 net/core/dev.c:5366 tun_get_user+0x1e04/0x3e50 drivers/net/tun.c:1929 tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:2053 new_sync_write fs/read_write.c:591 [inline] vfs_write+0x5ae/0x1150 fs/read_write.c:684 ksys_write+0x12b/0x250 fs/read_write.c:736 do_syscall_32_irqs_on arch/x86/entry/common.c:165 [inline] __do_fast_syscall_32+0x73/0x120 arch/x86/entry/common.c:387 do_fast_syscall_32+0x32/0x80 arch/x86/entry/common.c:412 entry_SYSENTER_compat_after_hwframe+0x84/0x8e RIP: 0023:0xf744e579 Code: b8 01 10 06 03 74 b4 01 10 07 03 74 b0 01 10 08 03 74 d8 01 00 00 00 00 00 00 00 00 00 00 00 00 00 51 52 55 89 e5 0f 34 cd 80 <5d> 5a 59 c3 90 90 90 90 8d b4 26 00 00 00 00 8d b4 26 00 00 00 00 RSP: 002b:00000000f50d6520 EFLAGS: 00000293 ORIG_RAX: 0000000000000004 RAX: ffffffffffffffda RBX: 00000000000000c8 RCX: 0000000080000a80 RDX: 000000000000fdef RSI: 00000000f743cff4 RDI: 0000000000000000 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000296 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 BUG: Bad page state in process syz.3.2183 pfn:4f0ba page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff888000000000 pfn:0x4f0ba flags: 0x4fff00000000000(node=1|zone=1|lastcpupid=0x7ff) raw: 04fff00000000000 dead000000000040 ffff88801f1b5000 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 12671, tgid 12670 (syz.3.2183), ts 341334681971, free_ts 340755794141 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x181/0x1b0 mm/page_alloc.c:1551 prep_new_page mm/page_alloc.c:1559 [inline] get_page_from_freelist+0xfce/0x2f80 mm/page_alloc.c:3477 __alloc_frozen_pages_noprof+0x221/0x2470 mm/page_alloc.c:4740 __alloc_pages_noprof mm/page_alloc.c:4774 [inline] alloc_pages_bulk_noprof+0x6f9/0x1390 mm/page_alloc.c:4694 alloc_pages_bulk_node_noprof include/linux/gfp.h:235 [inline] __page_pool_alloc_pages_slow+0x18c/0x770 net/core/page_pool.c:542 page_pool_alloc_netmems net/core/page_pool.c:593 [inline] page_pool_alloc_netmems+0xc4/0x160 net/core/page_pool.c:580 page_pool_alloc_netmem include/net/page_pool/helpers.h:128 [inline] page_pool_alloc include/net/page_pool/helpers.h:160 [inline] page_pool_dev_alloc include/net/page_pool/helpers.h:181 [inline] skb_pp_cow_data+0x776/0xf10 net/core/skbuff.c:893 skb_cow_data_for_xdp+0x88/0xb0 net/core/skbuff.c:927 netif_skb_check_for_xdp net/core/dev.c:5259 [inline] netif_receive_generic_xdp net/core/dev.c:5298 [inline] do_xdp_generic+0x3f1/0xe70 net/core/dev.c:5366 tun_get_user+0x1e04/0x3e50 drivers/net/tun.c:1929 tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:2053 new_sync_write fs/read_write.c:591 [inline] vfs_write+0x5ae/0x1150 fs/read_write.c:684 ksys_write+0x12b/0x250 fs/read_write.c:736 do_syscall_32_irqs_on arch/x86/entry/common.c:165 [inline] __do_fast_syscall_32+0x73/0x120 arch/x86/entry/common.c:387 do_fast_syscall_32+0x32/0x80 arch/x86/entry/common.c:412 entry_SYSENTER_compat_after_hwframe+0x84/0x8e page last free pid 0 tgid 0 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1127 [inline] free_frozen_pages+0x6db/0xfb0 mm/page_alloc.c:2660 pagetable_free include/linux/mm.h:2923 [inline] pagetable_dtor_free include/linux/mm.h:3021 [inline] __tlb_remove_table include/asm-generic/tlb.h:216 [inline] __tlb_remove_table_free mm/mmu_gather.c:227 [inline] tlb_remove_table_rcu+0x116/0x1a0 mm/mmu_gather.c:282 rcu_do_batch kernel/rcu/tree.c:2546 [inline] rcu_core+0x79d/0x14d0 kernel/rcu/tree.c:2802 handle_softirqs+0x213/0x8f0 kernel/softirq.c:561 __do_softirq kernel/softirq.c:595 [inline] invoke_softirq kernel/softirq.c:435 [inline] __irq_exit_rcu+0x109/0x170 kernel/softirq.c:662 irq_exit_rcu+0x9/0x30 kernel/softirq.c:678 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1049 [inline] sysvec_apic_timer_interrupt+0xa4/0xc0 arch/x86/kernel/apic/apic.c:1049 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702 Modules linked in: CPU: 0 UID: 0 PID: 12671 Comm: syz.3.2183 Tainted: G B 6.14.0-syzkaller-00624-g2f2d52945852 #0 Tainted: [B]=BAD_PAGE Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x16c/0x1f0 lib/dump_stack.c:120 bad_page+0xb3/0x1f0 mm/page_alloc.c:501 free_page_is_bad_report mm/page_alloc.c:913 [inline] free_page_is_bad mm/page_alloc.c:923 [inline] free_pages_prepare mm/page_alloc.c:1119 [inline] free_frozen_pages+0x701/0xfb0 mm/page_alloc.c:2660 page_frag_free+0x255/0x2a0 mm/page_frag_cache.c:169 __xdp_return+0x363/0xac0 net/core/xdp.c:447 bpf_xdp_shrink_data net/core/filter.c:4155 [inline] bpf_xdp_frags_shrink_tail net/core/filter.c:4175 [inline] ____bpf_xdp_adjust_tail net/core/filter.c:4200 [inline] bpf_xdp_adjust_tail+0x9de/0xf70 net/core/filter.c:4193 bpf_prog_f476d5219b92964a+0x1e/0x20 __bpf_prog_run include/linux/filter.h:692 [inline] bpf_prog_run_xdp include/net/xdp.h:654 [inline] bpf_prog_run_generic_xdp+0xe33/0x1500 net/core/dev.c:5191 netif_receive_generic_xdp net/core/dev.c:5304 [inline] do_xdp_generic+0x70a/0xe70 net/core/dev.c:5366 tun_get_user+0x1e04/0x3e50 drivers/net/tun.c:1929 tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:2053 new_sync_write fs/read_write.c:591 [inline] vfs_write+0x5ae/0x1150 fs/read_write.c:684 ksys_write+0x12b/0x250 fs/read_write.c:736 do_syscall_32_irqs_on arch/x86/entry/common.c:165 [inline] __do_fast_syscall_32+0x73/0x120 arch/x86/entry/common.c:387 do_fast_syscall_32+0x32/0x80 arch/x86/entry/common.c:412 entry_SYSENTER_compat_after_hwframe+0x84/0x8e RIP: 0023:0xf744e579 Code: b8 01 10 06 03 74 b4 01 10 07 03 74 b0 01 10 08 03 74 d8 01 00 00 00 00 00 00 00 00 00 00 00 00 00 51 52 55 89 e5 0f 34 cd 80 <5d> 5a 59 c3 90 90 90 90 8d b4 26 00 00 00 00 8d b4 26 00 00 00 00 RSP: 002b:00000000f50d6520 EFLAGS: 00000293 ORIG_RAX: 0000000000000004 RAX: ffffffffffffffda RBX: 00000000000000c8 RCX: 0000000080000a80 RDX: 000000000000fdef RSI: 00000000f743cff4 RDI: 0000000000000000 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000296 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 BUG: Bad page state in process syz.3.2183 pfn:5b8f0 page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff88805b8f0000 pfn:0x5b8f0 flags: 0x4fff00000000000(node=1|zone=1|lastcpupid=0x7ff) raw: 04fff00000000000 dead000000000040 ffff88801f1b5000 0000000000000000 raw: ffff88805b8f0000 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 12671, tgid 12670 (syz.3.2183), ts 341334677990, free_ts 340755850285 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x181/0x1b0 mm/page_alloc.c:1551 prep_new_page mm/page_alloc.c:1559 [inline] get_page_from_freelist+0xfce/0x2f80 mm/page_alloc.c:3477 __alloc_frozen_pages_noprof+0x221/0x2470 mm/page_alloc.c:4740 __alloc_pages_noprof mm/page_alloc.c:4774 [inline] alloc_pages_bulk_noprof+0x6f9/0x1390 mm/page_alloc.c:4694 alloc_pages_bulk_node_noprof include/linux/gfp.h:235 [inline] __page_pool_alloc_pages_slow+0x18c/0x770 net/core/page_pool.c:542 page_pool_alloc_netmems net/core/page_pool.c:593 [inline] page_pool_alloc_netmems+0xc4/0x160 net/core/page_pool.c:580 page_pool_alloc_netmem include/net/page_pool/helpers.h:128 [inline] page_pool_alloc include/net/page_pool/helpers.h:160 [inline] page_pool_dev_alloc include/net/page_pool/helpers.h:181 [inline] skb_pp_cow_data+0x776/0xf10 net/core/skbuff.c:893 skb_cow_data_for_xdp+0x88/0xb0 net/core/skbuff.c:927 netif_skb_check_for_xdp net/core/dev.c:5259 [inline] netif_receive_generic_xdp net/core/dev.c:5298 [inline] do_xdp_generic+0x3f1/0xe70 net/core/dev.c:5366 tun_get_user+0x1e04/0x3e50 drivers/net/tun.c:1929 tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:2053 new_sync_write fs/read_write.c:591 [inline] vfs_write+0x5ae/0x1150 fs/read_write.c:684 ksys_write+0x12b/0x250 fs/read_write.c:736 do_syscall_32_irqs_on arch/x86/entry/common.c:165 [inline] __do_fast_syscall_32+0x73/0x120 arch/x86/entry/common.c:387 do_fast_syscall_32+0x32/0x80 arch/x86/entry/common.c:412 entry_SYSENTER_compat_after_hwframe+0x84/0x8e page last free pid 0 tgid 0 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1127 [inline] free_frozen_pages+0x6db/0xfb0 mm/page_alloc.c:2660 pagetable_free include/linux/mm.h:2923 [inline] pagetable_dtor_free include/linux/mm.h:3021 [inline] __tlb_remove_table include/asm-generic/tlb.h:216 [inline] __tlb_remove_table_free mm/mmu_gather.c:227 [inline] tlb_remove_table_rcu+0x116/0x1a0 mm/mmu_gather.c:282 rcu_do_batch kernel/rcu/tree.c:2546 [inline] rcu_core+0x79d/0x14d0 kernel/rcu/tree.c:2802 handle_softirqs+0x213/0x8f0 kernel/softirq.c:561 __do_softirq kernel/softirq.c:595 [inline] invoke_softirq kernel/softirq.c:435 [inline] __irq_exit_rcu+0x109/0x170 kernel/softirq.c:662 irq_exit_rcu+0x9/0x30 kernel/softirq.c:678 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1049 [inline] sysvec_apic_timer_interrupt+0xa4/0xc0 arch/x86/kernel/apic/apic.c:1049 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702 Modules linked in: CPU: 0 UID: 0 PID: 12671 Comm: syz.3.2183 Tainted: G B 6.14.0-syzkaller-00624-g2f2d52945852 #0 Tainted: [B]=BAD_PAGE Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x16c/0x1f0 lib/dump_stack.c:120 bad_page+0xb3/0x1f0 mm/page_alloc.c:501 free_page_is_bad_report mm/page_alloc.c:913 [inline] free_page_is_bad mm/page_alloc.c:923 [inline] free_pages_prepare mm/page_alloc.c:1119 [inline] free_frozen_pages+0x701/0xfb0 mm/page_alloc.c:2660 page_frag_free+0x255/0x2a0 mm/page_frag_cache.c:169 __xdp_return+0x363/0xac0 net/core/xdp.c:447 bpf_xdp_shrink_data net/core/filter.c:4155 [inline] bpf_xdp_frags_shrink_tail net/core/filter.c:4175 [inline] ____bpf_xdp_adjust_tail net/core/filter.c:4200 [inline] bpf_xdp_adjust_tail+0x9de/0xf70 net/core/filter.c:4193 bpf_prog_f476d5219b92964a+0x1e/0x20 __bpf_prog_run include/linux/filter.h:692 [inline] bpf_prog_run_xdp include/net/xdp.h:654 [inline] bpf_prog_run_generic_xdp+0xe33/0x1500 net/core/dev.c:5191 netif_receive_generic_xdp net/core/dev.c:5304 [inline] do_xdp_generic+0x70a/0xe70 net/core/dev.c:5366 tun_get_user+0x1e04/0x3e50 drivers/net/tun.c:1929 tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:2053 new_sync_write fs/read_write.c:591 [inline] vfs_write+0x5ae/0x1150 fs/read_write.c:684 ksys_write+0x12b/0x250 fs/read_write.c:736 do_syscall_32_irqs_on arch/x86/entry/common.c:165 [inline] __do_fast_syscall_32+0x73/0x120 arch/x86/entry/common.c:387 do_fast_syscall_32+0x32/0x80 arch/x86/entry/common.c:412 entry_SYSENTER_compat_after_hwframe+0x84/0x8e RIP: 0023:0xf744e579 Code: b8 01 10 06 03 74 b4 01 10 07 03 74 b0 01 10 08 03 74 d8 01 00 00 00 00 00 00 00 00 00 00 00 00 00 51 52 55 89 e5 0f 34 cd 80 <5d> 5a 59 c3 90 90 90 90 8d b4 26 00 00 00 00 8d b4 26 00 00 00 00 RSP: 002b:00000000f50d6520 EFLAGS: 00000293 ORIG_RAX: 0000000000000004 RAX: ffffffffffffffda RBX: 00000000000000c8 RCX: 0000000080000a80 RDX: 000000000000fdef RSI: 00000000f743cff4 RDI: 0000000000000000 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000296 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 BUG: Bad page state in process syz.3.2183 pfn:71f1b page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x71f1b flags: 0x4fff00000000000(node=1|zone=1|lastcpupid=0x7ff) raw: 04fff00000000000 dead000000000040 ffff88801f1b5000 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 12671, tgid 12670 (syz.3.2183), ts 341334673455, free_ts 340755860194 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x181/0x1b0 mm/page_alloc.c:1551 prep_new_page mm/page_alloc.c:1559 [inline] get_page_from_freelist+0xfce/0x2f80 mm/page_alloc.c:3477 __alloc_frozen_pages_noprof+0x221/0x2470 mm/page_alloc.c:4740 __alloc_pages_noprof mm/page_alloc.c:4774 [inline] alloc_pages_bulk_noprof+0x6f9/0x1390 mm/page_alloc.c:4694 alloc_pages_bulk_node_noprof include/linux/gfp.h:235 [inline] __page_pool_alloc_pages_slow+0x18c/0x770 net/core/page_pool.c:542 page_pool_alloc_netmems net/core/page_pool.c:593 [inline] page_pool_alloc_netmems+0xc4/0x160 net/core/page_pool.c:580 page_pool_alloc_netmem include/net/page_pool/helpers.h:128 [inline] page_pool_alloc include/net/page_pool/helpers.h:160 [inline] page_pool_dev_alloc include/net/page_pool/helpers.h:181 [inline] skb_pp_cow_data+0x776/0xf10 net/core/skbuff.c:893 skb_cow_data_for_xdp+0x88/0xb0 net/core/skbuff.c:927 netif_skb_check_for_xdp net/core/dev.c:5259 [inline] netif_receive_generic_xdp net/core/dev.c:5298 [inline] do_xdp_generic+0x3f1/0xe70 net/core/dev.c:5366 tun_get_user+0x1e04/0x3e50 drivers/net/tun.c:1929 tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:2053 new_sync_write fs/read_write.c:591 [inline] vfs_write+0x5ae/0x1150 fs/read_write.c:684 ksys_write+0x12b/0x250 fs/read_write.c:736 do_syscall_32_irqs_on arch/x86/entry/common.c:165 [inline] __do_fast_syscall_32+0x73/0x120 arch/x86/entry/common.c:387 do_fast_syscall_32+0x32/0x80 arch/x86/entry/common.c:412 entry_SYSENTER_compat_after_hwframe+0x84/0x8e page last free pid 0 tgid 0 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1127 [inline] free_frozen_pages+0x6db/0xfb0 mm/page_alloc.c:2660 pagetable_free include/linux/mm.h:2923 [inline] pagetable_dtor_free include/linux/mm.h:3021 [inline] __tlb_remove_table include/asm-generic/tlb.h:216 [inline] __tlb_remove_table_free mm/mmu_gather.c:227 [inline] tlb_remove_table_rcu+0x116/0x1a0 mm/mmu_gather.c:282 rcu_do_batch kernel/rcu/tree.c:2546 [inline] rcu_core+0x79d/0x14d0 kernel/rcu/tree.c:2802 handle_softirqs+0x213/0x8f0 kernel/softirq.c:561 __do_softirq kernel/softirq.c:595 [inline] invoke_softirq kernel/softirq.c:435 [inline] __irq_exit_rcu+0x109/0x170 kernel/softirq.c:662 irq_exit_rcu+0x9/0x30 kernel/softirq.c:678 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1049 [inline] sysvec_apic_timer_interrupt+0xa4/0xc0 arch/x86/kernel/apic/apic.c:1049 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702 Modules linked in: CPU: 0 UID: 0 PID: 12671 Comm: syz.3.2183 Tainted: G B 6.14.0-syzkaller-00624-g2f2d52945852 #0 Tainted: [B]=BAD_PAGE Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x16c/0x1f0 lib/dump_stack.c:120 bad_page+0xb3/0x1f0 mm/page_alloc.c:501 free_page_is_bad_report mm/page_alloc.c:913 [inline] free_page_is_bad mm/page_alloc.c:923 [inline] free_pages_prepare mm/page_alloc.c:1119 [inline] free_frozen_pages+0x701/0xfb0 mm/page_alloc.c:2660 page_frag_free+0x255/0x2a0 mm/page_frag_cache.c:169 __xdp_return+0x363/0xac0 net/core/xdp.c:447 bpf_xdp_shrink_data net/core/filter.c:4155 [inline] bpf_xdp_frags_shrink_tail net/core/filter.c:4175 [inline] ____bpf_xdp_adjust_tail net/core/filter.c:4200 [inline] bpf_xdp_adjust_tail+0x9de/0xf70 net/core/filter.c:4193 bpf_prog_f476d5219b92964a+0x1e/0x20 __bpf_prog_run include/linux/filter.h:692 [inline] bpf_prog_run_xdp include/net/xdp.h:654 [inline] bpf_prog_run_generic_xdp+0xe33/0x1500 net/core/dev.c:5191 netif_receive_generic_xdp net/core/dev.c:5304 [inline] do_xdp_generic+0x70a/0xe70 net/core/dev.c:5366 tun_get_user+0x1e04/0x3e50 drivers/net/tun.c:1929 tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:2053 new_sync_write fs/read_write.c:591 [inline] vfs_write+0x5ae/0x1150 fs/read_write.c:684 ksys_write+0x12b/0x250 fs/read_write.c:736 do_syscall_32_irqs_on arch/x86/entry/common.c:165 [inline] __do_fast_syscall_32+0x73/0x120 arch/x86/entry/common.c:387 do_fast_syscall_32+0x32/0x80 arch/x86/entry/common.c:412 entry_SYSENTER_compat_after_hwframe+0x84/0x8e RIP: 0023:0xf744e579 Code: b8 01 10 06 03 74 b4 01 10 07 03 74 b0 01 10 08 03 74 d8 01 00 00 00 00 00 00 00 00 00 00 00 00 00 51 52 55 89 e5 0f 34 cd 80 <5d> 5a 59 c3 90 90 90 90 8d b4 26 00 00 00 00 8d b4 26 00 00 00 00 RSP: 002b:00000000f50d6520 EFLAGS: 00000293 ORIG_RAX: 0000000000000004 RAX: ffffffffffffffda RBX: 00000000000000c8 RCX: 0000000080000a80 RDX: 000000000000fdef RSI: 00000000f743cff4 RDI: 0000000000000000 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000296 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 BUG: Bad page state in process syz.3.2183 pfn:4ab45 page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x4ab45 flags: 0x4fff00000000000(node=1|zone=1|lastcpupid=0x7ff) raw: 04fff00000000000 dead000000000040 ffff88801f1b5000 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 12671, tgid 12670 (syz.3.2183), ts 341334668361, free_ts 340755901698 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x181/0x1b0 mm/page_alloc.c:1551 prep_new_page mm/page_alloc.c:1559 [inline] get_page_from_freelist+0xfce/0x2f80 mm/page_alloc.c:3477 __alloc_frozen_pages_noprof+0x221/0x2470 mm/page_alloc.c:4740 __alloc_pages_noprof mm/page_alloc.c:4774 [inline] alloc_pages_bulk_noprof+0x6f9/0x1390 mm/page_alloc.c:4694 alloc_pages_bulk_node_noprof include/linux/gfp.h:235 [inline] __page_pool_alloc_pages_slow+0x18c/0x770 net/core/page_pool.c:542 page_pool_alloc_netmems net/core/page_pool.c:593 [inline] page_pool_alloc_netmems+0xc4/0x160 net/core/page_pool.c:580 page_pool_alloc_netmem include/net/page_pool/helpers.h:128 [inline] page_pool_alloc include/net/page_pool/helpers.h:160 [inline] page_pool_dev_alloc include/net/page_pool/helpers.h:181 [inline] skb_pp_cow_data+0x776/0xf10 net/core/skbuff.c:893 skb_cow_data_for_xdp+0x88/0xb0 net/core/skbuff.c:927 netif_skb_check_for_xdp net/core/dev.c:5259 [inline] netif_receive_generic_xdp net/core/dev.c:5298 [inline] do_xdp_generic+0x3f1/0xe70 net/core/dev.c:5366 tun_get_user+0x1e04/0x3e50 drivers/net/tun.c:1929 tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:2053 new_sync_write fs/read_write.c:591 [inline] vfs_write+0x5ae/0x1150 fs/read_write.c:684 ksys_write+0x12b/0x250 fs/read_write.c:736 do_syscall_32_irqs_on arch/x86/entry/common.c:165 [inline] __do_fast_syscall_32+0x73/0x120 arch/x86/entry/common.c:387 do_fast_syscall_32+0x32/0x80 arch/x86/entry/common.c:412 entry_SYSENTER_compat_after_hwframe+0x84/0x8e page last free pid 0 tgid 0 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1127 [inline] free_frozen_pages+0x6db/0xfb0 mm/page_alloc.c:2660 pagetable_free include/linux/mm.h:2923 [inline] pagetable_dtor_free include/linux/mm.h:3021 [inline] __tlb_remove_table include/asm-generic/tlb.h:216 [inline] __tlb_remove_table_free mm/mmu_gather.c:227 [inline] tlb_remove_table_rcu+0x116/0x1a0 mm/mmu_gather.c:282 rcu_do_batch kernel/rcu/tree.c:2546 [inline] rcu_core+0x79d/0x14d0 kernel/rcu/tree.c:2802 handle_softirqs+0x213/0x8f0 kernel/softirq.c:561 __do_softirq kernel/softirq.c:595 [inline] invoke_softirq kernel/softirq.c:435 [inline] __irq_exit_rcu+0x109/0x170 kernel/softirq.c:662 irq_exit_rcu+0x9/0x30 kernel/softirq.c:678 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1049 [inline] sysvec_apic_timer_interrupt+0xa4/0xc0 arch/x86/kernel/apic/apic.c:1049 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702 Modules linked in: CPU: 0 UID: 0 PID: 12671 Comm: syz.3.2183 Tainted: G B 6.14.0-syzkaller-00624-g2f2d52945852 #0 Tainted: [B]=BAD_PAGE Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x16c/0x1f0 lib/dump_stack.c:120 bad_page+0xb3/0x1f0 mm/page_alloc.c:501 free_page_is_bad_report mm/page_alloc.c:913 [inline] free_page_is_bad mm/page_alloc.c:923 [inline] free_pages_prepare mm/page_alloc.c:1119 [inline] free_frozen_pages+0x701/0xfb0 mm/page_alloc.c:2660 page_frag_free+0x255/0x2a0 mm/page_frag_cache.c:169 __xdp_return+0x363/0xac0 net/core/xdp.c:447 bpf_xdp_shrink_data net/core/filter.c:4155 [inline] bpf_xdp_frags_shrink_tail net/core/filter.c:4175 [inline] ____bpf_xdp_adjust_tail net/core/filter.c:4200 [inline] bpf_xdp_adjust_tail+0x9de/0xf70 net/core/filter.c:4193 bpf_prog_f476d5219b92964a+0x1e/0x20 __bpf_prog_run include/linux/filter.h:692 [inline] bpf_prog_run_xdp include/net/xdp.h:654 [inline] bpf_prog_run_generic_xdp+0xe33/0x1500 net/core/dev.c:5191 netif_receive_generic_xdp net/core/dev.c:5304 [inline] do_xdp_generic+0x70a/0xe70 net/core/dev.c:5366 tun_get_user+0x1e04/0x3e50 drivers/net/tun.c:1929 tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:2053 new_sync_write fs/read_write.c:591 [inline] vfs_write+0x5ae/0x1150 fs/read_write.c:684 ksys_write+0x12b/0x250 fs/read_write.c:736 do_syscall_32_irqs_on arch/x86/entry/common.c:165 [inline] __do_fast_syscall_32+0x73/0x120 arch/x86/entry/common.c:387 do_fast_syscall_32+0x32/0x80 arch/x86/entry/common.c:412 entry_SYSENTER_compat_after_hwframe+0x84/0x8e RIP: 0023:0xf744e579 Code: b8 01 10 06 03 74 b4 01 10 07 03 74 b0 01 10 08 03 74 d8 01 00 00 00 00 00 00 00 00 00 00 00 00 00 51 52 55 89 e5 0f 34 cd 80 <5d> 5a 59 c3 90 90 90 90 8d b4 26 00 00 00 00 8d b4 26 00 00 00 00 RSP: 002b:00000000f50d6520 EFLAGS: 00000293 ORIG_RAX: 0000000000000004 RAX: ffffffffffffffda RBX: 00000000000000c8 RCX: 0000000080000a80 RDX: 000000000000fdef RSI: 00000000f743cff4 RDI: 0000000000000000 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000296 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 BUG: Bad page state in process syz.3.2183 pfn:45f7b page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff888000000000 pfn:0x45f7b flags: 0x4fff00000000000(node=1|zone=1|lastcpupid=0x7ff) raw: 04fff00000000000 dead000000000040 ffff88801f1b5000 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 12671, tgid 12670 (syz.3.2183), ts 341334638641, free_ts 340755912780 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x181/0x1b0 mm/page_alloc.c:1551 prep_new_page mm/page_alloc.c:1559 [inline] get_page_from_freelist+0xfce/0x2f80 mm/page_alloc.c:3477 __alloc_frozen_pages_noprof+0x221/0x2470 mm/page_alloc.c:4740 __alloc_pages_noprof mm/page_alloc.c:4774 [inline] alloc_pages_bulk_noprof+0x6f9/0x1390 mm/page_alloc.c:4694 alloc_pages_bulk_node_noprof include/linux/gfp.h:235 [inline] __page_pool_alloc_pages_slow+0x18c/0x770 net/core/page_pool.c:542 page_pool_alloc_netmems net/core/page_pool.c:593 [inline] page_pool_alloc_netmems+0xc4/0x160 net/core/page_pool.c:580 page_pool_alloc_netmem include/net/page_pool/helpers.h:128 [inline] page_pool_alloc include/net/page_pool/helpers.h:160 [inline] page_pool_dev_alloc include/net/page_pool/helpers.h:181 [inline] skb_pp_cow_data+0x776/0xf10 net/core/skbuff.c:893 skb_cow_data_for_xdp+0x88/0xb0 net/core/skbuff.c:927 netif_skb_check_for_xdp net/core/dev.c:5259 [inline] netif_receive_generic_xdp net/core/dev.c:5298 [inline] do_xdp_generic+0x3f1/0xe70 net/core/dev.c:5366 tun_get_user+0x1e04/0x3e50 drivers/net/tun.c:1929 tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:2053 new_sync_write fs/read_write.c:591 [inline] vfs_write+0x5ae/0x1150 fs/read_write.c:684 ksys_write+0x12b/0x250 fs/read_write.c:736 do_syscall_32_irqs_on arch/x86/entry/common.c:165 [inline] __do_fast_syscall_32+0x73/0x120 arch/x86/entry/common.c:387 do_fast_syscall_32+0x32/0x80 arch/x86/entry/common.c:412 entry_SYSENTER_compat_after_hwframe+0x84/0x8e page last free pid 0 tgid 0 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1127 [inline] free_frozen_pages+0x6db/0xfb0 mm/page_alloc.c:2660 pagetable_free include/linux/mm.h:2923 [inline] pagetable_dtor_free include/linux/mm.h:3021 [inline] __tlb_remove_table include/asm-generic/tlb.h:216 [inline] __tlb_remove_table_free mm/mmu_gather.c:227 [inline] tlb_remove_table_rcu+0x116/0x1a0 mm/mmu_gather.c:282 rcu_do_batch kernel/rcu/tree.c:2546 [inline] rcu_core+0x79d/0x14d0 kernel/rcu/tree.c:2802 handle_softirqs+0x213/0x8f0 kernel/softirq.c:561 __do_softirq kernel/softirq.c:595 [inline] invoke_softirq kernel/softirq.c:435 [inline] __irq_exit_rcu+0x109/0x170 kernel/softirq.c:662 irq_exit_rcu+0x9/0x30 kernel/softirq.c:678 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1049 [inline] sysvec_apic_timer_interrupt+0xa4/0xc0 arch/x86/kernel/apic/apic.c:1049 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702 Modules linked in: CPU: 0 UID: 0 PID: 12671 Comm: syz.3.2183 Tainted: G B 6.14.0-syzkaller-00624-g2f2d52945852 #0 Tainted: [B]=BAD_PAGE Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x16c/0x1f0 lib/dump_stack.c:120 bad_page+0xb3/0x1f0 mm/page_alloc.c:501 free_page_is_bad_report mm/page_alloc.c:913 [inline] free_page_is_bad mm/page_alloc.c:923 [inline] free_pages_prepare mm/page_alloc.c:1119 [inline] free_frozen_pages+0x701/0xfb0 mm/page_alloc.c:2660 page_frag_free+0x255/0x2a0 mm/page_frag_cache.c:169 __xdp_return+0x363/0xac0 net/core/xdp.c:447 bpf_xdp_shrink_data net/core/filter.c:4155 [inline] bpf_xdp_frags_shrink_tail net/core/filter.c:4175 [inline] ____bpf_xdp_adjust_tail net/core/filter.c:4200 [inline] bpf_xdp_adjust_tail+0x9de/0xf70 net/core/filter.c:4193 bpf_prog_f476d5219b92964a+0x1e/0x20 __bpf_prog_run include/linux/filter.h:692 [inline] bpf_prog_run_xdp include/net/xdp.h:654 [inline] bpf_prog_run_generic_xdp+0xe33/0x1500 net/core/dev.c:5191 netif_receive_generic_xdp net/core/dev.c:5304 [inline] do_xdp_generic+0x70a/0xe70 net/core/dev.c:5366 tun_get_user+0x1e04/0x3e50 drivers/net/tun.c:1929 tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:2053 new_sync_write fs/read_write.c:591 [inline] vfs_write+0x5ae/0x1150 fs/read_write.c:684 ksys_write+0x12b/0x250 fs/read_write.c:736 do_syscall_32_irqs_on arch/x86/entry/common.c:165 [inline] __do_fast_syscall_32+0x73/0x120 arch/x86/entry/common.c:387 do_fast_syscall_32+0x32/0x80 arch/x86/entry/common.c:412 entry_SYSENTER_compat_after_hwframe+0x84/0x8e RIP: 0023:0xf744e579 Code: b8 01 10 06 03 74 b4 01 10 07 03 74 b0 01 10 08 03 74 d8 01 00 00 00 00 00 00 00 00 00 00 00 00 00 51 52 55 89 e5 0f 34 cd 80 <5d> 5a 59 c3 90 90 90 90 8d b4 26 00 00 00 00 8d b4 26 00 00 00 00 RSP: 002b:00000000f50d6520 EFLAGS: 00000293 ORIG_RAX: 0000000000000004 RAX: ffffffffffffffda RBX: 00000000000000c8 RCX: 0000000080000a80 RDX: 000000000000fdef RSI: 00000000f743cff4 RDI: 0000000000000000 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000296 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 BUG: Bad page state in process syz.3.2183 pfn:69607 page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x69607 flags: 0x4fff00000000000(node=1|zone=1|lastcpupid=0x7ff) raw: 04fff00000000000 dead000000000040 ffff88801f1b5000 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 12671, tgid 12670 (syz.3.2183), ts 341334634580, free_ts 340755948630 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x181/0x1b0 mm/page_alloc.c:1551 prep_new_page mm/page_alloc.c:1559 [inline] get_page_from_freelist+0xfce/0x2f80 mm/page_alloc.c:3477 __alloc_frozen_pages_noprof+0x221/0x2470 mm/page_alloc.c:4740 __alloc_pages_noprof mm/page_alloc.c:4774 [inline] alloc_pages_bulk_noprof+0x6f9/0x1390 mm/page_alloc.c:4694 alloc_pages_bulk_node_noprof include/linux/gfp.h:235 [inline] __page_pool_alloc_pages_slow+0x18c/0x770 net/core/page_pool.c:542 page_pool_alloc_netmems net/core/page_pool.c:593 [inline] page_pool_alloc_netmems+0xc4/0x160 net/core/page_pool.c:580 page_pool_alloc_netmem include/net/page_pool/helpers.h:128 [inline] page_pool_alloc include/net/page_pool/helpers.h:160 [inline] page_pool_dev_alloc include/net/page_pool/helpers.h:181 [inline] skb_pp_cow_data+0x776/0xf10 net/core/skbuff.c:893 skb_cow_data_for_xdp+0x88/0xb0 net/core/skbuff.c:927 netif_skb_check_for_xdp net/core/dev.c:5259 [inline] netif_receive_generic_xdp net/core/dev.c:5298 [inline] do_xdp_generic+0x3f1/0xe70 net/core/dev.c:5366 tun_get_user+0x1e04/0x3e50 drivers/net/tun.c:1929 tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:2053 new_sync_write fs/read_write.c:591 [inline] vfs_write+0x5ae/0x1150 fs/read_write.c:684 ksys_write+0x12b/0x250 fs/read_write.c:736 do_syscall_32_irqs_on arch/x86/entry/common.c:165 [inline] __do_fast_syscall_32+0x73/0x120 arch/x86/entry/common.c:387 do_fast_syscall_32+0x32/0x80 arch/x86/entry/common.c:412 entry_SYSENTER_compat_after_hwframe+0x84/0x8e page last free pid 0 tgid 0 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1127 [inline] free_frozen_pages+0x6db/0xfb0 mm/page_alloc.c:2660 pagetable_free include/linux/mm.h:2923 [inline] pagetable_dtor_free include/linux/mm.h:3021 [inline] __tlb_remove_table include/asm-generic/tlb.h:216 [inline] __tlb_remove_table_free mm/mmu_gather.c:227 [inline] tlb_remove_table_rcu+0x116/0x1a0 mm/mmu_gather.c:282 rcu_do_batch kernel/rcu/tree.c:2546 [inline] rcu_core+0x79d/0x14d0 kernel/rcu/tree.c:2802 handle_softirqs+0x213/0x8f0 kernel/softirq.c:561 __do_softirq kernel/softirq.c:595 [inline] invoke_softirq kernel/softirq.c:435 [inline] __irq_exit_rcu+0x109/0x170 kernel/softirq.c:662 irq_exit_rcu+0x9/0x30 kernel/softirq.c:678 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1049 [inline] sysvec_apic_timer_interrupt+0xa4/0xc0 arch/x86/kernel/apic/apic.c:1049 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702 Modules linked in: CPU: 0 UID: 0 PID: 12671 Comm: syz.3.2183 Tainted: G B 6.14.0-syzkaller-00624-g2f2d52945852 #0 Tainted: [B]=BAD_PAGE Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x16c/0x1f0 lib/dump_stack.c:120 bad_page+0xb3/0x1f0 mm/page_alloc.c:501 free_page_is_bad_report mm/page_alloc.c:913 [inline] free_page_is_bad mm/page_alloc.c:923 [inline] free_pages_prepare mm/page_alloc.c:1119 [inline] free_frozen_pages+0x701/0xfb0 mm/page_alloc.c:2660 page_frag_free+0x255/0x2a0 mm/page_frag_cache.c:169 __xdp_return+0x363/0xac0 net/core/xdp.c:447 bpf_xdp_shrink_data net/core/filter.c:4155 [inline] bpf_xdp_frags_shrink_tail net/core/filter.c:4175 [inline] ____bpf_xdp_adjust_tail net/core/filter.c:4200 [inline] bpf_xdp_adjust_tail+0x9de/0xf70 net/core/filter.c:4193 bpf_prog_f476d5219b92964a+0x1e/0x20 __bpf_prog_run include/linux/filter.h:692 [inline] bpf_prog_run_xdp include/net/xdp.h:654 [inline] bpf_prog_run_generic_xdp+0xe33/0x1500 net/core/dev.c:5191 netif_receive_generic_xdp net/core/dev.c:5304 [inline] do_xdp_generic+0x70a/0xe70 net/core/dev.c:5366 tun_get_user+0x1e04/0x3e50 drivers/net/tun.c:1929 tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:2053 new_sync_write fs/read_write.c:591 [inline] vfs_write+0x5ae/0x1150 fs/read_write.c:684 ksys_write+0x12b/0x250 fs/read_write.c:736 do_syscall_32_irqs_on arch/x86/entry/common.c:165 [inline] __do_fast_syscall_32+0x73/0x120 arch/x86/entry/common.c:387 do_fast_syscall_32+0x32/0x80 arch/x86/entry/common.c:412 entry_SYSENTER_compat_after_hwframe+0x84/0x8e RIP: 0023:0xf744e579 Code: b8 01 10 06 03 74 b4 01 10 07 03 74 b0 01 10 08 03 74 d8 01 00 00 00 00 00 00 00 00 00 00 00 00 00 51 52 55 89 e5 0f 34 cd 80 <5d> 5a 59 c3 90 90 90 90 8d b4 26 00 00 00 00 8d b4 26 00 00 00 00 RSP: 002b:00000000f50d6520 EFLAGS: 00000293 ORIG_RAX: 0000000000000004 RAX: ffffffffffffffda RBX: 00000000000000c8 RCX: 0000000080000a80 RDX: 000000000000fdef RSI: 00000000f743cff4 RDI: 0000000000000000 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000296 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 BUG: Bad page state in process syz.3.2183 pfn:67435 page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff888000000000 pfn:0x67435 flags: 0x4fff00000000000(node=1|zone=1|lastcpupid=0x7ff) raw: 04fff00000000000 dead000000000040 ffff88801f1b5000 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 12671, tgid 12670 (syz.3.2183), ts 341334630225, free_ts 340755962727 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x181/0x1b0 mm/page_alloc.c:1551 prep_new_page mm/page_alloc.c:1559 [inline] get_page_from_freelist+0xfce/0x2f80 mm/page_alloc.c:3477 __alloc_frozen_pages_noprof+0x221/0x2470 mm/page_alloc.c:4740 __alloc_pages_noprof mm/page_alloc.c:4774 [inline] alloc_pages_bulk_noprof+0x6f9/0x1390 mm/page_alloc.c:4694 alloc_pages_bulk_node_noprof include/linux/gfp.h:235 [inline] __page_pool_alloc_pages_slow+0x18c/0x770 net/core/page_pool.c:542 page_pool_alloc_netmems net/core/page_pool.c:593 [inline] page_pool_alloc_netmems+0xc4/0x160 net/core/page_pool.c:580 page_pool_alloc_netmem include/net/page_pool/helpers.h:128 [inline] page_pool_alloc include/net/page_pool/helpers.h:160 [inline] page_pool_dev_alloc include/net/page_pool/helpers.h:181 [inline] skb_pp_cow_data+0x776/0xf10 net/core/skbuff.c:893 skb_cow_data_for_xdp+0x88/0xb0 net/core/skbuff.c:927 netif_skb_check_for_xdp net/core/dev.c:5259 [inline] netif_receive_generic_xdp net/core/dev.c:5298 [inline] do_xdp_generic+0x3f1/0xe70 net/core/dev.c:5366 tun_get_user+0x1e04/0x3e50 drivers/net/tun.c:1929 tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:2053 new_sync_write fs/read_write.c:591 [inline] vfs_write+0x5ae/0x1150 fs/read_write.c:684 ksys_write+0x12b/0x250 fs/read_write.c:736 do_syscall_32_irqs_on arch/x86/entry/common.c:165 [inline] __do_fast_syscall_32+0x73/0x120 arch/x86/entry/common.c:387 do_fast_syscall_32+0x32/0x80 arch/x86/entry/common.c:412 entry_SYSENTER_compat_after_hwframe+0x84/0x8e page last free pid 0 tgid 0 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1127 [inline] free_frozen_pages+0x6db/0xfb0 mm/page_alloc.c:2660 pagetable_free include/linux/mm.h:2923 [inline] pagetable_dtor_free include/linux/mm.h:3021 [inline] __tlb_remove_table include/asm-generic/tlb.h:216 [inline] __tlb_remove_table_free mm/mmu_gather.c:227 [inline] tlb_remove_table_rcu+0x116/0x1a0 mm/mmu_gather.c:282 rcu_do_batch kernel/rcu/tree.c:2546 [inline] rcu_core+0x79d/0x14d0 kernel/rcu/tree.c:2802 handle_softirqs+0x213/0x8f0 kernel/softirq.c:561 __do_softirq kernel/softirq.c:595 [inline] invoke_softirq kernel/softirq.c:435 [inline] __irq_exit_rcu+0x109/0x170 kernel/softirq.c:662 irq_exit_rcu+0x9/0x30 kernel/softirq.c:678 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1049 [inline] sysvec_apic_timer_interrupt+0xa4/0xc0 arch/x86/kernel/apic/apic.c:1049 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702 Modules linked in: CPU: 0 UID: 0 PID: 12671 Comm: syz.3.2183 Tainted: G B 6.14.0-syzkaller-00624-g2f2d52945852 #0 Tainted: [B]=BAD_PAGE Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x16c/0x1f0 lib/dump_stack.c:120 bad_page+0xb3/0x1f0 mm/page_alloc.c:501 free_page_is_bad_report mm/page_alloc.c:913 [inline] free_page_is_bad mm/page_alloc.c:923 [inline] free_pages_prepare mm/page_alloc.c:1119 [inline] free_frozen_pages+0x701/0xfb0 mm/page_alloc.c:2660 page_frag_free+0x255/0x2a0 mm/page_frag_cache.c:169 __xdp_return+0x363/0xac0 net/core/xdp.c:447 bpf_xdp_shrink_data net/core/filter.c:4155 [inline] bpf_xdp_frags_shrink_tail net/core/filter.c:4175 [inline] ____bpf_xdp_adjust_tail net/core/filter.c:4200 [inline] bpf_xdp_adjust_tail+0x9de/0xf70 net/core/filter.c:4193 bpf_prog_f476d5219b92964a+0x1e/0x20 __bpf_prog_run include/linux/filter.h:692 [inline] bpf_prog_run_xdp include/net/xdp.h:654 [inline] bpf_prog_run_generic_xdp+0xe33/0x1500 net/core/dev.c:5191 netif_receive_generic_xdp net/core/dev.c:5304 [inline] do_xdp_generic+0x70a/0xe70 net/core/dev.c:5366 tun_get_user+0x1e04/0x3e50 drivers/net/tun.c:1929 tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:2053 new_sync_write fs/read_write.c:591 [inline] vfs_write+0x5ae/0x1150 fs/read_write.c:684 ksys_write+0x12b/0x250 fs/read_write.c:736 do_syscall_32_irqs_on arch/x86/entry/common.c:165 [inline] __do_fast_syscall_32+0x73/0x120 arch/x86/entry/common.c:387 do_fast_syscall_32+0x32/0x80 arch/x86/entry/common.c:412 entry_SYSENTER_compat_after_hwframe+0x84/0x8e RIP: 0023:0xf744e579 Code: b8 01 10 06 03 74 b4 01 10 07 03 74 b0 01 10 08 03 74 d8 01 00 00 00 00 00 00 00 00 00 00 00 00 00 51 52 55 89 e5 0f 34 cd 80 <5d> 5a 59 c3 90 90 90 90 8d b4 26 00 00 00 00 8d b4 26 00 00 00 00 RSP: 002b:00000000f50d6520 EFLAGS: 00000293 ORIG_RAX: 0000000000000004 RAX: ffffffffffffffda RBX: 00000000000000c8 RCX: 0000000080000a80 RDX: 000000000000fdef RSI: 00000000f743cff4 RDI: 0000000000000000 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000296 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 BUG: Bad page state in process syz.3.2183 pfn:4b88a page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff888000000000 pfn:0x4b88a flags: 0x4fff00000000000(node=1|zone=1|lastcpupid=0x7ff) raw: 04fff00000000000 dead000000000040 ffff88801f1b5000 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 12671, tgid 12670 (syz.3.2183), ts 341334625614, free_ts 340755972516 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x181/0x1b0 mm/page_alloc.c:1551 prep_new_page mm/page_alloc.c:1559 [inline] get_page_from_freelist+0xfce/0x2f80 mm/page_alloc.c:3477 __alloc_frozen_pages_noprof+0x221/0x2470 mm/page_alloc.c:4740 __alloc_pages_noprof mm/page_alloc.c:4774 [inline] alloc_pages_bulk_noprof+0x6f9/0x1390 mm/page_alloc.c:4694 alloc_pages_bulk_node_noprof include/linux/gfp.h:235 [inline] __page_pool_alloc_pages_slow+0x18c/0x770 net/core/page_pool.c:542 page_pool_alloc_netmems net/core/page_pool.c:593 [inline] page_pool_alloc_netmems+0xc4/0x160 net/core/page_pool.c:580 page_pool_alloc_netmem include/net/page_pool/helpers.h:128 [inline] page_pool_alloc include/net/page_pool/helpers.h:160 [inline] page_pool_dev_alloc include/net/page_pool/helpers.h:181 [inline] skb_pp_cow_data+0x776/0xf10 net/core/skbuff.c:893 skb_cow_data_for_xdp+0x88/0xb0 net/core/skbuff.c:927 netif_skb_check_for_xdp net/core/dev.c:5259 [inline] netif_receive_generic_xdp net/core/dev.c:5298 [inline] do_xdp_generic+0x3f1/0xe70 net/core/dev.c:5366 tun_get_user+0x1e04/0x3e50 drivers/net/tun.c:1929 tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:2053 new_sync_write fs/read_write.c:591 [inline] vfs_write+0x5ae/0x1150 fs/read_write.c:684 ksys_write+0x12b/0x250 fs/read_write.c:736 do_syscall_32_irqs_on arch/x86/entry/common.c:165 [inline] __do_fast_syscall_32+0x73/0x120 arch/x86/entry/common.c:387 do_fast_syscall_32+0x32/0x80 arch/x86/entry/common.c:412 entry_SYSENTER_compat_after_hwframe+0x84/0x8e page last free pid 0 tgid 0 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1127 [inline] free_frozen_pages+0x6db/0xfb0 mm/page_alloc.c:2660 pagetable_free include/linux/mm.h:2923 [inline] pagetable_dtor_free include/linux/mm.h:3021 [inline] __tlb_remove_table include/asm-generic/tlb.h:216 [inline] __tlb_remove_table_free mm/mmu_gather.c:227 [inline] tlb_remove_table_rcu+0x116/0x1a0 mm/mmu_gather.c:282 rcu_do_batch kernel/rcu/tree.c:2546 [inline] rcu_core+0x79d/0x14d0 kernel/rcu/tree.c:2802 handle_softirqs+0x213/0x8f0 kernel/softirq.c:561 __do_softirq kernel/softirq.c:595 [inline] invoke_softirq kernel/softirq.c:435 [inline] __irq_exit_rcu+0x109/0x170 kernel/softirq.c:662 irq_exit_rcu+0x9/0x30 kernel/softirq.c:678 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1049 [inline] sysvec_apic_timer_interrupt+0xa4/0xc0 arch/x86/kernel/apic/apic.c:1049 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702 Modules linked in: CPU: 0 UID: 0 PID: 12671 Comm: syz.3.2183 Tainted: G B 6.14.0-syzkaller-00624-g2f2d52945852 #0 Tainted: [B]=BAD_PAGE Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x16c/0x1f0 lib/dump_stack.c:120 bad_page+0xb3/0x1f0 mm/page_alloc.c:501 free_page_is_bad_report mm/page_alloc.c:913 [inline] free_page_is_bad mm/page_alloc.c:923 [inline] free_pages_prepare mm/page_alloc.c:1119 [inline] free_frozen_pages+0x701/0xfb0 mm/page_alloc.c:2660 page_frag_free+0x255/0x2a0 mm/page_frag_cache.c:169 __xdp_return+0x363/0xac0 net/core/xdp.c:447 bpf_xdp_shrink_data net/core/filter.c:4155 [inline] bpf_xdp_frags_shrink_tail net/core/filter.c:4175 [inline] ____bpf_xdp_adjust_tail net/core/filter.c:4200 [inline] bpf_xdp_adjust_tail+0x9de/0xf70 net/core/filter.c:4193 bpf_prog_f476d5219b92964a+0x1e/0x20 __bpf_prog_run include/linux/filter.h:692 [inline] bpf_prog_run_xdp include/net/xdp.h:654 [inline] bpf_prog_run_generic_xdp+0xe33/0x1500 net/core/dev.c:5191 netif_receive_generic_xdp net/core/dev.c:5304 [inline] do_xdp_generic+0x70a/0xe70 net/core/dev.c:5366 tun_get_user+0x1e04/0x3e50 drivers/net/tun.c:1929 tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:2053 new_sync_write fs/read_write.c:591 [inline] vfs_write+0x5ae/0x1150 fs/read_write.c:684 ksys_write+0x12b/0x250 fs/read_write.c:736 do_syscall_32_irqs_on arch/x86/entry/common.c:165 [inline] __do_fast_syscall_32+0x73/0x120 arch/x86/entry/common.c:387 do_fast_syscall_32+0x32/0x80 arch/x86/entry/common.c:412 entry_SYSENTER_compat_after_hwframe+0x84/0x8e RIP: 0023:0xf744e579 Code: b8 01 10 06 03 74 b4 01 10 07 03 74 b0 01 10 08 03 74 d8 01 00 00 00 00 00 00 00 00 00 00 00 00 00 51 52 55 89 e5 0f 34 cd 80 <5d> 5a 59 c3 90 90 90 90 8d b4 26 00 00 00 00 8d b4 26 00 00 00 00 RSP: 002b:00000000f50d6520 EFLAGS: 00000293 ORIG_RAX: 0000000000000004 RAX: ffffffffffffffda RBX: 00000000000000c8 RCX: 0000000080000a80 RDX: 000000000000fdef RSI: 00000000f743cff4 RDI: 0000000000000000 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000296 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 ---------------- Code disassembly (best guess), 2 bytes skipped: 0: 10 06 adc %al,(%rsi) 2: 03 74 b4 01 add 0x1(%rsp,%rsi,4),%esi 6: 10 07 adc %al,(%rdi) 8: 03 74 b0 01 add 0x1(%rax,%rsi,4),%esi c: 10 08 adc %cl,(%rax) e: 03 74 d8 01 add 0x1(%rax,%rbx,8),%esi 1e: 00 51 52 add %dl,0x52(%rcx) 21: 55 push %rbp 22: 89 e5 mov %esp,%ebp 24: 0f 34 sysenter 26: cd 80 int $0x80 * 28: 5d pop %rbp <-- trapping instruction 29: 5a pop %rdx 2a: 59 pop %rcx 2b: c3 ret 2c: 90 nop 2d: 90 nop 2e: 90 nop 2f: 90 nop 30: 8d b4 26 00 00 00 00 lea 0x0(%rsi,%riz,1),%esi 37: 8d b4 26 00 00 00 00 lea 0x0(%rsi,%riz,1),%esi