BUG: Bad page state in process syz.1.18  pfn:173f26
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff888173f27380 pfn:0x173f26
flags: 0x57ff00000000000(node=1|zone=2|lastcpupid=0x7ff)
raw: 057ff00000000000 dead000000000040 ffff888168a4b000 0000000000000000
raw: ffff888173f27380 3fffffffffffffff 00000000ffffffff 0000000000000000
page dumped because: page_pool leak
page_owner tracks the page as allocated
page last allocated via order 0, migratetype Unmovable, gfp_mask 0x2820(GFP_ATOMIC|__GFP_NOWARN), pid 5802, tgid 5801 (syz.1.18), ts 77710716602
 set_page_owner include/linux/page_owner.h:33 [inline]
 post_alloc_hook+0x1f9/0x250 mm/page_alloc.c:1871
 prep_new_page mm/page_alloc.c:1879 [inline]
 get_page_from_freelist+0x2209/0x2280 mm/page_alloc.c:3943
 __alloc_frozen_pages_noprof+0x217/0x5a0 mm/page_alloc.c:5436
 __alloc_pages_noprof+0x10/0x100 mm/page_alloc.c:5471
 alloc_pages_bulk_noprof+0x5fa/0x7c0 mm/page_alloc.c:5295
 alloc_pages_bulk_node_noprof include/linux/gfp.h:235 [inline]
 __page_pool_alloc_netmems_slow+0x14f/0x720 net/core/page_pool.c:637
 page_pool_alloc_netmems net/core/page_pool.c:688 [inline]
 page_pool_alloc_frag_netmem+0x561/0x9b0 net/core/page_pool.c:1090
 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+0xc2c/0x18e0 net/core/skbuff.c:990
 netif_skb_check_for_xdp net/core/dev.c:5619 [inline]
 netif_receive_generic_xdp net/core/dev.c:5660 [inline]
 do_xdp_generic+0x78f/0x12f0 net/core/dev.c:5728
 tun_get_user+0x24e7/0x44d0 drivers/net/tun.c:1964
 tun_chr_write_iter+0x113/0x200 drivers/net/tun.c:2091
 new_sync_write fs/read_write.c:595 [inline]
 vfs_write+0x612/0xba0 fs/read_write.c:687
 ksys_write+0x150/0x270 fs/read_write.c:739
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
page last free pid 5730 tgid 5730 ts 77124280779 stack trace:
 reset_page_owner include/linux/page_owner.h:26 [inline]
 __free_pages_prepare mm/page_alloc.c:1418 [inline]
 __free_frozen_pages+0xc93/0xd90 mm/page_alloc.c:2962
 rcu_do_batch kernel/rcu/tree.c:2650 [inline]
 rcu_core+0x926/0x1260 kernel/rcu/tree.c:2919
 handle_softirqs+0x226/0x860 kernel/softirq.c:645
 __do_softirq kernel/softirq.c:679 [inline]
 invoke_softirq kernel/softirq.c:519 [inline]
 __irq_exit_rcu+0xcb/0x220 kernel/softirq.c:758
 irq_exit_rcu+0x9/0x30 kernel/softirq.c:775
 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1062 [inline]
 sysvec_apic_timer_interrupt+0xa6/0xc0 arch/x86/kernel/apic/apic.c:1062
 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:674
Modules linked in:
CPU: 1 UID: 0 PID: 5802 Comm: syz.1.18 Not tainted syzkaller #0 PREEMPT(full) 
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014
Call Trace:
 <TASK>
 dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120
 bad_page+0x17f/0x1c0 mm/page_alloc.c:647
 free_page_is_bad mm/page_alloc.c:1082 [inline]
 __free_pages_prepare mm/page_alloc.c:1409 [inline]
 __free_frozen_pages+0xd37/0xd90 mm/page_alloc.c:2962
 bpf_xdp_frags_s
 bpf_xdp_shrink_data net/core/filter.c:4384 [inline]
 bpf_xdp_frags_shrink_tail+0x4ed/0x800 net/core/filter.c:4408
 ____bpf_xdp_adjust_tail net/core/filter.c:4430 [inline]
 bpf_xdp_adjust_tail+0x1ce/0x210 net/core/filter.c:4423
 bpf_prog_5d7dc57dfd7f985a+0x1e/0x24
 __bpf_prog_run include/linux/filter.h:779 [inline]
 bpf_prog_run_xdp include/net/xdp.h:696 [inline]
 bpf_prog_run_generic_xdp+0x612/0x1560 net/core/dev.c:5546
 netif_receive_generic_xdp net/core/dev.c:5666 [inline]
 do_xdp_generic+0xae1/0x12f0 net/core/dev.c:5728
 tun_get_user+0x24e7/0x44d0 drivers/net/tun.c:1964
 tun_chr_write_iter+0x113/0x200 drivers/net/tun.c:2091
 new_sync_write fs/read_write.c:595 [inline]
 vfs_write+0x612/0xba0 fs/read_write.c:687
 ksys_write+0x150/0x270 fs/read_write.c:739
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f386a55e98e
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 <c3> 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 80 00 00 00 00 48 83 ec 08
RSP: 002b:00007f386b43efb8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f386b43f6c0 RCX: 00007f386a55e98e
RDX: 000000000000fdef RSI: 0000200000000200 RDI: 00000000000000c8
RBP: 00007f386a63503b R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f386a826038 R14: 00007f386a825fa0 R15: 00007fffff181778
 </TASK>
BUG: Bad page state in process syz.1.18  pfn:178af9
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffffffffffffffff pfn:0x178af9
flags: 0x57ff00000000000(node=1|zone=2|lastcpupid=0x7ff)
raw: 057ff00000000000 dead000000000040 ffff888168a4b000 0000000000000000
raw: ffffffffffffffff 0000000000000001 00000000ffffffff 0000000000000000
page dumped because: page_pool leak
page_owner tracks the page as allocated
page last allocated via order 0, migratetype Unmovable, gfp_mask 0x2820(GFP_ATOMIC|__GFP_NOWARN), pid 5802, tgid 5801 (syz.1.18), ts 77710707131
 set_page_owner include/linux/page_owner.h:33 [inline]
 post_alloc_hook+0x1f9/0x250 mm/page_alloc.c:1871
 prep_new_page mm/page_alloc.c:1879 [inline]
 get_page_from_freelist+0x2209/0x2280 mm/page_alloc.c:3943
 __alloc_frozen_pages_noprof+0x217/0x5a0 mm/page_alloc.c:5436
 __alloc_pages_noprof+0x10/0x100 mm/page_alloc.c:5471
 alloc_pages_bulk_noprof+0x5fa/0x7c0 mm/page_alloc.c:5295
 alloc_pages_bulk_node_noprof include/linux/gfp.h:235 [inline]
 __page_pool_alloc_netmems_slow+0x14f/0x720 net/core/page_pool.c:637
 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+0xc08/0x18e0 net/core/skbuff.c:990
 netif_skb_check_for_xdp net/core/dev.c:5619 [inline]
 netif_receive_generic_xdp net/core/dev.c:5660 [inline]
 do_xdp_generic+0x78f/0x12f0 net/core/dev.c:5728
 tun_get_user+0x24e7/0x44d0 drivers/net/tun.c:1964
 tun_chr_write_iter+0x113/0x200 drivers/net/tun.c:2091
 new_sync_write fs/read_write.c:595 [inline]
 vfs_write+0x612/0xba0 fs/read_write.c:687
 ksys_write+0x150/0x270 fs/read_write.c:739
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
page last free pid 5730 tgid 5730 ts 77124377656 stack trace:
 reset_page_owner include/linux/page_owner.h:26 [inline]
 __free_pages_prepare mm/page_alloc.c:1418 [inline]
 __free_frozen_pages+0xc93/0xd90 mm/page_alloc.c:2962
 rcu_do_batch kernel/rcu/tree.c:2650 [inline]
 rcu_core+0x926/0x1260 kernel/rcu/tree.c:2919
 handle_softirqs+0x226/0x860 kernel/softirq.c:645
 __do_softirq kernel/softirq.c:679 [inline]
 invoke_softirq kernel/softirq.c:519 [inline]
 __irq_exit_rcu+0xcb/0x220 kernel/softirq.c:758
 irq_exit_rcu+0x9/0x30 kernel/softirq.c:775
 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1062 [inline]
 sysvec_apic_timer_interrupt+0xa6/0xc0 arch/x86/kernel/apic/apic.c:1062
 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:674
Modules linked in:
CPU: 1 UID: 0 PID: 5802 Comm: syz.1.18 Tainted: G    B               syzkaller #0 PREEMPT(full) 
Tainted: [B]=BAD_PAGE
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014
Call Trace:
 <TASK>
 dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120
 bad_page+0x17f/0x1c0 mm/page_alloc.c:647
 free_page_is_bad mm/page_alloc.c:1082 [inline]
 __free_pages_prepare mm/page_alloc.c:1409 [inline]
 __free_frozen_pages+0xd37/0xd90 mm/page_alloc.c:2962
 bpf_xdp_shrink_data net/core/filter.c:4384 [inline]
 bpf_xdp_frags_shrink_tail+0x4ed/0x800 net/core/filter.c:4408
 ____bpf_xdp_adjust_tail net/core/filter.c:4430 [inline]
 bpf_xdp_adjust_tail+0x1ce/0x210 net/core/filter.c:4423
 bpf_prog_5d7dc57dfd7f985a+0x1e/0x24
 __bpf_prog_run include/linux/filter.h:779 [inline]
 bpf_prog_run_xdp include/net/xdp.h:696 [inline]
 bpf_prog_run_generic_xdp+0x612/0x1560 net/core/dev.c:5546
 netif_receive_generic_xdp net/core/dev.c:5666 [inline]
 do_xdp_generic+0xae1/0x12f0 net/core/dev.c:5728
 tun_get_user+0x24e7/0x44d0 drivers/net/tun.c:1964
 tun_chr_write_iter+0x113/0x200 drivers/net/tun.c:2091
 new_sync_write fs/read_write.c:595 [inline]
 vfs_write+0x612/0xba0 fs/read_write.c:687
 ksys_write+0x150/0x270 fs/read_write.c:739
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f386a55e98e
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 <c3> 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 80 00 00 00 00 48 83 ec 08
RSP: 002b:00007f386b43efb8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f386b43f6c0 RCX: 00007f386a55e98e
RDX: 000000000000fdef RSI: 0000200000000200 RDI: 00000000000000c8
RBP: 00007f386a63503b R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f386a826038 R14: 00007f386a825fa0 R15: 00007fffff181778
 </TASK>
BUG: Bad page state in process syz.1.18  pfn:178af8
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff888178af8480 pfn:0x178af8
flags: 0x57ff00000000000(node=1|zone=2|lastcpupid=0x7ff)
raw: 057ff00000000000 dead000000000040 ffff888168a4b000 0000000000000000
raw: ffff888178af8480 0000000000000001 00000000ffffffff 0000000000000000
page dumped because: page_pool leak
page_owner tracks the page as allocated
page last allocated via order 0, migratetype Unmovable, gfp_mask 0x2820(GFP_ATOMIC|__GFP_NOWARN), pid 5802, tgid 5801 (syz.1.18), ts 77710698694
 set_page_owner include/linux/page_owner.h:33 [inline]
 post_alloc_hook+0x1f9/0x250 mm/page_alloc.c:1871
 prep_new_page mm/page_alloc.c:1879 [inline]
 get_page_from_freelist+0x2209/0x2280 mm/page_alloc.c:3943
 __alloc_frozen_pages_noprof+0x217/0x5a0 mm/page_alloc.c:5436
 __alloc_pages_noprof+0x10/0x100 mm/page_alloc.c:5471
 alloc_pages_bulk_noprof+0x5fa/0x7c0 mm/page_alloc.c:5295
 alloc_pages_bulk_node_noprof include/linux/gfp.h:235 [inline]
 __page_pool_alloc_netmems_slow+0x14f/0x720 net/core/page_pool.c:637
 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+0xc08/0x18e0 net/core/skbuff.c:990
 netif_skb_check_for_xdp net/core/dev.c:5619 [inline]
 netif_receive_generic_xdp net/core/dev.c:5660 [inline]
 do_xdp_generic+0x78f/0x12f0 net/core/dev.c:5728
 tun_get_user+0x24e7/0x44d0 drivers/net/tun.c:1964
 tun_chr_write_iter+0x113/0x200 drivers/net/tun.c:2091
 new_sync_write fs/read_write.c:595 [inline]
 vfs_write+0x612/0xba0 fs/read_write.c:687
 ksys_write+0x150/0x270 fs/read_write.c:739
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
page last free pid 5730 tgid 5730 ts 77124377656 stack trace:
 reset_page_owner include/linux/page_owner.h:26 [inline]
 __free_pages_prepare mm/page_alloc.c:1418 [inline]
 __free_frozen_pages+0xc93/0xd90 mm/page_alloc.c:2962
 rcu_do_batch kernel/rcu/tree.c:2650 [inline]
 rcu_core+0x926/0x1260 kernel/rcu/tree.c:2919
 handle_softirqs+0x226/0x860 kernel/softirq.c:645
 __do_softirq kernel/softirq.c:679 [inline]
 invoke_softirq kernel/softirq.c:519 [inline]
 __irq_exit_rcu+0xcb/0x220 kernel/softirq.c:758
 irq_exit_rcu+0x9/0x30 kernel/softirq.c:775
 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1062 [inline]
 sysvec_apic_timer_interrupt+0xa6/0xc0 arch/x86/kernel/apic/apic.c:1062
 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:674
Modules linked in:
CPU: 1 UID: 0 PID: 5802 Comm: syz.1.18 Tainted: G    B               syzkaller #0 PREEMPT(full) 
Tainted: [B]=BAD_PAGE
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014
Call Trace:
 <TASK>
 dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120
 bad_page+0x17f/0x1c0 mm/page_alloc.c:647
 free_page_is_bad mm/page_alloc.c:1082 [inline]
 __free_pages_prepare mm/page_alloc.c:1409 [inline]
 __free_frozen_pages+0xd37/0xd90 mm/page_alloc.c:2962
 bpf_xdp_shrink_data net/core/filter.c:4384 [inline]
 bpf_xdp_frags_shrink_tail+0x4ed/0x800 net/core/filter.c:4408
 ____bpf_xdp_adjust_tail net/core/filter.c:4430 [inline]
 bpf_xdp_adjust_tail+0x1ce/0x210 net/core/filter.c:4423
 bpf_prog_5d7dc57dfd7f985a+0x1e/0x24
 __bpf_prog_run include/linux/filter.h:779 [inline]
 bpf_prog_run_xdp include/net/xdp.h:696 [inline]
 bpf_prog_run_generic_xdp+0x612/0x1560 net/core/dev.c:5546
 netif_receive_generic_xdp net/core/dev.c:5666 [inline]
 do_xdp_generic+0xae1/0x12f0 net/core/dev.c:5728
 tun_get_user+0x24e7/0x44d0 drivers/net/tun.c:1964
 tun_chr_write_iter+0x113/0x200 drivers/net/tun.c:2091
 new_sync_write fs/read_write.c:595 [inline]
 vfs_write+0x612/0xba0 fs/read_write.c:687
 ksys_write+0x150/0x270 fs/read_write.c:739
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f386a55e98e
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 <c3> 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 80 00 00 00 00 48 83 ec 08
RSP: 002b:00007f386b43efb8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f386b43f6c0 RCX: 00007f386a55e98e
RDX: 000000000000fdef RSI: 0000200000000200 RDI: 00000000000000c8
RBP: 00007f386a63503b R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f386a826038 R14: 00007f386a825fa0 R15: 00007fffff181778
 </TASK>
BUG: Bad page state in process syz.1.18  pfn:16cc0d
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffffffffffffffff pfn:0x16cc0d
flags: 0x57ff00000000000(node=1|zone=2|lastcpupid=0x7ff)
raw: 057ff00000000000 dead000000000040 ffff888168a4b000 0000000000000000
raw: ffffffffffffffff 0000000000000001 00000000ffffffff 0000000000000000
page dumped because: page_pool leak
page_owner tracks the page as allocated
page last allocated via order 0, migratetype Unmovable, gfp_mask 0x2820(GFP_ATOMIC|__GFP_NOWARN), pid 5802, tgid 5801 (syz.1.18), ts 77710690136
 set_page_owner include/linux/page_owner.h:33 [inline]
 post_alloc_hook+0x1f9/0x250 mm/page_alloc.c:1871
 prep_new_page mm/page_alloc.c:1879 [inline]
 get_page_from_freelist+0x2209/0x2280 mm/page_alloc.c:3943
 __alloc_frozen_pages_noprof+0x217/0x5a0 mm/page_alloc.c:5436
 __alloc_pages_noprof+0x10/0x100 mm/page_alloc.c:5471
 alloc_pages_bulk_noprof+0x5fa/0x7c0 mm/page_alloc.c:5295
 alloc_pages_bulk_node_noprof include/linux/gfp.h:235 [inline]
 __page_pool_alloc_netmems_slow+0x14f/0x720 net/core/page_pool.c:637
 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+0xc08/0x18e0 net/core/skbuff.c:990
 netif_skb_check_for_xdp net/core/dev.c:5619 [inline]
 netif_receive_generic_xdp net/core/dev.c:5660 [inline]
 do_xdp_generic+0x78f/0x12f0 net/core/dev.c:5728
 tun_get_user+0x24e7/0x44d0 drivers/net/tun.c:1964
 tun_chr_write_iter+0x113/0x200 drivers/net/tun.c:2091
 new_sync_write fs/read_write.c:595 [inline]
 vfs_write+0x612/0xba0 fs/read_write.c:687
 ksys_write+0x150/0x270 fs/read_write.c:739
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
page last free pid 5730 tgid 5730 ts 77124386976 stack trace:
 reset_page_owner include/linux/page_owner.h:26 [inline]
 __free_pages_prepare mm/page_alloc.c:1418 [inline]
 __free_frozen_pages+0xc93/0xd90 mm/page_alloc.c:2962
 rcu_do_batch kernel/rcu/tree.c:2650 [inline]
 rcu_core+0x926/0x1260 kernel/rcu/tree.c:2919
 handle_softirqs+0x226/0x860 kernel/softirq.c:645
 __do_softirq kernel/softirq.c:679 [inline]
 invoke_softirq kernel/softirq.c:519 [inline]
 __irq_exit_rcu+0xcb/0x220 kernel/softirq.c:758
 irq_exit_rcu+0x9/0x30 kernel/softirq.c:775
 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1062 [inline]
 sysvec_apic_timer_interrupt+0xa6/0xc0 arch/x86/kernel/apic/apic.c:1062
 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:674
Modules linked in:
CPU: 1 UID: 0 PID: 5802 Comm: syz.1.18 Tainted: G    B               syzkaller #0 PREEMPT(full) 
Tainted: [B]=BAD_PAGE
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014
Call Trace:
 <TASK>
 dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120
 bad_page+0x17f/0x1c0 mm/page_alloc.c:647
 free_page_is_bad mm/page_alloc.c:1082 [inline]
 __free_pages_prepare mm/page_alloc.c:1409 [inline]
 __free_frozen_pages+0xd37/0xd90 mm/page_alloc.c:2962
 bpf_xdp_shrink_data net/core/filter.c:4384 [inline]
 bpf_xdp_frags_shrink_tail+0x4ed/0x800 net/core/filter.c:4408
 ____bpf_xdp_adjust_tail net/core/filter.c:4430 [inline]
 bpf_xdp_adjust_tail+0x1ce/0x210 net/core/filter.c:4423
 bpf_prog_5d7dc57dfd7f985a+0x1e/0x24
 __bpf_prog_run include/linux/filter.h:779 [inline]
 bpf_prog_run_xdp include/net/xdp.h:696 [inline]
 bpf_prog_run_generic_xdp+0x612/0x1560 net/core/dev.c:5546
 netif_receive_generic_xdp net/core/dev.c:5666 [inline]
 do_xdp_generic+0xae1/0x12f0 net/core/dev.c:5728
 tun_get_user+0x24e7/0x44d0 drivers/net/tun.c:1964
 tun_chr_write_iter+0x113/0x200 drivers/net/tun.c:2091
 new_sync_write fs/read_write.c:595 [inline]
 vfs_write+0x612/0xba0 fs/read_write.c:687
 ksys_write+0x150/0x270 fs/read_write.c:739
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f386a55e98e
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 <c3> 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 80 00 00 00 00 48 83 ec 08
RSP: 002b:00007f386b43efb8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f386b43f6c0 RCX: 00007f386a55e98e
RDX: 000000000000fdef RSI: 0000200000000200 RDI: 00000000000000c8
RBP: 00007f386a63503b R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f386a826038 R14: 00007f386a825fa0 R15: 00007fffff181778
 </TASK>
BUG: Bad page state in process syz.1.18  pfn:16cc0c
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff88816cc0c000 pfn:0x16cc0c
flags: 0x57ff00000000000(node=1|zone=2|lastcpupid=0x7ff)
raw: 057ff00000000000 dead000000000040 ffff888168a4b000 0000000000000000
raw: ffff88816cc0c000 0000000000000001 00000000ffffffff 0000000000000000
page dumped because: page_pool leak
page_owner tracks the page as allocated
page last allocated via order 0, migratetype Unmovable, gfp_mask 0x2820(GFP_ATOMIC|__GFP_NOWARN), pid 5802, tgid 5801 (syz.1.18), ts 77710681998
 set_page_owner include/linux/page_owner.h:33 [inline]
 post_alloc_hook+0x1f9/0x250 mm/page_alloc.c:1871
 prep_new_page mm/page_alloc.c:1879 [inline]
 get_page_from_freelist+0x2209/0x2280 mm/page_alloc.c:3943
 __alloc_frozen_pages_noprof+0x217/0x5a0 mm/page_alloc.c:5436
 __alloc_pages_noprof+0x10/0x100 mm/page_alloc.c:5471
 alloc_pages_bulk_noprof+0x5fa/0x7c0 mm/page_alloc.c:5295
 alloc_pages_bulk_node_noprof include/linux/gfp.h:235 [inline]
 __page_pool_alloc_netmems_slow+0x14f/0x720 net/core/page_pool.c:637
 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+0xc08/0x18e0 net/core/skbuff.c:990
 netif_skb_check_for_xdp net/core/dev.c:5619 [inline]
 netif_receive_generic_xdp net/core/dev.c:5660 [inline]
 do_xdp_generic+0x78f/0x12f0 net/core/dev.c:5728
 tun_get_user+0x24e7/0x44d0 drivers/net/tun.c:1964
 tun_chr_write_iter+0x113/0x200 drivers/net/tun.c:2091
 new_sync_write fs/read_write.c:595 [inline]
 vfs_write+0x612/0xba0 fs/read_write.c:687
 ksys_write+0x150/0x270 fs/read_write.c:739
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
page last free pid 5730 tgid 5730 ts 77124386976 stack trace:
 reset_page_owner include/linux/page_owner.h:26 [inline]
 __free_pages_prepare mm/page_alloc.c:1418 [inline]
 __free_frozen_pages+0xc93/0xd90 mm/page_alloc.c:2962
 rcu_do_batch kernel/rcu/tree.c:2650 [inline]
 rcu_core+0x926/0x1260 kernel/rcu/tree.c:2919
 handle_softirqs+0x226/0x860 kernel/softirq.c:645
 __do_softirq kernel/softirq.c:679 [inline]
 invoke_softirq kernel/softirq.c:519 [inline]
 __irq_exit_rcu+0xcb/0x220 kernel/softirq.c:758
 irq_exit_rcu+0x9/0x30 kernel/softirq.c:775
 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1062 [inline]
 sysvec_apic_timer_interrupt+0xa6/0xc0 arch/x86/kernel/apic/apic.c:1062
 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:674
Modules linked in:
CPU: 1 UID: 0 PID: 5802 Comm: syz.1.18 Tainted: G    B               syzkaller #0 PREEMPT(full) 
Tainted: [B]=BAD_PAGE
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014
Call Trace:
 <TASK>
 dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120
 bad_page+0x17f/0x1c0 mm/page_alloc.c:647
 free_page_is_bad mm/page_alloc.c:1082 [inline]
 __free_pages_prepare mm/page_alloc.c:1409 [inline]
 __free_frozen_pages+0xd37/0xd90 mm/page_alloc.c:2962
 bpf_xdp_shrink_data net/core/filter.c:4384 [inline]
 bpf_xdp_frags_shrink_tail+0x4ed/0x800 net/core/filter.c:4408
 ____bpf_xdp_adjust_tail net/core/filter.c:4430 [inline]
 bpf_xdp_adjust_tail+0x1ce/0x210 net/core/filter.c:4423
 bpf_prog_5d7dc57dfd7f985a+0x1e/0x24
 __bpf_prog_run include/linux/filter.h:779 [inline]
 bpf_prog_run_xdp include/net/xdp.h:696 [inline]
 bpf_prog_run_generic_xdp+0x612/0x1560 net/core/dev.c:5546
 netif_receive_generic_xdp net/core/dev.c:5666 [inline]
 do_xdp_generic+0xae1/0x12f0 net/core/dev.c:5728
 tun_get_user+0x24e7/0x44d0 drivers/net/tun.c:1964
 tun_chr_write_iter+0x113/0x200 drivers/net/tun.c:2091
 new_sync_write fs/read_write.c:595 [inline]
 vfs_write+0x612/0xba0 fs/read_write.c:687
 ksys_write+0x150/0x270 fs/read_write.c:739
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f386a55e98e
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 <c3> 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 80 00 00 00 00 48 83 ec 08
RSP: 002b:00007f386b43efb8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f386b43f6c0 RCX: 00007f386a55e98e
RDX: 000000000000fdef RSI: 0000200000000200 RDI: 00000000000000c8
RBP: 00007f386a63503b R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f386a826038 R14: 00007f386a825fa0 R15: 00007fffff181778
 </TASK>
BUG: Bad page state in process syz.1.18  pfn:16c4e3
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x16c4e3
flags: 0x57ff00000000000(node=1|zone=2|lastcpupid=0x7ff)
raw: 057ff00000000000 dead000000000040 ffff888168a4b000 0000000000000000
raw: 0000000000000000 0000000000000001 00000000ffffffff 0000000000000000
page dumped because: page_pool leak
page_owner tracks the page as allocated
page last allocated via order 0, migratetype Unmovable, gfp_mask 0x2820(GFP_ATOMIC|__GFP_NOWARN), pid 5802, tgid 5801 (syz.1.18), ts 77710672375
 set_page_owner include/linux/page_owner.h:33 [inline]
 post_alloc_hook+0x1f9/0x250 mm/page_alloc.c:1871
 prep_new_page mm/page_alloc.c:1879 [inline]
 get_page_from_freelist+0x2209/0x2280 mm/page_alloc.c:3943
 __alloc_frozen_pages_noprof+0x217/0x5a0 mm/page_alloc.c:5436
 __alloc_pages_noprof+0x10/0x100 mm/page_alloc.c:5471
 alloc_pages_bulk_noprof+0x5fa/0x7c0 mm/page_alloc.c:5295
 alloc_pages_bulk_node_noprof include/linux/gfp.h:235 [inline]
 __page_pool_alloc_netmems_slow+0x14f/0x720 net/core/page_pool.c:637
 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+0xc08/0x18e0 net/core/skbuff.c:990
 netif_skb_check_for_xdp net/core/dev.c:5619 [inline]
 netif_receive_generic_xdp net/core/dev.c:5660 [inline]
 do_xdp_generic+0x78f/0x12f0 net/core/dev.c:5728
 tun_get_user+0x24e7/0x44d0 drivers/net/tun.c:1964
 tun_chr_write_iter+0x113/0x200 drivers/net/tun.c:2091
 new_sync_write fs/read_write.c:595 [inline]
 vfs_write+0x612/0xba0 fs/read_write.c:687
 ksys_write+0x150/0x270 fs/read_write.c:739
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
page last free pid 5627 tgid 5627 ts 73622944959 stack trace:
 reset_page_owner include/linux/page_owner.h:26 [inline]
 __free_pages_prepare mm/page_alloc.c:1418 [inline]
 __free_frozen_pages+0xc93/0xd90 mm/page_alloc.c:2962
 kasan_depopulate_vmalloc_pte+0x6d/0x90 mm/kasan/shadow.c:484
 apply_to_pte_range mm/memory.c:3470 [inline]
 apply_to_pmd_range mm/memory.c:3514 [inline]
 apply_to_pud_range mm/memory.c:3550 [inline]
 apply_to_p4d_range mm/memory.c:3586 [inline]
 __apply_to_page_range+0xbd8/0x1420 mm/memory.c:3622
 __kasan_release_vmalloc+0xa2/0xd0 mm/kasan/shadow.c:602
 kasan_release_vmalloc include/linux/kasan.h:593 [inline]
 kasan_release_vmalloc_node mm/vmalloc.c:2306 [inline]
 purge_vmap_node+0x220/0x960 mm/vmalloc.c:2328
 __purge_vmap_area_lazy+0x783/0xb40 mm/vmalloc.c:2418
 drain_vmap_area_work+0x27/0x40 mm/vmalloc.c:2452
 process_one_work kernel/workqueue.c:3396 [inline]
 process_scheduled_works+0xc3d/0x1630 kernel/workqueue.c:3479
 worker_thread+0xa47/0xfb0 kernel/workqueue.c:3560
 kthread+0x38b/0x480 kernel/kthread.c:436
 ret_from_fork+0x514/0xb70 arch/x86/kernel/process.c:158
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245
Modules linked in:
CPU: 1 UID: 0 PID: 5802 Comm: syz.1.18 Tainted: G    B               syzkaller #0 PREEMPT(full) 
Tainted: [B]=BAD_PAGE
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014
Call Trace:
 <TASK>
 dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120
 bad_page+0x17f/0x1c0 mm/page_alloc.c:647
 free_page_is_bad mm/page_alloc.c:1082 [inline]
 __free_pages_prepare mm/page_alloc.c:1409 [inline]
 __free_frozen_pages+0xd37/0xd90 mm/page_alloc.c:2962
 bpf_xdp_shrink_data net/core/filter.c:4384 [inline]
 bpf_xdp_frags_shrink_tail+0x4ed/0x800 net/core/filter.c:4408
 ____bpf_xdp_adjust_tail net/core/filter.c:4430 [inline]
 bpf_xdp_adjust_tail+0x1ce/0x210 net/core/filter.c:4423
 bpf_prog_5d7dc57dfd7f985a+0x1e/0x24
 __bpf_prog_run include/linux/filter.h:779 [inline]
 bpf_prog_run_xdp include/net/xdp.h:696 [inline]
 bpf_prog_run_generic_xdp+0x612/0x1560 net/core/dev.c:5546
 netif_receive_generic_xdp net/core/dev.c:5666 [inline]
 do_xdp_generic+0xae1/0x12f0 net/core/dev.c:5728
 tun_get_user+0x24e7/0x44d0 drivers/net/tun.c:1964
 tun_chr_write_iter+0x113/0x200 drivers/net/tun.c:2091
 new_sync_write fs/read_write.c:595 [inline]
 vfs_write+0x612/0xba0 fs/read_write.c:687
 ksys_write+0x150/0x270 fs/read_write.c:739
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f386a55e98e
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 <c3> 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 80 00 00 00 00 48 83 ec 08
RSP: 002b:00007f386b43efb8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f386b43f6c0 RCX: 00007f386a55e98e
RDX: 000000000000fdef RSI: 0000200000000200 RDI: 00000000000000c8
RBP: 00007f386a63503b R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f386a826038 R14: 00007f386a825fa0 R15: 00007fffff181778
 </TASK>
BUG: Bad page state in process syz.1.18  pfn:16c4e2
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x16c4e2
flags: 0x57ff00000000000(node=1|zone=2|lastcpupid=0x7ff)
raw: 057ff00000000000 dead000000000040 ffff888168a4b000 0000000000000000
raw: 0000000000000000 0000000000000001 00000000ffffffff 0000000000000000
page dumped because: page_pool leak
page_owner tracks the page as allocated
page last allocated via order 0, migratetype Unmovable, gfp_mask 0x2820(GFP_ATOMIC|__GFP_NOWARN), pid 5802, tgid 5801 (syz.1.18), ts 77710663286
 set_page_owner include/linux/page_owner.h:33 [inline]
 post_alloc_hook+0x1f9/0x250 mm/page_alloc.c:1871
 prep_new_page mm/page_alloc.c:1879 [inline]
 get_page_from_freelist+0x2209/0x2280 mm/page_alloc.c:3943
 __alloc_frozen_pages_noprof+0x217/0x5a0 mm/page_alloc.c:5436
 __alloc_pages_noprof+0x10/0x100 mm/page_alloc.c:5471
 alloc_pages_bulk_noprof+0x5fa/0x7c0 mm/page_alloc.c:5295
 alloc_pages_bulk_node_noprof include/linux/gfp.h:235 [inline]
 __page_pool_alloc_netmems_slow+0x14f/0x720 net/core/page_pool.c:637
 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+0xc08/0x18e0 net/core/skbuff.c:990
 netif_skb_check_for_xdp net/core/dev.c:5619 [inline]
 netif_receive_generic_xdp net/core/dev.c:5660 [inline]
 do_xdp_generic+0x78f/0x12f0 net/core/dev.c:5728
 tun_get_user+0x24e7/0x44d0 drivers/net/tun.c:1964
 tun_chr_write_iter+0x113/0x200 drivers/net/tun.c:2091
 new_sync_write fs/read_write.c:595 [inline]
 vfs_write+0x612/0xba0 fs/read_write.c:687
 ksys_write+0x150/0x270 fs/read_write.c:739
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
page last free pid 5627 tgid 5627 ts 73622932657 stack trace:
 reset_page_owner include/linux/page_owner.h:26 [inline]
 __free_pages_prepare mm/page_alloc.c:1418 [inline]
 __free_frozen_pages+0xc93/0xd90 mm/page_alloc.c:2962
 kasan_depopulate_vmalloc_pte+0x6d/0x90 mm/kasan/shadow.c:484
 apply_to_pte_range mm/memory.c:3470 [inline]
 apply_to_pmd_range mm/memory.c:3514 [inline]
 apply_to_pud_range mm/memory.c:3550 [inline]
 apply_to_p4d_range mm/memory.c:3586 [inline]
 __apply_to_page_range+0xbd8/0x1420 mm/memory.c:3622
 __kasan_release_vmalloc+0xa2/0xd0 mm/kasan/shadow.c:602
 kasan_release_vmalloc include/linux/kasan.h:593 [inline]
 kasan_release_vmalloc_node mm/vmalloc.c:2306 [inline]
 purge_vmap_node+0x220/0x960 mm/vmalloc.c:2328
 __purge_vmap_area_lazy+0x783/0xb40 mm/vmalloc.c:2418
 drain_vmap_area_work+0x27/0x40 mm/vmalloc.c:2452
 process_one_work kernel/workqueue.c:3396 [inline]
 process_scheduled_works+0xc3d/0x1630 kernel/workqueue.c:3479
 worker_thread+0xa47/0xfb0 kernel/workqueue.c:3560
 kthread+0x38b/0x480 kernel/kthread.c:436
 ret_from_fork+0x514/0xb70 arch/x86/kernel/process.c:158
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245
Modules linked in:
CPU: 1 UID: 0 PID: 5802 Comm: syz.1.18 Tainted: G    B               syzkaller #0 PREEMPT(full) 
Tainted: [B]=BAD_PAGE
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014
Call Trace:
 <TASK>
 dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120
 bad_page+0x17f/0x1c0 mm/page_alloc.c:647
 free_page_is_bad mm/page_alloc.c:1082 [inline]
 __free_pages_prepare mm/page_alloc.c:1409 [inline]
 __free_frozen_pages+0xd37/0xd90 mm/page_alloc.c:2962
 bpf_xdp_shrink_data net/core/filter.c:4384 [inline]
 bpf_xdp_frags_shrink_tail+0x4ed/0x800 net/core/filter.c:4408
 ____bpf_xdp_adjust_tail net/core/filter.c:4430 [inline]
 bpf_xdp_adjust_tail+0x1ce/0x210 net/core/filter.c:4423
 bpf_prog_5d7dc57dfd7f985a+0x1e/0x24
 __bpf_prog_run include/linux/filter.h:779 [inline]
 bpf_prog_run_xdp include/net/xdp.h:696 [inline]
 bpf_prog_run_generic_xdp+0x612/0x1560 net/core/dev.c:5546
 netif_receive_generic_xdp net/core/dev.c:5666 [inline]
 do_xdp_generic+0xae1/0x12f0 net/core/dev.c:5728
 tun_get_user+0x24e7/0x44d0 drivers/net/tun.c:1964
 tun_chr_write_iter+0x113/0x200 drivers/net/tun.c:2091
 new_sync_write fs/read_write.c:595 [inline]
 vfs_write+0x612/0xba0 fs/read_write.c:687
 ksys_write+0x150/0x270 fs/read_write.c:739
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f386a55e98e
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 <c3> 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 80 00 00 00 00 48 83 ec 08
RSP: 002b:00007f386b43efb8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f386b43f6c0 RCX: 00007f386a55e98e
RDX: 000000000000fdef RSI: 0000200000000200 RDI: 00000000000000c8
RBP: 00007f386a63503b R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f386a826038 R14: 00007f386a825fa0 R15: 00007fffff181778
 </TASK>
BUG: Bad page state in process syz.1.18  pfn:177dd4
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x177dd4
flags: 0x57ff00000000000(node=1|zone=2|lastcpupid=0x7ff)
raw: 057ff00000000000 dead000000000040 ffff888168a4b000 0000000000000000
raw: 0000000000000000 0000000000000001 00000000ffffffff 0000000000000000
page dumped because: page_pool leak
page_owner tracks the page as allocated
page last allocated via order 0, migratetype Unmovable, gfp_mask 0x2820(GFP_ATOMIC|__GFP_NOWARN), pid 5802, tgid 5801 (syz.1.18), ts 77710654153
 set_page_owner include/linux/page_owner.h:33 [inline]
 post_alloc_hook+0x1f9/0x250 mm/page_alloc.c:1871
 prep_new_page mm/page_alloc.c:1879 [inline]
 get_page_from_freelist+0x2209/0x2280 mm/page_alloc.c:3943
 __alloc_frozen_pages_noprof+0x217/0x5a0 mm/page_alloc.c:5436
 __alloc_pages_noprof+0x10/0x100 mm/page_alloc.c:5471
 alloc_pages_bul
 alloc_pages_bulk_noprof+0x5fa/0x7c0 mm/page_alloc.c:5295
 alloc_pages_bulk_node_noprof include/linux/gfp.h:235 [inline]
 __page_pool_alloc_netmems_slow+0x14f/0x720 net/core/page_pool.c:637
 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+0xc08/0x18e0 net/core/skbuff.c:990
 netif_skb_check_for_xdp net/core/dev.c:5619 [inline]
 netif_receive_generic_xdp net/core/dev.c:5660 [inline]
 do_xdp_generic+0x78f/0x12f0 net/core/dev.c:5728
 tun_get_user+0x24e7/0x44d0 drivers/net/tun.c:1964
 tun_chr_write_iter+0x113/0x200 drivers/net/tun.c:2091
 new_sync_write fs/read_write.c:595 [inline]
 vfs_write+0x612/0xba0 fs/read_write.c:687
 ksys_write+0x150/0x270 fs/read_write.c:739
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
page last free pid 5627 tgid 5627 ts 73603577974 stack trace:
 reset_page_owner include/linux/page_owner.h:26 [inline]
 __free_pages_prepare mm/page_alloc.c:1418 [inline]
 __free_frozen_pages+0xc93/0xd90 mm/page_alloc.c:2962
 kasan_depopulate_vmalloc_pte+0x6d/0x90 mm/kasan/shadow.c:484
 apply_to_pte_range mm/memory.c:3470 [inline]
 apply_to_pmd_range mm/memory.c:3514 [inline]
 apply_to_pud_range mm/memory.c:3550 [inline]
 apply_to_p4d_range mm/memory.c:3586 [inline]
 __apply_to_page_range+0xbd8/0x1420 mm/memory.c:3622
 __kasan_release_vmalloc+0xa2/0xd0 mm/kasan/shadow.c:602
 kasan_release_vmalloc include/linux/kasan.h:593 [inline]
 kasan_release_vmalloc_node mm/vmalloc.c:2306 [inline]
 purge_vmap_node+0x220/0x960 mm/vmalloc.c:2328
 __purge_vmap_area_lazy+0x783/0xb40 mm/vmalloc.c:2418
 drain_vmap_area_work+0x27/0x40 mm/vmalloc.c:2452
 process_one_work kernel/workqueue.c:3396 [inline]
 process_scheduled_works+0xc3d/0x1630 kernel/workqueue.c:3479
 worker_thread+0xa47/0xfb0 kernel/workqueue.c:3560
 kthread+0x38b/0x480 kernel/kthread.c:436
 ret_from_fork+0x514/0xb70 arch/x86/kernel/process.c:158
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245
Modules linked in:
CPU: 1 UID: 0 PID: 5802 Comm: syz.1.18 Tainted: G    B               syzkaller #0 PREEMPT(full) 
Tainted: [B]=BAD_PAGE
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014
Call Trace:
 <TASK>
 dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120
 bad_page+0x17f/0x1c0 mm/page_alloc.c:647
 free_page_is_bad mm/page_alloc.c:1082 [inline]
 __free_pages_prepare mm/page_alloc.c:1409 [inline]
 __free_frozen_pages+0xd37/0xd90 mm/page_alloc.c:2962
 bpf_xdp_shrink_data net/core/filter.c:4384 [inline]
 bpf_xdp_frags_shrink_tail+0x4ed/0x800 net/core/filter.c:4408
 ____bpf_xdp_adjust_tail net/core/filter.c:4430 [inline]
 bpf_xdp_adjust_tail+0x1ce/0x210 net/core/filter.c:4423
 bpf_prog_5d7dc57dfd7f985a+0x1e/0x24
 __bpf_prog_run include/linux/filter.h:779 [inline]
 bpf_prog_run_xdp include/net/xdp.h:696 [inline]
 bpf_prog_run_generic_xdp+0x612/0x1560 net/core/dev.c:5546
 netif_receive_generic_xdp net/core/dev.c:5666 [inline]
 do_xdp_generic+0xae1/0x12f0 net/core/dev.c:5728
 tun_get_user+0x24e7/0x44d0 drivers/net/tun.c:1964
 tun_chr_write_iter+0x113/0x200 drivers/net/tun.c:2091
 new_sync_write fs/read_write.c:595 [inline]
 vfs_write+0x612/0xba0 fs/read_write.c:687
 ksys_write+0x150/0x270 fs/read_write.c:739
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f386a55e98e
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 <c3> 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 80 00 00 00 00 48 83 ec 08
RSP: 002b:00007f386b43efb8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f386b43f6c0 RCX: 00007f386a55e98e
RDX: 000000000000fdef RSI: 0000200000000200 RDI: 00000000000000c8
RBP: 00007f386a63503b R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f386a826038 R14: 00007f386a825fa0 R15: 00007fffff181778
 </TASK>
BUG: Bad page state in process syz.1.18  pfn:1be544
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1be544
flags: 0x57ff00000000000(node=1|zone=2|lastcpupid=0x7ff)
raw: 057ff00000000000 dead000000000040 ffff888168a4b000 0000000000000000
raw: 0000000000000000 0000000000000001 00000000ffffffff 0000000000000000
page dumped because: page_pool leak
page_owner tracks the page as allocated
page last allocated via order 0, migratetype Unmovable, gfp_mask 0x2820(GFP_ATOMIC|__GFP_NOWARN), pid 5802, tgid 5801 (syz.1.18), ts 77710645534
 set_page_owner include/linux/page_owner.h:33 [inline]
 post_alloc_hook+0x1f9/0x250 mm/page_alloc.c:1871
 prep_new_page mm/page_alloc.c:1879 [inline]
 get_page_from_freelist+0x2209/0x2280 mm/page_alloc.c:3943
 __alloc_frozen_pages_noprof+0x217/0x5a0 mm/page_alloc.c:5436
 __alloc_pages_noprof+0x10/0x100 mm/page_alloc.c:5471
 alloc_pages_bulk_noprof+0x5fa/0x7c0 mm/page_alloc.c:5295
 alloc_pages_bulk_node_noprof include/linux/gfp.h:235 [inline]
 __page_pool_alloc_netmems_slow+0x14f/0x720 net/core/page_pool.c:637
 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+0xc08/0x18e0 net/core/skbuff.c:990
 netif_skb_check_for_xdp net/core/dev.c:5619 [inline]
 netif_receive_generic_xdp net/core/dev.c:5660 [inline]
 do_xdp_generic+0x78f/0x12f0 net/core/dev.c:5728
 tun_get_user+0x24e7/0x44d0 drivers/net/tun.c:1964
 tun_chr_write_iter+0x113/0x200 drivers/net/tun.c:2091
 new_sync_write fs/read_write.c:595 [inline]
 vfs_write+0x612/0xba0 fs/read_write.c:687
 ksys_write+0x150/0x270 fs/read_write.c:739
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
page last free pid 5695 tgid 5695 ts 73545699894 stack trace:
 create_dummy_stack mm/page_owner.c:121 [inline]
 register_dummy_stack+0x98/0x100 mm/page_owner.c:127
 init_page_owner+0x2e/0x600 mm/page_owner.c:145
 invoke_init_callbacks mm/page_ext.c:152 [inline]
 page_ext_init+0x511/0x550 mm/page_ext.c:485
 mm_core_init+0x97/0xb0 mm/mm_init.c:2685
Modules linked in:
CPU: 1 UID: 0 PID: 5802 Comm: syz.1.18 Tainted: G    B               syzkaller #0 PREEMPT(full) 
Tainted: [B]=BAD_PAGE
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014
Call Trace:
 <TASK>
 dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120
 bad_page+0x17f/0x1c0 mm/page_alloc.c:647
 free_page_is_bad mm/page_alloc.c:1082 [inline]
 __free_pages_prepare mm/page_alloc.c:1409 [inline]
 __free_frozen_pages+0xd37/0xd90 mm/page_alloc.c:2962
 bpf_xdp_shrink_data net/core/filter.c:4384 [inline]
 bpf_xdp_frags_shrink_tail+0x4ed/0x800 net/core/filter.c:4408
 ____bpf_xdp_adjust_tail net/core/filter.c:4430 [inline]
 bpf_xdp_adjust_tail+0x1ce/0x210 net/core/filter.c:4423
 bpf_prog_5d7dc57dfd7f985a+0x1e/0x24
 __bpf_prog_run include/linux/filter.h:779 [inline]
 bpf_prog_run_xdp include/net/xdp.h:696 [inline]
 bpf_prog_run_generic_xdp+0x612/0x1560 net/core/dev.c:5546
 netif_receive_generic_xdp net/core/dev.c:5666 [inline]
 do_xdp_generic+0xae1/0x12f0 net/core/dev.c:5728
 tun_get_user+0x24e7/0x44d0 drivers/net/tun.c:1964
 tun_chr_write_iter+0x113/0x200 drivers/net/tun.c:2091
 new_sync_write fs/read_write.c:595 [inline]
 vfs_write+0x612/0xba0 fs/read_write.c:687
 ksys_write+0x150/0x270 fs/read_write.c:739
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f386a55e98e
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 <c3> 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 80 00 00 00 00 48 83 ec 08
RSP: 002b:00007f386b43efb8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f386b43f6c0 RCX: 00007f386a55e98e
RDX: 000000000000fdef RSI: 0000200000000200 RDI: 00000000000000c8
RBP: 00007f386a63503b R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f386a826038 R14: 00007f386a825fa0 R15: 00007fffff181778
 </TASK>
BUG: Bad page state in process syz.1.18  pfn:170579
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffffffff00000000 pfn:0x170579
flags: 0x57ff00000000000(node=1|zone=2|lastcpupid=0x7ff)
raw: 057ff00000000000 dead000000000040 ffff888168a4b000 0000000000000000
raw: ffffffff00000000 0000000000000001 00000000ffffffff 0000000000000000
page dumped because: page_pool leak
page_owner tracks the page as allocated
page last allocated via order 0, migratetype Unmovable, gfp_mask 0x2820(GFP_ATOMIC|__GFP_NOWARN), pid 5802, tgid 5801 (syz.1.18), ts 77710636798
 set_page_owner include/linux/page_owner.h:33 [inline]
 post_alloc_hook+0x1f9/0x250 mm/page_alloc.c:1871
 prep_new_page mm/page_alloc.c:1879 [inline]
 get_page_from_freelist+0x2209/0x2280 mm/page_alloc.c:3943
 __alloc_frozen_pages_noprof+0x217/0x5a0 mm/page_alloc.c:5436
 __alloc_pages_noprof+0x10/0x100 mm/page_alloc.c:5471
 alloc_pages_bulk_noprof+0x5fa/0x7c0 mm/page_alloc.c:5295
 alloc_pages_bulk_node_noprof include/linux/gfp.h:235 [inline]
 __page_pool_alloc_netmems_slow+0x14f/0x720 net/core/page_pool.c:637
 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+0xc08/0x18e0 net/core/skbuff.c:990
 netif_skb_check_for_xdp net/core/dev.c:5619 [inline]
 netif_receive_generic_xdp net/core/dev.c:5660 [inline]
 do_xdp_generic+0x78f/0x12f0 net/core/dev.c:5728
 tun_get_user+0x24e7/0x44d0 drivers/net/tun.c:1964
 tun_chr_write_iter+0x113/0x200 drivers/net/tun.c:2091
 new_sync_write fs/read_write.c:595 [inline]
 vfs_write+0x612/0xba0 fs/read_write.c:687
 ksys_write+0x150/0x270 fs/read_write.c:739
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
page last free pid 5693 tgid 5693 ts 72955016731 stack trace:
 reset_page_owner include/linux/page_owner.h:26 [inline]
 __free_pages_prepare mm/page_alloc.c:1418 [inline]
 __free_frozen_pages+0xc93/0xd90 mm/page_alloc.c:2962
 __tlb_remove_table_free mm/mmu_gather.c:228 [inline]
 tlb_remove_table_rcu+0x85/0x100 mm/mmu_gather.c:291
 rcu_do_batch kernel/rcu/tree.c:2650 [inline]
 rcu_core+0x926/0x1260 kernel/rcu/tree.c:2919
 handle_softirqs+0x226/0x860 kernel/softirq.c:645
 __do_softirq kernel/softirq.c:679 [inline]
 invoke_softirq kernel/softirq.c:519 [inline]
 __irq_exit_rcu+0xcb/0x220 kernel/softirq.c:758
 irq_exit_rcu+0x9/0x30 kernel/softirq.c:775
 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1062 [inline]
 sysvec_apic_timer_interrupt+0xa6/0xc0 arch/x86/kernel/apic/apic.c:1062
 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:674
Modules linked in:
CPU: 1 UID: 0 PID: 5802 Comm: syz.1.18 Tainted: G    B               syzkaller #0 PREEMPT(full) 
Tainted: [B]=BAD_PAGE
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014
Call Trace:
 <TASK>
 dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120
 bad_page+0x17f/0x1c0 mm/page_alloc.c:647
 free_page_is_bad mm/page_alloc.c:1082 [inline]
 __free_pages_prepare mm/page_alloc.c:1409 [inline]
 __free_frozen_pages+0xd37/0xd90 mm/page_alloc.c:2962
 bpf_xdp_shrink_data net/core/filter.c:4384 [inline]
 bpf_xdp_frags_shrink_tail+0x4ed/0x800 net/core/filter.c:4408
 ____bpf_xdp_adjust_tail net/core/filter.c:4430 [inline]
 bpf_xdp_adjust_tail+0x1ce/0x210 net/core/filter.c:4423
 bpf_prog_5d7dc57dfd7f985a+0x1e/0x24
 __bpf_prog_run include/linux/filter.h:779 [inline]
 bpf_prog_run_xdp include/net/xdp.h:696 [inline]
 bpf_prog_run_generic_xdp+0x612/0x1560 net/core/dev.c:5546
 netif_receive_generic_xdp net/core/dev.c:5666 [inline]
 do_xdp_generic+0xae1/0x12f0 net/core/dev.c:5728
 tun_get_user+0x24e7/0x44d0 drivers/net/tun.c:1964
 tun_chr_write_iter+0x113/0x200 drivers/net/tun.c:2091
 new_sync_write fs/read_write.c:595 [inline]
 vfs_write+0x612/0xba0 fs/read_write.c:687
 ksys_write+0x150/0x270 fs/read_write.c:739
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f386a55e98e
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 <c3> 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 80 00 00 00 00 48 83 ec 08
RSP: 002b:00007f386b43efb8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f386b43f6c0 RCX: 00007f386a55e98e
RDX: 000000000000fdef RSI: 0000200000000200 RDI: 00000000000000c8
RBP: 00007f386a63503b R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f386a826038 R14: 00007f386a825fa0 R15: 00007fffff181778
 </TASK>
BUG: Bad page state in process syz.1.18  pfn:17057d
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x17057d
flags: 0x57ff00000000000(node=1|zone=2|lastcpupid=0x7ff)
raw: 057ff00000000000 dead000000000040 ffff888168a4b000 0000000000000000
raw: 0000000000000000 0000000000000001 00000000ffffffff 0000000000000000
page dumped because: page_pool leak
page_owner tracks the page as allocated
page last allocated via order 0, migratetype Unmovable, gfp_mask 0x2820(GFP_ATOMIC|__GFP_NOWARN), pid 5802, tgid 5801 (syz.1.18), ts 77710628288
 set_page_owner include/linux/page_owner.h:33 [inline]
 post_alloc_hook+0x1f9/0x250 mm/page_alloc.c:1871
 prep_new_page mm/page_alloc.c:1879 [inline]
 get_page_from_freelist+0x2209/0x2280 mm/page_alloc.c:3943
 __alloc_frozen_pages_noprof+0x217/0x5a0 mm/page_alloc.c:5436
 __alloc_pages_noprof+0x10/0x100 mm/page_alloc.c:5471
 alloc_pages_bulk_noprof+0x5fa/0x7c0 mm/page_alloc.c:5295
 alloc_pages_bulk_node_noprof include/linux/gfp.h:235 [inline]
 __page_pool_alloc_netmems_slow+0x14f/0x720 net/core/page_pool.c:637
 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+0xc08/0x18e0 net/core/skbuff.c:990
 netif_skb_check_for_xdp net/core/dev.c:5619 [inline]
 netif_receive_generic_xdp net/core/dev.c:5660 [inline]
 do_xdp_generic+0x78f/0x12f0 net/core/dev.c:5728
 tun_get_user+0x24e7/0x44d0 drivers/net/tun.c:1964
 tun_chr_write_iter+0x113/0x200 drivers/net/tun.c:2091
 new_sync_write fs/read_write.c:595 [inline]
 vfs_write+0x612/0xba0 fs/read_write.c:687
 ksys_write+0x150/0x270 fs/read_write.c:739
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
page last free pid 5802 tgid 5801 ts 77679627302 stack trace:
 reset_page_owner include/linux/page_owner.h:26 [inline]
 __free_pages_prepare mm/page_alloc.c:1418 [inline]
 __free_frozen_pages+0xc93/0xd90 mm/page_alloc.c:2962
 ___free_pages_bulk mm/kasan/shadow.c:333 [inline]
 __kasan_populate_vmalloc_do mm/kasan/shadow.c:385 [inline]
 __kasan_populate_vmalloc+0x12d/0x1c0 mm/kasan/shadow.c:424
 kasan_populate_vmalloc include/linux/kasan.h:580 [inline]
 alloc_vmap_area+0xd1a/0x1420 mm/vmalloc.c:2145
 __get_vm_area_node+0x200/0x2f0 mm/vmalloc.c:3248
 __vmalloc_node_range_noprof+0x343/0x1540 mm/vmalloc.c:4064
 __vmalloc_node_noprof mm/vmalloc.c:4165 [inline]
 __vmalloc_noprof+0xd2/0x120 mm/vmalloc.c:4181
 bpf_prog_calc_tag+0x51/0x370 kernel/bpf/core.c:309
 check_and_resolve_insns+0xbb/0x21d0 kernel/bpf/verifier.c:19180
 bpf_check+0x180a/0x2e10 kernel/bpf/verifier.c:21263
 bpf_prog_load+0x14d6/0x1c20 kernel/bpf/syscall.c:3133
 __sys_bpf+0xd0d/0xd90 kernel/bpf/syscall.c:6367
 __do_sys_bpf kernel/bpf/syscall.c:6486 [inline]
 __se_sys_bpf kernel/bpf/syscall.c:6483 [inline]
 __x64_sys_bpf+0xba/0xd0 kernel/bpf/syscall.c:6483
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
Modules linked in:
CPU: 1 UID: 0 PID: 5802 Comm: syz.1.18 Tainted: G    B               syzkaller #0 PREEMPT(full) 
Tainted: [B]=BAD_PAGE
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014
Call Trace:
 <TASK>
 dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120
 bad_page+0x17f/0x1c0 mm/page_alloc.c:647
 free_page_is_bad mm/page_alloc.c:1082 [inline]
 __free_pages_prepare mm/page_alloc.c:1409 [inline]
 __free_frozen_pages+0xd37/0xd90 mm/page_alloc.c:2962
 bpf_xdp_shrink_data net/core/filter.c:4384 [inline]
 bpf_xdp_frags_shrink_tail+0x4ed/0x800 net/core/filter.c:4408
 ____bpf_xdp_adjust_tail net/core/filter.c:4430 [inline]
 bpf_xdp_adjust_tail+0x1ce/0x210 net/core/filter.c:4423
 bpf_prog_5d7dc57dfd7f985a+0x1e/0x24
 __bpf_prog_run include/linux/filter.h:779 [inline]
 bpf_prog_run_xdp include/net/xdp.h:696 [inline]
 bpf_prog_run_generic_xdp+0x612/0x1560 net/core/dev.c:5546
 netif_receive_generic_xdp net/core/dev.c:5666 [inline]
 do_xdp_generic+0xae1/0x12f0 net/core/dev.c:5728
 tun_get_user+0x24e7/0x44d0 drivers/net/tun.c:1964
 tun_chr_write_iter+0x113/0x200 drivers/net/tun.c:2091
 new_sync_write fs/read_write.c:595 [inline]
 vfs_write+0x612/0xba0 fs/read_write.c:687
 ksys_write+0x150/0x270 fs/read_write.c:739
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f386a55e98e
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 <c3> 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 80 00 00 00 00 48 83 ec 08
RSP: 002b:00007f386b43efb8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f386b43f6c0 RCX: 00007f386a55e98e
RDX: 000000000000fdef RSI: 0000200000000200 RDI: 00000000000000c8
RBP: 00007f386a63503b R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f386a826038 R14: 00007f386a825fa0 R15: 00007fffff181778
 </TASK>
BUG: Bad page state in process syz.1.18  pfn:16917f
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x16917f
flags: 0x57ff00000000000(node=1|zone=2|lastcpupid=0x7ff)
raw: 057ff00000000000 dead000000000040 ffff888168a4b000 0000000000000000
raw: 0000000000000000 0000000000000001 00000000ffffffff 0000000000000000
page dumped because: page_pool leak
page_owner tracks the page as allocated
page last allocated via order 0, migratetype Unmovable, gfp_mask 0x2820(GFP_ATOMIC|__GFP_NOWARN), pid 5802, tgid 5801 (syz.1.18), ts 77710619829
 set_page_owner include/linux/page_owner.h:33 [inline]
 post_alloc_hook+0x1f9/0x250 mm/page_alloc.c:1871
 prep_new_page mm/page_alloc.c:1879 [inline]
 get_page_from_freelist+0x2209/0x2280 mm/page_alloc.c:3943
 __alloc_frozen_pages_noprof+0x217/0x5a0 mm/page_alloc.c:5436
 __alloc_pages_noprof+0x10/0x100 mm/page_alloc.c:5471
 alloc_pages_bulk_noprof+0x5fa/0x7c0 mm/page_alloc.c:5295
 alloc_pages_bulk_node_noprof include/linux/gfp.h:235 [inline]
 __page_pool_alloc_netmems_slow+0x14f/0x720 net/core/page_pool.c:637
 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+0xc08/0x18e0 net/core/skbuff.c:990
 netif_skb_check_for_xdp net/core/dev.c:5619 [inline]
 netif_receive_generic_xdp net/core/dev.c:5660 [inline]
 do_xdp_generic+0x78f/0x12f0 net/core/dev.c:5728
 tun_get_user+0x24e7/0x44d0 drivers/net/tun.c:1964
 tun_chr_write_iter+0x113/0x200 drivers/net/tun.c:2091
 new_sync_write fs/read_write.c:595 [inline]
 vfs_write+0x612/0xba0 fs/read_write.c:687
 ksys_write+0x150/0x270 fs/read_write.c:739
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
page last free pid 5802 tgid 5801 ts 77679676402 stack trace:
 reset_page_owner include/linux/page_owner.h:26 [inline]
 __free_pages_prepare mm/page_alloc.c:1418 [inline]
 free_pages_prepare+0x9eb/0xaf0 mm/page_alloc.c:1463
 __free_contig_range_common+0x174/0x340 mm/page_alloc.c:7072
 __free_contig_range mm/page_alloc.c:7117 [inline]
 free_pages_bulk+0x48/0x120 mm/page_alloc.c:5322
 vm_area_free_pages mm/vmalloc.c:3461 [inline]
 vfree+0x231/0x490 mm/vmalloc.c:3510
 bpf_prog_calc_tag+0x310/0x370 kernel/bpf/core.c:336
 check_and_resolve_insns+0xbb/0x21d0 kernel/bpf/verifier.c:19180
 bpf_check+0x180a/0x2e10 kernel/bpf/verifier.c:21263
 bpf_prog_load+0x14d6/0x1c20 kernel/bpf/syscall.c:3133
 __sys_bpf+0xd0d/0xd90 kernel/bpf/syscall.c:6367
 __do_sys_bpf kernel/bpf/syscall.c:6486 [inline]
 __se_sys_bpf kernel/bpf/syscall.c:6483 [inline]
 __x64_sys_bpf+0xba/0xd0 kernel/bpf/syscall.c:6483
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
Modules linked in:
CPU: 1 UID: 0 PID: 5802 Comm: syz.1.18 Tainted: G    B               syzkaller #0 PREEMPT(full) 
Tainted: [B]=BAD_PAGE
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014
Call Trace:
 <TASK>
 dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120
 bad_page+0x17f/0x1c0 mm/page_alloc.c:647
 free_page_is_bad mm/page_alloc.c:1082 [inline]
 __free_pages_prepare mm/page_alloc.c:1409 [inline]
 __free_frozen_pages+0xd37/0xd90 mm/page_alloc.c:2962
 bpf_xdp_shrink_data net/core/filter.c:4384 [inline]
 bpf_xdp_frags_shrink_tail+0x4ed/0x800 net/core/filter.c:4408
 ____bpf_xdp_adjust_tail net/core/filter.c:4430 [inline]
 bpf_xdp_adjust_tail+0x1ce/0x210 net/core/filter.c:4423
 bpf_prog_5d7dc57dfd7f985a+0x1e/0x24
 __bpf_prog_run include/linux/filter.h:779 [inline]
 bpf_prog_run_xdp include/net/xdp.h:696 [inline]
 bpf_prog_run_generic_xdp+0x612/0x1560 net/core/dev.c:5546
 netif_receive_generic_xdp net/core/dev.c:5666 [inline]
 do_xdp_generic+0xae1/0x12f0 net/core/dev.c:5728
 tun_get_user+0x24e7/0x44d0 drivers/net/tun.c:1964
 tun_chr_write_iter+0x113/0x200 drivers/net/tun.c:2091
 new_sync_write fs/read_write.c:595 [inline]
 vfs_write+0x612/0xba0 fs/read_write.c:687
 ksys_write+0x150/0x270 fs/read_write.c:739
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f386a55e98e
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 <c3> 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 80 00 00 00 00 48 83 ec 08
RSP: 002b:00007f386b43efb8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f386b43f6c0 RCX: 00007f386a55e98e
RDX: 000000000000fdef RSI: 0000200000000200 RDI: 00000000000000c8
RBP: 00007f386a63503b R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f386a826038 R14: 00007f386a825fa0 R15: 00007fffff181778
 </TASK>
