BUG: Bad page state in process syz.2.753 pfn:2e4bc page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff88802e4bc000 pfn:0x2e4bc flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) page_type: f9(unknown) raw: 00fff00000000000 0000000000000000 ffff888022c45000 0000000000000000 raw: ffff88802e4bc000 0000000000000001 00000000f9000000 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 8698, tgid 8697 (syz.2.753), ts 143937636362, free_ts 143910470360 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x153/0x170 mm/page_alloc.c:1858 prep_new_page mm/page_alloc.c:1866 [inline] get_page_from_freelist+0x11a6/0x33b0 mm/page_alloc.c:3946 __alloc_frozen_pages_noprof+0x27c/0x2bc0 mm/page_alloc.c:5226 __alloc_pages_noprof mm/page_alloc.c:5260 [inline] alloc_pages_bulk_noprof+0x657/0x1390 mm/page_alloc.c:5180 alloc_pages_bulk_node_noprof include/linux/gfp.h:259 [inline] __page_pool_alloc_netmems_slow+0x1c6/0xa60 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+0xa15/0x1220 net/core/skbuff.c:982 skb_cow_data_for_xdp+0x88/0xb0 net/core/skbuff.c:1016 netif_skb_check_for_xdp net/core/dev.c:5557 [inline] netif_receive_generic_xdp net/core/dev.c:5598 [inline] do_xdp_generic+0x56b/0x12c0 net/core/dev.c:5666 tun_get_user+0x1c1c/0x3c20 drivers/net/tun.c:1874 tun_chr_write_iter+0xdc/0x200 drivers/net/tun.c:2001 new_sync_write fs/read_write.c:595 [inline] vfs_write+0x6ac/0x1070 fs/read_write.c:688 ksys_write+0x12a/0x250 fs/read_write.c:740 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x10b/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 18 tgid 18 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] __free_pages_prepare mm/page_alloc.c:1402 [inline] __free_frozen_pages+0x747/0x1040 mm/page_alloc.c:2943 __pagetable_free include/linux/mm.h:3661 [inline] pagetable_free include/linux/mm.h:3685 [inline] pagetable_dtor_free include/linux/mm.h:3784 [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+0x2cf/0x380 mm/mmu_gather.c:291 rcu_do_batch kernel/rcu/tree.c:2617 [inline] rcu_core+0x5a2/0x10d0 kernel/rcu/tree.c:2869 handle_softirqs+0x1ea/0xa00 kernel/softirq.c:622 __do_softirq kernel/softirq.c:656 [inline] invoke_softirq kernel/softirq.c:496 [inline] __irq_exit_rcu+0x162/0x210 kernel/softirq.c:735 irq_exit_rcu+0x9/0x30 kernel/softirq.c:752 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1061 [inline] sysvec_apic_timer_interrupt+0xa3/0xc0 arch/x86/kernel/apic/apic.c:1061 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:697 Modules linked in: CPU: 3 UID: 0 PID: 8698 Comm: syz.2.753 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:632 page_frag_free+0x199/0x1f0 mm/page_frag_cache.c:169 __xdp_return+0x3b6/0x990 net/core/xdp.c:448 bpf_xdp_shrink_data net/core/filter.c:4211 [inline] bpf_xdp_frags_shrink_tail net/core/filter.c:4235 [inline] ____bpf_xdp_adjust_tail net/core/filter.c:4257 [inline] bpf_xdp_adjust_tail+0x8a1/0xbb0 net/core/filter.c:4250 bpf_prog_5d7dc57dfd7f985a+0x1e/0x24 __bpf_prog_run include/linux/filter.h:722 [inline] bpf_prog_run_xdp include/net/xdp.h:696 [inline] bpf_prog_run_generic_xdp+0x614/0x1610 net/core/dev.c:5488 netif_receive_generic_xdp net/core/dev.c:5604 [inline] do_xdp_generic+0x92e/0x12c0 net/core/dev.c:5666 tun_get_user+0x1c1c/0x3c20 drivers/net/tun.c:1874 tun_chr_write_iter+0xdc/0x200 drivers/net/tun.c:2001 new_sync_write fs/read_write.c:595 [inline] vfs_write+0x6ac/0x1070 fs/read_write.c:688 ksys_write+0x12a/0x250 fs/read_write.c:740 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x10b/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f6e7d55d04e 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:00007f6e7e414fb8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f6e7e4156c0 RCX: 00007f6e7d55d04e RDX: 0000000000011dc0 RSI: 0000200000000300 RDI: 00000000000000c8 RBP: 00007f6e7d632c91 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f6e7d816038 R14: 00007f6e7d815fa0 R15: 00007ffc5e91c118 BUG: Bad page state in process syz.2.753 pfn:654ec page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x654ec flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) page_type: f9(unknown) raw: 00fff00000000000 0000000000000000 ffff888022c45000 0000000000000000 raw: 0000000000000000 0000000000000001 00000000f9000000 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 8698, tgid 8697 (syz.2.753), ts 143937623547, free_ts 143910497544 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x153/0x170 mm/page_alloc.c:1858 prep_new_page mm/page_alloc.c:1866 [inline] get_page_from_freelist+0x11a6/0x33b0 mm/page_alloc.c:3946 __alloc_frozen_pages_noprof+0x27c/0x2bc0 mm/page_alloc.c:5226 __alloc_pages_noprof mm/page_alloc.c:5260 [inline] alloc_pages_bulk_noprof+0x657/0x1390 mm/page_alloc.c:5180 alloc_pages_bulk_node_noprof include/linux/gfp.h:259 [inline] __page_pool_alloc_netmems_slow+0x1c6/0xa60 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+0xa15/0x1220 net/core/skbuff.c:982 skb_cow_data_for_xdp+0x88/0xb0 net/core/skbuff.c:1016 netif_skb_check_for_xdp net/core/dev.c:5557 [inline] netif_receive_generic_xdp net/core/dev.c:5598 [inline] do_xdp_generic+0x56b/0x12c0 net/core/dev.c:5666 tun_get_user+0x1c1c/0x3c20 drivers/net/tun.c:1874 tun_chr_write_iter+0xdc/0x200 drivers/net/tun.c:2001 new_sync_write fs/read_write.c:595 [inline] vfs_write+0x6ac/0x1070 fs/read_write.c:688 ksys_write+0x12a/0x250 fs/read_write.c:740 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x10b/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 18 tgid 18 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] __free_pages_prepare mm/page_alloc.c:1402 [inline] __free_frozen_pages+0x747/0x1040 mm/page_alloc.c:2943 __pagetable_free include/linux/mm.h:3661 [inline] pagetable_free include/linux/mm.h:3685 [inline] pagetable_dtor_free include/linux/mm.h:3784 [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+0x2cf/0x380 mm/mmu_gather.c:291 rcu_do_batch kernel/rcu/tree.c:2617 [inline] rcu_core+0x5a2/0x10d0 kernel/rcu/tree.c:2869 handle_softirqs+0x1ea/0xa00 kernel/softirq.c:622 __do_softirq kernel/softirq.c:656 [inline] invoke_softirq kernel/softirq.c:496 [inline] __irq_exit_rcu+0x162/0x210 kernel/softirq.c:735 irq_exit_rcu+0x9/0x30 kernel/softirq.c:752 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1061 [inline] sysvec_apic_timer_interrupt+0xa3/0xc0 arch/x86/kernel/apic/apic.c:1061 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:697 Modules linked in: CPU: 3 UID: 0 PID: 8698 Comm: syz.2.753 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:632 page_frag_free+0x199/0x1f0 mm/page_frag_cache.c:169 __xdp_return+0x3b6/0x990 net/core/xdp.c:448 bpf_xdp_shrink_data net/core/filter.c:4211 [inline] bpf_xdp_frags_shrink_tail net/core/filter.c:4235 [inline] ____bpf_xdp_adjust_tail net/core/filter.c:4257 [inline] bpf_xdp_adjust_tail+0x8a1/0xbb0 net/core/filter.c:4250 bpf_prog_5d7dc57dfd7f985a+0x1e/0x24 __bpf_prog_run include/linux/filter.h:722 [inline] bpf_prog_run_xdp include/net/xdp.h:696 [inline] bpf_prog_run_generic_xdp+0x614/0x1610 net/core/dev.c:5488 netif_receive_generic_xdp net/core/dev.c:5604 [inline] do_xdp_generic+0x92e/0x12c0 net/core/dev.c:5666 tun_get_user+0x1c1c/0x3c20 drivers/net/tun.c:1874 tun_chr_write_iter+0xdc/0x200 drivers/net/tun.c:2001 new_sync_write fs/read_write.c:595 [inline] vfs_write+0x6ac/0x1070 fs/read_write.c:688 ksys_write+0x12a/0x250 fs/read_write.c:740 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x10b/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f6e7d55d04e 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:00007f6e7e414fb8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f6e7e4156c0 RCX: 00007f6e7d55d04e RDX: 0000000000011dc0 RSI: 0000200000000300 RDI: 00000000000000c8 RBP: 00007f6e7d632c91 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f6e7d816038 R14: 00007f6e7d815fa0 R15: 00007ffc5e91c118 BUG: Bad page state in process syz.2.753 pfn:5ffc3 page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x5ffc3 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) page_type: f9(unknown) raw: 00fff00000000000 0000000000000000 ffff888022c45000 0000000000000000 raw: 0000000000000000 0000000000000001 00000000f9000000 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 8698, tgid 8697 (syz.2.753), ts 143937610682, free_ts 143910526746 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x153/0x170 mm/page_alloc.c:1858 prep_new_page mm/page_alloc.c:1866 [inline] get_page_from_freelist+0x11a6/0x33b0 mm/page_alloc.c:3946 __alloc_frozen_pages_noprof+0x27c/0x2bc0 mm/page_alloc.c:5226 __alloc_pages_noprof mm/page_alloc.c:5260 [inline] alloc_pages_bulk_noprof+0x657/0x1390 mm/page_alloc.c:5180 alloc_pages_bulk_node_noprof include/linux/gfp.h:259 [inline] __page_pool_alloc_netmems_slow+0x1c6/0xa60 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+0xa15/0x1220 net/core/skbuff.c:982 skb_cow_data_for_xdp+0x88/0xb0 net/core/skbuff.c:1016 netif_skb_check_for_xdp net/core/dev.c:5557 [inline] netif_receive_generic_xdp net/core/dev.c:5598 [inline] do_xdp_generic+0x56b/0x12c0 net/core/dev.c:5666 tun_get_user+0x1c1c/0x3c20 drivers/net/tun.c:1874 tun_chr_write_iter+0xdc/0x200 drivers/net/tun.c:2001 new_sync_write fs/read_write.c:595 [inline] vfs_write+0x6ac/0x1070 fs/read_write.c:688 ksys_write+0x12a/0x250 fs/read_write.c:740 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x10b/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 18 tgid 18 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] __free_pages_prepare mm/page_alloc.c:1402 [inline] __free_frozen_pages+0x747/0x1040 mm/page_alloc.c:2943 __pagetable_free include/linux/mm.h:3661 [inline] pagetable_free include/linux/mm.h:3685 [inline] pagetable_dtor_free include/linux/mm.h:3784 [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+0x2cf/0x380 mm/mmu_gather.c:291 rcu_do_batch kernel/rcu/tree.c:2617 [inline] rcu_core+0x5a2/0x10d0 kernel/rcu/tree.c:2869 handle_softirqs+0x1ea/0xa00 kernel/softirq.c:622 __do_softirq kernel/softirq.c:656 [inline] invoke_softirq kernel/softirq.c:496 [inline] __irq_exit_rcu+0x162/0x210 kernel/softirq.c:735 irq_exit_rcu+0x9/0x30 kernel/softirq.c:752 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1061 [inline] sysvec_apic_timer_interrupt+0xa3/0xc0 arch/x86/kernel/apic/apic.c:1061 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:697 Modules linked in: CPU: 3 UID: 0 PID: 8698 Comm: syz.2.753 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:632 page_frag_free+0x199/0x1f0 mm/page_frag_cache.c:169 __xdp_return+0x3b6/0x990 net/core/xdp.c:448 bpf_xdp_shrink_data net/core/filter.c:4211 [inline] bpf_xdp_frags_shrink_tail net/core/filter.c:4235 [inline] ____bpf_xdp_adjust_tail net/core/filter.c:4257 [inline] bpf_xdp_adjust_tail+0x8a1/0xbb0 net/core/filter.c:4250 bpf_prog_5d7dc57dfd7f985a+0x1e/0x24 __bpf_prog_run include/linux/filter.h:722 [inline] bpf_prog_run_xdp include/net/xdp.h:696 [inline] bpf_prog_run_generic_xdp+0x614/0x1610 net/core/dev.c:5488 netif_receive_generic_xdp net/core/dev.c:5604 [inline] do_xdp_generic+0x92e/0x12c0 net/core/dev.c:5666 tun_get_user+0x1c1c/0x3c20 drivers/net/tun.c:1874 tun_chr_write_iter+0xdc/0x200 drivers/net/tun.c:2001 new_sync_write fs/read_write.c:595 [inline] vfs_write+0x6ac/0x1070 fs/read_write.c:688 ksys_write+0x12a/0x250 fs/read_write.c:740 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x10b/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f6e7d55d04e 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:00007f6e7e414fb8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f6e7e4156c0 RCX: 00007f6e7d55d04e RDX: 0000000000011dc0 RSI: 0000200000000300 RDI: 00000000000000c8 RBP: 00007f6e7d632c91 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f6e7d816038 R14: 00007f6e7d815fa0 R15: 00007ffc5e91c118 BUG: Bad page state in process syz.2.753 pfn:5ff94 page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x5ff94 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) page_type: f9(unknown) raw: 00fff00000000000 0000000000000000 ffff888022c45000 0000000000000000 raw: 0000000000000000 0000000000000001 00000000f9000000 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 8698, tgid 8697 (syz.2.753), ts 143937598027, free_ts 143910548047 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x153/0x170 mm/page_alloc.c:1858 prep_new_page mm/page_alloc.c:1866 [inline] get_page_from_freelist+0x11a6/0x33b0 mm/page_alloc.c:3946 __alloc_frozen_pages_noprof+0x27c/0x2bc0 mm/page_alloc.c:5226 __alloc_pages_noprof mm/page_alloc.c:5260 [inline] alloc_pages_bulk_noprof+0x657/0x1390 mm/page_alloc.c:5180 alloc_pages_bulk_node_noprof include/linux/gfp.h:259 [inline] __page_pool_alloc_netmems_slow+0x1c6/0xa60 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+0xa15/0x1220 net/core/skbuff.c:982 skb_cow_data_for_xdp+0x88/0xb0 net/core/skbuff.c:1016 netif_skb_check_for_xdp net/core/dev.c:5557 [inline] netif_receive_generic_xdp net/core/dev.c:5598 [inline] do_xdp_generic+0x56b/0x12c0 net/core/dev.c:5666 tun_get_user+0x1c1c/0x3c20 drivers/net/tun.c:1874 tun_chr_write_iter+0xdc/0x200 drivers/net/tun.c:2001 new_sync_write fs/read_write.c:595 [inline] vfs_write+0x6ac/0x1070 fs/read_write.c:688 ksys_write+0x12a/0x250 fs/read_write.c:740 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x10b/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 18 tgid 18 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] __free_pages_prepare mm/page_alloc.c:1402 [inline] __free_frozen_pages+0x747/0x1040 mm/page_alloc.c:2943 __pagetable_free include/linux/mm.h:3661 [inline] pagetable_free include/linux/mm.h:3685 [inline] pagetable_dtor_free include/linux/mm.h:3784 [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+0x2cf/0x380 mm/mmu_gather.c:291 rcu_do_batch kernel/rcu/tree.c:2617 [inline] rcu_core+0x5a2/0x10d0 kernel/rcu/tree.c:2869 handle_softirqs+0x1ea/0xa00 kernel/softirq.c:622 __do_softirq kernel/softirq.c:656 [inline] invoke_softirq kernel/softirq.c:496 [inline] __irq_exit_rcu+0x162/0x210 kernel/softirq.c:735 irq_exit_rcu+0x9/0x30 kernel/softirq.c:752 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1061 [inline] sysvec_apic_timer_interrupt+0xa3/0xc0 arch/x86/kernel/apic/apic.c:1061 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:697 Modules linked in: CPU: 3 UID: 0 PID: 8698 Comm: syz.2.753 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:632 page_frag_free+0x199/0x1f0 mm/page_frag_cache.c:169 __xdp_return+0x3b6/0x990 net/core/xdp.c:448 bpf_xdp_shrink_data net/core/filter.c:4211 [inline] bpf_xdp_frags_shrink_tail net/core/filter.c:4235 [inline] ____bpf_xdp_adjust_tail net/core/filter.c:4257 [inline] bpf_xdp_adjust_tail+0x8a1/0xbb0 net/core/filter.c:4250 bpf_prog_5d7dc57dfd7f985a+0x1e/0x24 __bpf_prog_run include/linux/filter.h:722 [inline] bpf_prog_run_xdp include/net/xdp.h:696 [inline] bpf_prog_run_generic_xdp+0x614/0x1610 net/core/dev.c:5488 netif_receive_generic_xdp net/core/dev.c:5604 [inline] do_xdp_generic+0x92e/0x12c0 net/core/dev.c:5666 tun_get_user+0x1c1c/0x3c20 drivers/net/tun.c:1874 tun_chr_write_iter+0xdc/0x200 drivers/net/tun.c:2001 new_sync_write fs/read_write.c:595 [inline] vfs_write+0x6ac/0x1070 fs/read_write.c:688 ksys_write+0x12a/0x250 fs/read_write.c:740 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x10b/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f6e7d55d04e 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:00007f6e7e414fb8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f6e7e4156c0 RCX: 00007f6e7d55d04e RDX: 0000000000011dc0 RSI: 0000200000000300 RDI: 00000000000000c8 RBP: 00007f6e7d632c91 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f6e7d816038 R14: 00007f6e7d815fa0 R15: 00007ffc5e91c118 BUG: Bad page state in process syz.2.753 pfn:5d3b1 page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff88805d3b1900 pfn:0x5d3b1 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) page_type: f9(unknown) raw: 00fff00000000000 0000000000000000 ffff888022c45000 0000000000000000 raw: ffff88805d3b1900 0000000000000001 00000000f9000000 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 8698, tgid 8697 (syz.2.753), ts 143937585592, free_ts 143910571647 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x153/0x170 mm/page_alloc.c:1858 prep_new_page mm/page_alloc.c:1866 [inline] get_page_from_freelist+0x11a6/0x33b0 mm/page_alloc.c:3946 __alloc_frozen_pages_noprof+0x27c/0x2bc0 mm/page_alloc.c:5226 __alloc_pages_noprof mm/page_alloc.c:5260 [inline] alloc_pages_bulk_noprof+0x657/0x1390 mm/page_alloc.c:5180 alloc_pages_bulk_node_noprof include/linux/gfp.h:259 [inline] __page_pool_alloc_netmems_slow+0x1c6/0xa60 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+0xa15/0x1220 net/core/skbuff.c:982 skb_cow_data_for_xdp+0x88/0xb0 net/core/skbuff.c:1016 netif_skb_check_for_xdp net/core/dev.c:5557 [inline] netif_receive_generic_xdp net/core/dev.c:5598 [inline] do_xdp_generic+0x56b/0x12c0 net/core/dev.c:5666 tun_get_user+0x1c1c/0x3c20 drivers/net/tun.c:1874 tun_chr_write_iter+0xdc/0x200 drivers/net/tun.c:2001 new_sync_write fs/read_write.c:595 [inline] vfs_write+0x6ac/0x1070 fs/read_write.c:688 ksys_write+0x12a/0x250 fs/read_write.c:740 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x10b/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 18 tgid 18 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] __free_pages_prepare mm/page_alloc.c:1402 [inline] __free_frozen_pages+0x747/0x1040 mm/page_alloc.c:2943 __pagetable_free include/linux/mm.h:3661 [inline] pagetable_free include/linux/mm.h:3685 [inline] pagetable_dtor_free include/linux/mm.h:3784 [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+0x2cf/0x380 mm/mmu_gather.c:291 rcu_do_batch kernel/rcu/tree.c:2617 [inline] rcu_core+0x5a2/0x10d0 kernel/rcu/tree.c:2869 handle_softirqs+0x1ea/0xa00 kernel/softirq.c:622 __do_softirq kernel/softirq.c:656 [inline] invoke_softirq kernel/softirq.c:496 [inline] __irq_exit_rcu+0x162/0x210 kernel/softirq.c:735 irq_exit_rcu+0x9/0x30 kernel/softirq.c:752 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1061 [inline] sysvec_apic_timer_interrupt+0xa3/0xc0 arch/x86/kernel/apic/apic.c:1061 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:697 Modules linked in: CPU: 3 UID: 0 PID: 8698 Comm: syz.2.753 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:632 page_frag_free+0x199/0x1f0 mm/page_frag_cache.c:169 __xdp_return+0x3b6/0x990 net/core/xdp.c:448 bpf_xdp_shrink_data net/core/filter.c:4211 [inline] bpf_xdp_frags_shrink_tail net/core/filter.c:4235 [inline] ____bpf_xdp_adjust_tail net/core/filter.c:4257 [inline] bpf_xdp_adjust_tail+0x8a1/0xbb0 net/core/filter.c:4250 bpf_prog_5d7dc57dfd7f985a+0x1e/0x24 __bpf_prog_run include/linux/filter.h:722 [inline] bpf_prog_run_xdp include/net/xdp.h:696 [inline] bpf_prog_run_generic_xdp+0x614/0x1610 net/core/dev.c:5488 netif_receive_generic_xdp net/core/dev.c:5604 [inline] do_xdp_generic+0x92e/0x12c0 net/core/dev.c:5666 tun_get_user+0x1c1c/0x3c20 drivers/net/tun.c:1874 tun_chr_write_iter+0xdc/0x200 drivers/net/tun.c:2001 new_sync_write fs/read_write.c:595 [inline] vfs_write+0x6ac/0x1070 fs/read_write.c:688 ksys_write+0x12a/0x250 fs/read_write.c:740 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x10b/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f6e7d55d04e 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:00007f6e7e414fb8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f6e7e4156c0 RCX: 00007f6e7d55d04e RDX: 0000000000011dc0 RSI: 0000200000000300 RDI: 00000000000000c8 RBP: 00007f6e7d632c91 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f6e7d816038 R14: 00007f6e7d815fa0 R15: 00007ffc5e91c118 BUG: Bad page state in process syz.2.753 pfn:5ffc8 page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x5ffc8 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) page_type: f9(unknown) raw: 00fff00000000000 0000000000000000 ffff888022c45000 0000000000000000 raw: 0000000000000000 0000000000000001 00000000f9000000 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 8698, tgid 8697 (syz.2.753), ts 143937573095, free_ts 143910595174 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x153/0x170 mm/page_alloc.c:1858 prep_new_page mm/page_alloc.c:1866 [inline] get_page_from_freelist+0x11a6/0x33b0 mm/page_alloc.c:3946 __alloc_frozen_pages_noprof+0x27c/0x2bc0 mm/page_alloc.c:5226 __alloc_pages_noprof mm/page_alloc.c:5260 [inline] alloc_pages_bulk_noprof+0x657/0x1390 mm/page_alloc.c:5180 alloc_pages_bulk_node_noprof include/linux/gfp.h:259 [inline] __page_pool_alloc_netmems_slow+0x1c6/0xa60 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+0xa15/0x1220 net/core/skbuff.c:982 skb_cow_data_for_xdp+0x88/0xb0 net/core/skbuff.c:1016 netif_skb_check_for_xdp net/core/dev.c:5557 [inline] netif_receive_generic_xdp net/core/dev.c:5598 [inline] do_xdp_generic+0x56b/0x12c0 net/core/dev.c:5666 tun_get_user+0x1c1c/0x3c20 drivers/net/tun.c:1874 tun_chr_write_iter+0xdc/0x200 drivers/net/tun.c:2001 new_sync_write fs/read_write.c:595 [inline] vfs_write+0x6ac/0x1070 fs/read_write.c:688 ksys_write+0x12a/0x250 fs/read_write.c:740 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x10b/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 18 tgid 18 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] __free_pages_prepare mm/page_alloc.c:1402 [inline] __free_frozen_pages+0x747/0x1040 mm/page_alloc.c:2943 __pagetable_free include/linux/mm.h:3661 [inline] pagetable_free include/linux/mm.h:3685 [inline] pagetable_dtor_free include/linux/mm.h:3784 [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+0x2cf/0x380 mm/mmu_gather.c:291 rcu_do_batch kernel/rcu/tree.c:2617 [inline] rcu_core+0x5a2/0x10d0 kernel/rcu/tree.c:2869 handle_softirqs+0x1ea/0xa00 kernel/softirq.c:622 __do_softirq kernel/softirq.c:656 [inline] invoke_softirq kernel/softirq.c:496 [inline] __irq_exit_rcu+0x162/0x210 kernel/softirq.c:735 irq_exit_rcu+0x9/0x30 kernel/softirq.c:752 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1061 [inline] sysvec_apic_timer_interrupt+0xa3/0xc0 arch/x86/kernel/apic/apic.c:1061 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:697 Modules linked in: CPU: 3 UID: 0 PID: 8698 Comm: syz.2.753 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:632 page_frag_free+0x199/0x1f0 mm/page_frag_cache.c:169 __xdp_return+0x3b6/0x990 net/core/xdp.c:448 bpf_xdp_shrink_data net/core/filter.c:4211 [inline] bpf_xdp_frags_shrink_tail net/core/filter.c:4235 [inline] ____bpf_xdp_adjust_tail net/core/filter.c:4257 [inline] bpf_xdp_adjust_tail+0x8a1/0xbb0 net/core/filter.c:4250 bpf_prog_5d7dc57dfd7f985a+0x1e/0x24 __bpf_prog_run include/linux/filter.h:722 [inline] bpf_prog_run_xdp include/net/xdp.h:696 [inline] bpf_prog_run_generic_xdp+0x614/0x1610 net/core/dev.c:5488 netif_receive_generic_xdp net/core/dev.c:5604 [inline] do_xdp_generic+0x92e/0x12c0 net/core/dev.c:5666 tun_get_user+0x1c1c/0x3c20 drivers/net/tun.c:1874 tun_chr_write_iter+0xdc/0x200 drivers/net/tun.c:2001 new_sync_write fs/read_write.c:595 [inline] vfs_write+0x6ac/0x1070 fs/read_write.c:688 ksys_write+0x12a/0x250 fs/read_write.c:740 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x10b/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f6e7d55d04e 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:00007f6e7e414fb8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f6e7e4156c0 RCX: 00007f6e7d55d04e RDX: 0000000000011dc0 RSI: 0000200000000300 RDI: 00000000000000c8 RBP: 00007f6e7d632c91 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f6e7d816038 R14: 00007f6e7d815fa0 R15: 00007ffc5e91c118 BUG: Bad page state in process syz.2.753 pfn:5ffc1 page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x5ffc1 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) page_type: f9(unknown) raw: 00fff00000000000 0000000000000000 ffff888022c45000 0000000000000000 raw: 0000000000000000 0000000000000001 00000000f9000000 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 8698, tgid 8697 (syz.2.753), ts 143937560501, free_ts 143910608665 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x153/0x170 mm/page_alloc.c:1858 prep_new_page mm/page_alloc.c:1866 [inline] get_page_from_freelist+0x11a6/0x33b0 mm/page_alloc.c:3946 __alloc_frozen_pages_noprof+0x27c/0x2bc0 mm/page_alloc.c:5226 __alloc_pages_noprof mm/page_alloc.c:5260 [inline] alloc_pages_bulk_noprof+0x657/0x1390 mm/page_alloc.c:5180 alloc_pages_bulk_node_noprof include/linux/gfp.h:259 [inline] __page_pool_alloc_netmems_slow+0x1c6/0xa60 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+0xa15/0x1220 net/core/skbuff.c:982 skb_cow_data_for_xdp+0x88/0xb0 net/core/skbuff.c:1016 netif_skb_check_for_xdp net/core/dev.c:5557 [inline] netif_receive_generic_xdp net/core/dev.c:5598 [inline] do_xdp_generic+0x56b/0x12c0 net/core/dev.c:5666 tun_get_user+0x1c1c/0x3c20 drivers/net/tun.c:1874 tun_chr_write_iter+0xdc/0x200 drivers/net/tun.c:2001 new_sync_write fs/read_write.c:595 [inline] vfs_write+0x6ac/0x1070 fs/read_write.c:688 ksys_write+0x12a/0x250 fs/read_write.c:740 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x10b/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 18 tgid 18 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] __free_pages_prepare mm/page_alloc.c:1402 [inline] __free_frozen_pages+0x747/0x1040 mm/page_alloc.c:2943 __pagetable_free include/linux/mm.h:3661 [inline] pagetable_free include/linux/mm.h:3685 [inline] pagetable_dtor_free include/linux/mm.h:3784 [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+0x2cf/0x380 mm/mmu_gather.c:291 rcu_do_batch kernel/rcu/tree.c:2617 [inline] rcu_core+0x5a2/0x10d0 kernel/rcu/tree.c:2869 handle_softirqs+0x1ea/0xa00 kernel/softirq.c:622 __do_softirq kernel/softirq.c:656 [inline] invoke_softirq kernel/softirq.c:496 [inline] __irq_exit_rcu+0x162/0x210 kernel/softirq.c:735 irq_exit_rcu+0x9/0x30 kernel/softirq.c:752 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1061 [inline] sysvec_apic_timer_interrupt+0xa3/0xc0 arch/x86/kernel/apic/apic.c:1061 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:697 Modules linked in: CPU: 3 UID: 0 PID: 8698 Comm: syz.2.753 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:632 page_frag_free+0x199/0x1f0 mm/page_frag_cache.c:169 __xdp_return+0x3b6/0x990 net/core/xdp.c:448 bpf_xdp_shrink_data net/core/filter.c:4211 [inline] bpf_xdp_frags_shrink_tail net/core/filter.c:4235 [inline] ____bpf_xdp_adjust_tail net/core/filter.c:4257 [inline] bpf_xdp_adjust_tail+0x8a1/0xbb0 net/core/filter.c:4250 bpf_prog_5d7dc57dfd7f985a+0x1e/0x24 __bpf_prog_run include/linux/filter.h:722 [inline] bpf_prog_run_xdp include/net/xdp.h:696 [inline] bpf_prog_run_generic_xdp+0x614/0x1610 net/core/dev.c:5488 netif_receive_generic_xdp net/core/dev.c:5604 [inline] do_xdp_generic+0x92e/0x12c0 net/core/dev.c:5666 tun_get_user+0x1c1c/0x3c20 drivers/net/tun.c:1874 tun_chr_write_iter+0xdc/0x200 drivers/net/tun.c:2001 new_sync_write fs/read_write.c:595 [inline] vfs_write+0x6ac/0x1070 fs/read_write.c:688 ksys_write+0x12a/0x250 fs/read_write.c:740 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x10b/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f6e7d55d04e 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:00007f6e7e414fb8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f6e7e4156c0 RCX: 00007f6e7d55d04e RDX: 0000000000011dc0 RSI: 0000200000000300 RDI: 00000000000000c8 RBP: 00007f6e7d632c91 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f6e7d816038 R14: 00007f6e7d815fa0 R15: 00007ffc5e91c118 BUG: Bad page state in process syz.2.753 pfn:5ffca page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x5ffca flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) page_type: f9(unknown) raw: 00fff00000000000 0000000000000000 ffff888022c45000 0000000000000000 raw: 0000000000000000 0000000000000001 00000000f9000000 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 8698, tgid 8697 (syz.2.753), ts 143937548151, free_ts 143910630793 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x153/0x170 mm/page_alloc.c:1858 prep_new_page mm/page_alloc.c:1866 [inline] get_page_from_freelist+0x11a6/0x33b0 mm/page_alloc.c:3946 __alloc_frozen_pages_noprof+0x27c/0x2bc0 mm/page_alloc.c:5226 __alloc_pages_noprof mm/page_alloc.c:5260 [inline] alloc_pages_bulk_noprof+0x657/0x1390 mm/page_alloc.c:5180 alloc_pages_bulk_node_noprof include/linux/gfp.h:259 [inline] __page_pool_alloc_netmems_slow+0x1c6/0xa60 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+0xa15/0x1220 net/core/skbuff.c:982 skb_cow_data_for_xdp+0x88/0xb0 net/core/skbuff.c:1016 netif_skb_check_for_xdp net/core/dev.c:5557 [inline] netif_receive_generic_xdp net/core/dev.c:5598 [inline] do_xdp_generic+0x56b/0x12c0 net/core/dev.c:5666 tun_get_user+0x1c1c/0x3c20 drivers/net/tun.c:1874 tun_chr_write_iter+0xdc/0x200 drivers/net/tun.c:2001 new_sync_write fs/read_write.c:595 [inline] vfs_write+0x6ac/0x1070 fs/read_write.c:688 ksys_write+0x12a/0x250 fs/read_write.c:740 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x10b/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 18 tgid 18 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] __free_pages_prepare mm/page_alloc.c:1402 [inline] __free_frozen_pages+0x747/0x1040 mm/page_alloc.c:2943 __pagetable_free include/linux/mm.h:3661 [inline] pagetable_free include/linux/mm.h:3685 [inline] pagetable_dtor_free include/linux/mm.h:3784 [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+0x2cf/0x380 mm/mmu_gather.c:291 rcu_do_batch kernel/rcu/tree.c:2617 [inline] rcu_core+0x5a2/0x10d0 kernel/rcu/tree.c:2869 handle_softirqs+0x1ea/0xa00 kernel/softirq.c:622 __do_softirq kernel/softirq.c:656 [inline] invoke_softirq kernel/softirq.c:496 [inline] __irq_exit_rcu+0x162/0x210 kernel/softirq.c:735 irq_exit_rcu+0x9/0x30 kernel/softirq.c:752 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1061 [inline] sysvec_apic_timer_interrupt+0xa3/0xc0 arch/x86/kernel/apic/apic.c:1061 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:697 Modules linked in: CPU: 3 UID: 0 PID: 8698 Comm: syz.2.753 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:632 page_frag_free+0x199/0x1f0 mm/page_frag_cache.c:169 __xdp_return+0x3b6/0x990 net/core/xdp.c:448 bpf_xdp_shrink_data net/core/filter.c:4211 [inline] bpf_xdp_frags_shrink_tail net/core/filter.c:4235 [inline] ____bpf_xdp_adjust_tail net/core/filter.c:4257 [inline] bpf_xdp_adjust_tail+0x8a1/0xbb0 net/core/filter.c:4250 bpf_prog_5d7dc57dfd7f985a+0x1e/0x24 __bpf_prog_run include/linux/filter.h:722 [inline] bpf_prog_run_xdp include/net/xdp.h:696 [inline] bpf_prog_run_generic_xdp+0x614/0x1610 net/core/dev.c:5488 netif_receive_generic_xdp net/core/dev.c:5604 [inline] do_xdp_generic+0x92e/0x12c0 net/core/dev.c:5666 tun_get_user+0x1c1c/0x3c20 drivers/net/tun.c:1874 tun_chr_write_iter+0xdc/0x200 drivers/net/tun.c:2001 new_sync_write fs/read_write.c:595 [inline] vfs_write+0x6ac/0x1070 fs/read_write.c:688 ksys_write+0x12a/0x250 fs/read_write.c:740 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x10b/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f6e7d55d04e 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:00007f6e7e414fb8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f6e7e4156c0 RCX: 00007f6e7d55d04e RDX: 0000000000011dc0 RSI: 0000200000000300 RDI: 00000000000000c8 RBP: 00007f6e7d632c91 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f6e7d816038 R14: 00007f6e7d815fa0 R15: 00007ffc5e91c118 BUG: Bad page state in process syz.2.753 pfn:51718 page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff888000000000 pfn:0x51718 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) page_type: f9(unknown) raw: 00fff00000000000 0000000000000000 ffff888022c45000 0000000000000000 raw: ffff888000000000 0000000000000001 00000000f9000000 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 8698, tgid 8697 (syz.2.753), ts 143937535275, free_ts 143910651150 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x153/0x170 mm/page_alloc.c:1858 prep_new_page mm/page_alloc.c:1866 [inline] get_page_from_freelist+0x11a6/0x33b0 mm/page_alloc.c:3946 __alloc_frozen_pages_noprof+0x27c/0x2bc0 mm/page_alloc.c:5226 __alloc_pages_noprof mm/page_alloc.c:5260 [inline] alloc_pages_bulk_noprof+0x657/0x1390 mm/page_alloc.c:5180 alloc_pages_bulk_node_noprof include/linux/gfp.h:259 [inline] __page_pool_alloc_netmems_slow+0x1c6/0xa60 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+0xa15/0x1220 net/core/skbuff.c:982 skb_cow_data_for_xdp+0x88/0xb0 net/core/skbuff.c:1016 netif_skb_check_for_xdp net/core/dev.c:5557 [inline] netif_receive_generic_xdp net/core/dev.c:5598 [inline] do_xdp_generic+0x56b/0x12c0 net/core/dev.c:5666 tun_get_user+0x1c1c/0x3c20 drivers/net/tun.c:1874 tun_chr_write_iter+0xdc/0x200 drivers/net/tun.c:2001 new_sync_write fs/read_write.c:595 [inline] vfs_write+0x6ac/0x1070 fs/read_write.c:688 ksys_write+0x12a/0x250 fs/read_write.c:740 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x10b/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 18 tgid 18 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] __free_pages_prepare mm/page_alloc.c:1402 [inline] __free_frozen_pages+0x747/0x1040 mm/page_alloc.c:2943 __pagetable_free include/linux/mm.h:3661 [inline] pagetable_free include/linux/mm.h:3685 [inline] pagetable_dtor_free include/linux/mm.h:3784 [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+0x2cf/0x380 mm/mmu_gather.c:291 rcu_do_batch kernel/rcu/tree.c:2617 [inline] rcu_core+0x5a2/0x10d0 kernel/rcu/tree.c:2869 handle_softirqs+0x1ea/0xa00 kernel/softirq.c:622 __do_softirq kernel/softirq.c:656 [inline] invoke_softirq kernel/softirq.c:496 [inline] __irq_exit_rcu+0x162/0x210 kernel/softirq.c:735 irq_exit_rcu+0x9/0x30 kernel/softirq.c:752 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1061 [inline] sysvec_apic_timer_interrupt+0xa3/0xc0 arch/x86/kernel/apic/apic.c:1061 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:697 Modules linked in: CPU: 3 UID: 0 PID: 8698 Comm: syz.2.753 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:632 page_frag_free+0x199/0x1f0 mm/page_frag_cache.c:169 __xdp_return+0x3b6/0x990 net/core/xdp.c:448 bpf_xdp_shrink_data net/core/filter.c:4211 [inline] bpf_xdp_frags_shrink_tail net/core/filter.c:4235 [inline] ____bpf_xdp_adjust_tail net/core/filter.c:4257 [inline] bpf_xdp_adjust_tail+0x8a1/0xbb0 net/core/filter.c:4250 bpf_prog_5d7dc57dfd7f985a+0x1e/0x24 __bpf_prog_run include/linux/filter.h:722 [inline] bpf_prog_run_xdp include/net/xdp.h:696 [inline] bpf_prog_run_generic_xdp+0x614/0x1610 net/core/dev.c:5488 netif_receive_generic_xdp net/core/dev.c:5604 [inline] do_xdp_generic+0x92e/0x12c0 net/core/dev.c:5666 tun_get_user+0x1c1c/0x3c20 drivers/net/tun.c:1874 tun_chr_write_iter+0xdc/0x200 drivers/net/tun.c:2001 new_sync_write fs/read_write.c:595 [inline] vfs_write+0x6ac/0x1070 fs/read_write.c:688 ksys_write+0x12a/0x250 fs/read_write.c:740 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x10b/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f6e7d55d04e 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:00007f6e7e414fb8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f6e7e4156c0 RCX: 00007f6e7d55d04e RDX: 0000000000011dc0 RSI: 0000200000000300 RDI: 00000000000000c8 RBP: 00007f6e7d632c91 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f6e7d816038 R14: 00007f6e7d815fa0 R15: 00007ffc5e91c118 BUG: Bad page state in process syz.2.753 pfn:5ffc5 page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x5ffc5 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) page_type: f9(unknown) raw: 00fff00000000000 0000000000000000 ffff888022c45000 0000000000000000 raw: 0000000000000000 0000000000000001 00000000f9000000 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 8698, tgid 8697 (syz.2.753), ts 143937522860, free_ts 143910664846 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x153/0x170 mm/page_alloc.c:1858 prep_new_page mm/page_alloc.c:1866 [inline] get_page_from_freelist+0x11a6/0x33b0 mm/page_alloc.c:3946 __alloc_frozen_pages_noprof+0x27c/0x2bc0 mm/page_alloc.c:5226 __alloc_pages_noprof mm/page_alloc.c:5260 [inline] alloc_pages_bulk_noprof+0x657/0x1390 mm/page_alloc.c:5180 alloc_pages_bulk_node_noprof include/linux/gfp.h:259 [inline] __page_pool_alloc_netmems_slow+0x1c6/0xa60 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+0xa15/0x1220 net/core/skbuff.c:982 skb_cow_data_for_xdp+0x88/0xb0 net/core/skbuff.c:1016 netif_skb_check_for_xdp net/core/dev.c:5557 [inline] netif_receive_generic_xdp net/core/dev.c:5598 [inline] do_xdp_generic+0x56b/0x12c0 net/core/dev.c:5666 tun_get_user+0x1c1c/0x3c20 drivers/net/tun.c:1874 tun_chr_write_iter+0xdc/0x200 drivers/net/tun.c:2001 new_sync_write fs/read_write.c:595 [inline] vfs_write+0x6ac/0x1070 fs/read_write.c:688 ksys_write+0x12a/0x250 fs/read_write.c:740 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x10b/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 18 tgid 18 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] __free_pages_prepare mm/page_alloc.c:1402 [inline] __free_frozen_pages+0x747/0x1040 mm/page_alloc.c:2943 __pagetable_free include/linux/mm.h:3661 [inline] pagetable_free include/linux/mm.h:3685 [inline] pagetable_dtor_free include/linux/mm.h:3784 [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+0x2cf/0x380 mm/mmu_gather.c:291 rcu_do_batch kernel/rcu/tree.c:2617 [inline] rcu_core+0x5a2/0x10d0 kernel/rcu/tree.c:2869 handle_softirqs+0x1ea/0xa00 kernel/softirq.c:622 __do_softirq kernel/softirq.c:656 [inline] invoke_softirq kernel/softirq.c:496 [inline] __irq_exit_rcu+0x162/0x210 kernel/softirq.c:735 irq_exit_rcu+0x9/0x30 kernel/softirq.c:752 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1061 [inline] sysvec_apic_timer_interrupt+0xa3/0xc0 arch/x86/kernel/apic/apic.c:1061 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:697 Modules linked in: CPU: 3 UID: 0 PID: 8698 Comm: syz.2.753 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:632 page_frag_free+0x199/0x1f0 mm/page_frag_cache.c:169 __xdp_return+0x3b6/0x990 net/core/xdp.c:448 bpf_xdp_shrink_data net/core/filter.c:4211 [inline] bpf_xdp_frags_shrink_tail net/core/filter.c:4235 [inline] ____bpf_xdp_adjust_tail net/core/filter.c:4257 [inline] bpf_xdp_adjust_tail+0x8a1/0xbb0 net/core/filter.c:4250 bpf_prog_5d7dc57dfd7f985a+0x1e/0x24 __bpf_prog_run include/linux/filter.h:722 [inline] bpf_prog_run_xdp include/net/xdp.h:696 [inline] bpf_prog_run_generic_xdp+0x614/0x1610 net/core/dev.c:5488 netif_receive_generic_xdp net/core/dev.c:5604 [inline] do_xdp_generic+0x92e/0x12c0 net/core/dev.c:5666 tun_get_user+0x1c1c/0x3c20 drivers/net/tun.c:1874 tun_chr_write_iter+0xdc/0x200 drivers/net/tun.c:2001 new_sync_write fs/read_write.c:595 [inline] vfs_write+0x6ac/0x1070 fs/read_write.c:688 ksys_write+0x12a/0x250 fs/read_write.c:740 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x10b/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f6e7d55d04e 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:00007f6e7e414fb8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f6e7e4156c0 RCX: 00007f6e7d55d04e RDX: 0000000000011dc0 RSI: 0000200000000300 RDI: 00000000000000c8 RBP: 00007f6e7d632c91 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f6e7d816038 R14: 00007f6e7d815fa0 R15: 00007ffc5e91c118 BUG: Bad page state in process syz.2.753 pfn:380c8 page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff8880380c8000 pfn:0x380c8 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) page_type: f9(unknown) raw: 00fff00000000000 0000000000000000 ffff888022c45000 0000000000000000 raw: ffff8880380c8000 0000000000000001 00000000f9000000 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 8698, tgid 8697 (syz.2.753), ts 143937509429, free_ts 143910688453 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x153/0x170 mm/page_alloc.c:1858 prep_new_page mm/page_alloc.c:1866 [inline] get_page_from_freelist+0x11a6/0x33b0 mm/page_alloc.c:3946 __alloc_frozen_pages_noprof+0x27c/0x2bc0 mm/page_alloc.c:5226 __alloc_pages_noprof mm/page_alloc.c:5260 [inline] alloc_pages_bulk_noprof+0x657/0x1390 mm/page_alloc.c:5180 alloc_pages_bulk_node_noprof include/linux/gfp.h:259 [inline] __page_pool_alloc_netmems_slow+0x1c6/0xa60 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+0xa15/0x1220 net/core/skbuff.c:982 skb_cow_data_for_xdp+0x88/0xb0 net/core/skbuff.c:1016 netif_skb_check_for_xdp net/core/dev.c:5557 [inline] netif_receive_generic_xdp net/core/dev.c:5598 [inline] do_xdp_generic+0x56b/0x12c0 net/core/dev.c:5666 tun_get_user+0x1c1c/0x3c20 drivers/net/tun.c:1874 tun_chr_write_iter+0xdc/0x200 drivers/net/tun.c:2001 new_sync_write fs/read_write.c:595 [inline] vfs_write+0x6ac/0x1070 fs/read_write.c:688 ksys_write+0x12a/0x250 fs/read_write.c:740 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x10b/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 18 tgid 18 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] __free_pages_prepare mm/page_alloc.c:1402 [inline] __free_frozen_pages+0x747/0x1040 mm/page_alloc.c:2943 __pagetable_free include/linux/mm.h:3661 [inline] pagetable_free include/linux/mm.h:3685 [inline] pagetable_dtor_free include/linux/mm.h:3784 [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+0x2cf/0x380 mm/mmu_gather.c:291 rcu_do_batch kernel/rcu/tree.c:2617 [inline] rcu_core+0x5a2/0x10d0 kernel/rcu/tree.c:2869 handle_softirqs+0x1ea/0xa00 kernel/softirq.c:622 __do_softirq kernel/softirq.c:656 [inline] invoke_softirq kernel/softirq.c:496 [inline] __irq_exit_rcu+0x162/0x210 kernel/softirq.c:735 irq_exit_rcu+0x9/0x30 kernel/softirq.c:752 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1061 [inline] sysvec_apic_timer_interrupt+0xa3/0xc0 arch/x86/kernel/apic/apic.c:1061 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:697 Modules linked in: CPU: 3 UID: 0 PID: 8698 Comm: syz.2.753 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:632 page_frag_free+0x199/0x1f0 mm/page_frag_cache.c:169 __xdp_return+0x3b6/0x990 net/core/xdp.c:448 bpf_xdp_shrink_data net/core/filter.c:4211 [inline] bpf_xdp_frags_shrink_tail net/core/filter.c:4235 [inline] ____bpf_xdp_adjust_tail net/core/filter.c:4257 [inline] bpf_xdp_adjust_tail+0x8a1/0xbb0 net/core/filter.c:4250 bpf_prog_5d7dc57dfd7f985a+0x1e/0x24 __bpf_prog_run include/linux/filter.h:722 [inline] bpf_prog_run_xdp include/net/xdp.h:696 [inline] bpf_prog_run_generic_xdp+0x614/0x1610 net/core/dev.c:5488 netif_receive_generic_xdp net/core/dev.c:5604 [inline] do_xdp_generic+0x92e/0x12c0 net/core/dev.c:5666 tun_get_user+0x1c1c/0x3c20 drivers/net/tun.c:1874 tun_chr_write_iter+0xdc/0x200 drivers/net/tun.c:2001 new_sync_write fs/read_write.c:595 [inline] vfs_write+0x6ac/0x1070 fs/read_write.c:688 ksys_write+0x12a/0x250 fs/read_write.c:740 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x10b/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f6e7d55d04e 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:00007f6e7e414fb8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f6e7e4156c0 RCX: 00007f6e7d55d04e RDX: 0000000000011dc0 RSI: 0000200000000300 RDI: 00000000000000c8 RBP: 00007f6e7d632c91 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f6e7d816038 R14: 00007f6e7d815fa0 R15: 00007ffc5e91c118 syz_tun (unregistering): left allmulticast mode