BUG: Bad page state in process syz.0.1119 pfn:34259
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff888034259f00 pfn:0x34259
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000000000 dead000000000040 ffff888022eac000 0000000000000000
raw: ffff888034259f00 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 11423, tgid 11417 (syz.0.1119), ts 567220656420, free_ts 566793250919
set_page_owner include/linux/page_owner.h:32 [inline]
post_alloc_hook+0x2d1/0x350 mm/page_alloc.c:1558
prep_new_page mm/page_alloc.c:1566 [inline]
get_page_from_freelist+0xfce/0x2f80 mm/page_alloc.c:3476
__alloc_pages_noprof+0x223/0x25b0 mm/page_alloc.c:4753
alloc_pages_bulk_noprof+0x72b/0x10b0 mm/page_alloc.c:4701
alloc_pages_bulk_array_node_noprof include/linux/gfp.h:239 [inline]
__page_pool_alloc_pages_slow+0x18f/0x770 net/core/page_pool.c:538
page_pool_alloc_netmem net/core/page_pool.c:590 [inline]
page_pool_alloc_netmem+0xc4/0x160 net/core/page_pool.c:577
page_pool_alloc_pages+0x1a/0x60 net/core/page_pool.c:597
page_pool_alloc include/net/page_pool/helpers.h:129 [inline]
page_pool_dev_alloc include/net/page_pool/helpers.h:167 [inline]
skb_pp_cow_data+0x72f/0xe80 net/core/skbuff.c:983
skb_cow_data_for_xdp+0x88/0xb0 net/core/skbuff.c:1017
netif_skb_check_for_xdp net/core/dev.c:5073 [inline]
netif_receive_generic_xdp net/core/dev.c:5112 [inline]
do_xdp_generic+0x3f1/0xe70 net/core/dev.c:5180
__netif_receive_skb_core.constprop.0+0x1330/0x4470 net/core/dev.c:5524
__netif_receive_skb_one_core+0xb1/0x1e0 net/core/dev.c:5702
__netif_receive_skb+0x1d/0x160 net/core/dev.c:5817
netif_receive_skb_internal net/core/dev.c:5903 [inline]
netif_receive_skb+0x13f/0x7b0 net/core/dev.c:5962
tun_rx_batched.isra.0+0x3eb/0x730 drivers/net/tun.c:1574
tun_get_user+0x2a22/0x3e50 drivers/net/tun.c:2007
page last free pid 11382 tgid 11379 stack trace:
reset_page_owner include/linux/page_owner.h:25 [inline]
free_pages_prepare mm/page_alloc.c:1127 [inline]
free_unref_folios+0xa7b/0x14f0 mm/page_alloc.c:2706
folios_put_refs+0x587/0x7b0 mm/swap.c:962
free_pages_and_swap_cache+0x36d/0x510 mm/swap_state.c:332
__tlb_batch_free_encoded_pages+0xf9/0x290 mm/mmu_gather.c:136
tlb_batch_pages_flush mm/mmu_gather.c:149 [inline]
tlb_flush_mmu_free mm/mmu_gather.c:366 [inline]
tlb_flush_mmu mm/mmu_gather.c:373 [inline]
tlb_finish_mmu+0x168/0x7b0 mm/mmu_gather.c:465
exit_mmap+0x3df/0xb20 mm/mmap.c:1685
__mmput+0x12a/0x4c0 kernel/fork.c:1348
mmput+0x62/0x70 kernel/fork.c:1370
exit_mm kernel/exit.c:570 [inline]
do_exit+0x9ba/0x2d70 kernel/exit.c:925
do_group_exit+0xd3/0x2a0 kernel/exit.c:1087
get_signal+0x24ed/0x26c0 kernel/signal.c:3036
arch_do_signal_or_restart+0x90/0x7e0 arch/x86/kernel/signal.c:337
exit_to_user_mode_loop kernel/entry/common.c:111 [inline]
exit_to_user_mode_prepare include/linux/entry-common.h:329 [inline]
__syscall_exit_to_user_mode_work kernel/entry/common.c:207 [inline]
syscall_exit_to_user_mode+0x150/0x2a0 kernel/entry/common.c:218
do_syscall_64+0xda/0x250 arch/x86/entry/common.c:89
entry_SYSCALL_64_after_hwframe+0x77/0x7f
Modules linked in:
CPU: 1 UID: 0 PID: 11423 Comm: syz.0.1119 Not tainted 6.13.0-rc7-syzkaller-00209-g9528d418de4d #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+0x16c/0x1f0 lib/dump_stack.c:120
bad_page+0xb3/0x1f0 mm/page_alloc.c:501
free_page_is_bad_report mm/page_alloc.c:913 [inline]
free_page_is_bad mm/page_alloc.c:923 [inline]
free_pages_prepare mm/page_alloc.c:1119 [inline]
free_unref_page+0x72f/0x1080 mm/page_alloc.c:2659
page_frag_free+0x255/0x2a0 mm/page_frag_cache.c:169
__xdp_return+0x217/0xa90 net/core/xdp.c:389
bpf_xdp_shrink_data net/core/filter.c:4157 [inline]
bpf_xdp_frags_shrink_tail net/core/filter.c:4178 [inline]
____bpf_xdp_adjust_tail net/core/filter.c:4203 [inline]
bpf_xdp_adjust_tail+0xa6f/0x1070 net/core/filter.c:4196
bpf_prog_f476d5219b92964a+0x1e/0x20
__bpf_prog_run include/linux/filter.h:701 [inline]
bpf_prog_run_xdp include/net/xdp.h:513 [inline]
bpf_prog_run_generic_xdp+0x630/0x1510 net/core/dev.c:5005
netif_receive_generic_xdp net/core/dev.c:5118 [inline]
do_xdp_generic+0x70a/0xe70 net/core/dev.c:5180
__netif_receive_skb_core.constprop.0+0x1330/0x4470 net/core/dev.c:5524
__netif_receive_skb_one_core+0xb1/0x1e0 net/core/dev.c:5702
__netif_receive_skb+0x1d/0x160 net/core/dev.c:5817
netif_receive_skb_internal net/core/dev.c:5903 [inline]
netif_receive_skb+0x13f/0x7b0 net/core/dev.c:5962
tun_rx_batched.isra.0+0x3eb/0x730 drivers/net/tun.c:1574
tun_get_user+0x2a22/0x3e50 drivers/net/tun.c:2007
tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:2053
new_sync_write fs/read_write.c:586 [inline]
vfs_write+0x5ae/0x1150 fs/read_write.c:679
ksys_write+0x12b/0x250 fs/read_write.c:731
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f761ed847df
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:00007f761fc42000 EFLAGS: 00000293 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f761ef76080 RCX: 00007f761ed847df
RDX: 0000000000011dc0 RSI: 0000000020000200 RDI: 00000000000000c8
RBP: 00007f761ee01b08 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000011dc0 R11: 0000000000000293 R12: 0000000000000000
R13: 0000000000000001 R14: 00007f761ef76080 R15: 00007ffdb7fa9058
BUG: Bad page state in process syz.0.1119 pfn:5faae
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff88805faae690 pfn:0x5faae
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000000000 dead000000000040 ffff888022eac000 0000000000000000
raw: ffff88805faae690 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 11423, tgid 11417 (syz.0.1119), ts 567220646644, free_ts 566793285633
set_page_owner include/linux/page_owner.h:32 [inline]
post_alloc_hook+0x2d1/0x350 mm/page_alloc.c:1558
prep_new_page mm/page_alloc.c:1566 [inline]
get_page_from_freelist+0xfce/0x2f80 mm/page_alloc.c:3476
__alloc_pages_noprof+0x223/0x25b0 mm/page_alloc.c:4753
alloc_pages_bulk_noprof+0x72b/0x10b0 mm/page_alloc.c:4701
alloc_pages_bulk_array_node_noprof include/linux/gfp.h:239 [inline]
__page_pool_alloc_pages_slow+0x18f/0x770 net/core/page_pool.c:538
page_pool_alloc_netmem net/core/page_pool.c:590 [inline]
page_pool_alloc_netmem+0xc4/0x160 net/core/page_pool.c:577
page_pool_alloc_pages+0x1a/0x60 net/core/page_pool.c:597
page_pool_alloc include/net/page_pool/helpers.h:129 [inline]
page_pool_dev_alloc include/net/page_pool/helpers.h:167 [inline]
skb_pp_cow_data+0x72f/0xe80 net/core/skbuff.c:983
skb_cow_data_for_xdp+0x88/0xb0 net/core/skbuff.c:1017
netif_skb_check_for_xdp net/core/dev.c:5073 [inline]
netif_receive_generic_xdp net/core/dev.c:5112 [inline]
do_xdp_generic+0x3f1/0xe70 net/core/dev.c:5180
__netif_receive_skb_core.constprop.0+0x1330/0x4470 net/core/dev.c:5524
__netif_receive_skb_one_core+0xb1/0x1e0 net/core/dev.c:5702
__netif_receive_skb+0x1d/0x160 net/core/dev.c:5817
netif_receive_skb_internal net/core/dev.c:5903 [inline]
netif_receive_skb+0x13f/0x7b0 net/core/dev.c:5962
tun_rx_batched.isra.0+0x3eb/0x730 drivers/net/tun.c:1574
tun_get_user+0x2a22/0x3e50 drivers/net/tun.c:2007
page last free pid 11382 tgid 11379 stack trace:
reset_page_owner include/linux/page_owner.h:25 [inline]
free_pages_prepare mm/page_alloc.c:1127 [inline]
free_unref_folios+0xa7b/0x14f0 mm/page_alloc.c:2706
folios_put_refs+0x587/0x7b0 mm/swap.c:962
free_pages_and_swap_cache+0x36d/0x510 mm/swap_state.c:332
__tlb_batch_free_encoded_pages+0xf9/0x290 mm/mmu_gather.c:136
tlb_batch_pages_flush mm/mmu_gather.c:149 [inline]
tlb_flush_mmu_free mm/mmu_gather.c:366 [inline]
tlb_flush_mmu mm/mmu_gather.c:373 [inline]
tlb_finish_mmu+0x168/0x7b0 mm/mmu_gather.c:465
exit_mmap+0x3df/0xb20 mm/mmap.c:1685
__mmput+0x12a/0x4c0 kernel/fork.c:1348
mmput+0x62/0x70 kernel/fork.c:1370
exit_mm kernel/exit.c:570 [inline]
do_exit+0x9ba/0x2d70 kernel/exit.c:925
do_group_exit+0xd3/0x2a0 kernel/exit.c:1087
get_signal+0x24ed/0x26c0 kernel/signal.c:3036
arch_do_signal_or_restart+0x90/0x7e0 arch/x86/kernel/signal.c:337
exit_to_user_mode_loop kernel/entry/common.c:111 [inline]
exit_to_user_mode_prepare include/linux/entry-common.h:329 [inline]
__syscall_exit_to_user_mode_work kernel/entry/common.c:207 [inline]
syscall_exit_to_user_mode+0x150/0x2a0 kernel/entry/common.c:218
do_syscall_64+0xda/0x250 arch/x86/entry/common.c:89
entry_SYSCALL_64_after_hwframe+0x77/0x7f
Modules linked in:
CPU: 1 UID: 0 PID: 11423 Comm: syz.0.1119 Tainted: G B 6.13.0-rc7-syzkaller-00209-g9528d418de4d #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+0x16c/0x1f0 lib/dump_stack.c:120
bad_page+0xb3/0x1f0 mm/page_alloc.c:501
free_page_is_bad_report mm/page_alloc.c:913 [inline]
free_page_is_bad mm/page_alloc.c:923 [inline]
free_pages_prepare mm/page_alloc.c:1119 [inline]
free_unref_page+0x72f/0x1080 mm/page_alloc.c:2659
page_frag_free+0x255/0x2a0 mm/page_frag_cache.c:169
__xdp_return+0x217/0xa90 net/core/xdp.c:389
bpf_xdp_shrink_data net/core/filter.c:4157 [inline]
bpf_xdp_frags_shrink_tail net/core/filter.c:4178 [inline]
____bpf_xdp_adjust_tail net/core/filter.c:4203 [inline]
bpf_xdp_adjust_tail+0xa6f/0x1070 net/core/filter.c:4196
bpf_prog_f476d5219b92964a+0x1e/0x20
__bpf_prog_run include/linux/filter.h:701 [inline]
bpf_prog_run_xdp include/net/xdp.h:513 [inline]
bpf_prog_run_generic_xdp+0x630/0x1510 net/core/dev.c:5005
netif_receive_generic_xdp net/core/dev.c:5118 [inline]
do_xdp_generic+0x70a/0xe70 net/core/dev.c:5180
__netif_receive_skb_core.constprop.0+0x1330/0x4470 net/core/dev.c:5524
__netif_receive_skb_one_core+0xb1/0x1e0 net/core/dev.c:5702
__netif_receive_skb+0x1d/0x160 net/core/dev.c:5817
netif_receive_skb_internal net/core/dev.c:5903 [inline]
netif_receive_skb+0x13f/0x7b0 net/core/dev.c:5962
tun_rx_batched.isra.0+0x3eb/0x730 drivers/net/tun.c:1574
tun_get_user+0x2a22/0x3e50 drivers/net/tun.c:2007
tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:2053
new_sync_write fs/read_write.c:586 [inline]
vfs_write+0x5ae/0x1150 fs/read_write.c:679
ksys_write+0x12b/0x250 fs/read_write.c:731
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f761ed847df
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:00007f761fc42000 EFLAGS: 00000293 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f761ef76080 RCX: 00007f761ed847df
RDX: 0000000000011dc0 RSI: 0000000020000200 RDI: 00000000000000c8
RBP: 00007f761ee01b08 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000011dc0 R11: 0000000000000293 R12: 0000000000000000
R13: 0000000000000001 R14: 00007f761ef76080 R15: 00007ffdb7fa9058
BUG: Bad page state in process syz.0.1119 pfn:7d60a
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff88807d60a500 pfn:0x7d60a
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000000000 dead000000000040 ffff888022eac000 0000000000000000
raw: ffff88807d60a500 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 11423, tgid 11417 (syz.0.1119), ts 567220636813, free_ts 566793289993
set_page_owner include/linux/page_owner.h:32 [inline]
post_alloc_hook+0x2d1/0x350 mm/page_alloc.c:1558
prep_new_page mm/page_alloc.c:1566 [inline]
get_page_from_freelist+0xfce/0x2f80 mm/page_alloc.c:3476
__alloc_pages_noprof+0x223/0x25b0 mm/page_alloc.c:4753
alloc_pages_bulk_noprof+0x72b/0x10b0 mm/page_alloc.c:4701
alloc_pages_bulk_array_node_noprof include/linux/gfp.h:239 [inline]
__page_pool_alloc_pages_slow+0x18f/0x770 net/core/page_pool.c:538
page_pool_alloc_netmem net/core/page_pool.c:590 [inline]
page_pool_alloc_netmem+0xc4/0x160 net/core/page_pool.c:577
page_pool_alloc_pages+0x1a/0x60 net/core/page_pool.c:597
page_pool_alloc include/net/page_pool/helpers.h:129 [inline]
page_pool_dev_alloc include/net/page_pool/helpers.h:167 [inline]
skb_pp_cow_data+0x72f/0xe80 net/core/skbuff.c:983
skb_cow_data_for_xdp+0x88/0xb0 net/core/skbuff.c:1017
netif_skb_check_for_xdp net/core/dev.c:5073 [inline]
netif_receive_generic_xdp net/core/dev.c:5112 [inline]
do_xdp_generic+0x3f1/0xe70 net/core/dev.c:5180
__netif_receive_skb_core.constprop.0+0x1330/0x4470 net/core/dev.c:5524
__netif_receive_skb_one_core+0xb1/0x1e0 net/core/dev.c:5702
__netif_receive_skb+0x1d/0x160 net/core/dev.c:5817
netif_receive_skb_internal net/core/dev.c:5903 [inline]
netif_receive_skb+0x13f/0x7b0 net/core/dev.c:5962
tun_rx_batched.isra.0+0x3eb/0x730 drivers/net/tun.c:1574
tun_get_user+0x2a22/0x3e50 drivers/net/tun.c:2007
page last free pid 11382 tgid 11379 stack trace:
reset_page_owner include/linux/page_owner.h:25 [inline]
free_pages_prepare mm/page_alloc.c:1127 [inline]
free_unref_folios+0xa7b/0x14f0 mm/page_alloc.c:2706
folios_put_refs+0x587/0x7b0 mm/swap.c:962
free_pages_and_swap_cache+0x36d/0x510 mm/swap_state.c:332
__tlb_batch_free_encoded_pages+0xf9/0x290 mm/mmu_gather.c:136
tlb_batch_pages_flush mm/mmu_gather.c:149 [inline]
tlb_flush_mmu_free mm/mmu_gather.c:366 [inline]
tlb_flush_mmu mm/mmu_gather.c:373 [inline]
tlb_finish_mmu+0x168/0x7b0 mm/mmu_gather.c:465
exit_mmap+0x3df/0xb20 mm/mmap.c:1685
__mmput+0x12a/0x4c0 kernel/fork.c:1348
mmput+0x62/0x70 kernel/fork.c:1370
exit_mm kernel/exit.c:570 [inline]
do_exit+0x9ba/0x2d70 kernel/exit.c:925
do_group_exit+0xd3/0x2a0 kernel/exit.c:1087
get_signal+0x24ed/0x26c0 kernel/signal.c:3036
arch_do_signal_or_restart+0x90/0x7e0 arch/x86/kernel/signal.c:337
exit_to_user_mode_loop kernel/entry/common.c:111 [inline]
exit_to_user_mode_prepare include/linux/entry-common.h:329 [inline]
__syscall_exit_to_user_mode_work kernel/entry/common.c:207 [inline]
syscall_exit_to_user_mode+0x150/0x2a0 kernel/entry/common.c:218
do_syscall_64+0xda/0x250 arch/x86/entry/common.c:89
entry_SYSCALL_64_after_hwframe+0x77/0x7f
Modules linked in:
CPU: 1 UID: 0 PID: 11423 Comm: syz.0.1119 Tainted: G B 6.13.0-rc7-syzkaller-00209-g9528d418de4d #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+0x16c/0x1f0 lib/dump_stack.c:120
bad_page+0xb3/0x1f0 mm/page_alloc.c:501
free_page_is_bad_report mm/page_alloc.c:913 [inline]
free_page_is_bad mm/page_alloc.c:923 [inline]
free_pages_prepare mm/page_alloc.c:1119 [inline]
free_unref_page+0x72f/0x1080 mm/page_alloc.c:2659
page_frag_free+0x255/0x2a0 mm/page_frag_cache.c:169
__xdp_return+0x217/0xa90 net/core/xdp.c:389
bpf_xdp_shrink_data net/core/filter.c:4157 [inline]
bpf_xdp_frags_shrink_tail net/core/filter.c:4178 [inline]
____bpf_xdp_adjust_tail net/core/filter.c:4203 [inline]
bpf_xdp_adjust_tail+0xa6f/0x1070 net/core/filter.c:4196
bpf_prog_f476d5219b92964a+0x1e/0x20
__bpf_prog_run include/linux/filter.h:701 [inline]
bpf_prog_run_xdp include/net/xdp.h:513 [inline]
bpf_prog_run_generic_xdp+0x630/0x1510 net/core/dev.c:5005
netif_receive_generic_xdp net/core/dev.c:5118 [inline]
do_xdp_generic+0x70a/0xe70 net/core/dev.c:5180
__netif_receive_skb_core.constprop.0+0x1330/0x4470 net/core/dev.c:5524
__netif_receive_skb_one_core+0xb1/0x1e0 net/core/dev.c:5702
__netif_receive_skb+0x1d/0x160 net/core/dev.c:5817
netif_receive_skb_internal net/core/dev.c:5903 [inline]
netif_receive_skb+0x13f/0x7b0 net/core/dev.c:5962
tun_rx_batched.isra.0+0x3eb/0x730 drivers/net/tun.c:1574
tun_get_user+0x2a22/0x3e50 drivers/net/tun.c:2007
tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:2053
new_sync_write fs/read_write.c:586 [inline]
vfs_write+0x5ae/0x1150 fs/read_write.c:679
ksys_write+0x12b/0x250 fs/read_write.c:731
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f761ed847df
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:00007f761fc42000 EFLAGS: 00000293 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f761ef76080 RCX: 00007f761ed847df
RDX: 0000000000011dc0 RSI: 0000000020000200 RDI: 00000000000000c8
RBP: 00007f761ee01b08 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000011dc0 R11: 0000000000000293 R12: 0000000000000000
R13: 0000000000000001 R14: 00007f761ef76080 R15: 00007ffdb7fa9058
BUG: Bad page state in process syz.0.1119 pfn:6a841
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff88806a841c80 pfn:0x6a841
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000000000 dead000000000040 ffff888022eac000 0000000000000000
raw: ffff88806a841c80 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 11423, tgid 11417 (syz.0.1119), ts 567220627071, free_ts 566793295065
set_page_owner include/linux/page_owner.h:32 [inline]
post_alloc_hook+0x2d1/0x350 mm/page_alloc.c:1558
prep_new_page mm/page_alloc.c:1566 [inline]
get_page_from_freelist+0xfce/0x2f80 mm/page_alloc.c:3476
__alloc_pages_noprof+0x223/0x25b0 mm/page_alloc.c:4753
alloc_pages_bulk_noprof+0x72b/0x10b0 mm/page_alloc.c:4701
alloc_pages_bulk_array_node_noprof include/linux/gfp.h:239 [inline]
__page_pool_alloc_pages_slow+0x18f/0x770 net/core/page_pool.c:538
page_pool_alloc_netmem net/core/page_pool.c:590 [inline]
page_pool_alloc_netmem+0xc4/0x160 net/core/page_pool.c:577
page_pool_alloc_pages+0x1a/0x60 net/core/page_pool.c:597
page_pool_alloc include/net/page_pool/helpers.h:129 [inline]
page_pool_dev_alloc include/net/page_pool/helpers.h:167 [inline]
skb_pp_cow_data+0x72f/0xe80 net/core/skbuff.c:983
skb_cow_data_for_xdp+0x88/0xb0 net/core/skbuff.c:1017
netif_skb_check_for_xdp net/core/dev.c:5073 [inline]
netif_receive_generic_xdp net/core/dev.c:5112 [inline]
do_xdp_generic+0x3f1/0xe70 net/core/dev.c:5180
__netif_receive_skb_core.constprop.0+0x1330/0x4470 net/core/dev.c:5524
__netif_receive_skb_one_core+0xb1/0x1e0 net/core/dev.c:5702
__netif_receive_skb+0x1d/0x160 net/core/dev.c:5817
netif_receive_skb_internal net/core/dev.c:5903 [inline]
netif_receive_skb+0x13f/0x7b0 net/core/dev.c:5962
tun_rx_batched.isra.0+0x3eb/0x730 drivers/net/tun.c:1574
tun_get_user+0x2a22/0x3e50 drivers/net/tun.c:2007
page last free pid 11382 tgid 11379 stack trace:
reset_page_owner include/linux/page_owner.h:25 [inline]
free_pages_prepare mm/page_alloc.c:1127 [inline]
free_unref_folios+0xa7b/0x14f0 mm/page_alloc.c:2706
folios_put_refs+0x587/0x7b0 mm/swap.c:962
free_pages_and_swap_cache+0x36d/0x510 mm/swap_state.c:332
__tlb_batch_free_encoded_pages+0xf9/0x290 mm/mmu_gather.c:136
tlb_batch_pages_flush mm/mmu_gather.c:149 [inline]
tlb_flush_mmu_free mm/mmu_gather.c:366 [inline]
tlb_flush_mmu mm/mmu_gather.c:373 [inline]
tlb_finish_mmu+0x168/0x7b0 mm/mmu_gather.c:465
exit_mmap+0x3df/0xb20 mm/mmap.c:1685
__mmput+0x12a/0x4c0 kernel/fork.c:1348
mmput+0x62/0x70 kernel/fork.c:1370
exit_mm kernel/exit.c:570 [inline]
do_exit+0x9ba/0x2d70 kernel/exit.c:925
do_group_exit+0xd3/0x2a0 kernel/exit.c:1087
get_signal+0x24ed/0x26c0 kernel/signal.c:3036
arch_do_signal_or_restart+0x90/0x7e0 arch/x86/kernel/signal.c:337
exit_to_user_mode_loop kernel/entry/common.c:111 [inline]
exit_to_user_mode_prepare include/linux/entry-common.h:329 [inline]
__syscall_exit_to_user_mode_work kernel/entry/common.c:207 [inline]
syscall_exit_to_user_mode+0x150/0x2a0 kernel/entry/common.c:218
do_syscall_64+0xda/0x250 arch/x86/entry/common.c:89
entry_SYSCALL_64_after_hwframe+0x77/0x7f
Modules linked in:
CPU: 1 UID: 0 PID: 11423 Comm: syz.0.1119 Tainted: G B 6.13.0-rc7-syzkaller-00209-g9528d418de4d #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+0x16c/0x1f0 lib/dump_stack.c:120
bad_page+0xb3/0x1f0 mm/page_alloc.c:501
free_page_is_bad_report mm/page_alloc.c:913 [inline]
free_page_is_bad mm/page_alloc.c:923 [inline]
free_pages_prepare mm/page_alloc.c:1119 [inline]
free_unref_page+0x72f/0x1080 mm/page_alloc.c:2659
page_frag_free+0x255/0x2a0 mm/page_frag_cache.c:169
__xdp_return+0x217/0xa90 net/core/xdp.c:389
bpf_xdp_shrink_data net/core/filter.c:4157 [inline]
bpf_xdp_frags_shrink_tail net/core/filter.c:4178 [inline]
____bpf_xdp_adjust_tail net/core/filter.c:4203 [inline]
bpf_xdp_adjust_tail+0xa6f/0x1070 net/core/filter.c:4196
bpf_prog_f476d5219b92964a+0x1e/0x20
__bpf_prog_run include/linux/filter.h:701 [inline]
bpf_prog_run_xdp include/net/xdp.h:513 [inline]
bpf_prog_run_generic_xdp+0x630/0x1510 net/core/dev.c:5005
netif_receive_generic_xdp net/core/dev.c:5118 [inline]
do_xdp_generic+0x70a/0xe70 net/core/dev.c:5180
__netif_receive_skb_core.constprop.0+0x1330/0x4470 net/core/dev.c:5524
__netif_receive_skb_one_core+0xb1/0x1e0 net/core/dev.c:5702
__netif_receive_skb+0x1d/0x160 net/core/dev.c:5817
netif_receive_skb_internal net/core/dev.c:5903 [inline]
netif_receive_skb+0x13f/0x7b0 net/core/dev.c:5962
tun_rx_batched.isra.0+0x3eb/0x730 drivers/net/tun.c:1574
tun_get_user+0x2a22/0x3e50 drivers/net/tun.c:2007
tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:2053
new_sync_write fs/read_write.c:586 [inline]
vfs_write+0x5ae/0x1150 fs/read_write.c:679
ksys_write+0x12b/0x250 fs/read_write.c:731
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f761ed847df
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:00007f761fc42000 EFLAGS: 00000293 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f761ef76080 RCX: 00007f761ed847df
RDX: 0000000000011dc0 RSI: 0000000020000200 RDI: 00000000000000c8
RBP: 00007f761ee01b08 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000011dc0 R11: 0000000000000293 R12: 0000000000000000
R13: 0000000000000001 R14: 00007f761ef76080 R15: 00007ffdb7fa9058
BUG: Bad page state in process syz.0.1119 pfn:5b3cb
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff88805b3cbf00 pfn:0x5b3cb
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000000000 dead000000000040 ffff888022eac000 0000000000000000
raw: ffff88805b3cbf00 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 11423, tgid 11417 (syz.0.1119), ts 567220617412, free_ts 566793298898
set_page_owner include/linux/page_owner.h:32 [inline]
post_alloc_hook+0x2d1/0x350 mm/page_alloc.c:1558
prep_new_page mm/page_alloc.c:1566 [inline]
get_page_from_freelist+0xfce/0x2f80 mm/page_alloc.c:3476
__alloc_pages_noprof+0x223/0x25b0 mm/page_alloc.c:4753
alloc_pages_bulk_noprof+0x72b/0x10b0 mm/page_alloc.c:4701
alloc_pages_bulk_array_node_noprof include/linux/gfp.h:239 [inline]
__page_pool_alloc_pages_slow+0x18f/0x770 net/core/page_pool.c:538
page_pool_alloc_netmem net/core/page_pool.c:590 [inline]
page_pool_alloc_netmem+0xc4/0x160 net/core/page_pool.c:577
page_pool_alloc_pages+0x1a/0x60 net/core/page_pool.c:597
page_pool_alloc include/net/page_pool/helpers.h:129 [inline]
page_pool_dev_alloc include/net/page_pool/helpers.h:167 [inline]
skb_pp_cow_data+0x72f/0xe80 net/core/skbuff.c:983
skb_cow_data_for_xdp+0x88/0xb0 net/core/skbuff.c:1017
netif_skb_check_for_xdp net/core/dev.c:5073 [inline]
netif_receive_generic_xdp net/core/dev.c:5112 [inline]
do_xdp_generic+0x3f1/0xe70 net/core/dev.c:5180
__netif_receive_skb_core.constprop.0+0x1330/0x4470 net/core/dev.c:5524
__netif_receive_skb_one_core+0xb1/0x1e0 net/core/dev.c:5702
__netif_receive_skb+0x1d/0x160 net/core/dev.c:5817
netif_receive_skb_internal net/core/dev.c:5903 [inline]
netif_receive_skb+0x13f/0x7b0 net/core/dev.c:5962
tun_rx_batched.isra.0+0x3eb/0x730 drivers/net/tun.c:1574
tun_get_user+0x2a22/0x3e50 drivers/net/tun.c:2007
page last free pid 11382 tgid 11379 stack trace:
reset_page_owner include/linux/page_owner.h:25 [inline]
free_pages_prepare mm/page_alloc.c:1127 [inline]
free_unref_folios+0xa7b/0x14f0 mm/page_alloc.c:2706
folios_put_refs+0x587/0x7b0 mm/swap.c:962
free_pages_and_swap_cache+0x36d/0x510 mm/swap_state.c:332
__tlb_batch_free_encoded_pages+0xf9/0x290 mm/mmu_gather.c:136
tlb_batch_pages_flush mm/mmu_gather.c:149 [inline]
tlb_flush_mmu_free mm/mmu_gather.c:366 [inline]
tlb_flush_mmu mm/mmu_gather.c:373 [inline]
tlb_finish_mmu+0x168/0x7b0 mm/mmu_gather.c:465
exit_mmap+0x3df/0xb20 mm/mmap.c:1685
__mmput+0x12a/0x4c0 kernel/fork.c:1348
mmput+0x62/0x70 kernel/fork.c:1370
exit_mm kernel/exit.c:570 [inline]
do_exit+0x9ba/0x2d70 kernel/exit.c:925
do_group_exit+0xd3/0x2a0 kernel/exit.c:1087
get_signal+0x24ed/0x26c0 kernel/signal.c:3036
arch_do_signal_or_restart+0x90/0x7e0 arch/x86/kernel/signal.c:337
exit_to_user_mode_loop kernel/entry/common.c:111 [inline]
exit_to_user_mode_prepare include/linux/entry-common.h:329 [inline]
__syscall_exit_to_user_mode_work kernel/entry/common.c:207 [inline]
syscall_exit_to_user_mode+0x150/0x2a0 kernel/entry/common.c:218
do_syscall_64+0xda/0x250 arch/x86/entry/common.c:89
entry_SYSCALL_64_after_hwframe+0x77/0x7f
Modules linked in:
CPU: 1 UID: 0 PID: 11423 Comm: syz.0.1119 Tainted: G B 6.13.0-rc7-syzkaller-00209-g9528d418de4d #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+0x16c/0x1f0 lib/dump_stack.c:120
bad_page+0xb3/0x1f0 mm/page_alloc.c:501
free_page_is_bad_report mm/page_alloc.c:913 [inline]
free_page_is_bad mm/page_alloc.c:923 [inline]
free_pages_prepare mm/page_alloc.c:1119 [inline]
free_unref_page+0x72f/0x1080 mm/page_alloc.c:2659
page_frag_free+0x255/0x2a0 mm/page_frag_cache.c:169
__xdp_return+0x217/0xa90 net/core/xdp.c:389
bpf_xdp_shrink_data net/core/filter.c:4157 [inline]
bpf_xdp_frags_shrink_tail net/core/filter.c:4178 [inline]
____bpf_xdp_adjust_tail net/core/filter.c:4203 [inline]
bpf_xdp_adjust_tail+0xa6f/0x1070 net/core/filter.c:4196
bpf_prog_f476d5219b92964a+0x1e/0x20
__bpf_prog_run include/linux/filter.h:701 [inline]
bpf_prog_run_xdp include/net/xdp.h:513 [inline]
bpf_prog_run_generic_xdp+0x630/0x1510 net/core/dev.c:5005
netif_receive_generic_xdp net/core/dev.c:5118 [inline]
do_xdp_generic+0x70a/0xe70 net/core/dev.c:5180
__netif_receive_skb_core.constprop.0+0x1330/0x4470 net/core/dev.c:5524
__netif_receive_skb_one_core+0xb1/0x1e0 net/core/dev.c:5702
__netif_receive_skb+0x1d/0x160 net/core/dev.c:5817
netif_receive_skb_internal net/core/dev.c:5903 [inline]
netif_receive_skb+0x13f/0x7b0 net/core/dev.c:5962
tun_rx_batched.isra.0+0x3eb/0x730 drivers/net/tun.c:1574
tun_get_user+0x2a22/0x3e50 drivers/net/tun.c:2007
tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:2053
new_sync_write fs/read_write.c:586 [inline]
vfs_write+0x5ae/0x1150 fs/read_write.c:679
ksys_write+0x12b/0x250 fs/read_write.c:731
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f761ed847df
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:00007f761fc42000 EFLAGS: 00000293 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f761ef76080 RCX: 00007f761ed847df
RDX: 0000000000011dc0 RSI: 0000000020000200 RDI: 00000000000000c8
RBP: 00007f761ee01b08 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000011dc0 R11: 0000000000000293 R12: 0000000000000000
R13: 0000000000000001 R14: 00007f761ef76080 R15: 00007ffdb7fa9058
BUG: Bad page state in process syz.0.1119 pfn:5b2b6
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff88805b2b6f00 pfn:0x5b2b6
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000000000 dead000000000040 ffff888022eac000 0000000000000000
raw: ffff88805b2b6f00 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 11423, tgid 11417 (syz.0.1119), ts 567220607573, free_ts 566793304032
set_page_owner include/linux/page_owner.h:32 [inline]
post_alloc_hook+0x2d1/0x350 mm/page_alloc.c:1558
prep_new_page mm/page_alloc.c:1566 [inline]
get_page_from_freelist+0xfce/0x2f80 mm/page_alloc.c:3476
__alloc_pages_noprof+0x223/0x25b0 mm/page_alloc.c:4753
alloc_pages_bulk_noprof+0x72b/0x10b0 mm/page_alloc.c:4701
alloc_pages_bulk_array_node_noprof include/linux/gfp.h:239 [inline]
__page_pool_alloc_pages_slow+0x18f/0x770 net/core/page_pool.c:538
page_pool_alloc_netmem net/core/page_pool.c:590 [inline]
page_pool_alloc_netmem+0xc4/0x160 net/core/page_pool.c:577
page_pool_alloc_pages+0x1a/0x60 net/core/page_pool.c:597
page_pool_alloc include/net/page_pool/helpers.h:129 [inline]
page_pool_dev_alloc include/net/page_pool/helpers.h:167 [inline]
skb_pp_cow_data+0x72f/0xe80 net/core/skbuff.c:983
skb_cow_data_for_xdp+0x88/0xb0 net/core/skbuff.c:1017
netif_skb_check_for_xdp net/core/dev.c:5073 [inline]
netif_receive_generic_xdp net/core/dev.c:5112 [inline]
do_xdp_generic+0x3f1/0xe70 net/core/dev.c:5180
__netif_receive_skb_core.constprop.0+0x1330/0x4470 net/core/dev.c:5524
__netif_receive_skb_one_core+0xb1/0x1e0 net/core/dev.c:5702
__netif_receive_skb+0x1d/0x160 net/core/dev.c:5817
netif_receive_skb_internal net/core/dev.c:5903 [inline]
netif_receive_skb+0x13f/0x7b0 net/core/dev.c:5962
tun_rx_batched.isra.0+0x3eb/0x730 drivers/net/tun.c:1574
tun_get_user+0x2a22/0x3e50 drivers/net/tun.c:2007
page last free pid 11382 tgid 11379 stack trace:
reset_page_owner include/linux/page_owner.h:25 [inline]
free_pages_prepare mm/page_alloc.c:1127 [inline]
free_unref_folios+0xa7b/0x14f0 mm/page_alloc.c:2706
folios_put_refs+0x587/0x7b0 mm/swap.c:962
free_pages_and_swap_cache+0x36d/0x510 mm/swap_state.c:332
__tlb_batch_free_encoded_pages+0xf9/0x290 mm/mmu_gather.c:136
tlb_batch_pages_flush mm/mmu_gather.c:149 [inline]
tlb_flush_mmu_free mm/mmu_gather.c:366 [inline]
tlb_flush_mmu mm/mmu_gather.c:373 [inline]
tlb_finish_mmu+0x168/0x7b0 mm/mmu_gather.c:465
exit_mmap+0x3df/0xb20 mm/mmap.c:1685
__mmput+0x12a/0x4c0 kernel/fork.c:1348
mmput+0x62/0x70 kernel/fork.c:1370
exit_mm kernel/exit.c:570 [inline]
do_exit+0x9ba/0x2d70 kernel/exit.c:925
do_group_exit+0xd3/0x2a0 kernel/exit.c:1087
get_signal+0x24ed/0x26c0 kernel/signal.c:3036
arch_do_signal_or_restart+0x90/0x7e0 arch/x86/kernel/signal.c:337
exit_to_user_mode_loop kernel/entry/common.c:111 [inline]
exit_to_user_mode_prepare include/linux/entry-common.h:329 [inline]
__syscall_exit_to_user_mode_work kernel/entry/common.c:207 [inline]
syscall_exit_to_user_mode+0x150/0x2a0 kernel/entry/common.c:218
do_syscall_64+0xda/0x250 arch/x86/entry/common.c:89
entry_SYSCALL_64_after_hwframe+0x77/0x7f
Modules linked in:
CPU: 1 UID: 0 PID: 11423 Comm: syz.0.1119 Tainted: G B 6.13.0-rc7-syzkaller-00209-g9528d418de4d #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+0x16c/0x1f0 lib/dump_stack.c:120
bad_page+0xb3/0x1f0 mm/page_alloc.c:501
free_page_is_bad_report mm/page_alloc.c:913 [inline]
free_page_is_bad mm/page_alloc.c:923 [inline]
free_pages_prepare mm/page_alloc.c:1119 [inline]
free_unref_page+0x72f/0x1080 mm/page_alloc.c:2659
page_frag_free+0x255/0x2a0 mm/page_frag_cache.c:169
__xdp_return+0x217/0xa90 net/core/xdp.c:389
bpf_xdp_shrink_data net/core/filter.c:4157 [inline]
bpf_xdp_frags_shrink_tail net/core/filter.c:4178 [inline]
____bpf_xdp_adjust_tail net/core/filter.c:4203 [inline]
bpf_xdp_adjust_tail+0xa6f/0x1070 net/core/filter.c:4196
bpf_prog_f476d5219b92964a+0x1e/0x20
__bpf_prog_run include/linux/filter.h:701 [inline]
bpf_prog_run_xdp include/net/xdp.h:513 [inline]
bpf_prog_run_generic_xdp+0x630/0x1510 net/core/dev.c:5005
netif_receive_generic_xdp net/core/dev.c:5118 [inline]
do_xdp_generic+0x70a/0xe70 net/core/dev.c:5180
__netif_receive_skb_core.constprop.0+0x1330/0x4470 net/core/dev.c:5524
__netif_receive_skb_one_core+0xb1/0x1e0 net/core/dev.c:5702
__netif_receive_skb+0x1d/0x160 net/core/dev.c:5817
netif_receive_skb_internal net/core/dev.c:5903 [inline]
netif_receive_skb+0x13f/0x7b0 net/core/dev.c:5962
tun_rx_batched.isra.0+0x3eb/0x730 drivers/net/tun.c:1574
tun_get_user+0x2a22/0x3e50 drivers/net/tun.c:2007
tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:2053
new_sync_write fs/read_write.c:586 [inline]
vfs_write+0x5ae/0x1150 fs/read_write.c:679
ksys_write+0x12b/0x250 fs/read_write.c:731
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f761ed847df
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:00007f761fc42000 EFLAGS: 00000293 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f761ef76080 RCX: 00007f761ed847df
RDX: 0000000000011dc0 RSI: 0000000020000200 RDI: 00000000000000c8
RBP: 00007f761ee01b08 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000011dc0 R11: 0000000000000293 R12: 0000000000000000
R13: 0000000000000001 R14: 00007f761ef76080 R15: 00007ffdb7fa9058
BUG: Bad page state in process syz.0.1119 pfn:5eb9d
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff88805eb9df00 pfn:0x5eb9d
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000000000 dead000000000040 ffff888022eac000 0000000000000000
raw: ffff88805eb9df00 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 11423, tgid 11417 (syz.0.1119), ts 567220597669, free_ts 566793308412
set_page_owner include/linux/page_owner.h:32 [inline]
post_alloc_hook+0x2d1/0x350 mm/page_alloc.c:1558
prep_new_page mm/page_alloc.c:1566 [inline]
get_page_from_freelist+0xfce/0x2f80 mm/page_alloc.c:3476
__alloc_pages_noprof+0x223/0x25b0 mm/page_alloc.c:4753
alloc_pages_bulk_noprof+0x72b/0x10b0 mm/page_alloc.c:4701
alloc_pages_bulk_array_node_noprof include/linux/gfp.h:239 [inline]
__page_pool_alloc_pages_slow+0x18f/0x770 net/core/page_pool.c:538
page_pool_alloc_netmem net/core/page_pool.c:590 [inline]
page_pool_alloc_netmem+0xc4/0x160 net/core/page_pool.c:577
page_pool_alloc_pages+0x1a/0x60 net/core/page_pool.c:597
page_pool_alloc include/net/page_pool/helpers.h:129 [inline]
page_pool_dev_alloc include/net/page_pool/helpers.h:167 [inline]
skb_pp_cow_data+0x72f/0xe80 net/core/skbuff.c:983
skb_cow_data_for_xdp+0x88/0xb0 net/core/skbuff.c:1017
netif_skb_check_for_xdp net/core/dev.c:5073 [inline]
netif_receive_generic_xdp net/core/dev.c:5112 [inline]
do_xdp_generic+0x3f1/0xe70 net/core/dev.c:5180
__netif_receive_skb_core.constprop.0+0x1330/0x4470 net/core/dev.c:5524
__netif_receive_skb_one_core+0xb1/0x1e0 net/core/dev.c:5702
__netif_receive_skb+0x1d/0x160 net/core/dev.c:5817
netif_receive_skb_internal net/core/dev.c:5903 [inline]
netif_receive_skb+0x13f/0x7b0 net/core/dev.c:5962
tun_rx_batched.isra.0+0x3eb/0x730 drivers/net/tun.c:1574
tun_get_user+0x2a22/0x3e50 drivers/net/tun.c:2007
page last free pid 11382 tgid 11379 stack trace:
reset_page_owner include/linux/page_owner.h:25 [inline]
free_pages_prepare mm/page_alloc.c:1127 [inline]
free_unref_folios+0xa7b/0x14f0 mm/page_alloc.c:2706
folios_put_refs+0x587/0x7b0 mm/swap.c:962
free_pages_and_swap_cache+0x36d/0x510 mm/swap_state.c:332
__tlb_batch_free_encoded_pages+0xf9/0x290 mm/mmu_gather.c:136
tlb_batch_pages_flush mm/mmu_gather.c:149 [inline]
tlb_flush_mmu_free mm/mmu_gather.c:366 [inline]
tlb_flush_mmu mm/mmu_gather.c:373 [inline]
tlb_finish_mmu+0x168/0x7b0 mm/mmu_gather.c:465
exit_mmap+0x3df/0xb20 mm/mmap.c:1685
__mmput+0x12a/0x4c0 kernel/fork.c:1348
mmput+0x62/0x70 kernel/fork.c:1370
exit_mm kernel/exit.c:570 [inline]
do_exit+0x9ba/0x2d70 kernel/exit.c:925
do_group_exit+0xd3/0x2a0 kernel/exit.c:1087
get_signal+0x24ed/0x26c0 kernel/signal.c:3036
arch_do_signal_or_restart+0x90/0x7e0 arch/x86/kernel/signal.c:337
exit_to_user_mode_loop kernel/entry/common.c:111 [inline]
exit_to_user_mode_prepare include/linux/entry-common.h:329 [inline]
__syscall_exit_to_user_mode_work kernel/entry/common.c:207 [inline]
syscall_exit_to_user_mode+0x150/0x2a0 kernel/entry/common.c:218
do_syscall_64+0xda/0x250 arch/x86/entry/common.c:89
entry_SYSCALL_64_after_hwframe+0x77/0x7f
Modules linked in:
CPU: 1 UID: 0 PID: 11423 Comm: syz.0.1119 Tainted: G B 6.13.0-rc7-syzkaller-00209-g9528d418de4d #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+0x16c/0x1f0 lib/dump_stack.c:120
bad_page+0xb3/0x1f0 mm/page_alloc.c:501
free_page_is_bad_report mm/page_alloc.c:913 [inline]
free_page_is_bad mm/page_alloc.c:923 [inline]
free_pages_prepare mm/page_alloc.c:1119 [inline]
free_unref_page+0x72f/0x1080 mm/page_alloc.c:2659
page_frag_free+0x255/0x2a0 mm/page_frag_cache.c:169
__xdp_return+0x217/0xa90 net/core/xdp.c:389
bpf_xdp_shrink_data net/core/filter.c:4157 [inline]
bpf_xdp_frags_shrink_tail net/core/filter.c:4178 [inline]
____bpf_xdp_adjust_tail net/core/filter.c:4203 [inline]
bpf_xdp_adjust_tail+0xa6f/0x1070 net/core/filter.c:4196
bpf_prog_f476d5219b92964a+0x1e/0x20
__bpf_prog_run include/linux/filter.h:701 [inline]
bpf_prog_run_xdp include/net/xdp.h:513 [inline]
bpf_prog_run_generic_xdp+0x630/0x1510 net/core/dev.c:5005
netif_receive_generic_xdp net/core/dev.c:5118 [inline]
do_xdp_generic+0x70a/0xe70 net/core/dev.c:5180
__netif_receive_skb_core.constprop.0+0x1330/0x4470 net/core/dev.c:5524
__netif_receive_skb_one_core+0xb1/0x1e0 net/core/dev.c:5702
__netif_receive_skb+0x1d/0x160 net/core/dev.c:5817
netif_receive_skb_internal net/core/dev.c:5903 [inline]
netif_receive_skb+0x13f/0x7b0 net/core/dev.c:5962
tun_rx_batched.isra.0+0x3eb/0x730 drivers/net/tun.c:1574
tun_get_user+0x2a22/0x3e50 drivers/net/tun.c:2007
tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:2053
new_sync_write fs/read_write.c:586 [inline]
vfs_write+0x5ae/0x1150 fs/read_write.c:679
ksys_write+0x12b/0x250 fs/read_write.c:731
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f761ed847df
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:00007f761fc42000 EFLAGS: 00000293 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f761ef76080 RCX: 00007f761ed847df
RDX: 0000000000011dc0 RSI: 0000000020000200 RDI: 00000000000000c8
RBP: 00007f761ee01b08 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000011dc0 R11: 0000000000000293 R12: 0000000000000000
R13: 0000000000000001 R14: 00007f761ef76080 R15: 00007ffdb7fa9058
BUG: Bad page state in process syz.0.1119 pfn:7b1f1
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff88807b1f1f00 pfn:0x7b1f1
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000000000 dead000000000040 ffff888022eac000 0000000000000000
raw: ffff88807b1f1f00 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 11423, tgid 11417 (syz.0.1119), ts 567220587613, free_ts 566793331862
set_page_owner include/linux/page_owner.h:32 [inline]
post_alloc_hook+0x2d1/0x350 mm/page_alloc.c:1558
prep_new_page mm/page_alloc.c:1566 [inline]
get_page_from_freelist+0xfce/0x2f80 mm/page_alloc.c:3476
__alloc_pages_noprof+0x223/0x25b0 mm/page_alloc.c:4753
alloc_pages_bulk_noprof+0x72b/0x10b0 mm/page_alloc.c:4701
alloc_pages_bulk_array_node_noprof include/linux/gfp.h:239 [inline]
__page_pool_alloc_pages_slow+0x18f/0x770 net/core/page_pool.c:538
page_pool_alloc_netmem net/core/page_pool.c:590 [inline]
page_pool_alloc_netmem+0xc4/0x160 net/core/page_pool.c:577
page_pool_alloc_pages+0x1a/0x60 net/core/page_pool.c:597
page_pool_alloc include/net/page_pool/helpers.h:129 [inline]
page_pool_dev_alloc include/net/page_pool/helpers.h:167 [inline]
skb_pp_cow_data+0x72f/0xe80 net/core/skbuff.c:983
skb_cow_data_for_xdp+0x88/0xb0 net/core/skbuff.c:1017
netif_skb_check_for_xdp net/core/dev.c:5073 [inline]
netif_receive_generic_xdp net/core/dev.c:5112 [inline]
do_xdp_generic+0x3f1/0xe70 net/core/dev.c:5180
__netif_receive_skb_core.constprop.0+0x1330/0x4470 net/core/dev.c:5524
__netif_receive_skb_one_core+0xb1/0x1e0 net/core/dev.c:5702
__netif_receive_skb+0x1d/0x160 net/core/dev.c:5817
netif_receive_skb_internal net/core/dev.c:5903 [inline]
netif_receive_skb+0x13f/0x7b0 net/core/dev.c:5962
tun_rx_batched.isra.0+0x3eb/0x730 drivers/net/tun.c:1574
tun_get_user+0x2a22/0x3e50 drivers/net/tun.c:2007
page last free pid 11382 tgid 11379 stack trace:
reset_page_owner include/linux/page_owner.h:25 [inline]
free_pages_prepare mm/page_alloc.c:1127 [inline]
free_unref_folios+0xa7b/0x14f0 mm/page_alloc.c:2706
folios_put_refs+0x587/0x7b0 mm/swap.c:962
free_pages_and_swap_cache+0x45f/0x510 mm/swap_state.c:335
__tlb_batch_free_encoded_pages+0xf9/0x290 mm/mmu_gather.c:136
tlb_batch_pages_flush mm/mmu_gather.c:149 [inline]
tlb_flush_mmu_free mm/mmu_gather.c:366 [inline]
tlb_flush_mmu mm/mmu_gather.c:373 [inline]
tlb_finish_mmu+0x168/0x7b0 mm/mmu_gather.c:465
exit_mmap+0x3df/0xb20 mm/mmap.c:1685
__mmput+0x12a/0x4c0 kernel/fork.c:1348
mmput+0x62/0x70 kernel/fork.c:1370
exit_mm kernel/exit.c:570 [inline]
do_exit+0x9ba/0x2d70 kernel/exit.c:925
do_group_exit+0xd3/0x2a0 kernel/exit.c:1087
get_signal+0x24ed/0x26c0 kernel/signal.c:3036
arch_do_signal_or_restart+0x90/0x7e0 arch/x86/kernel/signal.c:337
exit_to_user_mode_loop kernel/entry/common.c:111 [inline]
exit_to_user_mode_prepare include/linux/entry-common.h:329 [inline]
__syscall_exit_to_user_mode_work kernel/entry/common.c:207 [inline]
syscall_exit_to_user_mode+0x150/0x2a0 kernel/entry/common.c:218
do_syscall_64+0xda/0x250 arch/x86/entry/common.c:89
entry_SYSCALL_64_after_hwframe+0x77/0x7f
Modules linked in:
CPU: 1 UID: 0 PID: 11423 Comm: syz.0.1119 Tainted: G B 6.13.0-rc7-syzkaller-00209-g9528d418de4d #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+0x16c/0x1f0 lib/dump_stack.c:120
bad_page+0xb3/0x1f0 mm/page_alloc.c:501
free_page_is_bad_report mm/page_alloc.c:913 [inline]
free_page_is_bad mm/page_alloc.c:923 [inline]
free_pages_prepare mm/page_alloc.c:1119 [inline]
free_unref_page+0x72f/0x1080 mm/page_alloc.c:2659
page_frag_free+0x255/0x2a0 mm/page_frag_cache.c:169
__xdp_return+0x217/0xa90 net/core/xdp.c:389
bpf_xdp_shrink_data net/core/filter.c:4157 [inline]
bpf_xdp_frags_shrink_tail net/core/filter.c:4178 [inline]
____bpf_xdp_adjust_tail net/core/filter.c:4203 [inline]
bpf_xdp_adjust_tail+0xa6f/0x1070 net/core/filter.c:4196
bpf_prog_f476d5219b92964a+0x1e/0x20
__bpf_prog_run include/linux/filter.h:701 [inline]
bpf_prog_run_xdp include/net/xdp.h:513 [inline]
bpf_prog_run_generic_xdp+0x630/0x1510 net/core/dev.c:5005
netif_receive_generic_xdp net/core/dev.c:5118 [inline]
do_xdp_generic+0x70a/0xe70 net/core/dev.c:5180
__netif_receive_skb_core.constprop.0+0x1330/0x4470 net/core/dev.c:5524
__netif_receive_skb_one_core+0xb1/0x1e0 net/core/dev.c:5702
__netif_receive_skb+0x1d/0x160 net/core/dev.c:5817
netif_receive_skb_internal net/core/dev.c:5903 [inline]
netif_receive_skb+0x13f/0x7b0 net/core/dev.c:5962
tun_rx_batched.isra.0+0x3eb/0x730 drivers/net/tun.c:1574
tun_get_user+0x2a22/0x3e50 drivers/net/tun.c:2007
tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:2053
new_sync_write fs/read_write.c:586 [inline]
vfs_write+0x5ae/0x1150 fs/read_write.c:679
ksys_write+0x12b/0x250 fs/read_write.c:731
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f761ed847df
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:00007f761fc42000 EFLAGS: 00000293 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f761ef76080 RCX: 00007f761ed847df
RDX: 0000000000011dc0 RSI: 0000000020000200 RDI: 00000000000000c8
RBP: 00007f761ee01b08 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000011dc0 R11: 0000000000000293 R12: 0000000000000000
R13: 0000000000000001 R14: 00007f761ef76080 R15: 00007ffdb7fa9058
BUG: Bad page state in process syz.0.1119 pfn:6a832
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x20ffd pfn:0x6a832
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000000000 dead000000000040 ffff888022eac000 0000000000000000
raw: 0000000000020ffd 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 11423, tgid 11417 (syz.0.1119), ts 567220577526, free_ts 566793335759
set_page_owner include/linux/page_owner.h:32 [inline]
post_alloc_hook+0x2d1/0x350 mm/page_alloc.c:1558
prep_new_page mm/page_alloc.c:1566 [inline]
get_page_from_freelist+0xfce/0x2f80 mm/page_alloc.c:3476
__alloc_pages_noprof+0x223/0x25b0 mm/page_alloc.c:4753
alloc_pages_bulk_noprof+0x72b/0x10b0 mm/page_alloc.c:4701
alloc_pages_bulk_array_node_noprof include/linux/gfp.h:239 [inline]
__page_pool_alloc_pages_slow+0x18f/0x770 net/core/page_pool.c:538
page_pool_alloc_netmem net/core/page_pool.c:590 [inline]
page_pool_alloc_netmem+0xc4/0x160 net/core/page_pool.c:577
page_pool_alloc_pages+0x1a/0x60 net/core/page_pool.c:597
page_pool_alloc include/net/page_pool/helpers.h:129 [inline]
page_pool_dev_alloc include/net/page_pool/helpers.h:167 [inline]
skb_pp_cow_data+0x72f/0xe80 net/core/skbuff.c:983
skb_cow_data_for_xdp+0x88/0xb0 net/core/skbuff.c:1017
netif_skb_check_for_xdp net/core/dev.c:5073 [inline]
netif_receive_generic_xdp net/core/dev.c:5112 [inline]
do_xdp_generic+0x3f1/0xe70 net/core/dev.c:5180
__netif_receive_skb_core.constprop.0+0x1330/0x4470 net/core/dev.c:5524
__netif_receive_skb_one_core+0xb1/0x1e0 net/core/dev.c:5702
__netif_receive_skb+0x1d/0x160 net/core/dev.c:5817
netif_receive_skb_internal net/core/dev.c:5903 [inline]
netif_receive_skb+0x13f/0x7b0 net/core/dev.c:5962
tun_rx_batched.isra.0+0x3eb/0x730 drivers/net/tun.c:1574
tun_get_user+0x2a22/0x3e50 drivers/net/tun.c:2007
page last free pid 11382 tgid 11379 stack trace:
reset_page_owner include/linux/page_owner.h:25 [inline]
free_pages_prepare mm/page_alloc.c:1127 [inline]
free_unref_folios+0xa7b/0x14f0 mm/page_alloc.c:2706
folios_put_refs+0x587/0x7b0 mm/swap.c:962
free_pages_and_swap_cache+0x45f/0x510 mm/swap_state.c:335
__tlb_batch_free_encoded_pages+0xf9/0x290 mm/mmu_gather.c:136
tlb_batch_pages_flush mm/mmu_gather.c:149 [inline]
tlb_flush_mmu_free mm/mmu_gather.c:366 [inline]
tlb_flush_mmu mm/mmu_gather.c:373 [inline]
tlb_finish_mmu+0x168/0x7b0 mm/mmu_gather.c:465
exit_mmap+0x3df/0xb20 mm/mmap.c:1685
__mmput+0x12a/0x4c0 kernel/fork.c:1348
mmput+0x62/0x70 kernel/fork.c:1370
exit_mm kernel/exit.c:570 [inline]
do_exit+0x9ba/0x2d70 kernel/exit.c:925
do_group_exit+0xd3/0x2a0 kernel/exit.c:1087
get_signal+0x24ed/0x26c0 kernel/signal.c:3036
arch_do_signal_or_restart+0x90/0x7e0 arch/x86/kernel/signal.c:337
exit_to_user_mode_loop kernel/entry/common.c:111 [inline]
exit_to_user_mode_prepare include/linux/entry-common.h:329 [inline]
__syscall_exit_to_user_mode_work kernel/entry/common.c:207 [inline]
syscall_exit_to_user_mode+0x150/0x2a0 kernel/entry/common.c:218
do_syscall_64+0xda/0x250 arch/x86/entry/common.c:89
entry_SYSCALL_64_after_hwframe+0x77/0x7f
Modules linked in:
CPU: 1 UID: 0 PID: 11423 Comm: syz.0.1119 Tainted: G B 6.13.0-rc7-syzkaller-00209-g9528d418de4d #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+0x16c/0x1f0 lib/dump_stack.c:120
bad_page+0xb3/0x1f0 mm/page_alloc.c:501
free_page_is_bad_report mm/page_alloc.c:913 [inline]
free_page_is_bad mm/page_alloc.c:923 [inline]
free_pages_prepare mm/page_alloc.c:1119 [inline]
free_unref_page+0x72f/0x1080 mm/page_alloc.c:2659
page_frag_free+0x255/0x2a0 mm/page_frag_cache.c:169
__xdp_return+0x217/0xa90 net/core/xdp.c:389
bpf_xdp_shrink_data net/core/filter.c:4157 [inline]
bpf_xdp_frags_shrink_tail net/core/filter.c:4178 [inline]
____bpf_xdp_adjust_tail net/core/filter.c:4203 [inline]
bpf_xdp_adjust_tail+0xa6f/0x1070 net/core/filter.c:4196
bpf_prog_f476d5219b92964a+0x1e/0x20
__bpf_prog_run include/linux/filter.h:701 [inline]
bpf_prog_run_xdp include/net/xdp.h:513 [inline]
bpf_prog_run_generic_xdp+0x630/0x1510 net/core/dev.c:5005
netif_receive_generic_xdp net/core/dev.c:5118 [inline]
do_xdp_generic+0x70a/0xe70 net/core/dev.c:5180
__netif_receive_skb_core.constprop.0+0x1330/0x4470 net/core/dev.c:5524
__netif_receive_skb_one_core+0xb1/0x1e0 net/core/dev.c:5702
__netif_receive_skb+0x1d/0x160 net/core/dev.c:5817
netif_receive_skb_internal net/core/dev.c:5903 [inline]
netif_receive_skb+0x13f/0x7b0 net/core/dev.c:5962
tun_rx_batched.isra.0+0x3eb/0x730 drivers/net/tun.c:1574
tun_get_user+0x2a22/0x3e50 drivers/net/tun.c:2007
tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:2053
new_sync_write fs/read_write.c:586 [inline]
vfs_write+0x5ae/0x1150 fs/read_write.c:679
ksys_write+0x12b/0x250 fs/read_write.c:731
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f761ed847df
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:00007f761fc42000 EFLAGS: 00000293 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f761ef76080 RCX: 00007f761ed847df
RDX: 0000000000011dc0 RSI: 0000000020000200 RDI: 00000000000000c8
RBP: 00007f761ee01b08 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000011dc0 R11: 0000000000000293 R12: 0000000000000000
R13: 0000000000000001 R14: 00007f761ef76080 R15: 00007ffdb7fa9058
BUG: Bad page state in process syz.0.1119 pfn:295d6
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff8880295d6e88 pfn:0x295d6
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000000000 dead000000000040 ffff888022eac000 0000000000000000
raw: ffff8880295d6e88 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 11423, tgid 11417 (syz.0.1119), ts 567220567780, free_ts 566793339811
set_page_owner include/linux/page_owner.h:32 [inline]
post_alloc_hook+0x2d1/0x350 mm/page_alloc.c:1558
prep_new_page mm/page_alloc.c:1566 [inline]
get_page_from_freelist+0xfce/0x2f80 mm/page_alloc.c:3476
__alloc_pages_noprof+0x223/0x25b0 mm/page_alloc.c:4753
alloc_pages_bulk_noprof+0x72b/0x10b0 mm/page_alloc.c:4701
alloc_pages_bulk_array_node_noprof include/linux/gfp.h:239 [inline]
__page_pool_alloc_pages_slow+0x18f/0x770 net/core/page_pool.c:538
page_pool_alloc_netmem net/core/page_pool.c:590 [inline]
page_pool_alloc_netmem+0xc4/0x160 net/core/page_pool.c:577
page_pool_alloc_pages+0x1a/0x60 net/core/page_pool.c:597
page_pool_alloc include/net/page_pool/helpers.h:129 [inline]
page_pool_dev_alloc include/net/page_pool/helpers.h:167 [inline]
skb_pp_cow_data+0x72f/0xe80 net/core/skbuff.c:983
skb_cow_data_for_xdp+0x88/0xb0 net/core/skbuff.c:1017
netif_skb_check_for_xdp net/core/dev.c:5073 [inline]
netif_receive_generic_xdp net/core/dev.c:5112 [inline]
do_xdp_generic+0x3f1/0xe70 net/core/dev.c:5180
__netif_receive_skb_core.constprop.0+0x1330/0x4470 net/core/dev.c:5524
__netif_receive_skb_one_core+0xb1/0x1e0 net/core/dev.c:5702
__netif_receive_skb+0x1d/0x160 net/core/dev.c:5817
netif_receive_skb_internal net/core/dev.c:5903 [inline]
netif_receive_skb+0x13f/0x7b0 net/core/dev.c:5962
tun_rx_batched.isra.0+0x3eb/0x730 drivers/net/tun.c:1574
tun_get_user+0x2a22/0x3e50 drivers/net/tun.c:2007
page last free pid 11382 tgid 11379 stack trace:
reset_page_owner include/linux/page_owner.h:25 [inline]
free_pages_prepare mm/page_alloc.c:1127 [inline]
free_unref_folios+0xa7b/0x14f0 mm/page_alloc.c:2706
folios_put_refs+0x587/0x7b0 mm/swap.c:962
free_pages_and_swap_cache+0x45f/0x510 mm/swap_state.c:335
__tlb_batch_free_encoded_pages+0xf9/0x290 mm/mmu_gather.c:136
tlb_batch_pages_flush mm/mmu_gather.c:149 [inline]
tlb_flush_mmu_free mm/mmu_gather.c:366 [inline]
tlb_flush_mmu mm/mmu_gather.c:373 [inline]
tlb_finish_mmu+0x168/0x7b0 mm/mmu_gather.c:465
exit_mmap+0x3df/0xb20 mm/mmap.c:1685
__mmput+0x12a/0x4c0 kernel/fork.c:1348
mmput+0x62/0x70 kernel/fork.c:1370
exit_mm kernel/exit.c:570 [inline]
do_exit+0x9ba/0x2d70 kernel/exit.c:925
do_group_exit+0xd3/0x2a0 kernel/exit.c:1087
get_signal+0x24ed/0x26c0 kernel/signal.c:3036
arch_do_signal_or_restart+0x90/0x7e0 arch/x86/kernel/signal.c:337
exit_to_user_mode_loop kernel/entry/common.c:111 [inline]
exit_to_user_mode_prepare include/linux/entry-common.h:329 [inline]
__syscall_exit_to_user_mode_work kernel/entry/common.c:207 [inline]
syscall_exit_to_user_mode+0x150/0x2a0 kernel/entry/common.c:218
do_syscall_64+0xda/0x250 arch/x86/entry/common.c:89
entry_SYSCALL_64_after_hwframe+0x77/0x7f
Modules linked in:
CPU: 1 UID: 0 PID: 11423 Comm: syz.0.1119 Tainted: G B 6.13.0-rc7-syzkaller-00209-g9528d418de4d #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+0x16c/0x1f0 lib/dump_stack.c:120
bad_page+0xb3/0x1f0 mm/page_alloc.c:501
free_page_is_bad_report mm/page_alloc.c:913 [inline]
free_page_is_bad mm/page_alloc.c:923 [inline]
free_pages_prepare mm/page_alloc.c:1119 [inline]
free_unref_page+0x72f/0x1080 mm/page_alloc.c:2659
page_frag_free+0x255/0x2a0 mm/page_frag_cache.c:169
__xdp_return+0x217/0xa90 net/core/xdp.c:389
bpf_xdp_shrink_data net/core/filter.c:4157 [inline]
bpf_xdp_frags_shrink_tail net/core/filter.c:4178 [inline]
____bpf_xdp_adjust_tail net/core/filter.c:4203 [inline]
bpf_xdp_adjust_tail+0xa6f/0x1070 net/core/filter.c:4196
bpf_prog_f476d5219b92964a+0x1e/0x20
__bpf_prog_run include/linux/filter.h:701 [inline]
bpf_prog_run_xdp include/net/xdp.h:513 [inline]
bpf_prog_run_generic_xdp+0x630/0x1510 net/core/dev.c:5005
netif_receive_generic_xdp net/core/dev.c:5118 [inline]
do_xdp_generic+0x70a/0xe70 net/core/dev.c:5180
__netif_receive_skb_core.constprop.0+0x1330/0x4470 net/core/dev.c:5524
__netif_receive_skb_one_core+0xb1/0x1e0 net/core/dev.c:5702
__netif_receive_skb+0x1d/0x160 net/core/dev.c:5817
netif_receive_skb_internal net/core/dev.c:5903 [inline]
netif_receive_skb+0x13f/0x7b0 net/core/dev.c:5962
tun_rx_batched.isra.0+0x3eb/0x730 drivers/net/tun.c:1574
tun_get_user+0x2a22/0x3e50 drivers/net/tun.c:2007
tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:2053
new_sync_write fs/read_write.c:586 [inline]
vfs_write+0x5ae/0x1150 fs/read_write.c:679
ksys_write+0x12b/0x250 fs/read_write.c:731
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f761ed847df
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:00007f761fc42000 EFLAGS: 00000293 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f761ef76080 RCX: 00007f761ed847df
RDX: 0000000000011dc0 RSI: 0000000020000200 RDI: 00000000000000c8
RBP: 00007f761ee01b08 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000011dc0 R11: 0000000000000293 R12: 0000000000000000
R13: 0000000000000001 R14: 00007f761ef76080 R15: 00007ffdb7fa9058
BUG: Bad page state in process syz.0.1119 pfn:34ba0
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x34ba0
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000000000 dead000000000040 ffff888022eac000 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 11423, tgid 11417 (syz.0.1119), ts 567220557773, free_ts 566793343850
set_page_owner include/linux/page_owner.h:32 [inline]
post_alloc_hook+0x2d1/0x350 mm/page_alloc.c:1558
prep_new_page mm/page_alloc.c:1566 [inline]
get_page_from_freelist+0xfce/0x2f80 mm/page_alloc.c:3476
__alloc_pages_noprof+0x223/0x25b0 mm/page_alloc.c:4753
alloc_pages_bulk_noprof+0x72b/0x10b0 mm/page_alloc.c:4701
alloc_pages_bulk_array_node_noprof include/linux/gfp.h:239 [inline]
__page_pool_alloc_pages_slow+0x18f/0x770 net/core/page_pool.c:538
page_pool_alloc_netmem net/core/page_pool.c:590 [inline]
page_pool_alloc_netmem+0xc4/0x160 net/core/page_pool.c:577
page_pool_alloc_pages+0x1a/0x60 net/core/page_pool.c:597
page_pool_alloc include/net/page_pool/helpers.h:129 [inline]
page_pool_dev_alloc include/net/page_pool/helpers.h:167 [inline]
skb_pp_cow_data+0x72f/0xe80 net/core/skbuff.c:983
skb_cow_data_for_xdp+0x88/0xb0 net/core/skbuff.c:1017
netif_skb_check_for_xdp net/core/dev.c:5073 [inline]
netif_receive_generic_xdp net/core/dev.c:5112 [inline]
do_xdp_generic+0x3f1/0xe70 net/core/dev.c:5180
__netif_receive_skb_core.constprop.0+0x1330/0x4470 net/core/dev.c:5524
__netif_receive_skb_one_core+0xb1/0x1e0 net/core/dev.c:5702
__netif_receive_skb+0x1d/0x160 net/core/dev.c:5817
netif_receive_skb_internal net/core/dev.c:5903 [inline]
netif_receive_skb+0x13f/0x7b0 net/core/dev.c:5962
tun_rx_batched.isra.0+0x3eb/0x730 drivers/net/tun.c:1574
tun_get_user+0x2a22/0x3e50 drivers/net/tun.c:2007
page last free pid 11382 tgid 11379 stack trace:
reset_page_owner include/linux/page_owner.h:25 [inline]
free_pages_prepare mm/page_alloc.c:1127 [inline]
free_unref_folios+0xa7b/0x14f0 mm/page_alloc.c:2706
folios_put_refs+0x587/0x7b0 mm/swap.c:962
free_pages_and_swap_cache+0x45f/0x510 mm/swap_state.c:335
__tlb_batch_free_encoded_pages+0xf9/0x290 mm/mmu_gather.c:136
tlb_batch_pages_flush mm/mmu_gather.c:149 [inline]
tlb_flush_mmu_free mm/mmu_gather.c:366 [inline]
tlb_flush_mmu mm/mmu_gather.c:373 [inline]
tlb_finish_mmu+0x168/0x7b0 mm/mmu_gather.c:465
exit_mmap+0x3df/0xb20 mm/mmap.c:1685
__mmput+0x12a/0x4c0 kernel/fork.c:1348
mmput+0x62/0x70 kernel/fork.c:1370
exit_mm kernel/exit.c:570 [inline]
do_exit+0x9ba/0x2d70 kernel/exit.c:925
do_group_exit+0xd3/0x2a0 kernel/exit.c:1087
get_signal+0x24ed/0x26c0 kernel/signal.c:3036
arch_do_signal_or_restart+0x90/0x7e0 arch/x86/kernel/signal.c:337
exit_to_user_mode_loop kernel/entry/common.c:111 [inline]
exit_to_user_mode_prepare include/linux/entry-common.h:329 [inline]
__syscall_exit_to_user_mode_work kernel/entry/common.c:207 [inline]
syscall_exit_to_user_mode+0x150/0x2a0 kernel/entry/common.c:218
do_syscall_64+0xda/0x250 arch/x86/entry/common.c:89
entry_SYSCALL_64_after_hwframe+0x77/0x7f
Modules linked in:
CPU: 1 UID: 0 PID: 11423 Comm: syz.0.1119 Tainted: G B 6.13.0-rc7-syzkaller-00209-g9528d418de4d #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+0x16c/0x1f0 lib/dump_stack.c:120
bad_page+0xb3/0x1f0 mm/page_alloc.c:501
free_page_is_bad_report mm/page_alloc.c:913 [inline]
free_page_is_bad mm/page_alloc.c:923 [inline]
free_pages_prepare mm/page_alloc.c:1119 [inline]
free_unref_page+0x72f/0x1080 mm/page_alloc.c:2659
page_frag_free+0x255/0x2a0 mm/page_frag_cache.c:169
__xdp_return+0x217/0xa90 net/core/xdp.c:389
bpf_xdp_shrink_data net/core/filter.c:4157 [inline]
bpf_xdp_frags_shrink_tail net/core/filter.c:4178 [inline]
____bpf_xdp_adjust_tail net/core/filter.c:4203 [inline]
bpf_xdp_adjust_tail+0xa6f/0x1070 net/core/filter.c:4196
bpf_prog_f476d5219b92964a+0x1e/0x20
__bpf_prog_run include/linux/filter.h:701 [inline]
bpf_prog_run_xdp include/net/xdp.h:513 [inline]
bpf_prog_run_generic_xdp+0x630/0x1510 net/core/dev.c:5005
netif_receive_generic_xdp net/core/dev.c:5118 [inline]
do_xdp_generic+0x70a/0xe70 net/core/dev.c:5180
__netif_receive_skb_core.constprop.0+0x1330/0x4470 net/core/dev.c:5524
__netif_receive_skb_one_core+0xb1/0x1e0 net/core/dev.c:5702
__netif_receive_skb+0x1d/0x160 net/core/dev.c:5817
netif_receive_skb_internal net/core/dev.c:5903 [inline]
netif_receive_skb+0x13f/0x7b0 net/core/dev.c:5962
tun_rx_batched.isra.0+0x3eb/0x730 drivers/net/tun.c:1574
tun_get_user+0x2a22/0x3e50 drivers/net/tun.c:2007
tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:2053
new_sync_write fs/read_write.c:586 [inline]
vfs_write+0x5ae/0x1150 fs/read_write.c:679
ksys_write+0x12b/0x250 fs/read_write.c:731
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f761ed847df
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:00007f761fc42000 EFLAGS: 00000293 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f761ef76080 RCX: 00007f761ed847df
RDX: 0000000000011dc0 RSI: 0000000020000200 RDI: 00000000000000c8
RBP: 00007f761ee01b08 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000011dc0 R11: 0000000000000293 R12: 0000000000000000
R13: 0000000000000001 R14: 00007f761ef76080 R15: 00007ffdb7fa9058