BUG: Bad page state in process syz.2.268 pfn:23367
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff888000000000 pfn:0x23367
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000000000 dead000000000040 ffff888021ae4000 0000000000000000
raw: ffff888000000000 0000000000000001 00000000ffffffff 0000000000000000
page dumped because: page_pool leak
page_owner tracks the page as allocated
page last allocated via order 0, migratetype Unmovable, gfp_mask 0x2820(GFP_ATOMIC|__GFP_NOWARN), pid 6933, tgid 6932 (syz.2.268), ts 227120470226, free_ts 226330739712
set_page_owner include/linux/page_owner.h:32 [inline]
post_alloc_hook+0x1f3/0x230 mm/page_alloc.c:1558
prep_new_page mm/page_alloc.c:1566 [inline]
get_page_from_freelist+0x3651/0x37a0 mm/page_alloc.c:3476
__alloc_pages_noprof+0x292/0x710 mm/page_alloc.c:4753
alloc_pages_bulk_noprof+0x70b/0xcc0 mm/page_alloc.c:4701
alloc_pages_bulk_array_node_noprof include/linux/gfp.h:239 [inline]
__page_pool_alloc_pages_slow+0x122/0x690 net/core/page_pool.c:542
page_pool_alloc_netmem include/net/page_pool/helpers.h:128 [inline]
page_pool_alloc include/net/page_pool/helpers.h:160 [inline]
page_pool_dev_alloc include/net/page_pool/helpers.h:181 [inline]
skb_pp_cow_data+0xcc8/0x1720 net/core/skbuff.c:983
netif_skb_check_for_xdp net/core/dev.c:5191 [inline]
netif_receive_generic_xdp net/core/dev.c:5230 [inline]
do_xdp_generic+0x505/0xd30 net/core/dev.c:5298
__netif_receive_skb_core+0x1be5/0x4540 net/core/dev.c:5648
__netif_receive_skb_one_core net/core/dev.c:5826 [inline]
__netif_receive_skb+0x12f/0x650 net/core/dev.c:5941
netif_receive_skb_internal net/core/dev.c:6027 [inline]
netif_receive_skb+0x1e8/0x890 net/core/dev.c:6086
tun_rx_batched+0x1b7/0x8f0 drivers/net/tun.c:1554
tun_get_user+0x30cc/0x48a0 drivers/net/tun.c:2011
tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:2057
new_sync_write fs/read_write.c:586 [inline]
vfs_write+0xacf/0xd10 fs/read_write.c:679
ksys_write+0x18f/0x2b0 fs/read_write.c:731
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83
page last free pid 6925 tgid 6925 stack trace:
reset_page_owner include/linux/page_owner.h:25 [inline]
free_pages_prepare mm/page_alloc.c:1127 [inline]
free_unref_folios+0xe23/0x1890 mm/page_alloc.c:2706
folios_put_refs+0x76c/0x860 mm/swap.c:962
free_pages_and_swap_cache+0x5c8/0x690 mm/swap_state.c:335
__tlb_batch_free_encoded_pages mm/mmu_gather.c:136 [inline]
tlb_batch_pages_flush mm/mmu_gather.c:149 [inline]
tlb_flush_mmu_free mm/mmu_gather.c:366 [inline]
tlb_flush_mmu+0x3a3/0x680 mm/mmu_gather.c:373
tlb_finish_mmu+0xd4/0x200 mm/mmu_gather.c:465
exit_mmap+0x4d5/0xca0 mm/mmap.c:1685
__mmput+0x115/0x410 kernel/fork.c:1345
exit_mm+0x220/0x310 kernel/exit.c:570
do_exit+0x9ad/0x28e0 kernel/exit.c:925
do_group_exit+0x207/0x2c0 kernel/exit.c:1087
__do_sys_exit_group kernel/exit.c:1098 [inline]
__se_sys_exit_group kernel/exit.c:1096 [inline]
__x64_sys_exit_group+0x3f/0x40 kernel/exit.c:1096
x64_sys_call+0x26a8/0x26b0 arch/x86/include/generated/asm/syscalls_64.h:232
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x77/0x7f
Modules linked in:
CPU: 1 UID: 0 PID: 6933 Comm: syz.2.268 Not tainted 6.13.0-syzkaller-07644-gc2da8b3f914f #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 12/27/2024
Call Trace:
__dump_stack lib/dump_stack.c:94 [inline]
dump_stack_lvl+0x241/0x360 lib/dump_stack.c:120
bad_page+0x176/0x1d0 mm/page_alloc.c:501
free_page_is_bad mm/page_alloc.c:923 [inline]
free_pages_prepare mm/page_alloc.c:1119 [inline]
free_unref_page+0xf9e/0x1000 mm/page_alloc.c:2659
bpf_xdp_shrink_data net/core/filter.c:4155 [inline]
bpf_xdp_frags_shrink_tail+0x3b3/0x780 net/core/filter.c:4175
____bpf_xdp_adjust_tail net/core/filter.c:4200 [inline]
bpf_xdp_adjust_tail+0x1c3/0x200 net/core/filter.c:4193
bpf_prog_f476d5219b92964a+0x1e/0x20
__bpf_prog_run include/linux/filter.h:701 [inline]
bpf_prog_run_xdp include/net/xdp.h:654 [inline]
bpf_prog_run_generic_xdp+0x686/0x1510 net/core/dev.c:5123
netif_receive_generic_xdp net/core/dev.c:5236 [inline]
do_xdp_generic+0x757/0xd30 net/core/dev.c:5298
__netif_receive_skb_core+0x1be5/0x4540 net/core/dev.c:5648
__netif_receive_skb_one_core net/core/dev.c:5826 [inline]
__netif_receive_skb+0x12f/0x650 net/core/dev.c:5941
netif_receive_skb_internal net/core/dev.c:6027 [inline]
netif_receive_skb+0x1e8/0x890 net/core/dev.c:6086
tun_rx_batched+0x1b7/0x8f0 drivers/net/tun.c:1554
tun_get_user+0x30cc/0x48a0 drivers/net/tun.c:2011
tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:2057
new_sync_write fs/read_write.c:586 [inline]
vfs_write+0xacf/0xd10 fs/read_write.c:679
ksys_write+0x18f/0x2b0 fs/read_write.c:731
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f9f1c18b7df
Code: 89 54 24 18 48 89 74 24 10 89 7c 24 08 e8 f9 92 02 00 48 8b 54 24 18 48 8b 74 24 10 41 89 c0 8b 7c 24 08 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 31 44 89 c7 48 89 44 24 08 e8 4c 93 02 00 48
RSP: 002b:00007f9f1cfe3000 EFLAGS: 00000293 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f9f1c3a5fa0 RCX: 00007f9f1c18b7df
RDX: 0000000000011dc0 RSI: 0000000020000140 RDI: 00000000000000c8
RBP: 00007f9f1c20e2a0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000011dc0 R11: 0000000000000293 R12: 0000000000000000
R13: 0000000000000000 R14: 00007f9f1c3a5fa0 R15: 00007fff158896e8
BUG: Bad page state in process syz.2.268 pfn:7f0ec
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff88807f0eca00 pfn:0x7f0ec
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000000000 dead000000000040 ffff888021ae4000 0000000000000000
raw: ffff88807f0eca00 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 6933, tgid 6932 (syz.2.268), ts 227120458791, free_ts 226330744497
set_page_owner include/linux/page_owner.h:32 [inline]
post_alloc_hook+0x1f3/0x230 mm/page_alloc.c:1558
prep_new_page mm/page_alloc.c:1566 [inline]
get_page_from_freelist+0x3651/0x37a0 mm/page_alloc.c:3476
__alloc_pages_noprof+0x292/0x710 mm/page_alloc.c:4753
alloc_pages_bulk_noprof+0x70b/0xcc0 mm/page_alloc.c:4701
alloc_pages_bulk_array_node_noprof include/linux/gfp.h:239 [inline]
__page_pool_alloc_pages_slow+0x122/0x690 net/core/page_pool.c:542
page_pool_alloc_netmem include/net/page_pool/helpers.h:128 [inline]
page_pool_alloc include/net/page_pool/helpers.h:160 [inline]
page_pool_dev_alloc include/net/page_pool/helpers.h:181 [inline]
skb_pp_cow_data+0xcc8/0x1720 net/core/skbuff.c:983
netif_skb_check_for_xdp net/core/dev.c:5191 [inline]
netif_receive_generic_xdp net/core/dev.c:5230 [inline]
do_xdp_generic+0x505/0xd30 net/core/dev.c:5298
__netif_receive_skb_core+0x1be5/0x4540 net/core/dev.c:5648
__netif_receive_skb_one_core net/core/dev.c:5826 [inline]
__netif_receive_skb+0x12f/0x650 net/core/dev.c:5941
netif_receive_skb_internal net/core/dev.c:6027 [inline]
netif_receive_skb+0x1e8/0x890 net/core/dev.c:6086
tun_rx_batched+0x1b7/0x8f0 drivers/net/tun.c:1554
tun_get_user+0x30cc/0x48a0 drivers/net/tun.c:2011
tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:2057
new_sync_write fs/read_write.c:586 [inline]
vfs_write+0xacf/0xd10 fs/read_write.c:679
ksys_write+0x18f/0x2b0 fs/read_write.c:731
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83
page last free pid 6925 tgid 6925 stack trace:
reset_page_owner include/linux/page_owner.h:25 [inline]
free_pages_prepare mm/page_alloc.c:1127 [inline]
free_unref_folios+0xe23/0x1890 mm/page_alloc.c:2706
folios_put_refs+0x76c/0x860 mm/swap.c:962
free_pages_and_swap_cache+0x5c8/0x690 mm/swap_state.c:335
__tlb_batch_free_encoded_pages mm/mmu_gather.c:136 [inline]
tlb_batch_pages_flush mm/mmu_gather.c:149 [inline]
tlb_flush_mmu_free mm/mmu_gather.c:366 [inline]
tlb_flush_mmu+0x3a3/0x680 mm/mmu_gather.c:373
tlb_finish_mmu+0xd4/0x200 mm/mmu_gather.c:465
exit_mmap+0x4d5/0xca0 mm/mmap.c:1685
__mmput+0x115/0x410 kernel/fork.c:1345
exit_mm+0x220/0x310 kernel/exit.c:570
do_exit+0x9ad/0x28e0 kernel/exit.c:925
do_group_exit+0x207/0x2c0 kernel/exit.c:1087
__do_sys_exit_group kernel/exit.c:1098 [inline]
__se_sys_exit_group kernel/exit.c:1096 [inline]
__x64_sys_exit_group+0x3f/0x40 kernel/exit.c:1096
x64_sys_call+0x26a8/0x26b0 arch/x86/include/generated/asm/syscalls_64.h:232
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x77/0x7f
Modules linked in:
CPU: 1 UID: 0 PID: 6933 Comm: syz.2.268 Tainted: G B 6.13.0-syzkaller-07644-gc2da8b3f914f #0
Tainted: [B]=BAD_PAGE
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 12/27/2024
Call Trace:
__dump_stack lib/dump_stack.c:94 [inline]
dump_stack_lvl+0x241/0x360 lib/dump_stack.c:120
bad_page+0x176/0x1d0 mm/page_alloc.c:501
free_page_is_bad mm/page_alloc.c:923 [inline]
free_pages_prepare mm/page_alloc.c:1119 [inline]
free_unref_page+0xf9e/0x1000 mm/page_alloc.c:2659
bpf_xdp_shrink_data net/core/filter.c:4155 [inline]
bpf_xdp_frags_shrink_tail+0x3b3/0x780 net/core/filter.c:4175
____bpf_xdp_adjust_tail net/core/filter.c:4200 [inline]
bpf_xdp_adjust_tail+0x1c3/0x200 net/core/filter.c:4193
bpf_prog_f476d5219b92964a+0x1e/0x20
__bpf_prog_run include/linux/filter.h:701 [inline]
bpf_prog_run_xdp include/net/xdp.h:654 [inline]
bpf_prog_run_generic_xdp+0x686/0x1510 net/core/dev.c:5123
netif_receive_generic_xdp net/core/dev.c:5236 [inline]
do_xdp_generic+0x757/0xd30 net/core/dev.c:5298
__netif_receive_skb_core+0x1be5/0x4540 net/core/dev.c:5648
__netif_receive_skb_one_core net/core/dev.c:5826 [inline]
__netif_receive_skb+0x12f/0x650 net/core/dev.c:5941
netif_receive_skb_internal net/core/dev.c:6027 [inline]
netif_receive_skb+0x1e8/0x890 net/core/dev.c:6086
tun_rx_batched+0x1b7/0x8f0 drivers/net/tun.c:1554
tun_get_user+0x30cc/0x48a0 drivers/net/tun.c:2011
tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:2057
new_sync_write fs/read_write.c:586 [inline]
vfs_write+0xacf/0xd10 fs/read_write.c:679
ksys_write+0x18f/0x2b0 fs/read_write.c:731
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f9f1c18b7df
Code: 89 54 24 18 48 89 74 24 10 89 7c 24 08 e8 f9 92 02 00 48 8b 54 24 18 48 8b 74 24 10 41 89 c0 8b 7c 24 08 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 31 44 89 c7 48 89 44 24 08 e8 4c 93 02 00 48
RSP: 002b:00007f9f1cfe3000 EFLAGS: 00000293 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f9f1c3a5fa0 RCX: 00007f9f1c18b7df
RDX: 0000000000011dc0 RSI: 0000000020000140 RDI: 00000000000000c8
RBP: 00007f9f1c20e2a0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000011dc0 R11: 0000000000000293 R12: 0000000000000000
R13: 0000000000000000 R14: 00007f9f1c3a5fa0 R15: 00007fff158896e8
BUG: Bad page state in process syz.2.268 pfn:27c27
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x2007a pfn:0x27c27
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000000000 dead000000000040 ffff888021ae4000 0000000000000000
raw: 000000000002007a 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 6933, tgid 6932 (syz.2.268), ts 227120447376, free_ts 226330749973
set_page_owner include/linux/page_owner.h:32 [inline]
post_alloc_hook+0x1f3/0x230 mm/page_alloc.c:1558
prep_new_page mm/page_alloc.c:1566 [inline]
get_page_from_freelist+0x3651/0x37a0 mm/page_alloc.c:3476
__alloc_pages_noprof+0x292/0x710 mm/page_alloc.c:4753
alloc_pages_bulk_noprof+0x70b/0xcc0 mm/page_alloc.c:4701
alloc_pages_bulk_array_node_noprof include/linux/gfp.h:239 [inline]
__page_pool_alloc_pages_slow+0x122/0x690 net/core/page_pool.c:542
page_pool_alloc_netmem include/net/page_pool/helpers.h:128 [inline]
page_pool_alloc include/net/page_pool/helpers.h:160 [inline]
page_pool_dev_alloc include/net/page_pool/helpers.h:181 [inline]
skb_pp_cow_data+0xcc8/0x1720 net/core/skbuff.c:983
netif_skb_check_for_xdp net/core/dev.c:5191 [inline]
netif_receive_generic_xdp net/core/dev.c:5230 [inline]
do_xdp_generic+0x505/0xd30 net/core/dev.c:5298
__netif_receive_skb_core+0x1be5/0x4540 net/core/dev.c:5648
__netif_receive_skb_one_core net/core/dev.c:5826 [inline]
__netif_receive_skb+0x12f/0x650 net/core/dev.c:5941
netif_receive_skb_internal net/core/dev.c:6027 [inline]
netif_receive_skb+0x1e8/0x890 net/core/dev.c:6086
tun_rx_batched+0x1b7/0x8f0 drivers/net/tun.c:1554
tun_get_user+0x30cc/0x48a0 drivers/net/tun.c:2011
tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:2057
new_sync_write fs/read_write.c:586 [inline]
vfs_write+0xacf/0xd10 fs/read_write.c:679
ksys_write+0x18f/0x2b0 fs/read_write.c:731
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83
page last free pid 6925 tgid 6925 stack trace:
reset_page_owner include/linux/page_owner.h:25 [inline]
free_pages_prepare mm/page_alloc.c:1127 [inline]
free_unref_folios+0xe23/0x1890 mm/page_alloc.c:2706
folios_put_refs+0x76c/0x860 mm/swap.c:962
free_pages_and_swap_cache+0x5c8/0x690 mm/swap_state.c:335
__tlb_batch_free_encoded_pages mm/mmu_gather.c:136 [inline]
tlb_batch_pages_flush mm/mmu_gather.c:149 [inline]
tlb_flush_mmu_free mm/mmu_gather.c:366 [inline]
tlb_flush_mmu+0x3a3/0x680 mm/mmu_gather.c:373
tlb_finish_mmu+0xd4/0x200 mm/mmu_gather.c:465
exit_mmap+0x4d5/0xca0 mm/mmap.c:1685
__mmput+0x115/0x410 kernel/fork.c:1345
exit_mm+0x220/0x310 kernel/exit.c:570
do_exit+0x9ad/0x28e0 kernel/exit.c:925
do_group_exit+0x207/0x2c0 kernel/exit.c:1087
__do_sys_exit_group kernel/exit.c:1098 [inline]
__se_sys_exit_group kernel/exit.c:1096 [inline]
__x64_sys_exit_group+0x3f/0x40 kernel/exit.c:1096
x64_sys_call+0x26a8/0x26b0 arch/x86/include/generated/asm/syscalls_64.h:232
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x77/0x7f
Modules linked in:
CPU: 1 UID: 0 PID: 6933 Comm: syz.2.268 Tainted: G B 6.13.0-syzkaller-07644-gc2da8b3f914f #0
Tainted: [B]=BAD_PAGE
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 12/27/2024
Call Trace:
__dump_stack lib/dump_stack.c:94 [inline]
dump_stack_lvl+0x241/0x360 lib/dump_stack.c:120
bad_page+0x176/0x1d0 mm/page_alloc.c:501
free_page_is_bad mm/page_alloc.c:923 [inline]
free_pages_prepare mm/page_alloc.c:1119 [inline]
free_unref_page+0xf9e/0x1000 mm/page_alloc.c:2659
bpf_xdp_shrink_data net/core/filter.c:4155 [inline]
bpf_xdp_frags_shrink_tail+0x3b3/0x780 net/core/filter.c:4175
____bpf_xdp_adjust_tail net/core/filter.c:4200 [inline]
bpf_xdp_adjust_tail+0x1c3/0x200 net/core/filter.c:4193
bpf_prog_f476d5219b92964a+0x1e/0x20
__bpf_prog_run include/linux/filter.h:701 [inline]
bpf_prog_run_xdp include/net/xdp.h:654 [inline]
bpf_prog_run_generic_xdp+0x686/0x1510 net/core/dev.c:5123
netif_receive_generic_xdp net/core/dev.c:5236 [inline]
do_xdp_generic+0x757/0xd30 net/core/dev.c:5298
__netif_receive_skb_core+0x1be5/0x4540 net/core/dev.c:5648
__netif_receive_skb_one_core net/core/dev.c:5826 [inline]
__netif_receive_skb+0x12f/0x650 net/core/dev.c:5941
netif_receive_skb_internal net/core/dev.c:6027 [inline]
netif_receive_skb+0x1e8/0x890 net/core/dev.c:6086
tun_rx_batched+0x1b7/0x8f0 drivers/net/tun.c:1554
tun_get_user+0x30cc/0x48a0 drivers/net/tun.c:2011
tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:2057
new_sync_write fs/read_write.c:586 [inline]
vfs_write+0xacf/0xd10 fs/read_write.c:679
ksys_write+0x18f/0x2b0 fs/read_write.c:731
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f9f1c18b7df
Code: 89 54 24 18 48 89 74 24 10 89 7c 24 08 e8 f9 92 02 00 48 8b 54 24 18 48 8b 74 24 10 41 89 c0 8b 7c 24 08 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 31 44 89 c7 48 89 44 24 08 e8 4c 93 02 00 48
RSP: 002b:00007f9f1cfe3000 EFLAGS: 00000293 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f9f1c3a5fa0 RCX: 00007f9f1c18b7df
RDX: 0000000000011dc0 RSI: 0000000020000140 RDI: 00000000000000c8
RBP: 00007f9f1c20e2a0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000011dc0 R11: 0000000000000293 R12: 0000000000000000
R13: 0000000000000000 R14: 00007f9f1c3a5fa0 R15: 00007fff158896e8
BUG: Bad page state in process syz.2.268 pfn:27d67
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x27d67
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000000000 dead000000000040 ffff888021ae4000 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 6933, tgid 6932 (syz.2.268), ts 227120436119, free_ts 226330754731
set_page_owner include/linux/page_owner.h:32 [inline]
post_alloc_hook+0x1f3/0x230 mm/page_alloc.c:1558
prep_new_page mm/page_alloc.c:1566 [inline]
get_page_from_freelist+0x3651/0x37a0 mm/page_alloc.c:3476
__alloc_pages_noprof+0x292/0x710 mm/page_alloc.c:4753
alloc_pages_bulk_noprof+0x70b/0xcc0 mm/page_alloc.c:4701
alloc_pages_bulk_array_node_noprof include/linux/gfp.h:239 [inline]
__page_pool_alloc_pages_slow+0x122/0x690 net/core/page_pool.c:542
page_pool_alloc_netmem include/net/page_pool/helpers.h:128 [inline]
page_pool_alloc include/net/page_pool/helpers.h:160 [inline]
page_pool_dev_alloc include/net/page_pool/helpers.h:181 [inline]
skb_pp_cow_data+0xcc8/0x1720 net/core/skbuff.c:983
netif_skb_check_for_xdp net/core/dev.c:5191 [inline]
netif_receive_generic_xdp net/core/dev.c:5230 [inline]
do_xdp_generic+0x505/0xd30 net/core/dev.c:5298
__netif_receive_skb_core+0x1be5/0x4540 net/core/dev.c:5648
__netif_receive_skb_one_core net/core/dev.c:5826 [inline]
__netif_receive_skb+0x12f/0x650 net/core/dev.c:5941
netif_receive_skb_internal net/core/dev.c:6027 [inline]
netif_receive_skb+0x1e8/0x890 net/core/dev.c:6086
tun_rx_batched+0x1b7/0x8f0 drivers/net/tun.c:1554
tun_get_user+0x30cc/0x48a0 drivers/net/tun.c:2011
tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:2057
new_sync_write fs/read_write.c:586 [inline]
vfs_write+0xacf/0xd10 fs/read_write.c:679
ksys_write+0x18f/0x2b0 fs/read_write.c:731
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83
page last free pid 6925 tgid 6925 stack trace:
reset_page_owner include/linux/page_owner.h:25 [inline]
free_pages_prepare mm/page_alloc.c:1127 [inline]
free_unref_folios+0xe23/0x1890 mm/page_alloc.c:2706
folios_put_refs+0x76c/0x860 mm/swap.c:962
free_pages_and_swap_cache+0x5c8/0x690 mm/swap_state.c:335
__tlb_batch_free_encoded_pages mm/mmu_gather.c:136 [inline]
tlb_batch_pages_flush mm/mmu_gather.c:149 [inline]
tlb_flush_mmu_free mm/mmu_gather.c:366 [inline]
tlb_flush_mmu+0x3a3/0x680 mm/mmu_gather.c:373
tlb_finish_mmu+0xd4/0x200 mm/mmu_gather.c:465
exit_mmap+0x4d5/0xca0 mm/mmap.c:1685
__mmput+0x115/0x410 kernel/fork.c:1345
exit_mm+0x220/0x310 kernel/exit.c:570
do_exit+0x9ad/0x28e0 kernel/exit.c:925
do_group_exit+0x207/0x2c0 kernel/exit.c:1087
__do_sys_exit_group kernel/exit.c:1098 [inline]
__se_sys_exit_group kernel/exit.c:1096 [inline]
__x64_sys_exit_group+0x3f/0x40 kernel/exit.c:1096
x64_sys_call+0x26a8/0x26b0 arch/x86/include/generated/asm/syscalls_64.h:232
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x77/0x7f
Modules linked in:
CPU: 1 UID: 0 PID: 6933 Comm: syz.2.268 Tainted: G B 6.13.0-syzkaller-07644-gc2da8b3f914f #0
Tainted: [B]=BAD_PAGE
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 12/27/2024
Call Trace:
__dump_stack lib/dump_stack.c:94 [inline]
dump_stack_lvl+0x241/0x360 lib/dump_stack.c:120
bad_page+0x176/0x1d0 mm/page_alloc.c:501
free_page_is_bad mm/page_alloc.c:923 [inline]
free_pages_prepare mm/page_alloc.c:1119 [inline]
free_unref_page+0xf9e/0x1000 mm/page_alloc.c:2659
bpf_xdp_shrink_data net/core/filter.c:4155 [inline]
bpf_xdp_frags_shrink_tail+0x3b3/0x780 net/core/filter.c:4175
____bpf_xdp_adjust_tail net/core/filter.c:4200 [inline]
bpf_xdp_adjust_tail+0x1c3/0x200 net/core/filter.c:4193
bpf_prog_f476d5219b92964a+0x1e/0x20
__bpf_prog_run include/linux/filter.h:701 [inline]
bpf_prog_run_xdp include/net/xdp.h:654 [inline]
bpf_prog_run_generic_xdp+0x686/0x1510 net/core/dev.c:5123
netif_receive_generic_xdp net/core/dev.c:5236 [inline]
do_xdp_generic+0x757/0xd30 net/core/dev.c:5298
__netif_receive_skb_core+0x1be5/0x4540 net/core/dev.c:5648
__netif_receive_skb_one_core net/core/dev.c:5826 [inline]
__netif_receive_skb+0x12f/0x650 net/core/dev.c:5941
netif_receive_skb_internal net/core/dev.c:6027 [inline]
netif_receive_skb+0x1e8/0x890 net/core/dev.c:6086
tun_rx_batched+0x1b7/0x8f0 drivers/net/tun.c:1554
tun_get_user+0x30cc/0x48a0 drivers/net/tun.c:2011
tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:2057
new_sync_write fs/read_write.c:586 [inline]
vfs_write+0xacf/0xd10 fs/read_write.c:679
ksys_write+0x18f/0x2b0 fs/read_write.c:731
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f9f1c18b7df
Code: 89 54 24 18 48 89 74 24 10 89 7c 24 08 e8 f9 92 02 00 48 8b 54 24 18 48 8b 74 24 10 41 89 c0 8b 7c 24 08 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 31 44 89 c7 48 89 44 24 08 e8 4c 93 02 00 48
RSP: 002b:00007f9f1cfe3000 EFLAGS: 00000293 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f9f1c3a5fa0 RCX: 00007f9f1c18b7df
RDX: 0000000000011dc0 RSI: 0000000020000140 RDI: 00000000000000c8
RBP: 00007f9f1c20e2a0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000011dc0 R11: 0000000000000293 R12: 0000000000000000
R13: 0000000000000000 R14: 00007f9f1c3a5fa0 R15: 00007fff158896e8
BUG: Bad page state in process syz.2.268 pfn:27a6a
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x27a6a
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000000000 dead000000000040 ffff888021ae4000 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 6933, tgid 6932 (syz.2.268), ts 227120424523, free_ts 226330759599
set_page_owner include/linux/page_owner.h:32 [inline]
post_alloc_hook+0x1f3/0x230 mm/page_alloc.c:1558
prep_new_page mm/page_alloc.c:1566 [inline]
get_page_from_freelist+0x3651/0x37a0 mm/page_alloc.c:3476
__alloc_pages_noprof+0x292/0x710 mm/page_alloc.c:4753
alloc_pages_bulk_noprof+0x70b/0xcc0 mm/page_alloc.c:4701
alloc_pages_bulk_array_node_noprof include/linux/gfp.h:239 [inline]
__page_pool_alloc_pages_slow+0x122/0x690 net/core/page_pool.c:542
page_pool_alloc_netmem include/net/page_pool/helpers.h:128 [inline]
page_pool_alloc include/net/page_pool/helpers.h:160 [inline]
page_pool_dev_alloc include/net/page_pool/helpers.h:181 [inline]
skb_pp_cow_data+0xcc8/0x1720 net/core/skbuff.c:983
netif_skb_check_for_xdp net/core/dev.c:5191 [inline]
netif_receive_generic_xdp net/core/dev.c:5230 [inline]
do_xdp_generic+0x505/0xd30 net/core/dev.c:5298
__netif_receive_skb_core+0x1be5/0x4540 net/core/dev.c:5648
__netif_receive_skb_one_core net/core/dev.c:5826 [inline]
__netif_receive_skb+0x12f/0x650 net/core/dev.c:5941
netif_receive_skb_internal net/core/dev.c:6027 [inline]
netif_receive_skb+0x1e8/0x890 net/core/dev.c:6086
tun_rx_batched+0x1b7/0x8f0 drivers/net/tun.c:1554
tun_get_user+0x30cc/0x48a0 drivers/net/tun.c:2011
tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:2057
new_sync_write fs/read_write.c:586 [inline]
vfs_write+0xacf/0xd10 fs/read_write.c:679
ksys_write+0x18f/0x2b0 fs/read_write.c:731
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83
page last free pid 6925 tgid 6925 stack trace:
reset_page_owner include/linux/page_owner.h:25 [inline]
free_pages_prepare mm/page_alloc.c:1127 [inline]
free_unref_folios+0xe23/0x1890 mm/page_alloc.c:2706
folios_put_refs+0x76c/0x860 mm/swap.c:962
free_pages_and_swap_cache+0x5c8/0x690 mm/swap_state.c:335
__tlb_batch_free_encoded_pages mm/mmu_gather.c:136 [inline]
tlb_batch_pages_flush mm/mmu_gather.c:149 [inline]
tlb_flush_mmu_free mm/mmu_gather.c:366 [inline]
tlb_flush_mmu+0x3a3/0x680 mm/mmu_gather.c:373
tlb_finish_mmu+0xd4/0x200 mm/mmu_gather.c:465
exit_mmap+0x4d5/0xca0 mm/mmap.c:1685
__mmput+0x115/0x410 kernel/fork.c:1345
exit_mm+0x220/0x310 kernel/exit.c:570
do_exit+0x9ad/0x28e0 kernel/exit.c:925
do_group_exit+0x207/0x2c0 kernel/exit.c:1087
__do_sys_exit_group kernel/exit.c:1098 [inline]
__se_sys_exit_group kernel/exit.c:1096 [inline]
__x64_sys_exit_group+0x3f/0x40 kernel/exit.c:1096
x64_sys_call+0x26a8/0x26b0 arch/x86/include/generated/asm/syscalls_64.h:232
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x77/0x7f
Modules linked in:
CPU: 1 UID: 0 PID: 6933 Comm: syz.2.268 Tainted: G B 6.13.0-syzkaller-07644-gc2da8b3f914f #0
Tainted: [B]=BAD_PAGE
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 12/27/2024
Call Trace:
__dump_stack lib/dump_stack.c:94 [inline]
dump_stack_lvl+0x241/0x360 lib/dump_stack.c:120
bad_page+0x176/0x1d0 mm/page_alloc.c:501
free_page_is_bad mm/page_alloc.c:923 [inline]
free_pages_prepare mm/page_alloc.c:1119 [inline]
free_unref_page+0xf9e/0x1000 mm/page_alloc.c:2659
bpf_xdp_shrink_data net/core/filter.c:4155 [inline]
bpf_xdp_frags_shrink_tail+0x3b3/0x780 net/core/filter.c:4175
____bpf_xdp_adjust_tail net/core/filter.c:4200 [inline]
bpf_xdp_adjust_tail+0x1c3/0x200 net/core/filter.c:4193
bpf_prog_f476d5219b92964a+0x1e/0x20
__bpf_prog_run include/linux/filter.h:701 [inline]
bpf_prog_run_xdp include/net/xdp.h:654 [inline]
bpf_prog_run_generic_xdp+0x686/0x1510 net/core/dev.c:5123
netif_receive_generic_xdp net/core/dev.c:5236 [inline]
do_xdp_generic+0x757/0xd30 net/core/dev.c:5298
__netif_receive_skb_core+0x1be5/0x4540 net/core/dev.c:5648
__netif_receive_skb_one_core net/core/dev.c:5826 [inline]
__netif_receive_skb+0x12f/0x650 net/core/dev.c:5941
netif_receive_skb_internal net/core/dev.c:6027 [inline]
netif_receive_skb+0x1e8/0x890 net/core/dev.c:6086
tun_rx_batched+0x1b7/0x8f0 drivers/net/tun.c:1554
tun_get_user+0x30cc/0x48a0 drivers/net/tun.c:2011
tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:2057
new_sync_write fs/read_write.c:586 [inline]
vfs_write+0xacf/0xd10 fs/read_write.c:679
ksys_write+0x18f/0x2b0 fs/read_write.c:731
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f9f1c18b7df
Code: 89 54 24 18 48 89 74 24 10 89 7c 24 08 e8 f9 92 02 00 48 8b 54 24 18 48 8b 74 24 10 41 89 c0 8b 7c 24 08 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 31 44 89 c7 48 89 44 24 08 e8 4c 93 02 00 48
RSP: 002b:00007f9f1cfe3000 EFLAGS: 00000293 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f9f1c3a5fa0 RCX: 00007f9f1c18b7df
RDX: 0000000000011dc0 RSI: 0000000020000140 RDI: 00000000000000c8
RBP: 00007f9f1c20e2a0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000011dc0 R11: 0000000000000293 R12: 0000000000000000
R13: 0000000000000000 R14: 00007f9f1c3a5fa0 R15: 00007fff158896e8
BUG: Bad page state in process syz.2.268 pfn:11f57
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff888011f57b40 pfn:0x11f57
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000000000 dead000000000040 ffff888021ae4000 0000000000000000
raw: ffff888011f57b40 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 6933, tgid 6932 (syz.2.268), ts 227120413588, free_ts 226330769255
set_page_owner include/linux/page_owner.h:32 [inline]
post_alloc_hook+0x1f3/0x230 mm/page_alloc.c:1558
prep_new_page mm/page_alloc.c:1566 [inline]
get_page_from_freelist+0x3651/0x37a0 mm/page_alloc.c:3476
__alloc_pages_noprof+0x292/0x710 mm/page_alloc.c:4753
alloc_pages_bulk_noprof+0x70b/0xcc0 mm/page_alloc.c:4701
alloc_pages_bulk_array_node_noprof include/linux/gfp.h:239 [inline]
__page_pool_alloc_pages_slow+0x122/0x690 net/core/page_pool.c:542
page_pool_alloc_netmem include/net/page_pool/helpers.h:128 [inline]
page_pool_alloc include/net/page_pool/helpers.h:160 [inline]
page_pool_dev_alloc include/net/page_pool/helpers.h:181 [inline]
skb_pp_cow_data+0xcc8/0x1720 net/core/skbuff.c:983
netif_skb_check_for_xdp net/core/dev.c:5191 [inline]
netif_receive_generic_xdp net/core/dev.c:5230 [inline]
do_xdp_generic+0x505/0xd30 net/core/dev.c:5298
__netif_receive_skb_core+0x1be5/0x4540 net/core/dev.c:5648
__netif_receive_skb_one_core net/core/dev.c:5826 [inline]
__netif_receive_skb+0x12f/0x650 net/core/dev.c:5941
netif_receive_skb_internal net/core/dev.c:6027 [inline]
netif_receive_skb+0x1e8/0x890 net/core/dev.c:6086
tun_rx_batched+0x1b7/0x8f0 drivers/net/tun.c:1554
tun_get_user+0x30cc/0x48a0 drivers/net/tun.c:2011
tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:2057
new_sync_write fs/read_write.c:586 [inline]
vfs_write+0xacf/0xd10 fs/read_write.c:679
ksys_write+0x18f/0x2b0 fs/read_write.c:731
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83
page last free pid 6925 tgid 6925 stack trace:
reset_page_owner include/linux/page_owner.h:25 [inline]
free_pages_prepare mm/page_alloc.c:1127 [inline]
free_unref_page+0xd2c/0x1000 mm/page_alloc.c:2659
tlb_batch_list_free mm/mmu_gather.c:159 [inline]
tlb_finish_mmu+0x11f/0x200 mm/mmu_gather.c:468
exit_mmap+0x4d5/0xca0 mm/mmap.c:1685
__mmput+0x115/0x410 kernel/fork.c:1345
exit_mm+0x220/0x310 kernel/exit.c:570
do_exit+0x9ad/0x28e0 kernel/exit.c:925
do_group_exit+0x207/0x2c0 kernel/exit.c:1087
__do_sys_exit_group kernel/exit.c:1098 [inline]
__se_sys_exit_group kernel/exit.c:1096 [inline]
__x64_sys_exit_group+0x3f/0x40 kernel/exit.c:1096
x64_sys_call+0x26a8/0x26b0 arch/x86/include/generated/asm/syscalls_64.h:232
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x77/0x7f
Modules linked in:
CPU: 1 UID: 0 PID: 6933 Comm: syz.2.268 Tainted: G B 6.13.0-syzkaller-07644-gc2da8b3f914f #0
Tainted: [B]=BAD_PAGE
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 12/27/2024
Call Trace:
__dump_stack lib/dump_stack.c:94 [inline]
dump_stack_lvl+0x241/0x360 lib/dump_stack.c:120
bad_page+0x176/0x1d0 mm/page_alloc.c:501
free_page_is_bad mm/page_alloc.c:923 [inline]
free_pages_prepare mm/page_alloc.c:1119 [inline]
free_unref_page+0xf9e/0x1000 mm/page_alloc.c:2659
bpf_xdp_shrink_data net/core/filter.c:4155 [inline]
bpf_xdp_frags_shrink_tail+0x3b3/0x780 net/core/filter.c:4175
____bpf_xdp_adjust_tail net/core/filter.c:4200 [inline]
bpf_xdp_adjust_tail+0x1c3/0x200 net/core/filter.c:4193
bpf_prog_f476d5219b92964a+0x1e/0x20
__bpf_prog_run include/linux/filter.h:701 [inline]
bpf_prog_run_xdp include/net/xdp.h:654 [inline]
bpf_prog_run_generic_xdp+0x686/0x1510 net/core/dev.c:5123
netif_receive_generic_xdp net/core/dev.c:5236 [inline]
do_xdp_generic+0x757/0xd30 net/core/dev.c:5298
__netif_receive_skb_core+0x1be5/0x4540 net/core/dev.c:5648
__netif_receive_skb_one_core net/core/dev.c:5826 [inline]
__netif_receive_skb+0x12f/0x650 net/core/dev.c:5941
netif_receive_skb_internal net/core/dev.c:6027 [inline]
netif_receive_skb+0x1e8/0x890 net/core/dev.c:6086
tun_rx_batched+0x1b7/0x8f0 drivers/net/tun.c:1554
tun_get_user+0x30cc/0x48a0 drivers/net/tun.c:2011
tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:2057
new_sync_write fs/read_write.c:586 [inline]
vfs_write+0xacf/0xd10 fs/read_write.c:679
ksys_write+0x18f/0x2b0 fs/read_write.c:731
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f9f1c18b7df
Code: 89 54 24 18 48 89 74 24 10 89 7c 24 08 e8 f9 92 02 00 48 8b 54 24 18 48 8b 74 24 10 41 89 c0 8b 7c 24 08 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 31 44 89 c7 48 89 44 24 08 e8 4c 93 02 00 48
RSP: 002b:00007f9f1cfe3000 EFLAGS: 00000293 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f9f1c3a5fa0 RCX: 00007f9f1c18b7df
RDX: 0000000000011dc0 RSI: 0000000020000140 RDI: 00000000000000c8
RBP: 00007f9f1c20e2a0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000011dc0 R11: 0000000000000293 R12: 0000000000000000
R13: 0000000000000000 R14: 00007f9f1c3a5fa0 R15: 00007fff158896e8
BUG: Bad page state in process syz.2.268 pfn:33d74
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff888033d743c0 pfn:0x33d74
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000000000 dead000000000040 ffff888021ae4000 0000000000000000
raw: ffff888033d743c0 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 6933, tgid 6932 (syz.2.268), ts 227120402464, free_ts 226330775366
set_page_owner include/linux/page_owner.h:32 [inline]
post_alloc_hook+0x1f3/0x230 mm/page_alloc.c:1558
prep_new_page mm/page_alloc.c:1566 [inline]
get_page_from_freelist+0x3651/0x37a0 mm/page_alloc.c:3476
__alloc_pages_noprof+0x292/0x710 mm/page_alloc.c:4753
alloc_pages_bulk_noprof+0x70b/0xcc0 mm/page_alloc.c:4701
alloc_pages_bulk_array_node_noprof include/linux/gfp.h:239 [inline]
__page_pool_alloc_pages_slow+0x122/0x690 net/core/page_pool.c:542
page_pool_alloc_netmem include/net/page_pool/helpers.h:128 [inline]
page_pool_alloc include/net/page_pool/helpers.h:160 [inline]
page_pool_dev_alloc include/net/page_pool/helpers.h:181 [inline]
skb_pp_cow_data+0xcc8/0x1720 net/core/skbuff.c:983
netif_skb_check_for_xdp net/core/dev.c:5191 [inline]
netif_receive_generic_xdp net/core/dev.c:5230 [inline]
do_xdp_generic+0x505/0xd30 net/core/dev.c:5298
__netif_receive_skb_core+0x1be5/0x4540 net/core/dev.c:5648
__netif_receive_skb_one_core net/core/dev.c:5826 [inline]
__netif_receive_skb+0x12f/0x650 net/core/dev.c:5941
netif_receive_skb_internal net/core/dev.c:6027 [inline]
netif_receive_skb+0x1e8/0x890 net/core/dev.c:6086
tun_rx_batched+0x1b7/0x8f0 drivers/net/tun.c:1554
tun_get_user+0x30cc/0x48a0 drivers/net/tun.c:2011
tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:2057
new_sync_write fs/read_write.c:586 [inline]
vfs_write+0xacf/0xd10 fs/read_write.c:679
ksys_write+0x18f/0x2b0 fs/read_write.c:731
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83
page last free pid 6925 tgid 6925 stack trace:
reset_page_owner include/linux/page_owner.h:25 [inline]
free_pages_prepare mm/page_alloc.c:1127 [inline]
free_unref_page+0xd2c/0x1000 mm/page_alloc.c:2659
tlb_batch_list_free mm/mmu_gather.c:159 [inline]
tlb_finish_mmu+0x11f/0x200 mm/mmu_gather.c:468
exit_mmap+0x4d5/0xca0 mm/mmap.c:1685
__mmput+0x115/0x410 kernel/fork.c:1345
exit_mm+0x220/0x310 kernel/exit.c:570
do_exit+0x9ad/0x28e0 kernel/exit.c:925
do_group_exit+0x207/0x2c0 kernel/exit.c:1087
__do_sys_exit_group kernel/exit.c:1098 [inline]
__se_sys_exit_group kernel/exit.c:1096 [inline]
__x64_sys_exit_group+0x3f/0x40 kernel/exit.c:1096
x64_sys_call+0x26a8/0x26b0 arch/x86/include/generated/asm/syscalls_64.h:232
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x77/0x7f
Modules linked in:
CPU: 1 UID: 0 PID: 6933 Comm: syz.2.268 Tainted: G B 6.13.0-syzkaller-07644-gc2da8b3f914f #0
Tainted: [B]=BAD_PAGE
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 12/27/2024
Call Trace:
__dump_stack lib/dump_stack.c:94 [inline]
dump_stack_lvl+0x241/0x360 lib/dump_stack.c:120
bad_page+0x176/0x1d0 mm/page_alloc.c:501
free_page_is_bad mm/page_alloc.c:923 [inline]
free_pages_prepare mm/page_alloc.c:1119 [inline]
free_unref_page+0xf9e/0x1000 mm/page_alloc.c:2659
bpf_xdp_shrink_data net/core/filter.c:4155 [inline]
bpf_xdp_frags_shrink_tail+0x3b3/0x780 net/core/filter.c:4175
____bpf_xdp_adjust_tail net/core/filter.c:4200 [inline]
bpf_xdp_adjust_tail+0x1c3/0x200 net/core/filter.c:4193
bpf_prog_f476d5219b92964a+0x1e/0x20
__bpf_prog_run include/linux/filter.h:701 [inline]
bpf_prog_run_xdp include/net/xdp.h:654 [inline]
bpf_prog_run_generic_xdp+0x686/0x1510 net/core/dev.c:5123
netif_receive_generic_xdp net/core/dev.c:5236 [inline]
do_xdp_generic+0x757/0xd30 net/core/dev.c:5298
__netif_receive_skb_core+0x1be5/0x4540 net/core/dev.c:5648
__netif_receive_skb_one_core net/core/dev.c:5826 [inline]
__netif_receive_skb+0x12f/0x650 net/core/dev.c:5941
netif_receive_skb_internal net/core/dev.c:6027 [inline]
netif_receive_skb+0x1e8/0x890 net/core/dev.c:6086
tun_rx_batched+0x1b7/0x8f0 drivers/net/tun.c:1554
tun_get_user+0x30cc/0x48a0 drivers/net/tun.c:2011
tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:2057
new_sync_write fs/read_write.c:586 [inline]
vfs_write+0xacf/0xd10 fs/read_write.c:679
ksys_write+0x18f/0x2b0 fs/read_write.c:731
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f9f1c18b7df
Code: 89 54 24 18 48 89 74 24 10 89 7c 24 08 e8 f9 92 02 00 48 8b 54 24 18 48 8b 74 24 10 41 89 c0 8b 7c 24 08 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 31 44 89 c7 48 89 44 24 08 e8 4c 93 02 00 48
RSP: 002b:00007f9f1cfe3000 EFLAGS: 00000293 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f9f1c3a5fa0 RCX: 00007f9f1c18b7df
RDX: 0000000000011dc0 RSI: 0000000020000140 RDI: 00000000000000c8
RBP: 00007f9f1c20e2a0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000011dc0 R11: 0000000000000293 R12: 0000000000000000
R13: 0000000000000000 R14: 00007f9f1c3a5fa0 R15: 00007fff158896e8
BUG: Bad page state in process syz.2.268 pfn:3360f
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff88803360fb40 pfn:0x3360f
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000000000 dead000000000040 ffff888021ae4000 0000000000000000
raw: ffff88803360fb40 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 6933, tgid 6932 (syz.2.268), ts 227120391306, free_ts 226330780965
set_page_owner include/linux/page_owner.h:32 [inline]
post_alloc_hook+0x1f3/0x230 mm/page_alloc.c:1558
prep_new_page mm/page_alloc.c:1566 [inline]
get_page_from_freelist+0x3651/0x37a0 mm/page_alloc.c:3476
__alloc_pages_noprof+0x292/0x710 mm/page_alloc.c:4753
alloc_pages_bulk_noprof+0x70b/0xcc0 mm/page_alloc.c:4701
alloc_pages_bulk_array_node_noprof include/linux/gfp.h:239 [inline]
__page_pool_alloc_pages_slow+0x122/0x690 net/core/page_pool.c:542
page_pool_alloc_netmem include/net/page_pool/helpers.h:128 [inline]
page_pool_alloc include/net/page_pool/helpers.h:160 [inline]
page_pool_dev_alloc include/net/page_pool/helpers.h:181 [inline]
skb_pp_cow_data+0xcc8/0x1720 net/core/skbuff.c:983
netif_skb_check_for_xdp net/core/dev.c:5191 [inline]
netif_receive_generic_xdp net/core/dev.c:5230 [inline]
do_xdp_generic+0x505/0xd30 net/core/dev.c:5298
__netif_receive_skb_core+0x1be5/0x4540 net/core/dev.c:5648
__netif_receive_skb_one_core net/core/dev.c:5826 [inline]
__netif_receive_skb+0x12f/0x650 net/core/dev.c:5941
netif_receive_skb_internal net/core/dev.c:6027 [inline]
netif_receive_skb+0x1e8/0x890 net/core/dev.c:6086
tun_rx_batched+0x1b7/0x8f0 drivers/net/tun.c:1554
tun_get_user+0x30cc/0x48a0 drivers/net/tun.c:2011
tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:2057
new_sync_write fs/read_write.c:586 [inline]
vfs_write+0xacf/0xd10 fs/read_write.c:679
ksys_write+0x18f/0x2b0 fs/read_write.c:731
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83
page last free pid 6925 tgid 6925 stack trace:
reset_page_owner include/linux/page_owner.h:25 [inline]
free_pages_prepare mm/page_alloc.c:1127 [inline]
free_unref_page+0xd2c/0x1000 mm/page_alloc.c:2659
tlb_batch_list_free mm/mmu_gather.c:159 [inline]
tlb_finish_mmu+0x11f/0x200 mm/mmu_gather.c:468
exit_mmap+0x4d5/0xca0 mm/mmap.c:1685
__mmput+0x115/0x410 kernel/fork.c:1345
exit_mm+0x220/0x310 kernel/exit.c:570
do_exit+0x9ad/0x28e0 kernel/exit.c:925
do_group_exit+0x207/0x2c0 kernel/exit.c:1087
__do_sys_exit_group kernel/exit.c:1098 [inline]
__se_sys_exit_group kernel/exit.c:1096 [inline]
__x64_sys_exit_group+0x3f/0x40 kernel/exit.c:1096
x64_sys_call+0x26a8/0x26b0 arch/x86/include/generated/asm/syscalls_64.h:232
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x77/0x7f
Modules linked in:
CPU: 1 UID: 0 PID: 6933 Comm: syz.2.268 Tainted: G B 6.13.0-syzkaller-07644-gc2da8b3f914f #0
Tainted: [B]=BAD_PAGE
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 12/27/2024
Call Trace:
__dump_stack lib/dump_stack.c:94 [inline]
dump_stack_lvl+0x241/0x360 lib/dump_stack.c:120
bad_page+0x176/0x1d0 mm/page_alloc.c:501
free_page_is_bad mm/page_alloc.c:923 [inline]
free_pages_prepare mm/page_alloc.c:1119 [inline]
free_unref_page+0xf9e/0x1000 mm/page_alloc.c:2659
bpf_xdp_shrink_data net/core/filter.c:4155 [inline]
bpf_xdp_frags_shrink_tail+0x3b3/0x780 net/core/filter.c:4175
____bpf_xdp_adjust_tail net/core/filter.c:4200 [inline]
bpf_xdp_adjust_tail+0x1c3/0x200 net/core/filter.c:4193
bpf_prog_f476d5219b92964a+0x1e/0x20
__bpf_prog_run include/linux/filter.h:701 [inline]
bpf_prog_run_xdp include/net/xdp.h:654 [inline]
bpf_prog_run_generic_xdp+0x686/0x1510 net/core/dev.c:5123
netif_receive_generic_xdp net/core/dev.c:5236 [inline]
do_xdp_generic+0x757/0xd30 net/core/dev.c:5298
__netif_receive_skb_core+0x1be5/0x4540 net/core/dev.c:5648
__netif_receive_skb_one_core net/core/dev.c:5826 [inline]
__netif_receive_skb+0x12f/0x650 net/core/dev.c:5941
netif_receive_skb_internal net/core/dev.c:6027 [inline]
netif_receive_skb+0x1e8/0x890 net/core/dev.c:6086
tun_rx_batched+0x1b7/0x8f0 drivers/net/tun.c:1554
tun_get_user+0x30cc/0x48a0 drivers/net/tun.c:2011
tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:2057
new_sync_write fs/read_write.c:586 [inline]
vfs_write+0xacf/0xd10 fs/read_write.c:679
ksys_write+0x18f/0x2b0 fs/read_write.c:731
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f9f1c18b7df
Code: 89 54 24 18 48 89 74 24 10 89 7c 24 08 e8 f9 92 02 00 48 8b 54 24 18 48 8b 74 24 10 41 89 c0 8b 7c 24 08 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 31 44 89 c7 48 89 44 24 08 e8 4c 93 02 00 48
RSP: 002b:00007f9f1cfe3000 EFLAGS: 00000293 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f9f1c3a5fa0 RCX: 00007f9f1c18b7df
RDX: 0000000000011dc0 RSI: 0000000020000140 RDI: 00000000000000c8
RBP: 00007f9f1c20e2a0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000011dc0 R11: 0000000000000293 R12: 0000000000000000
R13: 0000000000000000 R14: 00007f9f1c3a5fa0 R15: 00007fff158896e8
BUG: Bad page state in process syz.2.268 pfn:28450
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff888028450c80 pfn:0x28450
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000000000 dead000000000040 ffff888021ae4000 0000000000000000
raw: ffff888028450c80 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 6933, tgid 6932 (syz.2.268), ts 227120379911, free_ts 226330786212
set_page_owner include/linux/page_owner.h:32 [inline]
post_alloc_hook+0x1f3/0x230 mm/page_alloc.c:1558
prep_new_page mm/page_alloc.c:1566 [inline]
get_page_from_freelist+0x3651/0x37a0 mm/page_alloc.c:3476
__alloc_pages_noprof+0x292/0x710 mm/page_alloc.c:4753
alloc_pages_bulk_noprof+0x70b/0xcc0 mm/page_alloc.c:4701
alloc_pages_bulk_array_node_noprof include/linux/gfp.h:239 [inline]
__page_pool_alloc_pages_slow+0x122/0x690 net/core/page_pool.c:542
page_pool_alloc_netmem include/net/page_pool/helpers.h:128 [inline]
page_pool_alloc include/net/page_pool/helpers.h:160 [inline]
page_pool_dev_alloc include/net/page_pool/helpers.h:181 [inline]
skb_pp_cow_data+0xcc8/0x1720 net/core/skbuff.c:983
netif_skb_check_for_xdp net/core/dev.c:5191 [inline]
netif_receive_generic_xdp net/core/dev.c:5230 [inline]
do_xdp_generic+0x505/0xd30 net/core/dev.c:5298
__netif_receive_skb_core+0x1be5/0x4540 net/core/dev.c:5648
__netif_receive_skb_one_core net/core/dev.c:5826 [inline]
__netif_receive_skb+0x12f/0x650 net/core/dev.c:5941
netif_receive_skb_internal net/core/dev.c:6027 [inline]
netif_receive_skb+0x1e8/0x890 net/core/dev.c:6086
tun_rx_batched+0x1b7/0x8f0 drivers/net/tun.c:1554
tun_get_user+0x30cc/0x48a0 drivers/net/tun.c:2011
tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:2057
new_sync_write fs/read_write.c:586 [inline]
vfs_write+0xacf/0xd10 fs/read_write.c:679
ksys_write+0x18f/0x2b0 fs/read_write.c:731
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83
page last free pid 6925 tgid 6925 stack trace:
reset_page_owner include/linux/page_owner.h:25 [inline]
free_pages_prepare mm/page_alloc.c:1127 [inline]
free_unref_page+0xd2c/0x1000 mm/page_alloc.c:2659
tlb_batch_list_free mm/mmu_gather.c:159 [inline]
tlb_finish_mmu+0x11f/0x200 mm/mmu_gather.c:468
exit_mmap+0x4d5/0xca0 mm/mmap.c:1685
__mmput+0x115/0x410 kernel/fork.c:1345
exit_mm+0x220/0x310 kernel/exit.c:570
do_exit+0x9ad/0x28e0 kernel/exit.c:925
do_group_exit+0x207/0x2c0 kernel/exit.c:1087
__do_sys_exit_group kernel/exit.c:1098 [inline]
__se_sys_exit_group kernel/exit.c:1096 [inline]
__x64_sys_exit_group+0x3f/0x40 kernel/exit.c:1096
x64_sys_call+0x26a8/0x26b0 arch/x86/include/generated/asm/syscalls_64.h:232
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x77/0x7f
Modules linked in:
CPU: 1 UID: 0 PID: 6933 Comm: syz.2.268 Tainted: G B 6.13.0-syzkaller-07644-gc2da8b3f914f #0
Tainted: [B]=BAD_PAGE
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 12/27/2024
Call Trace:
__dump_stack lib/dump_stack.c:94 [inline]
dump_stack_lvl+0x241/0x360 lib/dump_stack.c:120
bad_page+0x176/0x1d0 mm/page_alloc.c:501
free_page_is_bad mm/page_alloc.c:923 [inline]
free_pages_prepare mm/page_alloc.c:1119 [inline]
free_unref_page+0xf9e/0x1000 mm/page_alloc.c:2659
bpf_xdp_shrink_data net/core/filter.c:4155 [inline]
bpf_xdp_frags_shrink_tail+0x3b3/0x780 net/core/filter.c:4175
____bpf_xdp_adjust_tail net/core/filter.c:4200 [inline]
bpf_xdp_adjust_tail+0x1c3/0x200 net/core/filter.c:4193
bpf_prog_f476d5219b92964a+0x1e/0x20
__bpf_prog_run include/linux/filter.h:701 [inline]
bpf_prog_run_xdp include/net/xdp.h:654 [inline]
bpf_prog_run_generic_xdp+0x686/0x1510 net/core/dev.c:5123
netif_receive_generic_xdp net/core/dev.c:5236 [inline]
do_xdp_generic+0x757/0xd30 net/core/dev.c:5298
__netif_receive_skb_core+0x1be5/0x4540 net/core/dev.c:5648
__netif_receive_skb_one_core net/core/dev.c:5826 [inline]
__netif_receive_skb+0x12f/0x650 net/core/dev.c:5941
netif_receive_skb_internal net/core/dev.c:6027 [inline]
netif_receive_skb+0x1e8/0x890 net/core/dev.c:6086
tun_rx_batched+0x1b7/0x8f0 drivers/net/tun.c:1554
tun_get_user+0x30cc/0x48a0 drivers/net/tun.c:2011
tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:2057
new_sync_write fs/read_write.c:586 [inline]
vfs_write+0xacf/0xd10 fs/read_write.c:679
ksys_write+0x18f/0x2b0 fs/read_write.c:731
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f9f1c18b7df
Code: 89 54 24 18 48 89 74 24 10 89 7c 24 08 e8 f9 92 02 00 48 8b 54 24 18 48 8b 74 24 10 41 89 c0 8b 7c 24 08 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 31 44 89 c7 48 89 44 24 08 e8 4c 93 02 00 48
RSP: 002b:00007f9f1cfe3000 EFLAGS: 00000293 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f9f1c3a5fa0 RCX: 00007f9f1c18b7df
RDX: 0000000000011dc0 RSI: 0000000020000140 RDI: 00000000000000c8
RBP: 00007f9f1c20e2a0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000011dc0 R11: 0000000000000293 R12: 0000000000000000
R13: 0000000000000000 R14: 00007f9f1c3a5fa0 R15: 00007fff158896e8
BUG: Bad page state in process syz.2.268 pfn:34e57
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff888000000000 pfn:0x34e57
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000000000 dead000000000040 ffff888021ae4000 0000000000000000
raw: ffff888000000000 0000000000000001 00000000ffffffff 0000000000000000
page dumped because: page_pool leak
page_owner tracks the page as allocated
page last allocated via order 0, migratetype Unmovable, gfp_mask 0x2820(GFP_ATOMIC|__GFP_NOWARN), pid 6933, tgid 6932 (syz.2.268), ts 227120368753, free_ts 226330802931
set_page_owner include/linux/page_owner.h:32 [inline]
post_alloc_hook+0x1f3/0x230 mm/page_alloc.c:1558
prep_new_page mm/page_alloc.c:1566 [inline]
get_page_from_freelist+0x3651/0x37a0 mm/page_alloc.c:3476
__alloc_pages_noprof+0x292/0x710 mm/page_alloc.c:4753
alloc_pages_bulk_noprof+0x70b/0xcc0 mm/page_alloc.c:4701
alloc_pages_bulk_array_node_noprof include/linux/gfp.h:239 [inline]
__page_pool_alloc_pages_slow+0x122/0x690 net/core/page_pool.c:542
page_pool_alloc_netmem include/net/page_pool/helpers.h:128 [inline]
page_pool_alloc include/net/page_pool/helpers.h:160 [inline]
page_pool_dev_alloc include/net/page_pool/helpers.h:181 [inline]
skb_pp_cow_data+0xcc8/0x1720 net/core/skbuff.c:983
netif_skb_check_for_xdp net/core/dev.c:5191 [inline]
netif_receive_generic_xdp net/core/dev.c:5230 [inline]
do_xdp_generic+0x505/0xd30 net/core/dev.c:5298
__netif_receive_skb_core+0x1be5/0x4540 net/core/dev.c:5648
__netif_receive_skb_one_core net/core/dev.c:5826 [inline]
__netif_receive_skb+0x12f/0x650 net/core/dev.c:5941
netif_receive_skb_internal net/core/dev.c:6027 [inline]
netif_receive_skb+0x1e8/0x890 net/core/dev.c:6086
tun_rx_batched+0x1b7/0x8f0 drivers/net/tun.c:1554
tun_get_user+0x30cc/0x48a0 drivers/net/tun.c:2011
tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:2057
new_sync_write fs/read_write.c:586 [inline]
vfs_write+0xacf/0xd10 fs/read_write.c:679
ksys_write+0x18f/0x2b0 fs/read_write.c:731
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83
page last free pid 6925 tgid 6925 stack trace:
reset_page_owner include/linux/page_owner.h:25 [inline]
free_pages_prepare mm/page_alloc.c:1127 [inline]
free_unref_page+0xd2c/0x1000 mm/page_alloc.c:2659
tlb_batch_list_free mm/mmu_gather.c:159 [inline]
tlb_finish_mmu+0x11f/0x200 mm/mmu_gather.c:468
exit_mmap+0x4d5/0xca0 mm/mmap.c:1685
__mmput+0x115/0x410 kernel/fork.c:1345
exit_mm+0x220/0x310 kernel/exit.c:570
do_exit+0x9ad/0x28e0 kernel/exit.c:925
do_group_exit+0x207/0x2c0 kernel/exit.c:1087
__do_sys_exit_group kernel/exit.c:1098 [inline]
__se_sys_exit_group kernel/exit.c:1096 [inline]
__x64_sys_exit_group+0x3f/0x40 kernel/exit.c:1096
x64_sys_call+0x26a8/0x26b0 arch/x86/include/generated/asm/syscalls_64.h:232
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x77/0x7f
Modules linked in:
CPU: 1 UID: 0 PID: 6933 Comm: syz.2.268 Tainted: G B 6.13.0-syzkaller-07644-gc2da8b3f914f #0
Tainted: [B]=BAD_PAGE
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 12/27/2024
Call Trace:
__dump_stack lib/dump_stack.c:94 [inline]
dump_stack_lvl+0x241/0x360 lib/dump_stack.c:120
bad_page+0x176/0x1d0 mm/page_alloc.c:501
free_page_is_bad mm/page_alloc.c:923 [inline]
free_pages_prepare mm/page_alloc.c:1119 [inline]
free_unref_page+0xf9e/0x1000 mm/page_alloc.c:2659
bpf_xdp_shrink_data net/core/filter.c:4155 [inline]
bpf_xdp_frags_shrink_tail+0x3b3/0x780 net/core/filter.c:4175
____bpf_xdp_adjust_tail net/core/filter.c:4200 [inline]
bpf_xdp_adjust_tail+0x1c3/0x200 net/core/filter.c:4193
bpf_prog_f476d5219b92964a+0x1e/0x20
__bpf_prog_run include/linux/filter.h:701 [inline]
bpf_prog_run_xdp include/net/xdp.h:654 [inline]
bpf_prog_run_generic_xdp+0x686/0x1510 net/core/dev.c:5123
netif_receive_generic_xdp net/core/dev.c:5236 [inline]
do_xdp_generic+0x757/0xd30 net/core/dev.c:5298
__netif_receive_skb_core+0x1be5/0x4540 net/core/dev.c:5648
__netif_receive_skb_one_core net/core/dev.c:5826 [inline]
__netif_receive_skb+0x12f/0x650 net/core/dev.c:5941
netif_receive_skb_internal net/core/dev.c:6027 [inline]
netif_receive_skb+0x1e8/0x890 net/core/dev.c:6086
tun_rx_batched+0x1b7/0x8f0 drivers/net/tun.c:1554
tun_get_user+0x30cc/0x48a0 drivers/net/tun.c:2011
tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:2057
new_sync_write fs/read_write.c:586 [inline]
vfs_write+0xacf/0xd10 fs/read_write.c:679
ksys_write+0x18f/0x2b0 fs/read_write.c:731
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f9f1c18b7df
Code: 89 54 24 18 48 89 74 24 10 89 7c 24 08 e8 f9 92 02 00 48 8b 54 24 18 48 8b 74 24 10 41 89 c0 8b 7c 24 08 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 31 44 89 c7 48 89 44 24 08 e8 4c 93 02 00 48
RSP: 002b:00007f9f1cfe3000 EFLAGS: 00000293 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f9f1c3a5fa0 RCX: 00007f9f1c18b7df
RDX: 0000000000011dc0 RSI: 0000000020000140 RDI: 00000000000000c8
RBP: 00007f9f1c20e2a0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000011dc0 R11: 0000000000000293 R12: 0000000000000000
R13: 0000000000000000 R14: 00007f9f1c3a5fa0 R15: 00007fff158896e8
BUG: Bad page state in process syz.2.268 pfn:1eb66
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff888000000000 pfn:0x1eb66
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000000000 dead000000000040 ffff888021ae4000 0000000000000000
raw: ffff888000000000 0000000000000001 00000000ffffffff 0000000000000000
page dumped because: page_pool leak
page_owner tracks the page as allocated
page last allocated via order 0, migratetype Unmovable, gfp_mask 0x2820(GFP_ATOMIC|__GFP_NOWARN), pid 6933, tgid 6932 (syz.2.268), ts 227120357677, free_ts 226330809042
set_page_owner include/linux/page_owner.h:32 [inline]
post_alloc_hook+0x1f3/0x230 mm/page_alloc.c:1558
prep_new_page mm/page_alloc.c:1566 [inline]
get_page_from_freelist+0x3651/0x37a0 mm/page_alloc.c:3476
__alloc_pages_noprof+0x292/0x710 mm/page_alloc.c:4753
alloc_pages_bulk_noprof+0x70b/0xcc0 mm/page_alloc.c:4701
alloc_pages_bulk_array_node_noprof include/linux/gfp.h:239 [inline]
__page_pool_alloc_pages_slow+0x122/0x690 net/core/page_pool.c:542
page_pool_alloc_netmem include/net/page_pool/helpers.h:128 [inline]
page_pool_alloc include/net/page_pool/helpers.h:160 [inline]
page_pool_dev_alloc include/net/page_pool/helpers.h:181 [inline]
skb_pp_cow_data+0xcc8/0x1720 net/core/skbuff.c:983
netif_skb_check_for_xdp net/core/dev.c:5191 [inline]
netif_receive_generic_xdp net/core/dev.c:5230 [inline]
do_xdp_generic+0x505/0xd30 net/core/dev.c:5298
__netif_receive_skb_core+0x1be5/0x4540 net/core/dev.c:5648
__netif_receive_skb_one_core net/core/dev.c:5826 [inline]
__netif_receive_skb+0x12f/0x650 net/core/dev.c:5941
netif_receive_skb_internal net/core/dev.c:6027 [inline]
netif_receive_skb+0x1e8/0x890 net/core/dev.c:6086
tun_rx_batched+0x1b7/0x8f0 drivers/net/tun.c:1554
tun_get_user+0x30cc/0x48a0 drivers/net/tun.c:2011
tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:2057
new_sync_write fs/read_write.c:586 [inline]
vfs_write+0xacf/0xd10 fs/read_write.c:679
ksys_write+0x18f/0x2b0 fs/read_write.c:731
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83
page last free pid 6925 tgid 6925 stack trace:
reset_page_owner include/linux/page_owner.h:25 [inline]
free_pages_prepare mm/page_alloc.c:1127 [inline]
free_unref_page+0xd2c/0x1000 mm/page_alloc.c:2659
tlb_batch_list_free mm/mmu_gather.c:159 [inline]
tlb_finish_mmu+0x11f/0x200 mm/mmu_gather.c:468
exit_mmap+0x4d5/0xca0 mm/mmap.c:1685
__mmput+0x115/0x410 kernel/fork.c:1345
exit_mm+0x220/0x310 kernel/exit.c:570
do_exit+0x9ad/0x28e0 kernel/exit.c:925
do_group_exit+0x207/0x2c0 kernel/exit.c:1087
__do_sys_exit_group kernel/exit.c:1098 [inline]
__se_sys_exit_group kernel/exit.c:1096 [inline]
__x64_sys_exit_group+0x3f/0x40 kernel/exit.c:1096
x64_sys_call+0x26a8/0x26b0 arch/x86/include/generated/asm/syscalls_64.h:232
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x77/0x7f
Modules linked in:
CPU: 1 UID: 0 PID: 6933 Comm: syz.2.268 Tainted: G B 6.13.0-syzkaller-07644-gc2da8b3f914f #0
Tainted: [B]=BAD_PAGE
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 12/27/2024
Call Trace:
__dump_stack lib/dump_stack.c:94 [inline]
dump_stack_lvl+0x241/0x360 lib/dump_stack.c:120
bad_page+0x176/0x1d0 mm/page_alloc.c:501
free_page_is_bad mm/page_alloc.c:923 [inline]
free_pages_prepare mm/page_alloc.c:1119 [inline]
free_unref_page+0xf9e/0x1000 mm/page_alloc.c:2659
bpf_xdp_shrink_data net/core/filter.c:4155 [inline]
bpf_xdp_frags_shrink_tail+0x3b3/0x780 net/core/filter.c:4175
____bpf_xdp_adjust_tail net/core/filter.c:4200 [inline]
bpf_xdp_adjust_tail+0x1c3/0x200 net/core/filter.c:4193
bpf_prog_f476d5219b92964a+0x1e/0x20
__bpf_prog_run include/linux/filter.h:701 [inline]
bpf_prog_run_xdp include/net/xdp.h:654 [inline]
bpf_prog_run_generic_xdp+0x686/0x1510 net/core/dev.c:5123
netif_receive_generic_xdp net/core/dev.c:5236 [inline]
do_xdp_generic+0x757/0xd30 net/core/dev.c:5298
__netif_receive_skb_core+0x1be5/0x4540 net/core/dev.c:5648
__netif_receive_skb_one_core net/core/dev.c:5826 [inline]
__netif_receive_skb+0x12f/0x650 net/core/dev.c:5941
netif_receive_skb_internal net/core/dev.c:6027 [inline]
netif_receive_skb+0x1e8/0x890 net/core/dev.c:6086
tun_rx_batched+0x1b7/0x8f0 drivers/net/tun.c:1554
tun_get_user+0x30cc/0x48a0 drivers/net/tun.c:2011
tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:2057
new_sync_write fs/read_write.c:586 [inline]
vfs_write+0xacf/0xd10 fs/read_write.c:679
ksys_write+0x18f/0x2b0 fs/read_write.c:731
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f9f1c18b7df
Code: 89 54 24 18 48 89 74 24 10 89 7c 24 08 e8 f9 92 02 00 48 8b 54 24 18 48 8b 74 24 10 41 89 c0 8b 7c 24 08 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 31 44 89 c7 48 89 44 24 08 e8 4c 93 02 00 48
RSP: 002b:00007f9f1cfe3000 EFLAGS: 00000293 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f9f1c3a5fa0 RCX: 00007f9f1c18b7df
RDX: 0000000000011dc0 RSI: 0000000020000140 RDI: 00000000000000c8
RBP: 00007f9f1c20e2a0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000011dc0 R11: 0000000000000293 R12: 0000000000000000
R13: 0000000000000000 R14: 00007f9f1c3a5fa0 R15: 00007fff158896e8