BUG: Bad page state in process syz.2.3741 pfn:46990 page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff88803418c980 pfn:0x46990 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 dead000000000040 ffff8880222ea000 0000000000000000 raw: ffff88803418c980 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 6815, tgid 6812 (syz.2.3741), ts 505923443240, free_ts 505827101361 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1e1/0x250 mm/page_alloc.c:1884 prep_new_page mm/page_alloc.c:1892 [inline] get_page_from_freelist+0xe3d/0x2e10 mm/page_alloc.c:3945 __alloc_frozen_pages_noprof+0x26c/0x2410 mm/page_alloc.c:5240 __alloc_pages_noprof mm/page_alloc.c:5274 [inline] alloc_pages_bulk_noprof+0x777/0x1500 mm/page_alloc.c:5194 alloc_pages_bulk_node_noprof include/linux/gfp.h:255 [inline] __page_pool_alloc_netmems_slow+0x1c6/0xc10 net/core/page_pool.c:616 page_pool_alloc_netmems net/core/page_pool.c:667 [inline] page_pool_alloc_netmems+0xc4/0x1a0 net/core/page_pool.c:654 page_pool_alloc_frag_netmem+0x21d/0xa00 net/core/page_pool.c:1076 page_pool_alloc_netmem include/net/page_pool/helpers.h:131 [inline] page_pool_alloc include/net/page_pool/helpers.h:167 [inline] page_pool_dev_alloc include/net/page_pool/helpers.h:188 [inline] skb_pp_cow_data+0x5d4/0x10c0 net/core/skbuff.c:972 skb_cow_data_for_xdp+0x88/0xb0 net/core/skbuff.c:1006 netif_skb_check_for_xdp net/core/dev.c:5500 [inline] netif_receive_generic_xdp net/core/dev.c:5541 [inline] do_xdp_generic+0x542/0x1270 net/core/dev.c:5609 tun_get_user+0x1bd2/0x3e10 drivers/net/tun.c:1872 tun_chr_write_iter+0xdc/0x200 drivers/net/tun.c:1999 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x6ac/0x1070 fs/read_write.c:686 ksys_write+0x12a/0x250 fs/read_write.c:738 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xc9/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f 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:1433 [inline] __free_frozen_pages+0x822/0x1130 mm/page_alloc.c:2973 __pagetable_free include/linux/mm.h:3204 [inline] pagetable_free include/linux/mm.h:3228 [inline] pagetable_dtor_free include/linux/mm.h:3332 [inline] __tlb_remove_table include/asm-generic/tlb.h:221 [inline] __tlb_remove_table_free mm/mmu_gather.c:228 [inline] tlb_remove_table_rcu+0x2b2/0x390 mm/mmu_gather.c:291 rcu_do_batch kernel/rcu/tree.c:2605 [inline] rcu_core+0x7c0/0x15c0 kernel/rcu/tree.c:2857 handle_softirqs+0x1ea/0x910 kernel/softirq.c:622 __do_softirq kernel/softirq.c:656 [inline] invoke_softirq kernel/softirq.c:496 [inline] __irq_exit_rcu+0xef/0x150 kernel/softirq.c:723 irq_exit_rcu+0x9/0x30 kernel/softirq.c:739 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1056 [inline] sysvec_apic_timer_interrupt+0xa3/0xc0 arch/x86/kernel/apic/apic.c:1056 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:697 Modules linked in: CPU: 2 UID: 0 PID: 6815 Comm: syz.2.3741 Tainted: G L syzkaller #0 PREEMPT(full) Tainted: [L]=SOFTLOCKUP Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x100/0x190 lib/dump_stack.c:120 bad_page.cold+0xbe/0xdf mm/page_alloc.c:677 free_page_is_bad mm/page_alloc.c:1121 [inline] free_page_is_bad mm/page_alloc.c:1115 [inline] free_pages_prepare mm/page_alloc.c:1425 [inline] __free_frozen_pages+0x856/0x1130 mm/page_alloc.c:2973 page_frag_free+0x284/0x2e0 mm/page_frag_cache.c:169 __xdp_return+0x3cd/0xb90 net/core/xdp.c:448 bpf_xdp_shrink_data net/core/filter.c:4202 [inline] bpf_xdp_frags_shrink_tail net/core/filter.c:4226 [inline] ____bpf_xdp_adjust_tail net/core/filter.c:4248 [inline] bpf_xdp_adjust_tail+0x854/0xb60 net/core/filter.c:4241 bpf_prog_5d7dc57dfd7f985a+0x1e/0x24 __bpf_prog_run include/linux/filter.h:723 [inline] bpf_prog_run_xdp include/net/xdp.h:696 [inline] bpf_prog_run_generic_xdp+0x614/0x1510 net/core/dev.c:5431 netif_receive_generic_xdp net/core/dev.c:5547 [inline] do_xdp_generic+0x8f8/0x1270 net/core/dev.c:5609 tun_get_user+0x1bd2/0x3e10 drivers/net/tun.c:1872 tun_chr_write_iter+0xdc/0x200 drivers/net/tun.c:1999 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x6ac/0x1070 fs/read_write.c:686 ksys_write+0x12a/0x250 fs/read_write.c:738 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xc9/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f2bd895b78e Code: 08 0f 85 a5 a8 ff ff 49 89 fb 48 89 f0 48 89 d7 48 89 ce 4c 89 c2 4d 89 ca 4c 8b 44 24 08 4c 8b 4c 24 10 4c 89 5c 24 08 0f 05 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 80 00 00 00 00 48 83 ec 08 RSP: 002b:00007f2bd98cefb8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f2bd98cf6c0 RCX: 00007f2bd895b78e RDX: 000000000000fdef RSI: 00002000000001c0 RDI: 00000000000000c8 RBP: 00007f2bd8a08c1f R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f2bd8c16218 R14: 00007f2bd8c16180 R15: 00007ffda3969c88 BUG: Bad page state in process syz.2.3741 pfn:4693f page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x200000000 pfn:0x4693f flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 dead000000000040 ffff8880222ea000 0000000000000000 raw: 0000000200000000 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 6815, tgid 6812 (syz.2.3741), ts 505923436550, free_ts 505827123031 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1e1/0x250 mm/page_alloc.c:1884 prep_new_page mm/page_alloc.c:1892 [inline] get_page_from_freelist+0xe3d/0x2e10 mm/page_alloc.c:3945 __alloc_frozen_pages_noprof+0x26c/0x2410 mm/page_alloc.c:5240 __alloc_pages_noprof mm/page_alloc.c:5274 [inline] alloc_pages_bulk_noprof+0x777/0x1500 mm/page_alloc.c:5194 alloc_pages_bulk_node_noprof include/linux/gfp.h:255 [inline] __page_pool_alloc_netmems_slow+0x1c6/0xc10 net/core/page_pool.c:616 page_pool_alloc_netmems net/core/page_pool.c:667 [inline] page_pool_alloc_netmems+0xc4/0x1a0 net/core/page_pool.c:654 page_pool_alloc_netmem include/net/page_pool/helpers.h:128 [inline] page_pool_alloc include/net/page_pool/helpers.h:167 [inline] page_pool_dev_alloc include/net/page_pool/helpers.h:188 [inline] skb_pp_cow_data+0x80f/0x10c0 net/core/skbuff.c:972 skb_cow_data_for_xdp+0x88/0xb0 net/core/skbuff.c:1006 netif_skb_check_for_xdp net/core/dev.c:5500 [inline] netif_receive_generic_xdp net/core/dev.c:5541 [inline] do_xdp_generic+0x542/0x1270 net/core/dev.c:5609 tun_get_user+0x1bd2/0x3e10 drivers/net/tun.c:1872 tun_chr_write_iter+0xdc/0x200 drivers/net/tun.c:1999 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x6ac/0x1070 fs/read_write.c:686 ksys_write+0x12a/0x250 fs/read_write.c:738 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xc9/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f 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:1433 [inline] __free_frozen_pages+0x822/0x1130 mm/page_alloc.c:2973 __pagetable_free include/linux/mm.h:3204 [inline] pagetable_free include/linux/mm.h:3228 [inline] pagetable_dtor_free include/linux/mm.h:3332 [inline] __tlb_remove_table include/asm-generic/tlb.h:221 [inline] __tlb_remove_table_free mm/mmu_gather.c:228 [inline] tlb_remove_table_rcu+0x2b2/0x390 mm/mmu_gather.c:291 rcu_do_batch kernel/rcu/tree.c:2605 [inline] rcu_core+0x7c0/0x15c0 kernel/rcu/tree.c:2857 handle_softirqs+0x1ea/0x910 kernel/softirq.c:622 __do_softirq kernel/softirq.c:656 [inline] invoke_softirq kernel/softirq.c:496 [inline] __irq_exit_rcu+0xef/0x150 kernel/softirq.c:723 irq_exit_rcu+0x9/0x30 kernel/softirq.c:739 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1056 [inline] sysvec_apic_timer_interrupt+0xa3/0xc0 arch/x86/kernel/apic/apic.c:1056 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:697 Modules linked in: CPU: 2 UID: 0 PID: 6815 Comm: syz.2.3741 Tainted: G B L syzkaller #0 PREEMPT(full) Tainted: [B]=BAD_PAGE, [L]=SOFTLOCKUP Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x100/0x190 lib/dump_stack.c:120 bad_page.cold+0xbe/0xdf mm/page_alloc.c:677 free_page_is_bad mm/page_alloc.c:1121 [inline] free_page_is_bad mm/page_alloc.c:1115 [inline] free_pages_prepare mm/page_alloc.c:1425 [inline] __free_frozen_pages+0x856/0x1130 mm/page_alloc.c:2973 page_frag_free+0x284/0x2e0 mm/page_frag_cache.c:169 __xdp_return+0x3cd/0xb90 net/core/xdp.c:448 bpf_xdp_shrink_data net/core/filter.c:4202 [inline] bpf_xdp_frags_shrink_tail net/core/filter.c:4226 [inline] ____bpf_xdp_adjust_tail net/core/filter.c:4248 [inline] bpf_xdp_adjust_tail+0x854/0xb60 net/core/filter.c:4241 bpf_prog_5d7dc57dfd7f985a+0x1e/0x24 __bpf_prog_run include/linux/filter.h:723 [inline] bpf_prog_run_xdp include/net/xdp.h:696 [inline] bpf_prog_run_generic_xdp+0x614/0x1510 net/core/dev.c:5431 netif_receive_generic_xdp net/core/dev.c:5547 [inline] do_xdp_generic+0x8f8/0x1270 net/core/dev.c:5609 tun_get_user+0x1bd2/0x3e10 drivers/net/tun.c:1872 tun_chr_write_iter+0xdc/0x200 drivers/net/tun.c:1999 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x6ac/0x1070 fs/read_write.c:686 ksys_write+0x12a/0x250 fs/read_write.c:738 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xc9/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f2bd895b78e Code: 08 0f 85 a5 a8 ff ff 49 89 fb 48 89 f0 48 89 d7 48 89 ce 4c 89 c2 4d 89 ca 4c 8b 44 24 08 4c 8b 4c 24 10 4c 89 5c 24 08 0f 05 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 80 00 00 00 00 48 83 ec 08 RSP: 002b:00007f2bd98cefb8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f2bd98cf6c0 RCX: 00007f2bd895b78e RDX: 000000000000fdef RSI: 00002000000001c0 RDI: 00000000000000c8 RBP: 00007f2bd8a08c1f R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f2bd8c16218 R14: 00007f2bd8c16180 R15: 00007ffda3969c88 BUG: Bad page state in process syz.2.3741 pfn:663dd page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff88802e07d5c0 pfn:0x663dd flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 dead000000000040 ffff8880222ea000 0000000000000000 raw: ffff88802e07d5c0 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 6815, tgid 6812 (syz.2.3741), ts 505923430407, free_ts 505827144736 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1e1/0x250 mm/page_alloc.c:1884 prep_new_page mm/page_alloc.c:1892 [inline] get_page_from_freelist+0xe3d/0x2e10 mm/page_alloc.c:3945 __alloc_frozen_pages_noprof+0x26c/0x2410 mm/page_alloc.c:5240 __alloc_pages_noprof mm/page_alloc.c:5274 [inline] alloc_pages_bulk_noprof+0x777/0x1500 mm/page_alloc.c:5194 alloc_pages_bulk_node_noprof include/linux/gfp.h:255 [inline] __page_pool_alloc_netmems_slow+0x1c6/0xc10 net/core/page_pool.c:616 page_pool_alloc_netmems net/core/page_pool.c:667 [inline] page_pool_alloc_netmems+0xc4/0x1a0 net/core/page_pool.c:654 page_pool_alloc_netmem include/net/page_pool/helpers.h:128 [inline] page_pool_alloc include/net/page_pool/helpers.h:167 [inline] page_pool_dev_alloc include/net/page_pool/helpers.h:188 [inline] skb_pp_cow_data+0x80f/0x10c0 net/core/skbuff.c:972 skb_cow_data_for_xdp+0x88/0xb0 net/core/skbuff.c:1006 netif_skb_check_for_xdp net/core/dev.c:5500 [inline] netif_receive_generic_xdp net/core/dev.c:5541 [inline] do_xdp_generic+0x542/0x1270 net/core/dev.c:5609 tun_get_user+0x1bd2/0x3e10 drivers/net/tun.c:1872 tun_chr_write_iter+0xdc/0x200 drivers/net/tun.c:1999 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x6ac/0x1070 fs/read_write.c:686 ksys_write+0x12a/0x250 fs/read_write.c:738 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xc9/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f 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:1433 [inline] __free_frozen_pages+0x822/0x1130 mm/page_alloc.c:2973 __pagetable_free include/linux/mm.h:3204 [inline] pagetable_free include/linux/mm.h:3228 [inline] pagetable_dtor_free include/linux/mm.h:3332 [inline] __tlb_remove_table include/asm-generic/tlb.h:221 [inline] __tlb_remove_table_free mm/mmu_gather.c:228 [inline] tlb_remove_table_rcu+0x2b2/0x390 mm/mmu_gather.c:291 rcu_do_batch kernel/rcu/tree.c:2605 [inline] rcu_core+0x7c0/0x15c0 kernel/rcu/tree.c:2857 handle_softirqs+0x1ea/0x910 kernel/softirq.c:622 __do_softirq kernel/softirq.c:656 [inline] invoke_softirq kernel/softirq.c:496 [inline] __irq_exit_rcu+0xef/0x150 kernel/softirq.c:723 irq_exit_rcu+0x9/0x30 kernel/softirq.c:739 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1056 [inline] sysvec_apic_timer_interrupt+0xa3/0xc0 arch/x86/kernel/apic/apic.c:1056 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:697 Modules linked in: CPU: 2 UID: 0 PID: 6815 Comm: syz.2.3741 Tainted: G B L syzkaller #0 PREEMPT(full) Tainted: [B]=BAD_PAGE, [L]=SOFTLOCKUP Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x100/0x190 lib/dump_stack.c:120 bad_page.cold+0xbe/0xdf mm/page_alloc.c:677 free_page_is_bad mm/page_alloc.c:1121 [inline] free_page_is_bad mm/page_alloc.c:1115 [inline] free_pages_prepare mm/page_alloc.c:1425 [inline] __free_frozen_pages+0x856/0x1130 mm/page_alloc.c:2973 page_frag_free+0x284/0x2e0 mm/page_frag_cache.c:169 __xdp_return+0x3cd/0xb90 net/core/xdp.c:448 bpf_xdp_shrink_data net/core/filter.c:4202 [inline] bpf_xdp_frags_shrink_tail net/core/filter.c:4226 [inline] ____bpf_xdp_adjust_tail net/core/filter.c:4248 [inline] bpf_xdp_adjust_tail+0x854/0xb60 net/core/filter.c:4241 bpf_prog_5d7dc57dfd7f985a+0x1e/0x24 __bpf_prog_run include/linux/filter.h:723 [inline] bpf_prog_run_xdp include/net/xdp.h:696 [inline] bpf_prog_run_generic_xdp+0x614/0x1510 net/core/dev.c:5431 netif_receive_generic_xdp net/core/dev.c:5547 [inline] do_xdp_generic+0x8f8/0x1270 net/core/dev.c:5609 tun_get_user+0x1bd2/0x3e10 drivers/net/tun.c:1872 tun_chr_write_iter+0xdc/0x200 drivers/net/tun.c:1999 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x6ac/0x1070 fs/read_write.c:686 ksys_write+0x12a/0x250 fs/read_write.c:738 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xc9/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f2bd895b78e Code: 08 0f 85 a5 a8 ff ff 49 89 fb 48 89 f0 48 89 d7 48 89 ce 4c 89 c2 4d 89 ca 4c 8b 44 24 08 4c 8b 4c 24 10 4c 89 5c 24 08 0f 05 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 80 00 00 00 00 48 83 ec 08 RSP: 002b:00007f2bd98cefb8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f2bd98cf6c0 RCX: 00007f2bd895b78e RDX: 000000000000fdef RSI: 00002000000001c0 RDI: 00000000000000c8 RBP: 00007f2bd8a08c1f R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f2bd8c16218 R14: 00007f2bd8c16180 R15: 00007ffda3969c88 BUG: Bad page state in process syz.2.3741 pfn:46976 page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x2000000af pfn:0x46976 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 dead000000000040 ffff8880222ea000 0000000000000000 raw: 00000002000000af 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 6815, tgid 6812 (syz.2.3741), ts 505923423712, free_ts 505827166688 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1e1/0x250 mm/page_alloc.c:1884 prep_new_page mm/page_alloc.c:1892 [inline] get_page_from_freelist+0xe3d/0x2e10 mm/page_alloc.c:3945 __alloc_frozen_pages_noprof+0x26c/0x2410 mm/page_alloc.c:5240 __alloc_pages_noprof mm/page_alloc.c:5274 [inline] alloc_pages_bulk_noprof+0x777/0x1500 mm/page_alloc.c:5194 alloc_pages_bulk_node_noprof include/linux/gfp.h:255 [inline] __page_pool_alloc_netmems_slow+0x1c6/0xc10 net/core/page_pool.c:616 page_pool_alloc_netmems net/core/page_pool.c:667 [inline] page_pool_alloc_netmems+0xc4/0x1a0 net/core/page_pool.c:654 page_pool_alloc_netmem include/net/page_pool/helpers.h:128 [inline] page_pool_alloc include/net/page_pool/helpers.h:167 [inline] page_pool_dev_alloc include/net/page_pool/helpers.h:188 [inline] skb_pp_cow_data+0x80f/0x10c0 net/core/skbuff.c:972 skb_cow_data_for_xdp+0x88/0xb0 net/core/skbuff.c:1006 netif_skb_check_for_xdp net/core/dev.c:5500 [inline] netif_receive_generic_xdp net/core/dev.c:5541 [inline] do_xdp_generic+0x542/0x1270 net/core/dev.c:5609 tun_get_user+0x1bd2/0x3e10 drivers/net/tun.c:1872 tun_chr_write_iter+0xdc/0x200 drivers/net/tun.c:1999 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x6ac/0x1070 fs/read_write.c:686 ksys_write+0x12a/0x250 fs/read_write.c:738 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xc9/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f 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:1433 [inline] __free_frozen_pages+0x822/0x1130 mm/page_alloc.c:2973 __pagetable_free include/linux/mm.h:3204 [inline] pagetable_free include/linux/mm.h:3228 [inline] pagetable_dtor_free include/linux/mm.h:3332 [inline] __tlb_remove_table include/asm-generic/tlb.h:221 [inline] __tlb_remove_table_free mm/mmu_gather.c:228 [inline] tlb_remove_table_rcu+0x2b2/0x390 mm/mmu_gather.c:291 rcu_do_batch kernel/rcu/tree.c:2605 [inline] rcu_core+0x7c0/0x15c0 kernel/rcu/tree.c:2857 handle_softirqs+0x1ea/0x910 kernel/softirq.c:622 __do_softirq kernel/softirq.c:656 [inline] invoke_softirq kernel/softirq.c:496 [inline] __irq_exit_rcu+0xef/0x150 kernel/softirq.c:723 irq_exit_rcu+0x9/0x30 kernel/softirq.c:739 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1056 [inline] sysvec_apic_timer_interrupt+0xa3/0xc0 arch/x86/kernel/apic/apic.c:1056 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:697 Modules linked in: CPU: 2 UID: 0 PID: 6815 Comm: syz.2.3741 Tainted: G B L syzkaller #0 PREEMPT(full) Tainted: [B]=BAD_PAGE, [L]=SOFTLOCKUP Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x100/0x190 lib/dump_stack.c:120 bad_page.cold+0xbe/0xdf mm/page_alloc.c:677 free_page_is_bad mm/page_alloc.c:1121 [inline] free_page_is_bad mm/page_alloc.c:1115 [inline] free_pages_prepare mm/page_alloc.c:1425 [inline] __free_frozen_pages+0x856/0x1130 mm/page_alloc.c:2973 page_frag_free+0x284/0x2e0 mm/page_frag_cache.c:169 __xdp_return+0x3cd/0xb90 net/core/xdp.c:448 bpf_xdp_shrink_data net/core/filter.c:4202 [inline] bpf_xdp_frags_shrink_tail net/core/filter.c:4226 [inline] ____bpf_xdp_adjust_tail net/core/filter.c:4248 [inline] bpf_xdp_adjust_tail+0x854/0xb60 net/core/filter.c:4241 bpf_prog_5d7dc57dfd7f985a+0x1e/0x24 __bpf_prog_run include/linux/filter.h:723 [inline] bpf_prog_run_xdp include/net/xdp.h:696 [inline] bpf_prog_run_generic_xdp+0x614/0x1510 net/core/dev.c:5431 netif_receive_generic_xdp net/core/dev.c:5547 [inline] do_xdp_generic+0x8f8/0x1270 net/core/dev.c:5609 tun_get_user+0x1bd2/0x3e10 drivers/net/tun.c:1872 tun_chr_write_iter+0xdc/0x200 drivers/net/tun.c:1999 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x6ac/0x1070 fs/read_write.c:686 ksys_write+0x12a/0x250 fs/read_write.c:738 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xc9/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f2bd895b78e Code: 08 0f 85 a5 a8 ff ff 49 89 fb 48 89 f0 48 89 d7 48 89 ce 4c 89 c2 4d 89 ca 4c 8b 44 24 08 4c 8b 4c 24 10 4c 89 5c 24 08 0f 05 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 80 00 00 00 00 48 83 ec 08 RSP: 002b:00007f2bd98cefb8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f2bd98cf6c0 RCX: 00007f2bd895b78e RDX: 000000000000fdef RSI: 00002000000001c0 RDI: 00000000000000c8 RBP: 00007f2bd8a08c1f R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f2bd8c16218 R14: 00007f2bd8c16180 R15: 00007ffda3969c88 BUG: Bad page state in process syz.2.3741 pfn:46977 page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x200000000 pfn:0x46977 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 dead000000000040 ffff8880222ea000 0000000000000000 raw: 0000000200000000 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 6815, tgid 6812 (syz.2.3741), ts 505923417396, free_ts 505827198432 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1e1/0x250 mm/page_alloc.c:1884 prep_new_page mm/page_alloc.c:1892 [inline] get_page_from_freelist+0xe3d/0x2e10 mm/page_alloc.c:3945 __alloc_frozen_pages_noprof+0x26c/0x2410 mm/page_alloc.c:5240 __alloc_pages_noprof mm/page_alloc.c:5274 [inline] alloc_pages_bulk_noprof+0x777/0x1500 mm/page_alloc.c:5194 alloc_pages_bulk_node_noprof include/linux/gfp.h:255 [inline] __page_pool_alloc_netmems_slow+0x1c6/0xc10 net/core/page_pool.c:616 page_pool_alloc_netmems net/core/page_pool.c:667 [inline] page_pool_alloc_netmems+0xc4/0x1a0 net/core/page_pool.c:654 page_pool_alloc_netmem include/net/page_pool/helpers.h:128 [inline] page_pool_alloc include/net/page_pool/helpers.h:167 [inline] page_pool_dev_alloc include/net/page_pool/helpers.h:188 [inline] skb_pp_cow_data+0x80f/0x10c0 net/core/skbuff.c:972 skb_cow_data_for_xdp+0x88/0xb0 net/core/skbuff.c:1006 netif_skb_check_for_xdp net/core/dev.c:5500 [inline] netif_receive_generic_xdp net/core/dev.c:5541 [inline] do_xdp_generic+0x542/0x1270 net/core/dev.c:5609 tun_get_user+0x1bd2/0x3e10 drivers/net/tun.c:1872 tun_chr_write_iter+0xdc/0x200 drivers/net/tun.c:1999 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x6ac/0x1070 fs/read_write.c:686 ksys_write+0x12a/0x250 fs/read_write.c:738 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xc9/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f 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:1433 [inline] __free_frozen_pages+0x822/0x1130 mm/page_alloc.c:2973 __pagetable_free include/linux/mm.h:3204 [inline] pagetable_free include/linux/mm.h:3228 [inline] pagetable_dtor_free include/linux/mm.h:3332 [inline] __tlb_remove_table include/asm-generic/tlb.h:221 [inline] __tlb_remove_table_free mm/mmu_gather.c:228 [inline] tlb_remove_table_rcu+0x2b2/0x390 mm/mmu_gather.c:291 rcu_do_batch kernel/rcu/tree.c:2605 [inline] rcu_core+0x7c0/0x15c0 kernel/rcu/tree.c:2857 handle_softirqs+0x1ea/0x910 kernel/softirq.c:622 __do_softirq kernel/softirq.c:656 [inline] invoke_softirq kernel/softirq.c:496 [inline] __irq_exit_rcu+0xef/0x150 kernel/softirq.c:723 irq_exit_rcu+0x9/0x30 kernel/softirq.c:739 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1056 [inline] sysvec_apic_timer_interrupt+0xa3/0xc0 arch/x86/kernel/apic/apic.c:1056 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:697 Modules linked in: CPU: 2 UID: 0 PID: 6815 Comm: syz.2.3741 Tainted: G B L syzkaller #0 PREEMPT(full) Tainted: [B]=BAD_PAGE, [L]=SOFTLOCKUP Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x100/0x190 lib/dump_stack.c:120 bad_page.cold+0xbe/0xdf mm/page_alloc.c:677 free_page_is_bad mm/page_alloc.c:1121 [inline] free_page_is_bad mm/page_alloc.c:1115 [inline] free_pages_prepare mm/page_alloc.c:1425 [inline] __free_frozen_pages+0x856/0x1130 mm/page_alloc.c:2973 page_frag_free+0x284/0x2e0 mm/page_frag_cache.c:169 __xdp_return+0x3cd/0xb90 net/core/xdp.c:448 bpf_xdp_shrink_data net/core/filter.c:4202 [inline] bpf_xdp_frags_shrink_tail net/core/filter.c:4226 [inline] ____bpf_xdp_adjust_tail net/core/filter.c:4248 [inline] bpf_xdp_adjust_tail+0x854/0xb60 net/core/filter.c:4241 bpf_prog_5d7dc57dfd7f985a+0x1e/0x24 __bpf_prog_run include/linux/filter.h:723 [inline] bpf_prog_run_xdp include/net/xdp.h:696 [inline] bpf_prog_run_generic_xdp+0x614/0x1510 net/core/dev.c:5431 netif_receive_generic_xdp net/core/dev.c:5547 [inline] do_xdp_generic+0x8f8/0x1270 net/core/dev.c:5609 tun_get_user+0x1bd2/0x3e10 drivers/net/tun.c:1872 tun_chr_write_iter+0xdc/0x200 drivers/net/tun.c:1999 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x6ac/0x1070 fs/read_write.c:686 ksys_write+0x12a/0x250 fs/read_write.c:738 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xc9/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f2bd895b78e Code: 08 0f 85 a5 a8 ff ff 49 89 fb 48 89 f0 48 89 d7 48 89 ce 4c 89 c2 4d 89 ca 4c 8b 44 24 08 4c 8b 4c 24 10 4c 89 5c 24 08 0f 05 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 80 00 00 00 00 48 83 ec 08 RSP: 002b:00007f2bd98cefb8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f2bd98cf6c0 RCX: 00007f2bd895b78e RDX: 000000000000fdef RSI: 00002000000001c0 RDI: 00000000000000c8 RBP: 00007f2bd8a08c1f R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f2bd8c16218 R14: 00007f2bd8c16180 R15: 00007ffda3969c88 BUG: Bad page state in process syz.2.3741 pfn:46973 page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x2000000b2 pfn:0x46973 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 dead000000000040 ffff8880222ea000 0000000000000000 raw: 00000002000000b2 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 6815, tgid 6812 (syz.2.3741), ts 505923411281, free_ts 505827223849 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1e1/0x250 mm/page_alloc.c:1884 prep_new_page mm/page_alloc.c:1892 [inline] get_page_from_freelist+0xe3d/0x2e10 mm/page_alloc.c:3945 __alloc_frozen_pages_noprof+0x26c/0x2410 mm/page_alloc.c:5240 __alloc_pages_noprof mm/page_alloc.c:5274 [inline] alloc_pages_bulk_noprof+0x777/0x1500 mm/page_alloc.c:5194 alloc_pages_bulk_node_noprof include/linux/gfp.h:255 [inline] __page_pool_alloc_netmems_slow+0x1c6/0xc10 net/core/page_pool.c:616 page_pool_alloc_netmems net/core/page_pool.c:667 [inline] page_pool_alloc_netmems+0xc4/0x1a0 net/core/page_pool.c:654 page_pool_alloc_netmem include/net/page_pool/helpers.h:128 [inline] page_pool_alloc include/net/page_pool/helpers.h:167 [inline] page_pool_dev_alloc include/net/page_pool/helpers.h:188 [inline] skb_pp_cow_data+0x80f/0x10c0 net/core/skbuff.c:972 skb_cow_data_for_xdp+0x88/0xb0 net/core/skbuff.c:1006 netif_skb_check_for_xdp net/core/dev.c:5500 [inline] netif_receive_generic_xdp net/core/dev.c:5541 [inline] do_xdp_generic+0x542/0x1270 net/core/dev.c:5609 tun_get_user+0x1bd2/0x3e10 drivers/net/tun.c:1872 tun_chr_write_iter+0xdc/0x200 drivers/net/tun.c:1999 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x6ac/0x1070 fs/read_write.c:686 ksys_write+0x12a/0x250 fs/read_write.c:738 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xc9/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f 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:1433 [inline] __free_frozen_pages+0x822/0x1130 mm/page_alloc.c:2973 __pagetable_free include/linux/mm.h:3204 [inline] pagetable_free include/linux/mm.h:3228 [inline] pagetable_dtor_free include/linux/mm.h:3332 [inline] __tlb_remove_table include/asm-generic/tlb.h:221 [inline] __tlb_remove_table_free mm/mmu_gather.c:228 [inline] tlb_remove_table_rcu+0x2b2/0x390 mm/mmu_gather.c:291 rcu_do_batch kernel/rcu/tree.c:2605 [inline] rcu_core+0x7c0/0x15c0 kernel/rcu/tree.c:2857 handle_softirqs+0x1ea/0x910 kernel/softirq.c:622 __do_softirq kernel/softirq.c:656 [inline] invoke_softirq kernel/softirq.c:496 [inline] __irq_exit_rcu+0xef/0x150 kernel/softirq.c:723 irq_exit_rcu+0x9/0x30 kernel/softirq.c:739 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1056 [inline] sysvec_apic_timer_interrupt+0xa3/0xc0 arch/x86/kernel/apic/apic.c:1056 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:697 Modules linked in: CPU: 2 UID: 0 PID: 6815 Comm: syz.2.3741 Tainted: G B L syzkaller #0 PREEMPT(full) Tainted: [B]=BAD_PAGE, [L]=SOFTLOCKUP Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x100/0x190 lib/dump_stack.c:120 bad_page.cold+0xbe/0xdf mm/page_alloc.c:677 free_page_is_bad mm/page_alloc.c:1121 [inline] free_page_is_bad mm/page_alloc.c:1115 [inline] free_pages_prepare mm/page_alloc.c:1425 [inline] __free_frozen_pages+0x856/0x1130 mm/page_alloc.c:2973 page_frag_free+0x284/0x2e0 mm/page_frag_cache.c:169 __xdp_return+0x3cd/0xb90 net/core/xdp.c:448 bpf_xdp_shrink_data net/core/filter.c:4202 [inline] bpf_xdp_frags_shrink_tail net/core/filter.c:4226 [inline] ____bpf_xdp_adjust_tail net/core/filter.c:4248 [inline] bpf_xdp_adjust_tail+0x854/0xb60 net/core/filter.c:4241 bpf_prog_5d7dc57dfd7f985a+0x1e/0x24 __bpf_prog_run include/linux/filter.h:723 [inline] bpf_prog_run_xdp include/net/xdp.h:696 [inline] bpf_prog_run_generic_xdp+0x614/0x1510 net/core/dev.c:5431 netif_receive_generic_xdp net/core/dev.c:5547 [inline] do_xdp_generic+0x8f8/0x1270 net/core/dev.c:5609 tun_get_user+0x1bd2/0x3e10 drivers/net/tun.c:1872 tun_chr_write_iter+0xdc/0x200 drivers/net/tun.c:1999 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x6ac/0x1070 fs/read_write.c:686 ksys_write+0x12a/0x250 fs/read_write.c:738 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xc9/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f2bd895b78e Code: 08 0f 85 a5 a8 ff ff 49 89 fb 48 89 f0 48 89 d7 48 89 ce 4c 89 c2 4d 89 ca 4c 8b 44 24 08 4c 8b 4c 24 10 4c 89 5c 24 08 0f 05 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 80 00 00 00 00 48 83 ec 08 RSP: 002b:00007f2bd98cefb8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f2bd98cf6c0 RCX: 00007f2bd895b78e RDX: 000000000000fdef RSI: 00002000000001c0 RDI: 00000000000000c8 RBP: 00007f2bd8a08c1f R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f2bd8c16218 R14: 00007f2bd8c16180 R15: 00007ffda3969c88 BUG: Bad page state in process syz.2.3741 pfn:4697f page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x2000000b5 pfn:0x4697f flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 dead000000000040 ffff8880222ea000 0000000000000000 raw: 00000002000000b5 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 6815, tgid 6812 (syz.2.3741), ts 505923404768, free_ts 505827245753 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1e1/0x250 mm/page_alloc.c:1884 prep_new_page mm/page_alloc.c:1892 [inline] get_page_from_freelist+0xe3d/0x2e10 mm/page_alloc.c:3945 __alloc_frozen_pages_noprof+0x26c/0x2410 mm/page_alloc.c:5240 __alloc_pages_noprof mm/page_alloc.c:5274 [inline] alloc_pages_bulk_noprof+0x777/0x1500 mm/page_alloc.c:5194 alloc_pages_bulk_node_noprof include/linux/gfp.h:255 [inline] __page_pool_alloc_netmems_slow+0x1c6/0xc10 net/core/page_pool.c:616 page_pool_alloc_netmems net/core/page_pool.c:667 [inline] page_pool_alloc_netmems+0xc4/0x1a0 net/core/page_pool.c:654 page_pool_alloc_netmem include/net/page_pool/helpers.h:128 [inline] page_pool_alloc include/net/page_pool/helpers.h:167 [inline] page_pool_dev_alloc include/net/page_pool/helpers.h:188 [inline] skb_pp_cow_data+0x80f/0x10c0 net/core/skbuff.c:972 skb_cow_data_for_xdp+0x88/0xb0 net/core/skbuff.c:1006 netif_skb_check_for_xdp net/core/dev.c:5500 [inline] netif_receive_generic_xdp net/core/dev.c:5541 [inline] do_xdp_generic+0x542/0x1270 net/core/dev.c:5609 tun_get_user+0x1bd2/0x3e10 drivers/net/tun.c:1872 tun_chr_write_iter+0xdc/0x200 drivers/net/tun.c:1999 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x6ac/0x1070 fs/read_write.c:686 ksys_write+0x12a/0x250 fs/read_write.c:738 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xc9/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f 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:1433 [inline] __free_frozen_pages+0x822/0x1130 mm/page_alloc.c:2973 __pagetable_free include/linux/mm.h:3204 [inline] pagetable_free include/linux/mm.h:3228 [inline] pagetable_dtor_free include/linux/mm.h:3332 [inline] __tlb_remove_table include/asm-generic/tlb.h:221 [inline] __tlb_remove_table_free mm/mmu_gather.c:228 [inline] tlb_remove_table_rcu+0x2b2/0x390 mm/mmu_gather.c:291 rcu_do_batch kernel/rcu/tree.c:2605 [inline] rcu_core+0x7c0/0x15c0 kernel/rcu/tree.c:2857 handle_softirqs+0x1ea/0x910 kernel/softirq.c:622 __do_softirq kernel/softirq.c:656 [inline] invoke_softirq kernel/softirq.c:496 [inline] __irq_exit_rcu+0xef/0x150 kernel/softirq.c:723 irq_exit_rcu+0x9/0x30 kernel/softirq.c:739 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1056 [inline] sysvec_apic_timer_interrupt+0xa3/0xc0 arch/x86/kernel/apic/apic.c:1056 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:697 Modules linked in: CPU: 2 UID: 0 PID: 6815 Comm: syz.2.3741 Tainted: G B L syzkaller #0 PREEMPT(full) Tainted: [B]=BAD_PAGE, [L]=SOFTLOCKUP Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x100/0x190 lib/dump_stack.c:120 bad_page.cold+0xbe/0xdf mm/page_alloc.c:677 free_page_is_bad mm/page_alloc.c:1121 [inline] free_page_is_bad mm/page_alloc.c:1115 [inline] free_pages_prepare mm/page_alloc.c:1425 [inline] __free_frozen_pages+0x856/0x1130 mm/page_alloc.c:2973 page_frag_free+0x284/0x2e0 mm/page_frag_cache.c:169 __xdp_return+0x3cd/0xb90 net/core/xdp.c:448 bpf_xdp_shrink_data net/core/filter.c:4202 [inline] bpf_xdp_frags_shrink_tail net/core/filter.c:4226 [inline] ____bpf_xdp_adjust_tail net/core/filter.c:4248 [inline] bpf_xdp_adjust_tail+0x854/0xb60 net/core/filter.c:4241 bpf_prog_5d7dc57dfd7f985a+0x1e/0x24 __bpf_prog_run include/linux/filter.h:723 [inline] bpf_prog_run_xdp include/net/xdp.h:696 [inline] bpf_prog_run_generic_xdp+0x614/0x1510 net/core/dev.c:5431 netif_receive_generic_xdp net/core/dev.c:5547 [inline] do_xdp_generic+0x8f8/0x1270 net/core/dev.c:5609 tun_get_user+0x1bd2/0x3e10 drivers/net/tun.c:1872 tun_chr_write_iter+0xdc/0x200 drivers/net/tun.c:1999 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x6ac/0x1070 fs/read_write.c:686 ksys_write+0x12a/0x250 fs/read_write.c:738 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xc9/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f2bd895b78e Code: 08 0f 85 a5 a8 ff ff 49 89 fb 48 89 f0 48 89 d7 48 89 ce 4c 89 c2 4d 89 ca 4c 8b 44 24 08 4c 8b 4c 24 10 4c 89 5c 24 08 0f 05 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 80 00 00 00 00 48 83 ec 08 RSP: 002b:00007f2bd98cefb8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f2bd98cf6c0 RCX: 00007f2bd895b78e RDX: 000000000000fdef RSI: 00002000000001c0 RDI: 00000000000000c8 RBP: 00007f2bd8a08c1f R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f2bd8c16218 R14: 00007f2bd8c16180 R15: 00007ffda3969c88 BUG: Bad page state in process syz.2.3741 pfn:663f5 page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff888000000000 pfn:0x663f5 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 dead000000000040 ffff8880222ea000 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 6815, tgid 6812 (syz.2.3741), ts 505923398544, free_ts 505827269607 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1e1/0x250 mm/page_alloc.c:1884 prep_new_page mm/page_alloc.c:1892 [inline] get_page_from_freelist+0xe3d/0x2e10 mm/page_alloc.c:3945 __alloc_frozen_pages_noprof+0x26c/0x2410 mm/page_alloc.c:5240 __alloc_pages_noprof mm/page_alloc.c:5274 [inline] alloc_pages_bulk_noprof+0x777/0x1500 mm/page_alloc.c:5194 alloc_pages_bulk_node_noprof include/linux/gfp.h:255 [inline] __page_pool_alloc_netmems_slow+0x1c6/0xc10 net/core/page_pool.c:616 page_pool_alloc_netmems net/core/page_pool.c:667 [inline] page_pool_alloc_netmems+0xc4/0x1a0 net/core/page_pool.c:654 page_pool_alloc_netmem include/net/page_pool/helpers.h:128 [inline] page_pool_alloc include/net/page_pool/helpers.h:167 [inline] page_pool_dev_alloc include/net/page_pool/helpers.h:188 [inline] skb_pp_cow_data+0x80f/0x10c0 net/core/skbuff.c:972 skb_cow_data_for_xdp+0x88/0xb0 net/core/skbuff.c:1006 netif_skb_check_for_xdp net/core/dev.c:5500 [inline] netif_receive_generic_xdp net/core/dev.c:5541 [inline] do_xdp_generic+0x542/0x1270 net/core/dev.c:5609 tun_get_user+0x1bd2/0x3e10 drivers/net/tun.c:1872 tun_chr_write_iter+0xdc/0x200 drivers/net/tun.c:1999 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x6ac/0x1070 fs/read_write.c:686 ksys_write+0x12a/0x250 fs/read_write.c:738 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xc9/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f 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:1433 [inline] __free_frozen_pages+0x822/0x1130 mm/page_alloc.c:2973 __pagetable_free include/linux/mm.h:3204 [inline] pagetable_free include/linux/mm.h:3228 [inline] pagetable_dtor_free include/linux/mm.h:3332 [inline] __tlb_remove_table include/asm-generic/tlb.h:221 [inline] __tlb_remove_table_free mm/mmu_gather.c:228 [inline] tlb_remove_table_rcu+0x2b2/0x390 mm/mmu_gather.c:291 rcu_do_batch kernel/rcu/tree.c:2605 [inline] rcu_core+0x7c0/0x15c0 kernel/rcu/tree.c:2857 handle_softirqs+0x1ea/0x910 kernel/softirq.c:622 __do_softirq kernel/softirq.c:656 [inline] invoke_softirq kernel/softirq.c:496 [inline] __irq_exit_rcu+0xef/0x150 kernel/softirq.c:723 irq_exit_rcu+0x9/0x30 kernel/softirq.c:739 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1056 [inline] sysvec_apic_timer_interrupt+0xa3/0xc0 arch/x86/kernel/apic/apic.c:1056 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:697 Modules linked in: CPU: 2 UID: 0 PID: 6815 Comm: syz.2.3741 Tainted: G B L syzkaller #0 PREEMPT(full) Tainted: [B]=BAD_PAGE, [L]=SOFTLOCKUP Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x100/0x190 lib/dump_stack.c:120 bad_page.cold+0xbe/0xdf mm/page_alloc.c:677 free_page_is_bad mm/page_alloc.c:1121 [inline] free_page_is_bad mm/page_alloc.c:1115 [inline] free_pages_prepare mm/page_alloc.c:1425 [inline] __free_frozen_pages+0x856/0x1130 mm/page_alloc.c:2973 page_frag_free+0x284/0x2e0 mm/page_frag_cache.c:169 __xdp_return+0x3cd/0xb90 net/core/xdp.c:448 bpf_xdp_shrink_data net/core/filter.c:4202 [inline] bpf_xdp_frags_shrink_tail net/core/filter.c:4226 [inline] ____bpf_xdp_adjust_tail net/core/filter.c:4248 [inline] bpf_xdp_adjust_tail+0x854/0xb60 net/core/filter.c:4241 bpf_prog_5d7dc57dfd7f985a+0x1e/0x24 __bpf_prog_run include/linux/filter.h:723 [inline] bpf_prog_run_xdp include/net/xdp.h:696 [inline] bpf_prog_run_generic_xdp+0x614/0x1510 net/core/dev.c:5431 netif_receive_generic_xdp net/core/dev.c:5547 [inline] do_xdp_generic+0x8f8/0x1270 net/core/dev.c:5609 tun_get_user+0x1bd2/0x3e10 drivers/net/tun.c:1872 tun_chr_write_iter+0xdc/0x200 drivers/net/tun.c:1999 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x6ac/0x1070 fs/read_write.c:686 ksys_write+0x12a/0x250 fs/read_write.c:738 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xc9/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f2bd895b78e Code: 08 0f 85 a5 a8 ff ff 49 89 fb 48 89 f0 48 89 d7 48 89 ce 4c 89 c2 4d 89 ca 4c 8b 44 24 08 4c 8b 4c 24 10 4c 89 5c 24 08 0f 05 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 80 00 00 00 00 48 83 ec 08 RSP: 002b:00007f2bd98cefb8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f2bd98cf6c0 RCX: 00007f2bd895b78e RDX: 000000000000fdef RSI: 00002000000001c0 RDI: 00000000000000c8 RBP: 00007f2bd8a08c1f R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f2bd8c16218 R14: 00007f2bd8c16180 R15: 00007ffda3969c88 BUG: Bad page state in process syz.2.3741 pfn:46938 page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x200000000 pfn:0x46938 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 dead000000000040 ffff8880222ea000 0000000000000000 raw: 0000000200000000 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 6815, tgid 6812 (syz.2.3741), ts 505923392145, free_ts 505827291867 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1e1/0x250 mm/page_alloc.c:1884 prep_new_page mm/page_alloc.c:1892 [inline] get_page_from_freelist+0xe3d/0x2e10 mm/page_alloc.c:3945 __alloc_frozen_pages_noprof+0x26c/0x2410 mm/page_alloc.c:5240 __alloc_pages_noprof mm/page_alloc.c:5274 [inline] alloc_pages_bulk_noprof+0x777/0x1500 mm/page_alloc.c:5194 alloc_pages_bulk_node_noprof include/linux/gfp.h:255 [inline] __page_pool_alloc_netmems_slow+0x1c6/0xc10 net/core/page_pool.c:616 page_pool_alloc_netmems net/core/page_pool.c:667 [inline] page_pool_alloc_netmems+0xc4/0x1a0 net/core/page_pool.c:654 page_pool_alloc_netmem include/net/page_pool/helpers.h:128 [inline] page_pool_alloc include/net/page_pool/helpers.h:167 [inline] page_pool_dev_alloc include/net/page_pool/helpers.h:188 [inline] skb_pp_cow_data+0x80f/0x10c0 net/core/skbuff.c:972 skb_cow_data_for_xdp+0x88/0xb0 net/core/skbuff.c:1006 netif_skb_check_for_xdp net/core/dev.c:5500 [inline] netif_receive_generic_xdp net/core/dev.c:5541 [inline] do_xdp_generic+0x542/0x1270 net/core/dev.c:5609 tun_get_user+0x1bd2/0x3e10 drivers/net/tun.c:1872 tun_chr_write_iter+0xdc/0x200 drivers/net/tun.c:1999 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x6ac/0x1070 fs/read_write.c:686 ksys_write+0x12a/0x250 fs/read_write.c:738 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xc9/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f 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:1433 [inline] __free_frozen_pages+0x822/0x1130 mm/page_alloc.c:2973 __pagetable_free include/linux/mm.h:3204 [inline] pagetable_free include/linux/mm.h:3228 [inline] pagetable_dtor_free include/linux/mm.h:3332 [inline] __tlb_remove_table include/asm-generic/tlb.h:221 [inline] __tlb_remove_table_free mm/mmu_gather.c:228 [inline] tlb_remove_table_rcu+0x2b2/0x390 mm/mmu_gather.c:291 rcu_do_batch kernel/rcu/tree.c:2605 [inline] rcu_core+0x7c0/0x15c0 kernel/rcu/tree.c:2857 handle_softirqs+0x1ea/0x910 kernel/softirq.c:622 __do_softirq kernel/softirq.c:656 [inline] invoke_softirq kernel/softirq.c:496 [inline] __irq_exit_rcu+0xef/0x150 kernel/softirq.c:723 irq_exit_rcu+0x9/0x30 kernel/softirq.c:739 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1056 [inline] sysvec_apic_timer_interrupt+0xa3/0xc0 arch/x86/kernel/apic/apic.c:1056 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:697 Modules linked in: CPU: 2 UID: 0 PID: 6815 Comm: syz.2.3741 Tainted: G B L syzkaller #0 PREEMPT(full) Tainted: [B]=BAD_PAGE, [L]=SOFTLOCKUP Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x100/0x190 lib/dump_stack.c:120 bad_page.cold+0xbe/0xdf mm/page_alloc.c:677 free_page_is_bad mm/page_alloc.c:1121 [inline] free_page_is_bad mm/page_alloc.c:1115 [inline] free_pages_prepare mm/page_alloc.c:1425 [inline] __free_frozen_pages+0x856/0x1130 mm/page_alloc.c:2973 page_frag_free+0x284/0x2e0 mm/page_frag_cache.c:169 __xdp_return+0x3cd/0xb90 net/core/xdp.c:448 bpf_xdp_shrink_data net/core/filter.c:4202 [inline] bpf_xdp_frags_shrink_tail net/core/filter.c:4226 [inline] ____bpf_xdp_adjust_tail net/core/filter.c:4248 [inline] bpf_xdp_adjust_tail+0x854/0xb60 net/core/filter.c:4241 bpf_prog_5d7dc57dfd7f985a+0x1e/0x24 __bpf_prog_run include/linux/filter.h:723 [inline] bpf_prog_run_xdp include/net/xdp.h:696 [inline] bpf_prog_run_generic_xdp+0x614/0x1510 net/core/dev.c:5431 netif_receive_generic_xdp net/core/dev.c:5547 [inline] do_xdp_generic+0x8f8/0x1270 net/core/dev.c:5609 tun_get_user+0x1bd2/0x3e10 drivers/net/tun.c:1872 tun_chr_write_iter+0xdc/0x200 drivers/net/tun.c:1999 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x6ac/0x1070 fs/read_write.c:686 ksys_write+0x12a/0x250 fs/read_write.c:738 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xc9/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f2bd895b78e Code: 08 0f 85 a5 a8 ff ff 49 89 fb 48 89 f0 48 89 d7 48 89 ce 4c 89 c2 4d 89 ca 4c 8b 44 24 08 4c 8b 4c 24 10 4c 89 5c 24 08 0f 05 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 80 00 00 00 00 48 83 ec 08 RSP: 002b:00007f2bd98cefb8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f2bd98cf6c0 RCX: 00007f2bd895b78e RDX: 000000000000fdef RSI: 00002000000001c0 RDI: 00000000000000c8 RBP: 00007f2bd8a08c1f R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f2bd8c16218 R14: 00007f2bd8c16180 R15: 00007ffda3969c88 BUG: Bad page state in process syz.2.3741 pfn:46980 page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x200000000 pfn:0x46980 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 dead000000000040 ffff8880222ea000 0000000000000000 raw: 0000000200000000 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 6815, tgid 6812 (syz.2.3741), ts 505923386047, free_ts 505827313846 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1e1/0x250 mm/page_alloc.c:1884 prep_new_page mm/page_alloc.c:1892 [inline] get_page_from_freelist+0xe3d/0x2e10 mm/page_alloc.c:3945 __alloc_frozen_pages_noprof+0x26c/0x2410 mm/page_alloc.c:5240 __alloc_pages_noprof mm/page_alloc.c:5274 [inline] alloc_pages_bulk_noprof+0x777/0x1500 mm/page_alloc.c:5194 alloc_pages_bulk_node_noprof include/linux/gfp.h:255 [inline] __page_pool_alloc_netmems_slow+0x1c6/0xc10 net/core/page_pool.c:616 page_pool_alloc_netmems net/core/page_pool.c:667 [inline] page_pool_alloc_netmems+0xc4/0x1a0 net/core/page_pool.c:654 page_pool_alloc_netmem include/net/page_pool/helpers.h:128 [inline] page_pool_alloc include/net/page_pool/helpers.h:167 [inline] page_pool_dev_alloc include/net/page_pool/helpers.h:188 [inline] skb_pp_cow_data+0x80f/0x10c0 net/core/skbuff.c:972 skb_cow_data_for_xdp+0x88/0xb0 net/core/skbuff.c:1006 netif_skb_check_for_xdp net/core/dev.c:5500 [inline] netif_receive_generic_xdp net/core/dev.c:5541 [inline] do_xdp_generic+0x542/0x1270 net/core/dev.c:5609 tun_get_user+0x1bd2/0x3e10 drivers/net/tun.c:1872 tun_chr_write_iter+0xdc/0x200 drivers/net/tun.c:1999 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x6ac/0x1070 fs/read_write.c:686 ksys_write+0x12a/0x250 fs/read_write.c:738 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xc9/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f 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:1433 [inline] __free_frozen_pages+0x822/0x1130 mm/page_alloc.c:2973 __pagetable_free include/linux/mm.h:3204 [inline] pagetable_free include/linux/mm.h:3228 [inline] pagetable_dtor_free include/linux/mm.h:3332 [inline] __tlb_remove_table include/asm-generic/tlb.h:221 [inline] __tlb_remove_table_free mm/mmu_gather.c:228 [inline] tlb_remove_table_rcu+0x2b2/0x390 mm/mmu_gather.c:291 rcu_do_batch kernel/rcu/tree.c:2605 [inline] rcu_core+0x7c0/0x15c0 kernel/rcu/tree.c:2857 handle_softirqs+0x1ea/0x910 kernel/softirq.c:622 __do_softirq kernel/softirq.c:656 [inline] invoke_softirq kernel/softirq.c:496 [inline] __irq_exit_rcu+0xef/0x150 kernel/softirq.c:723 irq_exit_rcu+0x9/0x30 kernel/softirq.c:739 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1056 [inline] sysvec_apic_timer_interrupt+0xa3/0xc0 arch/x86/kernel/apic/apic.c:1056 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:697 Modules linked in: CPU: 2 UID: 0 PID: 6815 Comm: syz.2.3741 Tainted: G B L syzkaller #0 PREEMPT(full) Tainted: [B]=BAD_PAGE, [L]=SOFTLOCKUP Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x100/0x190 lib/dump_stack.c:120 bad_page.cold+0xbe/0xdf mm/page_alloc.c:677 free_page_is_bad mm/page_alloc.c:1121 [inline] free_page_is_bad mm/page_alloc.c:1115 [inline] free_pages_prepare mm/page_alloc.c:1425 [inline] __free_frozen_pages+0x856/0x1130 mm/page_alloc.c:2973 page_frag_free+0x284/0x2e0 mm/page_frag_cache.c:169 __xdp_return+0x3cd/0xb90 net/core/xdp.c:448 bpf_xdp_shrink_data net/core/filter.c:4202 [inline] bpf_xdp_frags_shrink_tail net/core/filter.c:4226 [inline] ____bpf_xdp_adjust_tail net/core/filter.c:4248 [inline] bpf_xdp_adjust_tail+0x854/0xb60 net/core/filter.c:4241 bpf_prog_5d7dc57dfd7f985a+0x1e/0x24 __bpf_prog_run include/linux/filter.h:723 [inline] bpf_prog_run_xdp include/net/xdp.h:696 [inline] bpf_prog_run_generic_xdp+0x614/0x1510 net/core/dev.c:5431 netif_receive_generic_xdp net/core/dev.c:5547 [inline] do_xdp_generic+0x8f8/0x1270 net/core/dev.c:5609 tun_get_user+0x1bd2/0x3e10 drivers/net/tun.c:1872 tun_chr_write_iter+0xdc/0x200 drivers/net/tun.c:1999 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x6ac/0x1070 fs/read_write.c:686 ksys_write+0x12a/0x250 fs/read_write.c:738 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xc9/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f2bd895b78e Code: 08 0f 85 a5 a8 ff ff 49 89 fb 48 89 f0 48 89 d7 48 89 ce 4c 89 c2 4d 89 ca 4c 8b 44 24 08 4c 8b 4c 24 10 4c 89 5c 24 08 0f 05 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 80 00 00 00 00 48 83 ec 08 RSP: 002b:00007f2bd98cefb8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f2bd98cf6c0 RCX: 00007f2bd895b78e RDX: 000000000000fdef RSI: 00002000000001c0 RDI: 00000000000000c8 RBP: 00007f2bd8a08c1f R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f2bd8c16218 R14: 00007f2bd8c16180 R15: 00007ffda3969c88 BUG: Bad page state in process syz.2.3741 pfn:46981 page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x2000000b7 pfn:0x46981 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 dead000000000040 ffff8880222ea000 0000000000000000 raw: 00000002000000b7 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 6815, tgid 6812 (syz.2.3741), ts 505923379816, free_ts 505827335673 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1e1/0x250 mm/page_alloc.c:1884 prep_new_page mm/page_alloc.c:1892 [inline] get_page_from_freelist+0xe3d/0x2e10 mm/page_alloc.c:3945 __alloc_frozen_pages_noprof+0x26c/0x2410 mm/page_alloc.c:5240 __alloc_pages_noprof mm/page_alloc.c:5274 [inline] alloc_pages_bulk_noprof+0x777/0x1500 mm/page_alloc.c:5194 alloc_pages_bulk_node_noprof include/linux/gfp.h:255 [inline] __page_pool_alloc_netmems_slow+0x1c6/0xc10 net/core/page_pool.c:616 page_pool_alloc_netmems net/core/page_pool.c:667 [inline] page_pool_alloc_netmems+0xc4/0x1a0 net/core/page_pool.c:654 page_pool_alloc_netmem include/net/page_pool/helpers.h:128 [inline] page_pool_alloc include/net/page_pool/helpers.h:167 [inline] page_pool_dev_alloc include/net/page_pool/helpers.h:188 [inline] skb_pp_cow_data+0x80f/0x10c0 net/core/skbuff.c:972 skb_cow_data_for_xdp+0x88/0xb0 net/core/skbuff.c:1006 netif_skb_check_for_xdp net/core/dev.c:5500 [inline] netif_receive_generic_xdp net/core/dev.c:5541 [inline] do_xdp_generic+0x542/0x1270 net/core/dev.c:5609 tun_get_user+0x1bd2/0x3e10 drivers/net/tun.c:1872 tun_chr_write_iter+0xdc/0x200 drivers/net/tun.c:1999 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x6ac/0x1070 fs/read_write.c:686 ksys_write+0x12a/0x250 fs/read_write.c:738 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xc9/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f 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:1433 [inline] __free_frozen_pages+0x822/0x1130 mm/page_alloc.c:2973 __pagetable_free include/linux/mm.h:3204 [inline] pagetable_free include/linux/mm.h:3228 [inline] pagetable_dtor_free include/linux/mm.h:3332 [inline] __tlb_remove_table include/asm-generic/tlb.h:221 [inline] __tlb_remove_table_free mm/mmu_gather.c:228 [inline] tlb_remove_table_rcu+0x2b2/0x390 mm/mmu_gather.c:291 rcu_do_batch kernel/rcu/tree.c:2605 [inline] rcu_core+0x7c0/0x15c0 kernel/rcu/tree.c:2857 handle_softirqs+0x1ea/0x910 kernel/softirq.c:622 __do_softirq kernel/softirq.c:656 [inline] invoke_softirq kernel/softirq.c:496 [inline] __irq_exit_rcu+0xef/0x150 kernel/softirq.c:723 irq_exit_rcu+0x9/0x30 kernel/softirq.c:739 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1056 [inline] sysvec_apic_timer_interrupt+0xa3/0xc0 arch/x86/kernel/apic/apic.c:1056 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:697 Modules linked in: CPU: 2 UID: 0 PID: 6815 Comm: syz.2.3741 Tainted: G B L syzkaller #0 PREEMPT(full) Tainted: [B]=BAD_PAGE, [L]=SOFTLOCKUP Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x100/0x190 lib/dump_stack.c:120 bad_page.cold+0xbe/0xdf mm/page_alloc.c:677 free_page_is_bad mm/page_alloc.c:1121 [inline] free_page_is_bad mm/page_alloc.c:1115 [inline] free_pages_prepare mm/page_alloc.c:1425 [inline] __free_frozen_pages+0x856/0x1130 mm/page_alloc.c:2973 page_frag_free+0x284/0x2e0 mm/page_frag_cache.c:169 __xdp_return+0x3cd/0xb90 net/core/xdp.c:448 bpf_xdp_shrink_data net/core/filter.c:4202 [inline] bpf_xdp_frags_shrink_tail net/core/filter.c:4226 [inline] ____bpf_xdp_adjust_tail net/core/filter.c:4248 [inline] bpf_xdp_adjust_tail+0x854/0xb60 net/core/filter.c:4241 bpf_prog_5d7dc57dfd7f985a+0x1e/0x24 __bpf_prog_run include/linux/filter.h:723 [inline] bpf_prog_run_xdp include/net/xdp.h:696 [inline] bpf_prog_run_generic_xdp+0x614/0x1510 net/core/dev.c:5431 netif_receive_generic_xdp net/core/dev.c:5547 [inline] do_xdp_generic+0x8f8/0x1270 net/core/dev.c:5609 tun_get_user+0x1bd2/0x3e10 drivers/net/tun.c:1872 tun_chr_write_iter+0xdc/0x200 drivers/net/tun.c:1999 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x6ac/0x1070 fs/read_write.c:686 ksys_write+0x12a/0x250 fs/read_write.c:738 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xc9/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f2bd895b78e Code: 08 0f 85 a5 a8 ff ff 49 89 fb 48 89 f0 48 89 d7 48 89 ce 4c 89 c2 4d 89 ca 4c 8b 44 24 08 4c 8b 4c 24 10 4c 89 5c 24 08 0f 05 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 80 00 00 00 00 48 83 ec 08 RSP: 002b:00007f2bd98cefb8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f2bd98cf6c0 RCX: 00007f2bd895b78e RDX: 000000000000fdef RSI: 00002000000001c0 RDI: 00000000000000c8 RBP: 00007f2bd8a08c1f R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f2bd8c16218 R14: 00007f2bd8c16180 R15: 00007ffda3969c88 BUG: Bad page state in process syz.2.3741 pfn:4693e page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x200000113 pfn:0x4693e flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 dead000000000040 ffff8880222ea000 0000000000000000 raw: 0000000200000113 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 6815, tgid 6812 (syz.2.3741), ts 505923373684, free_ts 505827357579 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1e1/0x250 mm/page_alloc.c:1884 prep_new_page mm/page_alloc.c:1892 [inline] get_page_from_freelist+0xe3d/0x2e10 mm/page_alloc.c:3945 __alloc_frozen_pages_noprof+0x26c/0x2410 mm/page_alloc.c:5240 __alloc_pages_noprof mm/page_alloc.c:5274 [inline] alloc_pages_bulk_noprof+0x777/0x1500 mm/page_alloc.c:5194 alloc_pages_bulk_node_noprof include/linux/gfp.h:255 [inline] __page_pool_alloc_netmems_slow+0x1c6/0xc10 net/core/page_pool.c:616 page_pool_alloc_netmems net/core/page_pool.c:667 [inline] page_pool_alloc_netmems+0xc4/0x1a0 net/core/page_pool.c:654 page_pool_alloc_netmem include/net/page_pool/helpers.h:128 [inline] page_pool_alloc include/net/page_pool/helpers.h:167 [inline] page_pool_dev_alloc include/net/page_pool/helpers.h:188 [inline] skb_pp_cow_data+0x80f/0x10c0 net/core/skbuff.c:972 skb_cow_data_for_xdp+0x88/0xb0 net/core/skbuff.c:1006 netif_skb_check_for_xdp net/core/dev.c:5500 [inline] netif_receive_generic_xdp net/core/dev.c:5541 [inline] do_xdp_generic+0x542/0x1270 net/core/dev.c:5609 tun_get_user+0x1bd2/0x3e10 drivers/net/tun.c:1872 tun_chr_write_iter+0xdc/0x200 drivers/net/tun.c:1999 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x6ac/0x1070 fs/read_write.c:686 ksys_write+0x12a/0x250 fs/read_write.c:738 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xc9/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f 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:1433 [inline] __free_frozen_pages+0x822/0x1130 mm/page_alloc.c:2973 __pagetable_free include/linux/mm.h:3204 [inline] pagetable_free include/linux/mm.h:3228 [inline] pagetable_dtor_free include/linux/mm.h:3332 [inline] __tlb_remove_table include/asm-generic/tlb.h:221 [inline] __tlb_remove_table_free mm/mmu_gather.c:228 [inline] tlb_remove_table_rcu+0x2b2/0x390 mm/mmu_gather.c:291 rcu_do_batch kernel/rcu/tree.c:2605 [inline] rcu_core+0x7c0/0x15c0 kernel/rcu/tree.c:2857 handle_softirqs+0x1ea/0x910 kernel/softirq.c:622 __do_softirq kernel/softirq.c:656 [inline] invoke_softirq kernel/softirq.c:496 [inline] __irq_exit_rcu+0xef/0x150 kernel/softirq.c:723 irq_exit_rcu+0x9/0x30 kernel/softirq.c:739 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1056 [inline] sysvec_apic_timer_interrupt+0xa3/0xc0 arch/x86/kernel/apic/apic.c:1056 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:697 Modules linked in: CPU: 2 UID: 0 PID: 6815 Comm: syz.2.3741 Tainted: G B L syzkaller #0 PREEMPT(full) Tainted: [B]=BAD_PAGE, [L]=SOFTLOCKUP Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x100/0x190 lib/dump_stack.c:120 bad_page.cold+0xbe/0xdf mm/page_alloc.c:677 free_page_is_bad mm/page_alloc.c:1121 [inline] free_page_is_bad mm/page_alloc.c:1115 [inline] free_pages_prepare mm/page_alloc.c:1425 [inline] __free_frozen_pages+0x856/0x1130 mm/page_alloc.c:2973 page_frag_free+0x284/0x2e0 mm/page_frag_cache.c:169 __xdp_return+0x3cd/0xb90 net/core/xdp.c:448 bpf_xdp_shrink_data net/core/filter.c:4202 [inline] bpf_xdp_frags_shrink_tail net/core/filter.c:4226 [inline] ____bpf_xdp_adjust_tail net/core/filter.c:4248 [inline] bpf_xdp_adjust_tail+0x854/0xb60 net/core/filter.c:4241 bpf_prog_5d7dc57dfd7f985a+0x1e/0x24 __bpf_prog_run include/linux/filter.h:723 [inline] bpf_prog_run_xdp include/net/xdp.h:696 [inline] bpf_prog_run_generic_xdp+0x614/0x1510 net/core/dev.c:5431 netif_receive_generic_xdp net/core/dev.c:5547 [inline] do_xdp_generic+0x8f8/0x1270 net/core/dev.c:5609 tun_get_user+0x1bd2/0x3e10 drivers/net/tun.c:1872 tun_chr_write_iter+0xdc/0x200 drivers/net/tun.c:1999 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x6ac/0x1070 fs/read_write.c:686 ksys_write+0x12a/0x250 fs/read_write.c:738 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xc9/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f2bd895b78e Code: 08 0f 85 a5 a8 ff ff 49 89 fb 48 89 f0 48 89 d7 48 89 ce 4c 89 c2 4d 89 ca 4c 8b 44 24 08 4c 8b 4c 24 10 4c 89 5c 24 08 0f 05 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 80 00 00 00 00 48 83 ec 08 RSP: 002b:00007f2bd98cefb8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f2bd98cf6c0 RCX: 00007f2bd895b78e RDX: 000000000000fdef RSI: 00002000000001c0 RDI: 00000000000000c8 RBP: 00007f2bd8a08c1f R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f2bd8c16218 R14: 00007f2bd8c16180 R15: 00007ffda3969c88