BUG: Bad page state in process syz.6.1646 pfn:47b04 page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff888000000000 pfn:0x47b04 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 dead000000000040 ffff888022233000 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 0x102820(GFP_ATOMIC|__GFP_NOWARN|__GFP_HARDWALL), pid 12083, tgid 12082 (syz.6.1646), ts 172157750119, free_ts 170428887821 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1c0/0x230 mm/page_alloc.c:1851 prep_new_page mm/page_alloc.c:1859 [inline] get_page_from_freelist+0x132b/0x38e0 mm/page_alloc.c:3858 __alloc_frozen_pages_noprof+0x261/0x23f0 mm/page_alloc.c:5148 __alloc_pages_noprof mm/page_alloc.c:5182 [inline] alloc_pages_bulk_noprof+0x71c/0x1410 mm/page_alloc.c:5102 alloc_pages_bulk_node_noprof include/linux/gfp.h:254 [inline] __page_pool_alloc_netmems_slow+0x193/0xc60 net/core/page_pool.c:567 page_pool_alloc_netmems net/core/page_pool.c:618 [inline] page_pool_alloc_netmems+0xc4/0x190 net/core/page_pool.c:605 page_pool_alloc_frag_netmem+0x219/0x9c0 net/core/page_pool.c:1038 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+0x584/0xff0 net/core/skbuff.c:951 skb_cow_data_for_xdp+0x88/0xb0 net/core/skbuff.c:985 netif_skb_check_for_xdp net/core/dev.c:5341 [inline] netif_receive_generic_xdp net/core/dev.c:5382 [inline] do_xdp_generic+0x530/0x1320 net/core/dev.c:5450 tun_get_user+0x1d43/0x3ce0 drivers/net/tun.c:1872 tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:1996 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x7d0/0x11d0 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+0xcd/0x4c0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 11888 tgid 11886 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1395 [inline] __free_frozen_pages+0x7d5/0x10f0 mm/page_alloc.c:2895 pagetable_free include/linux/mm.h:2898 [inline] pagetable_dtor_free include/linux/mm.h:2996 [inline] __tlb_remove_table include/asm-generic/tlb.h:220 [inline] __tlb_remove_table_free mm/mmu_gather.c:227 [inline] tlb_remove_table_rcu+0x116/0x1a0 mm/mmu_gather.c:290 rcu_do_batch kernel/rcu/tree.c:2605 [inline] rcu_core+0x79c/0x1530 kernel/rcu/tree.c:2861 handle_softirqs+0x216/0x8e0 kernel/softirq.c:579 __do_softirq kernel/softirq.c:613 [inline] invoke_softirq kernel/softirq.c:453 [inline] __irq_exit_rcu+0x109/0x170 kernel/softirq.c:680 irq_exit_rcu+0x9/0x30 kernel/softirq.c:696 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1050 [inline] sysvec_apic_timer_interrupt+0xa4/0xc0 arch/x86/kernel/apic/apic.c:1050 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702 Modules linked in: CPU: 0 UID: 0 PID: 12083 Comm: syz.6.1646 Not tainted syzkaller #0 PREEMPT(full) 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+0xcf/0x220 mm/page_alloc.c:650 free_page_is_bad mm/page_alloc.c:1083 [inline] free_page_is_bad mm/page_alloc.c:1077 [inline] free_pages_prepare mm/page_alloc.c:1387 [inline] __free_frozen_pages+0x7f7/0x10f0 mm/page_alloc.c:2895 page_frag_free+0x27f/0x2e0 mm/page_frag_cache.c:169 __xdp_return+0x3ab/0xab0 net/core/xdp.c:448 bpf_xdp_shrink_data net/core/filter.c:4181 [inline] bpf_xdp_frags_shrink_tail net/core/filter.c:4201 [inline] ____bpf_xdp_adjust_tail net/core/filter.c:4226 [inline] bpf_xdp_adjust_tail+0xa11/0xfd0 net/core/filter.c:4219 bpf_prog_f476d5219b92964a+0x1e/0x24 __bpf_prog_run include/linux/filter.h:718 [inline] bpf_prog_run_xdp include/net/xdp.h:657 [inline] bpf_prog_run_generic_xdp+0x626/0x1530 net/core/dev.c:5272 netif_receive_generic_xdp net/core/dev.c:5388 [inline] do_xdp_generic+0x8e6/0x1320 net/core/dev.c:5450 tun_get_user+0x1d43/0x3ce0 drivers/net/tun.c:1872 tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:1996 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x7d0/0x11d0 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+0xcd/0x4c0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fed0798d69f Code: 89 54 24 18 48 89 74 24 10 89 7c 24 08 e8 f9 92 02 00 48 8b 54 24 18 48 8b 74 24 10 41 89 c0 8b 7c 24 08 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 31 44 89 c7 48 89 44 24 08 e8 4c 93 02 00 48 RSP: 002b:00007fed087e4000 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007fed07bb5fa0 RCX: 00007fed0798d69f RDX: 000000000000fed7 RSI: 00002000000002c0 RDI: 00000000000000c8 RBP: 00007fed07a11e19 R08: 0000000000000000 R09: 0000000000000000 R10: 000000000000fed7 R11: 0000000000000293 R12: 0000000000000000 R13: 00007fed07bb6038 R14: 00007fed07bb5fa0 R15: 00007ffc5f7ea498 BUG: Bad page state in process syz.6.1646 pfn:51cb4 page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff888051cb4f00 pfn:0x51cb4 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 dead000000000040 ffff888022233000 0000000000000000 raw: ffff888051cb4f00 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 0x102820(GFP_ATOMIC|__GFP_NOWARN|__GFP_HARDWALL), pid 12083, tgid 12082 (syz.6.1646), ts 172157743428, free_ts 170428532818 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1c0/0x230 mm/page_alloc.c:1851 prep_new_page mm/page_alloc.c:1859 [inline] get_page_from_freelist+0x132b/0x38e0 mm/page_alloc.c:3858 __alloc_frozen_pages_noprof+0x261/0x23f0 mm/page_alloc.c:5148 __alloc_pages_noprof mm/page_alloc.c:5182 [inline] alloc_pages_bulk_noprof+0x71c/0x1410 mm/page_alloc.c:5102 alloc_pages_bulk_node_noprof include/linux/gfp.h:254 [inline] __page_pool_alloc_netmems_slow+0x193/0xc60 net/core/page_pool.c:567 page_pool_alloc_netmems net/core/page_pool.c:618 [inline] page_pool_alloc_netmems+0xc4/0x190 net/core/page_pool.c:605 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+0x7c0/0xff0 net/core/skbuff.c:951 skb_cow_data_for_xdp+0x88/0xb0 net/core/skbuff.c:985 netif_skb_check_for_xdp net/core/dev.c:5341 [inline] netif_receive_generic_xdp net/core/dev.c:5382 [inline] do_xdp_generic+0x530/0x1320 net/core/dev.c:5450 tun_get_user+0x1d43/0x3ce0 drivers/net/tun.c:1872 tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:1996 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x7d0/0x11d0 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+0xcd/0x4c0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 11888 tgid 11886 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1395 [inline] __free_frozen_pages+0x7d5/0x10f0 mm/page_alloc.c:2895 pagetable_free include/linux/mm.h:2898 [inline] pagetable_dtor_free include/linux/mm.h:2996 [inline] __tlb_remove_table include/asm-generic/tlb.h:220 [inline] __tlb_remove_table_free mm/mmu_gather.c:227 [inline] tlb_remove_table_rcu+0x116/0x1a0 mm/mmu_gather.c:290 rcu_do_batch kernel/rcu/tree.c:2605 [inline] rcu_core+0x79c/0x1530 kernel/rcu/tree.c:2861 handle_softirqs+0x216/0x8e0 kernel/softirq.c:579 __do_softirq kernel/softirq.c:613 [inline] invoke_softirq kernel/softirq.c:453 [inline] __irq_exit_rcu+0x109/0x170 kernel/softirq.c:680 irq_exit_rcu+0x9/0x30 kernel/softirq.c:696 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1050 [inline] sysvec_apic_timer_interrupt+0xa4/0xc0 arch/x86/kernel/apic/apic.c:1050 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702 Modules linked in: CPU: 0 UID: 0 PID: 12083 Comm: syz.6.1646 Tainted: G B syzkaller #0 PREEMPT(full) 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+0xcf/0x220 mm/page_alloc.c:650 free_page_is_bad mm/page_alloc.c:1083 [inline] free_page_is_bad mm/page_alloc.c:1077 [inline] free_pages_prepare mm/page_alloc.c:1387 [inline] __free_frozen_pages+0x7f7/0x10f0 mm/page_alloc.c:2895 page_frag_free+0x27f/0x2e0 mm/page_frag_cache.c:169 __xdp_return+0x3ab/0xab0 net/core/xdp.c:448 bpf_xdp_shrink_data net/core/filter.c:4181 [inline] bpf_xdp_frags_shrink_tail net/core/filter.c:4201 [inline] ____bpf_xdp_adjust_tail net/core/filter.c:4226 [inline] bpf_xdp_adjust_tail+0xa11/0xfd0 net/core/filter.c:4219 bpf_prog_f476d5219b92964a+0x1e/0x24 __bpf_prog_run include/linux/filter.h:718 [inline] bpf_prog_run_xdp include/net/xdp.h:657 [inline] bpf_prog_run_generic_xdp+0x626/0x1530 net/core/dev.c:5272 netif_receive_generic_xdp net/core/dev.c:5388 [inline] do_xdp_generic+0x8e6/0x1320 net/core/dev.c:5450 tun_get_user+0x1d43/0x3ce0 drivers/net/tun.c:1872 tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:1996 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x7d0/0x11d0 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+0xcd/0x4c0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fed0798d69f Code: 89 54 24 18 48 89 74 24 10 89 7c 24 08 e8 f9 92 02 00 48 8b 54 24 18 48 8b 74 24 10 41 89 c0 8b 7c 24 08 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 31 44 89 c7 48 89 44 24 08 e8 4c 93 02 00 48 RSP: 002b:00007fed087e4000 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007fed07bb5fa0 RCX: 00007fed0798d69f RDX: 000000000000fed7 RSI: 00002000000002c0 RDI: 00000000000000c8 RBP: 00007fed07a11e19 R08: 0000000000000000 R09: 0000000000000000 R10: 000000000000fed7 R11: 0000000000000293 R12: 0000000000000000 R13: 00007fed07bb6038 R14: 00007fed07bb5fa0 R15: 00007ffc5f7ea498 BUG: Bad page state in process syz.6.1646 pfn:321ea page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x321ea flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 dead000000000040 ffff888022233000 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 0x102820(GFP_ATOMIC|__GFP_NOWARN|__GFP_HARDWALL), pid 12083, tgid 12082 (syz.6.1646), ts 172157737018, free_ts 170238410820 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1c0/0x230 mm/page_alloc.c:1851 prep_new_page mm/page_alloc.c:1859 [inline] get_page_from_freelist+0x132b/0x38e0 mm/page_alloc.c:3858 __alloc_frozen_pages_noprof+0x261/0x23f0 mm/page_alloc.c:5148 __alloc_pages_noprof mm/page_alloc.c:5182 [inline] alloc_pages_bulk_noprof+0x71c/0x1410 mm/page_alloc.c:5102 alloc_pages_bulk_node_noprof include/linux/gfp.h:254 [inline] __page_pool_alloc_netmems_slow+0x193/0xc60 net/core/page_pool.c:567 page_pool_alloc_netmems net/core/page_pool.c:618 [inline] page_pool_alloc_netmems+0xc4/0x190 net/core/page_pool.c:605 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+0x7c0/0xff0 net/core/skbuff.c:951 skb_cow_data_for_xdp+0x88/0xb0 net/core/skbuff.c:985 netif_skb_check_for_xdp net/core/dev.c:5341 [inline] netif_receive_generic_xdp net/core/dev.c:5382 [inline] do_xdp_generic+0x530/0x1320 net/core/dev.c:5450 tun_get_user+0x1d43/0x3ce0 drivers/net/tun.c:1872 tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:1996 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x7d0/0x11d0 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+0xcd/0x4c0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 11870 tgid 11870 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1395 [inline] __free_frozen_pages+0x7d5/0x10f0 mm/page_alloc.c:2895 pagetable_free include/linux/mm.h:2898 [inline] pagetable_dtor_free include/linux/mm.h:2996 [inline] __tlb_remove_table include/asm-generic/tlb.h:220 [inline] __tlb_remove_table_free mm/mmu_gather.c:227 [inline] tlb_remove_table_rcu+0x116/0x1a0 mm/mmu_gather.c:290 rcu_do_batch kernel/rcu/tree.c:2605 [inline] rcu_core+0x79c/0x1530 kernel/rcu/tree.c:2861 handle_softirqs+0x216/0x8e0 kernel/softirq.c:579 __do_softirq kernel/softirq.c:613 [inline] invoke_softirq kernel/softirq.c:453 [inline] __irq_exit_rcu+0x109/0x170 kernel/softirq.c:680 irq_exit_rcu+0x9/0x30 kernel/softirq.c:696 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1050 [inline] sysvec_apic_timer_interrupt+0xa4/0xc0 arch/x86/kernel/apic/apic.c:1050 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702 Modules linked in: CPU: 0 UID: 0 PID: 12083 Comm: syz.6.1646 Tainted: G B syzkaller #0 PREEMPT(full) 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+0xcf/0x220 mm/page_alloc.c:650 free_page_is_bad mm/page_alloc.c:1083 [inline] free_page_is_bad mm/page_alloc.c:1077 [inline] free_pages_prepare mm/page_alloc.c:1387 [inline] __free_frozen_pages+0x7f7/0x10f0 mm/page_alloc.c:2895 page_frag_free+0x27f/0x2e0 mm/page_frag_cache.c:169 __xdp_return+0x3ab/0xab0 net/core/xdp.c:448 bpf_xdp_shrink_data net/core/filter.c:4181 [inline] bpf_xdp_frags_shrink_tail net/core/filter.c:4201 [inline] ____bpf_xdp_adjust_tail net/core/filter.c:4226 [inline] bpf_xdp_adjust_tail+0xa11/0xfd0 net/core/filter.c:4219 bpf_prog_f476d5219b92964a+0x1e/0x24 __bpf_prog_run include/linux/filter.h:718 [inline] bpf_prog_run_xdp include/net/xdp.h:657 [inline] bpf_prog_run_generic_xdp+0x626/0x1530 net/core/dev.c:5272 netif_receive_generic_xdp net/core/dev.c:5388 [inline] do_xdp_generic+0x8e6/0x1320 net/core/dev.c:5450 tun_get_user+0x1d43/0x3ce0 drivers/net/tun.c:1872 tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:1996 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x7d0/0x11d0 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+0xcd/0x4c0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fed0798d69f Code: 89 54 24 18 48 89 74 24 10 89 7c 24 08 e8 f9 92 02 00 48 8b 54 24 18 48 8b 74 24 10 41 89 c0 8b 7c 24 08 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 31 44 89 c7 48 89 44 24 08 e8 4c 93 02 00 48 RSP: 002b:00007fed087e4000 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007fed07bb5fa0 RCX: 00007fed0798d69f RDX: 000000000000fed7 RSI: 00002000000002c0 RDI: 00000000000000c8 RBP: 00007fed07a11e19 R08: 0000000000000000 R09: 0000000000000000 R10: 000000000000fed7 R11: 0000000000000293 R12: 0000000000000000 R13: 00007fed07bb6038 R14: 00007fed07bb5fa0 R15: 00007ffc5f7ea498 BUG: Bad page state in process syz.6.1646 pfn:5155b page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff88805155bf00 pfn:0x5155b flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 dead000000000040 ffff888022233000 0000000000000000 raw: ffff88805155bf00 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 0x102820(GFP_ATOMIC|__GFP_NOWARN|__GFP_HARDWALL), pid 12083, tgid 12082 (syz.6.1646), ts 172157730259, free_ts 170428749847 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1c0/0x230 mm/page_alloc.c:1851 prep_new_page mm/page_alloc.c:1859 [inline] get_page_from_freelist+0x132b/0x38e0 mm/page_alloc.c:3858 __alloc_frozen_pages_noprof+0x261/0x23f0 mm/page_alloc.c:5148 __alloc_pages_noprof mm/page_alloc.c:5182 [inline] alloc_pages_bulk_noprof+0x71c/0x1410 mm/page_alloc.c:5102 alloc_pages_bulk_node_noprof include/linux/gfp.h:254 [inline] __page_pool_alloc_netmems_slow+0x193/0xc60 net/core/page_pool.c:567 page_pool_alloc_netmems net/core/page_pool.c:618 [inline] page_pool_alloc_netmems+0xc4/0x190 net/core/page_pool.c:605 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+0x7c0/0xff0 net/core/skbuff.c:951 skb_cow_data_for_xdp+0x88/0xb0 net/core/skbuff.c:985 netif_skb_check_for_xdp net/core/dev.c:5341 [inline] netif_receive_generic_xdp net/core/dev.c:5382 [inline] do_xdp_generic+0x530/0x1320 net/core/dev.c:5450 tun_get_user+0x1d43/0x3ce0 drivers/net/tun.c:1872 tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:1996 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x7d0/0x11d0 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+0xcd/0x4c0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 11888 tgid 11886 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1395 [inline] __free_frozen_pages+0x7d5/0x10f0 mm/page_alloc.c:2895 pagetable_free include/linux/mm.h:2898 [inline] pagetable_dtor_free include/linux/mm.h:2996 [inline] __tlb_remove_table include/asm-generic/tlb.h:220 [inline] __tlb_remove_table_free mm/mmu_gather.c:227 [inline] tlb_remove_table_rcu+0x116/0x1a0 mm/mmu_gather.c:290 rcu_do_batch kernel/rcu/tree.c:2605 [inline] rcu_core+0x79c/0x1530 kernel/rcu/tree.c:2861 handle_softirqs+0x216/0x8e0 kernel/softirq.c:579 __do_softirq kernel/softirq.c:613 [inline] invoke_softirq kernel/softirq.c:453 [inline] __irq_exit_rcu+0x109/0x170 kernel/softirq.c:680 irq_exit_rcu+0x9/0x30 kernel/softirq.c:696 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1050 [inline] sysvec_apic_timer_interrupt+0xa4/0xc0 arch/x86/kernel/apic/apic.c:1050 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702 Modules linked in: CPU: 0 UID: 0 PID: 12083 Comm: syz.6.1646 Tainted: G B syzkaller #0 PREEMPT(full) 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+0xcf/0x220 mm/page_alloc.c:650 free_page_is_bad mm/page_alloc.c:1083 [inline] free_page_is_bad mm/page_alloc.c:1077 [inline] free_pages_prepare mm/page_alloc.c:1387 [inline] __free_frozen_pages+0x7f7/0x10f0 mm/page_alloc.c:2895 page_frag_free+0x27f/0x2e0 mm/page_frag_cache.c:169 __xdp_return+0x3ab/0xab0 net/core/xdp.c:448 bpf_xdp_shrink_data net/core/filter.c:4181 [inline] bpf_xdp_frags_shrink_tail net/core/filter.c:4201 [inline] ____bpf_xdp_adjust_tail net/core/filter.c:4226 [inline] bpf_xdp_adjust_tail+0xa11/0xfd0 net/core/filter.c:4219 bpf_prog_f476d5219b92964a+0x1e/0x24 __bpf_prog_run include/linux/filter.h:718 [inline] bpf_prog_run_xdp include/net/xdp.h:657 [inline] bpf_prog_run_generic_xdp+0x626/0x1530 net/core/dev.c:5272 netif_receive_generic_xdp net/core/dev.c:5388 [inline] do_xdp_generic+0x8e6/0x1320 net/core/dev.c:5450 tun_get_user+0x1d43/0x3ce0 drivers/net/tun.c:1872 tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:1996 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x7d0/0x11d0 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+0xcd/0x4c0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fed0798d69f Code: 89 54 24 18 48 89 74 24 10 89 7c 24 08 e8 f9 92 02 00 48 8b 54 24 18 48 8b 74 24 10 41 89 c0 8b 7c 24 08 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 31 44 89 c7 48 89 44 24 08 e8 4c 93 02 00 48 RSP: 002b:00007fed087e4000 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007fed07bb5fa0 RCX: 00007fed0798d69f RDX: 000000000000fed7 RSI: 00002000000002c0 RDI: 00000000000000c8 RBP: 00007fed07a11e19 R08: 0000000000000000 R09: 0000000000000000 R10: 000000000000fed7 R11: 0000000000000293 R12: 0000000000000000 R13: 00007fed07bb6038 R14: 00007fed07bb5fa0 R15: 00007ffc5f7ea498 BUG: Bad page state in process syz.6.1646 pfn:5c9c7 page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x5c9c7 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 dead000000000040 ffff888022233000 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 0x102820(GFP_ATOMIC|__GFP_NOWARN|__GFP_HARDWALL), pid 12083, tgid 12082 (syz.6.1646), ts 172157723817, free_ts 172018536597 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1c0/0x230 mm/page_alloc.c:1851 prep_new_page mm/page_alloc.c:1859 [inline] get_page_from_freelist+0x132b/0x38e0 mm/page_alloc.c:3858 __alloc_frozen_pages_noprof+0x261/0x23f0 mm/page_alloc.c:5148 __alloc_pages_noprof mm/page_alloc.c:5182 [inline] alloc_pages_bulk_noprof+0x71c/0x1410 mm/page_alloc.c:5102 alloc_pages_bulk_node_noprof include/linux/gfp.h:254 [inline] __page_pool_alloc_netmems_slow+0x193/0xc60 net/core/page_pool.c:567 page_pool_alloc_netmems net/core/page_pool.c:618 [inline] page_pool_alloc_netmems+0xc4/0x190 net/core/page_pool.c:605 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+0x7c0/0xff0 net/core/skbuff.c:951 skb_cow_data_for_xdp+0x88/0xb0 net/core/skbuff.c:985 netif_skb_check_for_xdp net/core/dev.c:5341 [inline] netif_receive_generic_xdp net/core/dev.c:5382 [inline] do_xdp_generic+0x530/0x1320 net/core/dev.c:5450 tun_get_user+0x1d43/0x3ce0 drivers/net/tun.c:1872 tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:1996 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x7d0/0x11d0 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+0xcd/0x4c0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 15 tgid 15 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1395 [inline] __free_frozen_pages+0x7d5/0x10f0 mm/page_alloc.c:2895 pagetable_free include/linux/mm.h:2898 [inline] pagetable_dtor_free include/linux/mm.h:2996 [inline] __tlb_remove_table include/asm-generic/tlb.h:220 [inline] __tlb_remove_table_free mm/mmu_gather.c:227 [inline] tlb_remove_table_rcu+0x116/0x1a0 mm/mmu_gather.c:290 rcu_do_batch kernel/rcu/tree.c:2605 [inline] rcu_core+0x79c/0x1530 kernel/rcu/tree.c:2861 handle_softirqs+0x216/0x8e0 kernel/softirq.c:579 run_ksoftirqd kernel/softirq.c:968 [inline] run_ksoftirqd+0x3a/0x60 kernel/softirq.c:960 smpboot_thread_fn+0x3f4/0xae0 kernel/smpboot.c:160 kthread+0x3c5/0x780 kernel/kthread.c:463 ret_from_fork+0x5d7/0x6f0 arch/x86/kernel/process.c:148 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 Modules linked in: CPU: 0 UID: 0 PID: 12083 Comm: syz.6.1646 Tainted: G B syzkaller #0 PREEMPT(full) 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+0xcf/0x220 mm/page_alloc.c:650 free_page_is_bad mm/page_alloc.c:1083 [inline] free_page_is_bad mm/page_alloc.c:1077 [inline] free_pages_prepare mm/page_alloc.c:1387 [inline] __free_frozen_pages+0x7f7/0x10f0 mm/page_alloc.c:2895 page_frag_free+0x27f/0x2e0 mm/page_frag_cache.c:169 __xdp_return+0x3ab/0xab0 net/core/xdp.c:448 bpf_xdp_shrink_data net/core/filter.c:4181 [inline] bpf_xdp_frags_shrink_tail net/core/filter.c:4201 [inline] ____bpf_xdp_adjust_tail net/core/filter.c:4226 [inline] bpf_xdp_adjust_tail+0xa11/0xfd0 net/core/filter.c:4219 bpf_prog_f476d5219b92964a+0x1e/0x24 __bpf_prog_run include/linux/filter.h:718 [inline] bpf_prog_run_xdp include/net/xdp.h:657 [inline] bpf_prog_run_generic_xdp+0x626/0x1530 net/core/dev.c:5272 netif_receive_generic_xdp net/core/dev.c:5388 [inline] do_xdp_generic+0x8e6/0x1320 net/core/dev.c:5450 tun_get_user+0x1d43/0x3ce0 drivers/net/tun.c:1872 tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:1996 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x7d0/0x11d0 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+0xcd/0x4c0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fed0798d69f Code: 89 54 24 18 48 89 74 24 10 89 7c 24 08 e8 f9 92 02 00 48 8b 54 24 18 48 8b 74 24 10 41 89 c0 8b 7c 24 08 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 31 44 89 c7 48 89 44 24 08 e8 4c 93 02 00 48 RSP: 002b:00007fed087e4000 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007fed07bb5fa0 RCX: 00007fed0798d69f RDX: 000000000000fed7 RSI: 00002000000002c0 RDI: 00000000000000c8 RBP: 00007fed07a11e19 R08: 0000000000000000 R09: 0000000000000000 R10: 000000000000fed7 R11: 0000000000000293 R12: 0000000000000000 R13: 00007fed07bb6038 R14: 00007fed07bb5fa0 R15: 00007ffc5f7ea498 BUG: Bad page state in process syz.6.1646 pfn:4bab0 page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff888000000000 pfn:0x4bab0 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 dead000000000040 ffff888022233000 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 0x102820(GFP_ATOMIC|__GFP_NOWARN|__GFP_HARDWALL), pid 12083, tgid 12082 (syz.6.1646), ts 172157717530, free_ts 172018547587 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1c0/0x230 mm/page_alloc.c:1851 prep_new_page mm/page_alloc.c:1859 [inline] get_page_from_freelist+0x132b/0x38e0 mm/page_alloc.c:3858 __alloc_frozen_pages_noprof+0x261/0x23f0 mm/page_alloc.c:5148 __alloc_pages_noprof mm/page_alloc.c:5182 [inline] alloc_pages_bulk_noprof+0x71c/0x1410 mm/page_alloc.c:5102 alloc_pages_bulk_node_noprof include/linux/gfp.h:254 [inline] __page_pool_alloc_netmems_slow+0x193/0xc60 net/core/page_pool.c:567 page_pool_alloc_netmems net/core/page_pool.c:618 [inline] page_pool_alloc_netmems+0xc4/0x190 net/core/page_pool.c:605 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+0x7c0/0xff0 net/core/skbuff.c:951 skb_cow_data_for_xdp+0x88/0xb0 net/core/skbuff.c:985 netif_skb_check_for_xdp net/core/dev.c:5341 [inline] netif_receive_generic_xdp net/core/dev.c:5382 [inline] do_xdp_generic+0x530/0x1320 net/core/dev.c:5450 tun_get_user+0x1d43/0x3ce0 drivers/net/tun.c:1872 tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:1996 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x7d0/0x11d0 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+0xcd/0x4c0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 15 tgid 15 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1395 [inline] __free_frozen_pages+0x7d5/0x10f0 mm/page_alloc.c:2895 pagetable_free include/linux/mm.h:2898 [inline] pagetable_dtor_free include/linux/mm.h:2996 [inline] __tlb_remove_table include/asm-generic/tlb.h:220 [inline] __tlb_remove_table_free mm/mmu_gather.c:227 [inline] tlb_remove_table_rcu+0x116/0x1a0 mm/mmu_gather.c:290 rcu_do_batch kernel/rcu/tree.c:2605 [inline] rcu_core+0x79c/0x1530 kernel/rcu/tree.c:2861 handle_softirqs+0x216/0x8e0 kernel/softirq.c:579 run_ksoftirqd kernel/softirq.c:968 [inline] run_ksoftirqd+0x3a/0x60 kernel/softirq.c:960 smpboot_thread_fn+0x3f4/0xae0 kernel/smpboot.c:160 kthread+0x3c5/0x780 kernel/kthread.c:463 ret_from_fork+0x5d7/0x6f0 arch/x86/kernel/process.c:148 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 Modules linked in: CPU: 0 UID: 0 PID: 12083 Comm: syz.6.1646 Tainted: G B syzkaller #0 PREEMPT(full) 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+0xcf/0x220 mm/page_alloc.c:650 free_page_is_bad mm/page_alloc.c:1083 [inline] free_page_is_bad mm/page_alloc.c:1077 [inline] free_pages_prepare mm/page_alloc.c:1387 [inline] __free_frozen_pages+0x7f7/0x10f0 mm/page_alloc.c:2895 page_frag_free+0x27f/0x2e0 mm/page_frag_cache.c:169 __xdp_return+0x3ab/0xab0 net/core/xdp.c:448 bpf_xdp_shrink_data net/core/filter.c:4181 [inline] bpf_xdp_frags_shrink_tail net/core/filter.c:4201 [inline] ____bpf_xdp_adjust_tail net/core/filter.c:4226 [inline] bpf_xdp_adjust_tail+0xa11/0xfd0 net/core/filter.c:4219 bpf_prog_f476d5219b92964a+0x1e/0x24 __bpf_prog_run include/linux/filter.h:718 [inline] bpf_prog_run_xdp include/net/xdp.h:657 [inline] bpf_prog_run_generic_xdp+0x626/0x1530 net/core/dev.c:5272 netif_receive_generic_xdp net/core/dev.c:5388 [inline] do_xdp_generic+0x8e6/0x1320 net/core/dev.c:5450 tun_get_user+0x1d43/0x3ce0 drivers/net/tun.c:1872 tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:1996 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x7d0/0x11d0 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+0xcd/0x4c0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fed0798d69f Code: 89 54 24 18 48 89 74 24 10 89 7c 24 08 e8 f9 92 02 00 48 8b 54 24 18 48 8b 74 24 10 41 89 c0 8b 7c 24 08 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 31 44 89 c7 48 89 44 24 08 e8 4c 93 02 00 48 RSP: 002b:00007fed087e4000 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007fed07bb5fa0 RCX: 00007fed0798d69f RDX: 000000000000fed7 RSI: 00002000000002c0 RDI: 00000000000000c8 RBP: 00007fed07a11e19 R08: 0000000000000000 R09: 0000000000000000 R10: 000000000000fed7 R11: 0000000000000293 R12: 0000000000000000 R13: 00007fed07bb6038 R14: 00007fed07bb5fa0 R15: 00007ffc5f7ea498 BUG: Bad page state in process syz.6.1646 pfn:61ef9 page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff888000000000 pfn:0x61ef9 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 dead000000000040 ffff888022233000 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 0x102820(GFP_ATOMIC|__GFP_NOWARN|__GFP_HARDWALL), pid 12083, tgid 12082 (syz.6.1646), ts 172157710879, free_ts 172018555967 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1c0/0x230 mm/page_alloc.c:1851 prep_new_page mm/page_alloc.c:1859 [inline] get_page_from_freelist+0x132b/0x38e0 mm/page_alloc.c:3858 __alloc_frozen_pages_noprof+0x261/0x23f0 mm/page_alloc.c:5148 __alloc_pages_noprof mm/page_alloc.c:5182 [inline] alloc_pages_bulk_noprof+0x71c/0x1410 mm/page_alloc.c:5102 alloc_pages_bulk_node_noprof include/linux/gfp.h:254 [inline] __page_pool_alloc_netmems_slow+0x193/0xc60 net/core/page_pool.c:567 page_pool_alloc_netmems net/core/page_pool.c:618 [inline] page_pool_alloc_netmems+0xc4/0x190 net/core/page_pool.c:605 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+0x7c0/0xff0 net/core/skbuff.c:951 skb_cow_data_for_xdp+0x88/0xb0 net/core/skbuff.c:985 netif_skb_check_for_xdp net/core/dev.c:5341 [inline] netif_receive_generic_xdp net/core/dev.c:5382 [inline] do_xdp_generic+0x530/0x1320 net/core/dev.c:5450 tun_get_user+0x1d43/0x3ce0 drivers/net/tun.c:1872 tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:1996 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x7d0/0x11d0 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+0xcd/0x4c0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 15 tgid 15 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1395 [inline] __free_frozen_pages+0x7d5/0x10f0 mm/page_alloc.c:2895 pagetable_free include/linux/mm.h:2898 [inline] pagetable_dtor_free include/linux/mm.h:2996 [inline] __tlb_remove_table include/asm-generic/tlb.h:220 [inline] __tlb_remove_table_free mm/mmu_gather.c:227 [inline] tlb_remove_table_rcu+0x116/0x1a0 mm/mmu_gather.c:290 rcu_do_batch kernel/rcu/tree.c:2605 [inline] rcu_core+0x79c/0x1530 kernel/rcu/tree.c:2861 handle_softirqs+0x216/0x8e0 kernel/softirq.c:579 run_ksoftirqd kernel/softirq.c:968 [inline] run_ksoftirqd+0x3a/0x60 kernel/softirq.c:960 smpboot_thread_fn+0x3f4/0xae0 kernel/smpboot.c:160 kthread+0x3c5/0x780 kernel/kthread.c:463 ret_from_fork+0x5d7/0x6f0 arch/x86/kernel/process.c:148 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 Modules linked in: CPU: 0 UID: 0 PID: 12083 Comm: syz.6.1646 Tainted: G B syzkaller #0 PREEMPT(full) 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+0xcf/0x220 mm/page_alloc.c:650 free_page_is_bad mm/page_alloc.c:1083 [inline] free_page_is_bad mm/page_alloc.c:1077 [inline] free_pages_prepare mm/page_alloc.c:1387 [inline] __free_frozen_pages+0x7f7/0x10f0 mm/page_alloc.c:2895 page_frag_free+0x27f/0x2e0 mm/page_frag_cache.c:169 __xdp_return+0x3ab/0xab0 net/core/xdp.c:448 bpf_xdp_shrink_data net/core/filter.c:4181 [inline] bpf_xdp_frags_shrink_tail net/core/filter.c:4201 [inline] ____bpf_xdp_adjust_tail net/core/filter.c:4226 [inline] bpf_xdp_adjust_tail+0xa11/0xfd0 net/core/filter.c:4219 bpf_prog_f476d5219b92964a+0x1e/0x24 __bpf_prog_run include/linux/filter.h:718 [inline] bpf_prog_run_xdp include/net/xdp.h:657 [inline] bpf_prog_run_generic_xdp+0x626/0x1530 net/core/dev.c:5272 netif_receive_generic_xdp net/core/dev.c:5388 [inline] do_xdp_generic+0x8e6/0x1320 net/core/dev.c:5450 tun_get_user+0x1d43/0x3ce0 drivers/net/tun.c:1872 tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:1996 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x7d0/0x11d0 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+0xcd/0x4c0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fed0798d69f Code: 89 54 24 18 48 89 74 24 10 89 7c 24 08 e8 f9 92 02 00 48 8b 54 24 18 48 8b 74 24 10 41 89 c0 8b 7c 24 08 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 31 44 89 c7 48 89 44 24 08 e8 4c 93 02 00 48 RSP: 002b:00007fed087e4000 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007fed07bb5fa0 RCX: 00007fed0798d69f RDX: 000000000000fed7 RSI: 00002000000002c0 RDI: 00000000000000c8 RBP: 00007fed07a11e19 R08: 0000000000000000 R09: 0000000000000000 R10: 000000000000fed7 R11: 0000000000000293 R12: 0000000000000000 R13: 00007fed07bb6038 R14: 00007fed07bb5fa0 R15: 00007ffc5f7ea498 BUG: Bad page state in process syz.6.1646 pfn:4d9d6 page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x4d9d6 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 dead000000000040 ffff888022233000 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 0x102820(GFP_ATOMIC|__GFP_NOWARN|__GFP_HARDWALL), pid 12083, tgid 12082 (syz.6.1646), ts 172157703672, free_ts 172018560814 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1c0/0x230 mm/page_alloc.c:1851 prep_new_page mm/page_alloc.c:1859 [inline] get_page_from_freelist+0x132b/0x38e0 mm/page_alloc.c:3858 __alloc_frozen_pages_noprof+0x261/0x23f0 mm/page_alloc.c:5148 __alloc_pages_noprof mm/page_alloc.c:5182 [inline] alloc_pages_bulk_noprof+0x71c/0x1410 mm/page_alloc.c:5102 alloc_pages_bulk_node_noprof include/linux/gfp.h:254 [inline] __page_pool_alloc_netmems_slow+0x193/0xc60 net/core/page_pool.c:567 page_pool_alloc_netmems net/core/page_pool.c:618 [inline] page_pool_alloc_netmems+0xc4/0x190 net/core/page_pool.c:605 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+0x7c0/0xff0 net/core/skbuff.c:951 skb_cow_data_for_xdp+0x88/0xb0 net/core/skbuff.c:985 netif_skb_check_for_xdp net/core/dev.c:5341 [inline] netif_receive_generic_xdp net/core/dev.c:5382 [inline] do_xdp_generic+0x530/0x1320 net/core/dev.c:5450 tun_get_user+0x1d43/0x3ce0 drivers/net/tun.c:1872 tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:1996 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x7d0/0x11d0 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+0xcd/0x4c0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 15 tgid 15 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1395 [inline] __free_frozen_pages+0x7d5/0x10f0 mm/page_alloc.c:2895 pagetable_free include/linux/mm.h:2898 [inline] pagetable_dtor_free include/linux/mm.h:2996 [inline] __tlb_remove_table include/asm-generic/tlb.h:220 [inline] __tlb_remove_table_free mm/mmu_gather.c:227 [inline] tlb_remove_table_rcu+0x116/0x1a0 mm/mmu_gather.c:290 rcu_do_batch kernel/rcu/tree.c:2605 [inline] rcu_core+0x79c/0x1530 kernel/rcu/tree.c:2861 handle_softirqs+0x216/0x8e0 kernel/softirq.c:579 run_ksoftirqd kernel/softirq.c:968 [inline] run_ksoftirqd+0x3a/0x60 kernel/softirq.c:960 smpboot_thread_fn+0x3f4/0xae0 kernel/smpboot.c:160 kthread+0x3c5/0x780 kernel/kthread.c:463 ret_from_fork+0x5d7/0x6f0 arch/x86/kernel/process.c:148 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 Modules linked in: CPU: 0 UID: 0 PID: 12083 Comm: syz.6.1646 Tainted: G B syzkaller #0 PREEMPT(full) 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+0xcf/0x220 mm/page_alloc.c:650 free_page_is_bad mm/page_alloc.c:1083 [inline] free_page_is_bad mm/page_alloc.c:1077 [inline] free_pages_prepare mm/page_alloc.c:1387 [inline] __free_frozen_pages+0x7f7/0x10f0 mm/page_alloc.c:2895 page_frag_free+0x27f/0x2e0 mm/page_frag_cache.c:169 __xdp_return+0x3ab/0xab0 net/core/xdp.c:448 bpf_xdp_shrink_data net/core/filter.c:4181 [inline] bpf_xdp_frags_shrink_tail net/core/filter.c:4201 [inline] ____bpf_xdp_adjust_tail net/core/filter.c:4226 [inline] bpf_xdp_adjust_tail+0xa11/0xfd0 net/core/filter.c:4219 bpf_prog_f476d5219b92964a+0x1e/0x24 __bpf_prog_run include/linux/filter.h:718 [inline] bpf_prog_run_xdp include/net/xdp.h:657 [inline] bpf_prog_run_generic_xdp+0x626/0x1530 net/core/dev.c:5272 netif_receive_generic_xdp net/core/dev.c:5388 [inline] do_xdp_generic+0x8e6/0x1320 net/core/dev.c:5450 tun_get_user+0x1d43/0x3ce0 drivers/net/tun.c:1872 tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:1996 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x7d0/0x11d0 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+0xcd/0x4c0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fed0798d69f Code: 89 54 24 18 48 89 74 24 10 89 7c 24 08 e8 f9 92 02 00 48 8b 54 24 18 48 8b 74 24 10 41 89 c0 8b 7c 24 08 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 31 44 89 c7 48 89 44 24 08 e8 4c 93 02 00 48 RSP: 002b:00007fed087e4000 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007fed07bb5fa0 RCX: 00007fed0798d69f RDX: 000000000000fed7 RSI: 00002000000002c0 RDI: 00000000000000c8 RBP: 00007fed07a11e19 R08: 0000000000000000 R09: 0000000000000000 R10: 000000000000fed7 R11: 0000000000000293 R12: 0000000000000000 R13: 00007fed07bb6038 R14: 00007fed07bb5fa0 R15: 00007ffc5f7ea498 BUG: Bad page state in process syz.6.1646 pfn:337d5 page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff888000000000 pfn:0x337d5 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 dead000000000040 ffff888022233000 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 0x102820(GFP_ATOMIC|__GFP_NOWARN|__GFP_HARDWALL), pid 12083, tgid 12082 (syz.6.1646), ts 172157693461, free_ts 172018570176 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1c0/0x230 mm/page_alloc.c:1851 prep_new_page mm/page_alloc.c:1859 [inline] get_page_from_freelist+0x132b/0x38e0 mm/page_alloc.c:3858 __alloc_frozen_pages_noprof+0x261/0x23f0 mm/page_alloc.c:5148 __alloc_pages_noprof mm/page_alloc.c:5182 [inline] alloc_pages_bulk_noprof+0x71c/0x1410 mm/page_alloc.c:5102 alloc_pages_bulk_node_noprof include/linux/gfp.h:254 [inline] __page_pool_alloc_netmems_slow+0x193/0xc60 net/core/page_pool.c:567 page_pool_alloc_netmems net/core/page_pool.c:618 [inline] page_pool_alloc_netmems+0xc4/0x190 net/core/page_pool.c:605 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+0x7c0/0xff0 net/core/skbuff.c:951 skb_cow_data_for_xdp+0x88/0xb0 net/core/skbuff.c:985 netif_skb_check_for_xdp net/core/dev.c:5341 [inline] netif_receive_generic_xdp net/core/dev.c:5382 [inline] do_xdp_generic+0x530/0x1320 net/core/dev.c:5450 tun_get_user+0x1d43/0x3ce0 drivers/net/tun.c:1872 tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:1996 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x7d0/0x11d0 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+0xcd/0x4c0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 15 tgid 15 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1395 [inline] __free_frozen_pages+0x7d5/0x10f0 mm/page_alloc.c:2895 pagetable_free include/linux/mm.h:2898 [inline] pagetable_dtor_free include/linux/mm.h:2996 [inline] __tlb_remove_table include/asm-generic/tlb.h:220 [inline] __tlb_remove_table_free mm/mmu_gather.c:227 [inline] tlb_remove_table_rcu+0x116/0x1a0 mm/mmu_gather.c:290 rcu_do_batch kernel/rcu/tree.c:2605 [inline] rcu_core+0x79c/0x1530 kernel/rcu/tree.c:2861 handle_softirqs+0x216/0x8e0 kernel/softirq.c:579 run_ksoftirqd kernel/softirq.c:968 [inline] run_ksoftirqd+0x3a/0x60 kernel/softirq.c:960 smpboot_thread_fn+0x3f4/0xae0 kernel/smpboot.c:160 kthread+0x3c5/0x780 kernel/kthread.c:463 ret_from_fork+0x5d7/0x6f0 arch/x86/kernel/process.c:148 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 Modules linked in: CPU: 0 UID: 0 PID: 12083 Comm: syz.6.1646 Tainted: G B syzkaller #0 PREEMPT(full) 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+0xcf/0x220 mm/page_alloc.c:650 free_page_is_bad mm/page_alloc.c:1083 [inline] free_page_is_bad mm/page_alloc.c:1077 [inline] free_pages_prepare mm/page_alloc.c:1387 [inline] __free_frozen_pages+0x7f7/0x10f0 mm/page_alloc.c:2895 page_frag_free+0x27f/0x2e0 mm/page_frag_cache.c:169 __xdp_return+0x3ab/0xab0 net/core/xdp.c:448 bpf_xdp_shrink_data net/core/filter.c:4181 [inline] bpf_xdp_frags_shrink_tail net/core/filter.c:4201 [inline] ____bpf_xdp_adjust_tail net/core/filter.c:4226 [inline] bpf_xdp_adjust_tail+0xa11/0xfd0 net/core/filter.c:4219 bpf_prog_f476d5219b92964a+0x1e/0x24 __bpf_prog_run include/linux/filter.h:718 [inline] bpf_prog_run_xdp include/net/xdp.h:657 [inline] bpf_prog_run_generic_xdp+0x626/0x1530 net/core/dev.c:5272 netif_receive_generic_xdp net/core/dev.c:5388 [inline] do_xdp_generic+0x8e6/0x1320 net/core/dev.c:5450 tun_get_user+0x1d43/0x3ce0 drivers/net/tun.c:1872 tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:1996 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x7d0/0x11d0 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+0xcd/0x4c0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fed0798d69f Code: 89 54 24 18 48 89 74 24 10 89 7c 24 08 e8 f9 92 02 00 48 8b 54 24 18 48 8b 74 24 10 41 89 c0 8b 7c 24 08 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 31 44 89 c7 48 89 44 24 08 e8 4c 93 02 00 48 RSP: 002b:00007fed087e4000 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007fed07bb5fa0 RCX: 00007fed0798d69f RDX: 000000000000fed7 RSI: 00002000000002c0 RDI: 00000000000000c8 RBP: 00007fed07a11e19 R08: 0000000000000000 R09: 0000000000000000 R10: 000000000000fed7 R11: 0000000000000293 R12: 0000000000000000 R13: 00007fed07bb6038 R14: 00007fed07bb5fa0 R15: 00007ffc5f7ea498 BUG: Bad page state in process syz.6.1646 pfn:49838 page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff88803200cb40 pfn:0x49838 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 dead000000000040 ffff888022233000 0000000000000000 raw: ffff88803200cb40 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 0x102820(GFP_ATOMIC|__GFP_NOWARN|__GFP_HARDWALL), pid 12083, tgid 12082 (syz.6.1646), ts 172157682525, free_ts 172018578606 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1c0/0x230 mm/page_alloc.c:1851 prep_new_page mm/page_alloc.c:1859 [inline] get_page_from_freelist+0x132b/0x38e0 mm/page_alloc.c:3858 __alloc_frozen_pages_noprof+0x261/0x23f0 mm/page_alloc.c:5148 __alloc_pages_noprof mm/page_alloc.c:5182 [inline] alloc_pages_bulk_noprof+0x71c/0x1410 mm/page_alloc.c:5102 alloc_pages_bulk_node_noprof include/linux/gfp.h:254 [inline] __page_pool_alloc_netmems_slow+0x193/0xc60 net/core/page_pool.c:567 page_pool_alloc_netmems net/core/page_pool.c:618 [inline] page_pool_alloc_netmems+0xc4/0x190 net/core/page_pool.c:605 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+0x7c0/0xff0 net/core/skbuff.c:951 skb_cow_data_for_xdp+0x88/0xb0 net/core/skbuff.c:985 netif_skb_check_for_xdp net/core/dev.c:5341 [inline] netif_receive_generic_xdp net/core/dev.c:5382 [inline] do_xdp_generic+0x530/0x1320 net/core/dev.c:5450 tun_get_user+0x1d43/0x3ce0 drivers/net/tun.c:1872 tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:1996 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x7d0/0x11d0 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+0xcd/0x4c0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 15 tgid 15 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1395 [inline] __free_frozen_pages+0x7d5/0x10f0 mm/page_alloc.c:2895 pagetable_free include/linux/mm.h:2898 [inline] pagetable_dtor_free include/linux/mm.h:2996 [inline] __tlb_remove_table include/asm-generic/tlb.h:220 [inline] __tlb_remove_table_free mm/mmu_gather.c:227 [inline] tlb_remove_table_rcu+0x116/0x1a0 mm/mmu_gather.c:290 rcu_do_batch kernel/rcu/tree.c:2605 [inline] rcu_core+0x79c/0x1530 kernel/rcu/tree.c:2861 handle_softirqs+0x216/0x8e0 kernel/softirq.c:579 run_ksoftirqd kernel/softirq.c:968 [inline] run_ksoftirqd+0x3a/0x60 kernel/softirq.c:960 smpboot_thread_fn+0x3f4/0xae0 kernel/smpboot.c:160 kthread+0x3c5/0x780 kernel/kthread.c:463 ret_from_fork+0x5d7/0x6f0 arch/x86/kernel/process.c:148 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 Modules linked in: CPU: 0 UID: 0 PID: 12083 Comm: syz.6.1646 Tainted: G B syzkaller #0 PREEMPT(full) 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+0xcf/0x220 mm/page_alloc.c:650 free_page_is_bad mm/page_alloc.c:1083 [inline] free_page_is_bad mm/page_alloc.c:1077 [inline] free_pages_prepare mm/page_alloc.c:1387 [inline] __free_frozen_pages+0x7f7/0x10f0 mm/page_alloc.c:2895 page_frag_free+0x27f/0x2e0 mm/page_frag_cache.c:169 __xdp_return+0x3ab/0xab0 net/core/xdp.c:448 bpf_xdp_shrink_data net/core/filter.c:4181 [inline] bpf_xdp_frags_shrink_tail net/core/filter.c:4201 [inline] ____bpf_xdp_adjust_tail net/core/filter.c:4226 [inline] bpf_xdp_adjust_tail+0xa11/0xfd0 net/core/filter.c:4219 bpf_prog_f476d5219b92964a+0x1e/0x24 __bpf_prog_run include/linux/filter.h:718 [inline] bpf_prog_run_xdp include/net/xdp.h:657 [inline] bpf_prog_run_generic_xdp+0x626/0x1530 net/core/dev.c:5272 netif_receive_generic_xdp net/core/dev.c:5388 [inline] do_xdp_generic+0x8e6/0x1320 net/core/dev.c:5450 tun_get_user+0x1d43/0x3ce0 drivers/net/tun.c:1872 tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:1996 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x7d0/0x11d0 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+0xcd/0x4c0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fed0798d69f Code: 89 54 24 18 48 89 74 24 10 89 7c 24 08 e8 f9 92 02 00 48 8b 54 24 18 48 8b 74 24 10 41 89 c0 8b 7c 24 08 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 31 44 89 c7 48 89 44 24 08 e8 4c 93 02 00 48 RSP: 002b:00007fed087e4000 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007fed07bb5fa0 RCX: 00007fed0798d69f RDX: 000000000000fed7 RSI: 00002000000002c0 RDI: 00000000000000c8 RBP: 00007fed07a11e19 R08: 0000000000000000 R09: 0000000000000000 R10: 000000000000fed7 R11: 0000000000000293 R12: 0000000000000000 R13: 00007fed07bb6038 R14: 00007fed07bb5fa0 R15: 00007ffc5f7ea498 BUG: Bad page state in process syz.6.1646 pfn:4e0a6 page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x4e0a6 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 dead000000000040 ffff888022233000 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 0x102820(GFP_ATOMIC|__GFP_NOWARN|__GFP_HARDWALL), pid 12083, tgid 12082 (syz.6.1646), ts 172157670875, free_ts 172018587021 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1c0/0x230 mm/page_alloc.c:1851 prep_new_page mm/page_alloc.c:1859 [inline] get_page_from_freelist+0x132b/0x38e0 mm/page_alloc.c:3858 __alloc_frozen_pages_noprof+0x261/0x23f0 mm/page_alloc.c:5148 __alloc_pages_noprof mm/page_alloc.c:5182 [inline] alloc_pages_bulk_noprof+0x71c/0x1410 mm/page_alloc.c:5102 alloc_pages_bulk_node_noprof include/linux/gfp.h:254 [inline] __page_pool_alloc_netmems_slow+0x193/0xc60 net/core/page_pool.c:567 page_pool_alloc_netmems net/core/page_pool.c:618 [inline] page_pool_alloc_netmems+0xc4/0x190 net/core/page_pool.c:605 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+0x7c0/0xff0 net/core/skbuff.c:951 skb_cow_data_for_xdp+0x88/0xb0 net/core/skbuff.c:985 netif_skb_check_for_xdp net/core/dev.c:5341 [inline] netif_receive_generic_xdp net/core/dev.c:5382 [inline] do_xdp_generic+0x530/0x1320 net/core/dev.c:5450 tun_get_user+0x1d43/0x3ce0 drivers/net/tun.c:1872 tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:1996 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x7d0/0x11d0 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+0xcd/0x4c0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 15 tgid 15 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1395 [inline] __free_frozen_pages+0x7d5/0x10f0 mm/page_alloc.c:2895 pagetable_free include/linux/mm.h:2898 [inline] pagetable_dtor_free include/linux/mm.h:2996 [inline] __tlb_remove_table include/asm-generic/tlb.h:220 [inline] __tlb_remove_table_free mm/mmu_gather.c:227 [inline] tlb_remove_table_rcu+0x116/0x1a0 mm/mmu_gather.c:290 rcu_do_batch kernel/rcu/tree.c:2605 [inline] rcu_core+0x79c/0x1530 kernel/rcu/tree.c:2861 handle_softirqs+0x216/0x8e0 kernel/softirq.c:579 run_ksoftirqd kernel/softirq.c:968 [inline] run_ksoftirqd+0x3a/0x60 kernel/softirq.c:960 smpboot_thread_fn+0x3f4/0xae0 kernel/smpboot.c:160 kthread+0x3c5/0x780 kernel/kthread.c:463 ret_from_fork+0x5d7/0x6f0 arch/x86/kernel/process.c:148 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 Modules linked in: CPU: 0 UID: 0 PID: 12083 Comm: syz.6.1646 Tainted: G B syzkaller #0 PREEMPT(full) 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+0xcf/0x220 mm/page_alloc.c:650 free_page_is_bad mm/page_alloc.c:1083 [inline] free_page_is_bad mm/page_alloc.c:1077 [inline] free_pages_prepare mm/page_alloc.c:1387 [inline] __free_frozen_pages+0x7f7/0x10f0 mm/page_alloc.c:2895 page_frag_free+0x27f/0x2e0 mm/page_frag_cache.c:169 __xdp_return+0x3ab/0xab0 net/core/xdp.c:448 bpf_xdp_shrink_data net/core/filter.c:4181 [inline] bpf_xdp_frags_shrink_tail net/core/filter.c:4201 [inline] ____bpf_xdp_adjust_tail net/core/filter.c:4226 [inline] bpf_xdp_adjust_tail+0xa11/0xfd0 net/core/filter.c:4219 bpf_prog_f476d5219b92964a+0x1e/0x24 __bpf_prog_run include/linux/filter.h:718 [inline] bpf_prog_run_xdp include/net/xdp.h:657 [inline] bpf_prog_run_generic_xdp+0x626/0x1530 net/core/dev.c:5272 netif_receive_generic_xdp net/core/dev.c:5388 [inline] do_xdp_generic+0x8e6/0x1320 net/core/dev.c:5450 tun_get_user+0x1d43/0x3ce0 drivers/net/tun.c:1872 tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:1996 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x7d0/0x11d0 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+0xcd/0x4c0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fed0798d69f Code: 89 54 24 18 48 89 74 24 10 89 7c 24 08 e8 f9 92 02 00 48 8b 54 24 18 48 8b 74 24 10 41 89 c0 8b 7c 24 08 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 31 44 89 c7 48 89 44 24 08 e8 4c 93 02 00 48 RSP: 002b:00007fed087e4000 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007fed07bb5fa0 RCX: 00007fed0798d69f RDX: 000000000000fed7 RSI: 00002000000002c0 RDI: 00000000000000c8 RBP: 00007fed07a11e19 R08: 0000000000000000 R09: 0000000000000000 R10: 000000000000fed7 R11: 0000000000000293 R12: 0000000000000000 R13: 00007fed07bb6038 R14: 00007fed07bb5fa0 R15: 00007ffc5f7ea498 BUG: Bad page state in process syz.6.1646 pfn:52232 page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff888052232400 pfn:0x52232 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 dead000000000040 ffff888022233000 0000000000000000 raw: ffff888052232400 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 0x102820(GFP_ATOMIC|__GFP_NOWARN|__GFP_HARDWALL), pid 12083, tgid 12082 (syz.6.1646), ts 172157658283, free_ts 172024532421 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1c0/0x230 mm/page_alloc.c:1851 prep_new_page mm/page_alloc.c:1859 [inline] get_page_from_freelist+0x132b/0x38e0 mm/page_alloc.c:3858 __alloc_frozen_pages_noprof+0x261/0x23f0 mm/page_alloc.c:5148 __alloc_pages_noprof mm/page_alloc.c:5182 [inline] alloc_pages_bulk_noprof+0x71c/0x1410 mm/page_alloc.c:5102 alloc_pages_bulk_node_noprof include/linux/gfp.h:254 [inline] __page_pool_alloc_netmems_slow+0x193/0xc60 net/core/page_pool.c:567 page_pool_alloc_netmems net/core/page_pool.c:618 [inline] page_pool_alloc_netmems+0xc4/0x190 net/core/page_pool.c:605 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+0x7c0/0xff0 net/core/skbuff.c:951 skb_cow_data_for_xdp+0x88/0xb0 net/core/skbuff.c:985 netif_skb_check_for_xdp net/core/dev.c:5341 [inline] netif_receive_generic_xdp net/core/dev.c:5382 [inline] do_xdp_generic+0x530/0x1320 net/core/dev.c:5450 tun_get_user+0x1d43/0x3ce0 drivers/net/tun.c:1872 tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:1996 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x7d0/0x11d0 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+0xcd/0x4c0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 12064 tgid 12064 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1395 [inline] __free_frozen_pages+0x7d5/0x10f0 mm/page_alloc.c:2895 tlb_batch_list_free mm/mmu_gather.c:159 [inline] tlb_finish_mmu+0x237/0x7c0 mm/mmu_gather.c:500 exit_mmap+0x403/0xb90 mm/mmap.c:1293 __mmput+0x12a/0x410 kernel/fork.c:1130 mmput+0x62/0x70 kernel/fork.c:1152 exit_mm kernel/exit.c:582 [inline] do_exit+0x7c7/0x2bf0 kernel/exit.c:949 do_group_exit+0xd3/0x2a0 kernel/exit.c:1102 __do_sys_exit_group kernel/exit.c:1113 [inline] __se_sys_exit_group kernel/exit.c:1111 [inline] __x64_sys_exit_group+0x3e/0x50 kernel/exit.c:1111 x64_sys_call+0x14fa/0x1720 arch/x86/include/generated/asm/syscalls_64.h:232 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0x4c0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f Modules linked in: CPU: 0 UID: 0 PID: 12083 Comm: syz.6.1646 Tainted: G B syzkaller #0 PREEMPT(full) 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+0xcf/0x220 mm/page_alloc.c:650 free_page_is_bad mm/page_alloc.c:1083 [inline] free_page_is_bad mm/page_alloc.c:1077 [inline] free_pages_prepare mm/page_alloc.c:1387 [inline] __free_frozen_pages+0x7f7/0x10f0 mm/page_alloc.c:2895 page_frag_free+0x27f/0x2e0 mm/page_frag_cache.c:169 __xdp_return+0x3ab/0xab0 net/core/xdp.c:448 bpf_xdp_shrink_data net/core/filter.c:4181 [inline] bpf_xdp_frags_shrink_tail net/core/filter.c:4201 [inline] ____bpf_xdp_adjust_tail net/core/filter.c:4226 [inline] bpf_xdp_adjust_tail+0xa11/0xfd0 net/core/filter.c:4219 bpf_prog_f476d5219b92964a+0x1e/0x24 __bpf_prog_run include/linux/filter.h:718 [inline] bpf_prog_run_xdp include/net/xdp.h:657 [inline] bpf_prog_run_generic_xdp+0x626/0x1530 net/core/dev.c:5272 netif_receive_generic_xdp net/core/dev.c:5388 [inline] do_xdp_generic+0x8e6/0x1320 net/core/dev.c:5450 tun_get_user+0x1d43/0x3ce0 drivers/net/tun.c:1872 tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:1996 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x7d0/0x11d0 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+0xcd/0x4c0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fed0798d69f Code: 89 54 24 18 48 89 74 24 10 89 7c 24 08 e8 f9 92 02 00 48 8b 54 24 18 48 8b 74 24 10 41 89 c0 8b 7c 24 08 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 31 44 89 c7 48 89 44 24 08 e8 4c 93 02 00 48 RSP: 002b:00007fed087e4000 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007fed07bb5fa0 RCX: 00007fed0798d69f RDX: 000000000000fed7 RSI: 00002000000002c0 RDI: 00000000000000c8 RBP: 00007fed07a11e19 R08: 0000000000000000 R09: 0000000000000000 R10: 000000000000fed7 R11: 0000000000000293 R12: 0000000000000000 R13: 00007fed07bb6038 R14: 00007fed07bb5fa0 R15: 00007ffc5f7ea498