BUG: Bad page state in process syz.0.15 pfn:2a2f5
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x4 pfn:0x2a2f5
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000000000 dead000000000040 ffff8880212ba000 0000000000000000
raw: 0000000000000004 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 6641, tgid 6640 (syz.0.15), ts 115439143016, free_ts 107891537976
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:538
page_pool_alloc_netmem net/core/page_pool.c:590 [inline]
page_pool_alloc_pages+0xd0/0x1c0 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+0xc43/0x1640 net/core/skbuff.c:983
netif_skb_check_for_xdp net/core/dev.c:5041 [inline]
netif_receive_generic_xdp net/core/dev.c:5080 [inline]
do_xdp_generic+0x505/0xd30 net/core/dev.c:5148
__netif_receive_skb_core+0x1ce9/0x4690 net/core/dev.c:5492
__netif_receive_skb_one_core net/core/dev.c:5670 [inline]
__netif_receive_skb+0x12f/0x650 net/core/dev.c:5785
netif_receive_skb_internal net/core/dev.c:5871 [inline]
netif_receive_skb+0x1e8/0x890 net/core/dev.c:5930
tun_rx_batched+0x1b7/0x8f0 drivers/net/tun.c:1550
tun_get_user+0x30cc/0x48a0 drivers/net/tun.c:2007
tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:2053
new_sync_write fs/read_write.c:586 [inline]
vfs_write+0xaeb/0xd30 fs/read_write.c:679
ksys_write+0x18f/0x2b0 fs/read_write.c:731
page last free pid 6291 tgid 6291 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
vfree+0x1c3/0x360 mm/vmalloc.c:3383
kcov_put kernel/kcov.c:439 [inline]
kcov_close+0x28/0x50 kernel/kcov.c:535
__fput+0x23c/0xa50 fs/file_table.c:450
task_work_run+0x24f/0x310 kernel/task_work.c:239
exit_task_work include/linux/task_work.h:43 [inline]
do_exit+0xa2a/0x28e0 kernel/exit.c:938
do_group_exit+0x207/0x2c0 kernel/exit.c:1087
get_signal+0x16b2/0x1750 kernel/signal.c:3017
arch_do_signal_or_restart+0x96/0x860 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+0xce/0x340 kernel/entry/common.c:218
do_syscall_64+0x100/0x230 arch/x86/entry/common.c:89
entry_SYSCALL_64_after_hwframe+0x77/0x7f
Modules linked in:
CPU: 1 UID: 0 PID: 6641 Comm: syz.0.15 Not tainted 6.13.0-rc4-syzkaller-g4bbf9020becb #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/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:4157 [inline]
bpf_xdp_frags_shrink_tail+0x3ee/0x7e0 net/core/filter.c:4178
____bpf_xdp_adjust_tail net/core/filter.c:4203 [inline]
bpf_xdp_adjust_tail+0x1c3/0x200 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:514 [inline]
bpf_prog_run_generic_xdp+0x686/0x1510 net/core/dev.c:4973
netif_receive_generic_xdp net/core/dev.c:5086 [inline]
do_xdp_generic+0x757/0xd30 net/core/dev.c:5148
__netif_receive_skb_core+0x1ce9/0x4690 net/core/dev.c:5492
__netif_receive_skb_one_core net/core/dev.c:5670 [inline]
__netif_receive_skb+0x12f/0x650 net/core/dev.c:5785
netif_receive_skb_internal net/core/dev.c:5871 [inline]
netif_receive_skb+0x1e8/0x890 net/core/dev.c:5930
tun_rx_batched+0x1b7/0x8f0 drivers/net/tun.c:1550
tun_get_user+0x30cc/0x48a0 drivers/net/tun.c:2007
tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:2053
new_sync_write fs/read_write.c:586 [inline]
vfs_write+0xaeb/0xd30 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:0x7f750c57e98f
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:00007f750d30a020 EFLAGS: 00000293 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f750c745fa0 RCX: 00007f750c57e98f
RDX: 0000000000011dc0 RSI: 00000000200004c0 RDI: 00000000000000c8
RBP: 00007f750c5f3cc8 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000011dc0 R11: 0000000000000293 R12: 0000000000000000
R13: 0000000000000000 R14: 00007f750c745fa0 R15: 00007ffd45d39c38
BUG: Bad page state in process syz.0.15 pfn:2a2f4
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff88802a2f4400 pfn:0x2a2f4
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000000000 dead000000000040 ffff8880212ba000 0000000000000000
raw: ffff88802a2f4400 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 6641, tgid 6640 (syz.0.15), ts 115439132034, free_ts 107891529921
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:538
page_pool_alloc_netmem net/core/page_pool.c:590 [inline]
page_pool_alloc_pages+0xd0/0x1c0 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+0xc43/0x1640 net/core/skbuff.c:983
netif_skb_check_for_xdp net/core/dev.c:5041 [inline]
netif_receive_generic_xdp net/core/dev.c:5080 [inline]
do_xdp_generic+0x505/0xd30 net/core/dev.c:5148
__netif_receive_skb_core+0x1ce9/0x4690 net/core/dev.c:5492
__netif_receive_skb_one_core net/core/dev.c:5670 [inline]
__netif_receive_skb+0x12f/0x650 net/core/dev.c:5785
netif_receive_skb_internal net/core/dev.c:5871 [inline]
netif_receive_skb+0x1e8/0x890 net/core/dev.c:5930
tun_rx_batched+0x1b7/0x8f0 drivers/net/tun.c:1550
tun_get_user+0x30cc/0x48a0 drivers/net/tun.c:2007
tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:2053
new_sync_write fs/read_write.c:586 [inline]
vfs_write+0xaeb/0xd30 fs/read_write.c:679
ksys_write+0x18f/0x2b0 fs/read_write.c:731
page last free pid 6291 tgid 6291 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
vfree+0x1c3/0x360 mm/vmalloc.c:3383
kcov_put kernel/kcov.c:439 [inline]
kcov_close+0x28/0x50 kernel/kcov.c:535
__fput+0x23c/0xa50 fs/file_table.c:450
task_work_run+0x24f/0x310 kernel/task_work.c:239
exit_task_work include/linux/task_work.h:43 [inline]
do_exit+0xa2a/0x28e0 kernel/exit.c:938
do_group_exit+0x207/0x2c0 kernel/exit.c:1087
get_signal+0x16b2/0x1750 kernel/signal.c:3017
arch_do_signal_or_restart+0x96/0x860 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+0xce/0x340 kernel/entry/common.c:218
do_syscall_64+0x100/0x230 arch/x86/entry/common.c:89
entry_SYSCALL_64_after_hwframe+0x77/0x7f
Modules linked in:
CPU: 1 UID: 0 PID: 6641 Comm: syz.0.15 Tainted: G B 6.13.0-rc4-syzkaller-g4bbf9020becb #0
Tainted: [B]=BAD_PAGE
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/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:4157 [inline]
bpf_xdp_frags_shrink_tail+0x3ee/0x7e0 net/core/filter.c:4178
____bpf_xdp_adjust_tail net/core/filter.c:4203 [inline]
bpf_xdp_adjust_tail+0x1c3/0x200 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:514 [inline]
bpf_prog_run_generic_xdp+0x686/0x1510 net/core/dev.c:4973
netif_receive_generic_xdp net/core/dev.c:5086 [inline]
do_xdp_generic+0x757/0xd30 net/core/dev.c:5148
__netif_receive_skb_core+0x1ce9/0x4690 net/core/dev.c:5492
__netif_receive_skb_one_core net/core/dev.c:5670 [inline]
__netif_receive_skb+0x12f/0x650 net/core/dev.c:5785
netif_receive_skb_internal net/core/dev.c:5871 [inline]
netif_receive_skb+0x1e8/0x890 net/core/dev.c:5930
tun_rx_batched+0x1b7/0x8f0 drivers/net/tun.c:1550
tun_get_user+0x30cc/0x48a0 drivers/net/tun.c:2007
tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:2053
new_sync_write fs/read_write.c:586 [inline]
vfs_write+0xaeb/0xd30 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:0x7f750c57e98f
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:00007f750d30a020 EFLAGS: 00000293 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f750c745fa0 RCX: 00007f750c57e98f
RDX: 0000000000011dc0 RSI: 00000000200004c0 RDI: 00000000000000c8
RBP: 00007f750c5f3cc8 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000011dc0 R11: 0000000000000293 R12: 0000000000000000
R13: 0000000000000000 R14: 00007f750c745fa0 R15: 00007ffd45d39c38
BUG: Bad page state in process syz.0.15 pfn:11eb3
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x2 pfn:0x11eb3
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000000000 dead000000000040 ffff8880212ba000 0000000000000000
raw: 0000000000000002 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 6641, tgid 6640 (syz.0.15), ts 115439121138, free_ts 107891596340
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:538
page_pool_alloc_netmem net/core/page_pool.c:590 [inline]
page_pool_alloc_pages+0xd0/0x1c0 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+0xc43/0x1640 net/core/skbuff.c:983
netif_skb_check_for_xdp net/core/dev.c:5041 [inline]
netif_receive_generic_xdp net/core/dev.c:5080 [inline]
do_xdp_generic+0x505/0xd30 net/core/dev.c:5148
__netif_receive_skb_core+0x1ce9/0x4690 net/core/dev.c:5492
__netif_receive_skb_one_core net/core/dev.c:5670 [inline]
__netif_receive_skb+0x12f/0x650 net/core/dev.c:5785
netif_receive_skb_internal net/core/dev.c:5871 [inline]
netif_receive_skb+0x1e8/0x890 net/core/dev.c:5930
tun_rx_batched+0x1b7/0x8f0 drivers/net/tun.c:1550
tun_get_user+0x30cc/0x48a0 drivers/net/tun.c:2007
tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:2053
new_sync_write fs/read_write.c:586 [inline]
vfs_write+0xaeb/0xd30 fs/read_write.c:679
ksys_write+0x18f/0x2b0 fs/read_write.c:731
page last free pid 6291 tgid 6291 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
vfree+0x1c3/0x360 mm/vmalloc.c:3383
kcov_put kernel/kcov.c:439 [inline]
kcov_close+0x28/0x50 kernel/kcov.c:535
__fput+0x23c/0xa50 fs/file_table.c:450
task_work_run+0x24f/0x310 kernel/task_work.c:239
exit_task_work include/linux/task_work.h:43 [inline]
do_exit+0xa2a/0x28e0 kernel/exit.c:938
do_group_exit+0x207/0x2c0 kernel/exit.c:1087
get_signal+0x16b2/0x1750 kernel/signal.c:3017
arch_do_signal_or_restart+0x96/0x860 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+0xce/0x340 kernel/entry/common.c:218
do_syscall_64+0x100/0x230 arch/x86/entry/common.c:89
entry_SYSCALL_64_after_hwframe+0x77/0x7f
Modules linked in:
CPU: 1 UID: 0 PID: 6641 Comm: syz.0.15 Tainted: G B 6.13.0-rc4-syzkaller-g4bbf9020becb #0
Tainted: [B]=BAD_PAGE
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/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:4157 [inline]
bpf_xdp_frags_shrink_tail+0x3ee/0x7e0 net/core/filter.c:4178
____bpf_xdp_adjust_tail net/core/filter.c:4203 [inline]
bpf_xdp_adjust_tail+0x1c3/0x200 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:514 [inline]
bpf_prog_run_generic_xdp+0x686/0x1510 net/core/dev.c:4973
netif_receive_generic_xdp net/core/dev.c:5086 [inline]
do_xdp_generic+0x757/0xd30 net/core/dev.c:5148
__netif_receive_skb_core+0x1ce9/0x4690 net/core/dev.c:5492
__netif_receive_skb_one_core net/core/dev.c:5670 [inline]
__netif_receive_skb+0x12f/0x650 net/core/dev.c:5785
netif_receive_skb_internal net/core/dev.c:5871 [inline]
netif_receive_skb+0x1e8/0x890 net/core/dev.c:5930
tun_rx_batched+0x1b7/0x8f0 drivers/net/tun.c:1550
tun_get_user+0x30cc/0x48a0 drivers/net/tun.c:2007
tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:2053
new_sync_write fs/read_write.c:586 [inline]
vfs_write+0xaeb/0xd30 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:0x7f750c57e98f
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:00007f750d30a020 EFLAGS: 00000293 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f750c745fa0 RCX: 00007f750c57e98f
RDX: 0000000000011dc0 RSI: 00000000200004c0 RDI: 00000000000000c8
RBP: 00007f750c5f3cc8 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000011dc0 R11: 0000000000000293 R12: 0000000000000000
R13: 0000000000000000 R14: 00007f750c745fa0 R15: 00007ffd45d39c38
BUG: Bad page state in process syz.0.15 pfn:11eb2
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff888011eb3800 pfn:0x11eb2
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000000000 dead000000000040 ffff8880212ba000 0000000000000000
raw: ffff888011eb3800 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 6641, tgid 6640 (syz.0.15), ts 115439111449, free_ts 107891586731
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:538
page_pool_alloc_netmem net/core/page_pool.c:590 [inline]
page_pool_alloc_pages+0xd0/0x1c0 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+0xc43/0x1640 net/core/skbuff.c:983
netif_skb_check_for_xdp net/core/dev.c:5041 [inline]
netif_receive_generic_xdp net/core/dev.c:5080 [inline]
do_xdp_generic+0x505/0xd30 net/core/dev.c:5148
__netif_receive_skb_core+0x1ce9/0x4690 net/core/dev.c:5492
__netif_receive_skb_one_core net/core/dev.c:5670 [inline]
__netif_receive_skb+0x12f/0x650 net/core/dev.c:5785
netif_receive_skb_internal net/core/dev.c:5871 [inline]
netif_receive_skb+0x1e8/0x890 net/core/dev.c:5930
tun_rx_batched+0x1b7/0x8f0 drivers/net/tun.c:1550
tun_get_user+0x30cc/0x48a0 drivers/net/tun.c:2007
tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:2053
new_sync_write fs/read_write.c:586 [inline]
vfs_write+0xaeb/0xd30 fs/read_write.c:679
ksys_write+0x18f/0x2b0 fs/read_write.c:731
page last free pid 6291 tgid 6291 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
vfree+0x1c3/0x360 mm/vmalloc.c:3383
kcov_put kernel/kcov.c:439 [inline]
kcov_close+0x28/0x50 kernel/kcov.c:535
__fput+0x23c/0xa50 fs/file_table.c:450
task_work_run+0x24f/0x310 kernel/task_work.c:239
exit_task_work include/linux/task_work.h:43 [inline]
do_exit+0xa2a/0x28e0 kernel/exit.c:938
do_group_exit+0x207/0x2c0 kernel/exit.c:1087
get_signal+0x16b2/0x1750 kernel/signal.c:3017
arch_do_signal_or_restart+0x96/0x860 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+0xce/0x340 kernel/entry/common.c:218
do_syscall_64+0x100/0x230 arch/x86/entry/common.c:89
entry_SYSCALL_64_after_hwframe+0x77/0x7f
Modules linked in:
CPU: 1 UID: 0 PID: 6641 Comm: syz.0.15 Tainted: G B 6.13.0-rc4-syzkaller-g4bbf9020becb #0
Tainted: [B]=BAD_PAGE
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/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:4157 [inline]
bpf_xdp_frags_shrink_tail+0x3ee/0x7e0 net/core/filter.c:4178
____bpf_xdp_adjust_tail net/core/filter.c:4203 [inline]
bpf_xdp_adjust_tail+0x1c3/0x200 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:514 [inline]
bpf_prog_run_generic_xdp+0x686/0x1510 net/core/dev.c:4973
netif_receive_generic_xdp net/core/dev.c:5086 [inline]
do_xdp_generic+0x757/0xd30 net/core/dev.c:5148
__netif_receive_skb_core+0x1ce9/0x4690 net/core/dev.c:5492
__netif_receive_skb_one_core net/core/dev.c:5670 [inline]
__netif_receive_skb+0x12f/0x650 net/core/dev.c:5785
netif_receive_skb_internal net/core/dev.c:5871 [inline]
netif_receive_skb+0x1e8/0x890 net/core/dev.c:5930
tun_rx_batched+0x1b7/0x8f0 drivers/net/tun.c:1550
tun_get_user+0x30cc/0x48a0 drivers/net/tun.c:2007
tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:2053
new_sync_write fs/read_write.c:586 [inline]
vfs_write+0xaeb/0xd30 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:0x7f750c57e98f
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:00007f750d30a020 EFLAGS: 00000293 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f750c745fa0 RCX: 00007f750c57e98f
RDX: 0000000000011dc0 RSI: 00000000200004c0 RDI: 00000000000000c8
RBP: 00007f750c5f3cc8 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000011dc0 R11: 0000000000000293 R12: 0000000000000000
R13: 0000000000000000 R14: 00007f750c745fa0 R15: 00007ffd45d39c38
BUG: Bad page state in process syz.0.15 pfn:11eb1
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x4 pfn:0x11eb1
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000000000 dead000000000040 ffff8880212ba000 0000000000000000
raw: 0000000000000004 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 6641, tgid 6640 (syz.0.15), ts 115439100801, free_ts 107891576260
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:538
page_pool_alloc_netmem net/core/page_pool.c:590 [inline]
page_pool_alloc_pages+0xd0/0x1c0 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+0xc43/0x1640 net/core/skbuff.c:983
netif_skb_check_for_xdp net/core/dev.c:5041 [inline]
netif_receive_generic_xdp net/core/dev.c:5080 [inline]
do_xdp_generic+0x505/0xd30 net/core/dev.c:5148
__netif_receive_skb_core+0x1ce9/0x4690 net/core/dev.c:5492
__netif_receive_skb_one_core net/core/dev.c:5670 [inline]
__netif_receive_skb+0x12f/0x650 net/core/dev.c:5785
netif_receive_skb_internal net/core/dev.c:5871 [inline]
netif_receive_skb+0x1e8/0x890 net/core/dev.c:5930
tun_rx_batched+0x1b7/0x8f0 drivers/net/tun.c:1550
tun_get_user+0x30cc/0x48a0 drivers/net/tun.c:2007
tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:2053
new_sync_write fs/read_write.c:586 [inline]
vfs_write+0xaeb/0xd30 fs/read_write.c:679
ksys_write+0x18f/0x2b0 fs/read_write.c:731
page last free pid 6291 tgid 6291 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
vfree+0x1c3/0x360 mm/vmalloc.c:3383
kcov_put kernel/kcov.c:439 [inline]
kcov_close+0x28/0x50 kernel/kcov.c:535
__fput+0x23c/0xa50 fs/file_table.c:450
task_work_run+0x24f/0x310 kernel/task_work.c:239
exit_task_work include/linux/task_work.h:43 [inline]
do_exit+0xa2a/0x28e0 kernel/exit.c:938
do_group_exit+0x207/0x2c0 kernel/exit.c:1087
get_signal+0x16b2/0x1750 kernel/signal.c:3017
arch_do_signal_or_restart+0x96/0x860 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+0xce/0x340 kernel/entry/common.c:218
do_syscall_64+0x100/0x230 arch/x86/entry/common.c:89
entry_SYSCALL_64_after_hwframe+0x77/0x7f
Modules linked in:
CPU: 1 UID: 0 PID: 6641 Comm: syz.0.15 Tainted: G B 6.13.0-rc4-syzkaller-g4bbf9020becb #0
Tainted: [B]=BAD_PAGE
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/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:4157 [inline]
bpf_xdp_frags_shrink_tail+0x3ee/0x7e0 net/core/filter.c:4178
____bpf_xdp_adjust_tail net/core/filter.c:4203 [inline]
bpf_xdp_adjust_tail+0x1c3/0x200 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:514 [inline]
bpf_prog_run_generic_xdp+0x686/0x1510 net/core/dev.c:4973
netif_receive_generic_xdp net/core/dev.c:5086 [inline]
do_xdp_generic+0x757/0xd30 net/core/dev.c:5148
__netif_receive_skb_core+0x1ce9/0x4690 net/core/dev.c:5492
__netif_receive_skb_one_core net/core/dev.c:5670 [inline]
__netif_receive_skb+0x12f/0x650 net/core/dev.c:5785
netif_receive_skb_internal net/core/dev.c:5871 [inline]
netif_receive_skb+0x1e8/0x890 net/core/dev.c:5930
tun_rx_batched+0x1b7/0x8f0 drivers/net/tun.c:1550
tun_get_user+0x30cc/0x48a0 drivers/net/tun.c:2007
tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:2053
new_sync_write fs/read_write.c:586 [inline]
vfs_write+0xaeb/0xd30 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:0x7f750c57e98f
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:00007f750d30a020 EFLAGS: 00000293 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f750c745fa0 RCX: 00007f750c57e98f
RDX: 0000000000011dc0 RSI: 00000000200004c0 RDI: 00000000000000c8
RBP: 00007f750c5f3cc8 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000011dc0 R11: 0000000000000293 R12: 0000000000000000
R13: 0000000000000000 R14: 00007f750c745fa0 R15: 00007ffd45d39c38
BUG: Bad page state in process syz.0.15 pfn:11eb0
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff888011eb3400 pfn:0x11eb0
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000000000 dead000000000040 ffff8880212ba000 0000000000000000
raw: ffff888011eb3400 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 6641, tgid 6640 (syz.0.15), ts 115439090899, free_ts 107891566304
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:538
page_pool_alloc_netmem net/core/page_pool.c:590 [inline]
page_pool_alloc_pages+0xd0/0x1c0 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+0xc43/0x1640 net/core/skbuff.c:983
netif_skb_check_for_xdp net/core/dev.c:5041 [inline]
netif_receive_generic_xdp net/core/dev.c:5080 [inline]
do_xdp_generic+0x505/0xd30 net/core/dev.c:5148
__netif_receive_skb_core+0x1ce9/0x4690 net/core/dev.c:5492
__netif_receive_skb_one_core net/core/dev.c:5670 [inline]
__netif_receive_skb+0x12f/0x650 net/core/dev.c:5785
netif_receive_skb_internal net/core/dev.c:5871 [inline]
netif_receive_skb+0x1e8/0x890 net/core/dev.c:5930
tun_rx_batched+0x1b7/0x8f0 drivers/net/tun.c:1550
tun_get_user+0x30cc/0x48a0 drivers/net/tun.c:2007
tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:2053
new_sync_write fs/read_write.c:586 [inline]
vfs_write+0xaeb/0xd30 fs/read_write.c:679
ksys_write+0x18f/0x2b0 fs/read_write.c:731
page last free pid 6291 tgid 6291 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
vfree+0x1c3/0x360 mm/vmalloc.c:3383
kcov_put kernel/kcov.c:439 [inline]
kcov_close+0x28/0x50 kernel/kcov.c:535
__fput+0x23c/0xa50 fs/file_table.c:450
task_work_run+0x24f/0x310 kernel/task_work.c:239
exit_task_work include/linux/task_work.h:43 [inline]
do_exit+0xa2a/0x28e0 kernel/exit.c:938
do_group_exit+0x207/0x2c0 kernel/exit.c:1087
get_signal+0x16b2/0x1750 kernel/signal.c:3017
arch_do_signal_or_restart+0x96/0x860 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+0xce/0x340 kernel/entry/common.c:218
do_syscall_64+0x100/0x230 arch/x86/entry/common.c:89
entry_SYSCALL_64_after_hwframe+0x77/0x7f
Modules linked in:
CPU: 1 UID: 0 PID: 6641 Comm: syz.0.15 Tainted: G B 6.13.0-rc4-syzkaller-g4bbf9020becb #0
Tainted: [B]=BAD_PAGE
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/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:4157 [inline]
bpf_xdp_frags_shrink_tail+0x3ee/0x7e0 net/core/filter.c:4178
____bpf_xdp_adjust_tail net/core/filter.c:4203 [inline]
bpf_xdp_adjust_tail+0x1c3/0x200 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:514 [inline]
bpf_prog_run_generic_xdp+0x686/0x1510 net/core/dev.c:4973
netif_receive_generic_xdp net/core/dev.c:5086 [inline]
do_xdp_generic+0x757/0xd30 net/core/dev.c:5148
__netif_receive_skb_core+0x1ce9/0x4690 net/core/dev.c:5492
__netif_receive_skb_one_core net/core/dev.c:5670 [inline]
__netif_receive_skb+0x12f/0x650 net/core/dev.c:5785
netif_receive_skb_internal net/core/dev.c:5871 [inline]
netif_receive_skb+0x1e8/0x890 net/core/dev.c:5930
tun_rx_batched+0x1b7/0x8f0 drivers/net/tun.c:1550
tun_get_user+0x30cc/0x48a0 drivers/net/tun.c:2007
tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:2053
new_sync_write fs/read_write.c:586 [inline]
vfs_write+0xaeb/0xd30 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:0x7f750c57e98f
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:00007f750d30a020 EFLAGS: 00000293 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f750c745fa0 RCX: 00007f750c57e98f
RDX: 0000000000011dc0 RSI: 00000000200004c0 RDI: 00000000000000c8
RBP: 00007f750c5f3cc8 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000011dc0 R11: 0000000000000293 R12: 0000000000000000
R13: 0000000000000000 R14: 00007f750c745fa0 R15: 00007ffd45d39c38
BUG: Bad page state in process syz.0.15 pfn:2453b
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x2 pfn:0x2453b
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000000000 dead000000000040 ffff8880212ba000 0000000000000000
raw: 0000000000000002 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 6641, tgid 6640 (syz.0.15), ts 115439081146, free_ts 107891635444
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:538
page_pool_alloc_netmem net/core/page_pool.c:590 [inline]
page_pool_alloc_pages+0xd0/0x1c0 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+0xc43/0x1640 net/core/skbuff.c:983
netif_skb_check_for_xdp net/core/dev.c:5041 [inline]
netif_receive_generic_xdp net/core/dev.c:5080 [inline]
do_xdp_generic+0x505/0xd30 net/core/dev.c:5148
__netif_receive_skb_core+0x1ce9/0x4690 net/core/dev.c:5492
__netif_receive_skb_one_core net/core/dev.c:5670 [inline]
__netif_receive_skb+0x12f/0x650 net/core/dev.c:5785
netif_receive_skb_internal net/core/dev.c:5871 [inline]
netif_receive_skb+0x1e8/0x890 net/core/dev.c:5930
tun_rx_batched+0x1b7/0x8f0 drivers/net/tun.c:1550
tun_get_user+0x30cc/0x48a0 drivers/net/tun.c:2007
tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:2053
new_sync_write fs/read_write.c:586 [inline]
vfs_write+0xaeb/0xd30 fs/read_write.c:679
ksys_write+0x18f/0x2b0 fs/read_write.c:731
page last free pid 6291 tgid 6291 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
vfree+0x1c3/0x360 mm/vmalloc.c:3383
kcov_put kernel/kcov.c:439 [inline]
kcov_close+0x28/0x50 kernel/kcov.c:535
__fput+0x23c/0xa50 fs/file_table.c:450
task_work_run+0x24f/0x310 kernel/task_work.c:239
exit_task_work include/linux/task_work.h:43 [inline]
do_exit+0xa2a/0x28e0 kernel/exit.c:938
do_group_exit+0x207/0x2c0 kernel/exit.c:1087
get_signal+0x16b2/0x1750 kernel/signal.c:3017
arch_do_signal_or_restart+0x96/0x860 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+0xce/0x340 kernel/entry/common.c:218
do_syscall_64+0x100/0x230 arch/x86/entry/common.c:89
entry_SYSCALL_64_after_hwframe+0x77/0x7f
Modules linked in:
CPU: 1 UID: 0 PID: 6641 Comm: syz.0.15 Tainted: G B 6.13.0-rc4-syzkaller-g4bbf9020becb #0
Tainted: [B]=BAD_PAGE
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/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:4157 [inline]
bpf_xdp_frags_shrink_tail+0x3ee/0x7e0 net/core/filter.c:4178
____bpf_xdp_adjust_tail net/core/filter.c:4203 [inline]
bpf_xdp_adjust_tail+0x1c3/0x200 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:514 [inline]
bpf_prog_run_generic_xdp+0x686/0x1510 net/core/dev.c:4973
netif_receive_generic_xdp net/core/dev.c:5086 [inline]
do_xdp_generic+0x757/0xd30 net/core/dev.c:5148
__netif_receive_skb_core+0x1ce9/0x4690 net/core/dev.c:5492
__netif_receive_skb_one_core net/core/dev.c:5670 [inline]
__netif_receive_skb+0x12f/0x650 net/core/dev.c:5785
netif_receive_skb_internal net/core/dev.c:5871 [inline]
netif_receive_skb+0x1e8/0x890 net/core/dev.c:5930
tun_rx_batched+0x1b7/0x8f0 drivers/net/tun.c:1550
tun_get_user+0x30cc/0x48a0 drivers/net/tun.c:2007
tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:2053
new_sync_write fs/read_write.c:586 [inline]
vfs_write+0xaeb/0xd30 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:0x7f750c57e98f
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:00007f750d30a020 EFLAGS: 00000293 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f750c745fa0 RCX: 00007f750c57e98f
RDX: 0000000000011dc0 RSI: 00000000200004c0 RDI: 00000000000000c8
RBP: 00007f750c5f3cc8 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000011dc0 R11: 0000000000000293 R12: 0000000000000000
R13: 0000000000000000 R14: 00007f750c745fa0 R15: 00007ffd45d39c38
BUG: Bad page state in process syz.0.15 pfn:2453a
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff88802453be00 pfn:0x2453a
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000000000 dead000000000040 ffff8880212ba000 0000000000000000
raw: ffff88802453be00 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 6641, tgid 6640 (syz.0.15), ts 115439071442, free_ts 107891626152
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:538
page_pool_alloc_netmem net/core/page_pool.c:590 [inline]
page_pool_alloc_pages+0xd0/0x1c0 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+0xc43/0x1640 net/core/skbuff.c:983
netif_skb_check_for_xdp net/core/dev.c:5041 [inline]
netif_receive_generic_xdp net/core/dev.c:5080 [inline]
do_xdp_generic+0x505/0xd30 net/core/dev.c:5148
__netif_receive_skb_core+0x1ce9/0x4690 net/core/dev.c:5492
__netif_receive_skb_one_core net/core/dev.c:5670 [inline]
__netif_receive_skb+0x12f/0x650 net/core/dev.c:5785
netif_receive_skb_internal net/core/dev.c:5871 [inline]
netif_receive_skb+0x1e8/0x890 net/core/dev.c:5930
tun_rx_batched+0x1b7/0x8f0 drivers/net/tun.c:1550
tun_get_user+0x30cc/0x48a0 drivers/net/tun.c:2007
tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:2053
new_sync_write fs/read_write.c:586 [inline]
vfs_write+0xaeb/0xd30 fs/read_write.c:679
ksys_write+0x18f/0x2b0 fs/read_write.c:731
page last free pid 6291 tgid 6291 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
vfree+0x1c3/0x360 mm/vmalloc.c:3383
kcov_put kernel/kcov.c:439 [inline]
kcov_close+0x28/0x50 kernel/kcov.c:535
__fput+0x23c/0xa50 fs/file_table.c:450
task_work_run+0x24f/0x310 kernel/task_work.c:239
exit_task_work include/linux/task_work.h:43 [inline]
do_exit+0xa2a/0x28e0 kernel/exit.c:938
do_group_exit+0x207/0x2c0 kernel/exit.c:1087
get_signal+0x16b2/0x1750 kernel/signal.c:3017
arch_do_signal_or_restart+0x96/0x860 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+0xce/0x340 kernel/entry/common.c:218
do_syscall_64+0x100/0x230 arch/x86/entry/common.c:89
entry_SYSCALL_64_after_hwframe+0x77/0x7f
Modules linked in:
CPU: 1 UID: 0 PID: 6641 Comm: syz.0.15 Tainted: G B 6.13.0-rc4-syzkaller-g4bbf9020becb #0
Tainted: [B]=BAD_PAGE
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/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:4157 [inline]
bpf_xdp_frags_shrink_tail+0x3ee/0x7e0 net/core/filter.c:4178
____bpf_xdp_adjust_tail net/core/filter.c:4203 [inline]
bpf_xdp_adjust_tail+0x1c3/0x200 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:514 [inline]
bpf_prog_run_generic_xdp+0x686/0x1510 net/core/dev.c:4973
netif_receive_generic_xdp net/core/dev.c:5086 [inline]
do_xdp_generic+0x757/0xd30 net/core/dev.c:5148
__netif_receive_skb_core+0x1ce9/0x4690 net/core/dev.c:5492
__netif_receive_skb_one_core net/core/dev.c:5670 [inline]
__netif_receive_skb+0x12f/0x650 net/core/dev.c:5785
netif_receive_skb_internal net/core/dev.c:5871 [inline]
netif_receive_skb+0x1e8/0x890 net/core/dev.c:5930
tun_rx_batched+0x1b7/0x8f0 drivers/net/tun.c:1550
tun_get_user+0x30cc/0x48a0 drivers/net/tun.c:2007
tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:2053
new_sync_write fs/read_write.c:586 [inline]
vfs_write+0xaeb/0xd30 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:0x7f750c57e98f
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:00007f750d30a020 EFLAGS: 00000293 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f750c745fa0 RCX: 00007f750c57e98f
RDX: 0000000000011dc0 RSI: 00000000200004c0 RDI: 00000000000000c8
RBP: 00007f750c5f3cc8 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000011dc0 R11: 0000000000000293 R12: 0000000000000000
R13: 0000000000000000 R14: 00007f750c745fa0 R15: 00007ffd45d39c38
BUG: Bad page state in process syz.0.15 pfn:24539
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x4 pfn:0x24539
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000000000 dead000000000040 ffff8880212ba000 0000000000000000
raw: 0000000000000004 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 6641, tgid 6640 (syz.0.15), ts 115439060827, free_ts 107891616507
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:538
page_pool_alloc_netmem net/core/page_pool.c:590 [inline]
page_pool_alloc_pages+0xd0/0x1c0 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+0xc43/0x1640 net/core/skbuff.c:983
netif_skb_check_for_xdp net/core/dev.c:5041 [inline]
netif_receive_generic_xdp net/core/dev.c:5080 [inline]
do_xdp_generic+0x505/0xd30 net/core/dev.c:5148
__netif_receive_skb_core+0x1ce9/0x4690 net/core/dev.c:5492
__netif_receive_skb_one_core net/core/dev.c:5670 [inline]
__netif_receive_skb+0x12f/0x650 net/core/dev.c:5785
netif_receive_skb_internal net/core/dev.c:5871 [inline]
netif_receive_skb+0x1e8/0x890 net/core/dev.c:5930
tun_rx_batched+0x1b7/0x8f0 drivers/net/tun.c:1550
tun_get_user+0x30cc/0x48a0 drivers/net/tun.c:2007
tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:2053
new_sync_write fs/read_write.c:586 [inline]
vfs_write+0xaeb/0xd30 fs/read_write.c:679
ksys_write+0x18f/0x2b0 fs/read_write.c:731
page last free pid 6291 tgid 6291 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
vfree+0x1c3/0x360 mm/vmalloc.c:3383
kcov_put kernel/kcov.c:439 [inline]
kcov_close+0x28/0x50 kernel/kcov.c:535
__fput+0x23c/0xa50 fs/file_table.c:450
task_work_run+0x24f/0x310 kernel/task_work.c:239
exit_task_work include/linux/task_work.h:43 [inline]
do_exit+0xa2a/0x28e0 kernel/exit.c:938
do_group_exit+0x207/0x2c0 kernel/exit.c:1087
get_signal+0x16b2/0x1750 kernel/signal.c:3017
arch_do_signal_or_restart+0x96/0x860 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+0xce/0x340 kernel/entry/common.c:218
do_syscall_64+0x100/0x230 arch/x86/entry/common.c:89
entry_SYSCALL_64_after_hwframe+0x77/0x7f
Modules linked in:
CPU: 1 UID: 0 PID: 6641 Comm: syz.0.15 Tainted: G B 6.13.0-rc4-syzkaller-g4bbf9020becb #0
Tainted: [B]=BAD_PAGE
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/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:4157 [inline]
bpf_xdp_frags_shrink_tail+0x3ee/0x7e0 net/core/filter.c:4178
____bpf_xdp_adjust_tail net/core/filter.c:4203 [inline]
bpf_xdp_adjust_tail+0x1c3/0x200 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:514 [inline]
bpf_prog_run_generic_xdp+0x686/0x1510 net/core/dev.c:4973
netif_receive_generic_xdp net/core/dev.c:5086 [inline]
do_xdp_generic+0x757/0xd30 net/core/dev.c:5148
__netif_receive_skb_core+0x1ce9/0x4690 net/core/dev.c:5492
__netif_receive_skb_one_core net/core/dev.c:5670 [inline]
__netif_receive_skb+0x12f/0x650 net/core/dev.c:5785
netif_receive_skb_internal net/core/dev.c:5871 [inline]
netif_receive_skb+0x1e8/0x890 net/core/dev.c:5930
tun_rx_batched+0x1b7/0x8f0 drivers/net/tun.c:1550
tun_get_user+0x30cc/0x48a0 drivers/net/tun.c:2007
tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:2053
new_sync_write fs/read_write.c:586 [inline]
vfs_write+0xaeb/0xd30 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:0x7f750c57e98f
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:00007f750d30a020 EFLAGS: 00000293 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f750c745fa0 RCX: 00007f750c57e98f
RDX: 0000000000011dc0 RSI: 00000000200004c0 RDI: 00000000000000c8
RBP: 00007f750c5f3cc8 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000011dc0 R11: 0000000000000293 R12: 0000000000000000
R13: 0000000000000000 R14: 00007f750c745fa0 R15: 00007ffd45d39c38
BUG: Bad page state in process syz.0.15 pfn:2faf8
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff88802faf8e88 pfn:0x2faf8
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000000000 dead000000000040 ffff8880212ba000 0000000000000000
raw: ffff88802faf8e88 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 6641, tgid 6640 (syz.0.15), ts 115439051596, free_ts 115433316352
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:538
page_pool_alloc_netmem net/core/page_pool.c:590 [inline]
page_pool_alloc_pages+0xd0/0x1c0 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+0xc43/0x1640 net/core/skbuff.c:983
netif_skb_check_for_xdp net/core/dev.c:5041 [inline]
netif_receive_generic_xdp net/core/dev.c:5080 [inline]
do_xdp_generic+0x505/0xd30 net/core/dev.c:5148
__netif_receive_skb_core+0x1ce9/0x4690 net/core/dev.c:5492
__netif_receive_skb_one_core net/core/dev.c:5670 [inline]
__netif_receive_skb+0x12f/0x650 net/core/dev.c:5785
netif_receive_skb_internal net/core/dev.c:5871 [inline]
netif_receive_skb+0x1e8/0x890 net/core/dev.c:5930
tun_rx_batched+0x1b7/0x8f0 drivers/net/tun.c:1550
tun_get_user+0x30cc/0x48a0 drivers/net/tun.c:2007
tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:2053
new_sync_write fs/read_write.c:586 [inline]
vfs_write+0xaeb/0xd30 fs/read_write.c:679
ksys_write+0x18f/0x2b0 fs/read_write.c:731
page last free pid 6639 tgid 6639 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+0x496/0xc20 mm/mmap.c:1681
__mmput+0x115/0x3b0 kernel/fork.c:1348
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: 6641 Comm: syz.0.15 Tainted: G B 6.13.0-rc4-syzkaller-g4bbf9020becb #0
Tainted: [B]=BAD_PAGE
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/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:4157 [inline]
bpf_xdp_frags_shrink_tail+0x3ee/0x7e0 net/core/filter.c:4178
____bpf_xdp_adjust_tail net/core/filter.c:4203 [inline]
bpf_xdp_adjust_tail+0x1c3/0x200 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:514 [inline]
bpf_prog_run_generic_xdp+0x686/0x1510 net/core/dev.c:4973
netif_receive_generic_xdp net/core/dev.c:5086 [inline]
do_xdp_generic+0x757/0xd30 net/core/dev.c:5148
__netif_receive_skb_core+0x1ce9/0x4690 net/core/dev.c:5492
__netif_receive_skb_one_core net/core/dev.c:5670 [inline]
__netif_receive_skb+0x12f/0x650 net/core/dev.c:5785
netif_receive_skb_internal net/core/dev.c:5871 [inline]
netif_receive_skb+0x1e8/0x890 net/core/dev.c:5930
tun_rx_batched+0x1b7/0x8f0 drivers/net/tun.c:1550
tun_get_user+0x30cc/0x48a0 drivers/net/tun.c:2007
tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:2053
new_sync_write fs/read_write.c:586 [inline]
vfs_write+0xaeb/0xd30 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:0x7f750c57e98f
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:00007f750d30a020 EFLAGS: 00000293 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f750c745fa0 RCX: 00007f750c57e98f
RDX: 0000000000011dc0 RSI: 00000000200004c0 RDI: 00000000000000c8
RBP: 00007f750c5f3cc8 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000011dc0 R11: 0000000000000293 R12: 0000000000000000
R13: 0000000000000000 R14: 00007f750c745fa0 R15: 00007ffd45d39c38
BUG: Bad page state in process syz.0.15 pfn:3464a
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff88803464af00 pfn:0x3464a
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000000000 dead000000000040 ffff8880212ba000 0000000000000000
raw: ffff88803464af00 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 6641, tgid 6640 (syz.0.15), ts 115439042612, free_ts 115433321295
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:538
page_pool_alloc_netmem net/core/page_pool.c:590 [inline]
page_pool_alloc_pages+0xd0/0x1c0 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+0xc43/0x1640 net/core/skbuff.c:983
netif_skb_check_for_xdp net/core/dev.c:5041 [inline]
netif_receive_generic_xdp net/core/dev.c:5080 [inline]
do_xdp_generic+0x505/0xd30 net/core/dev.c:5148
__netif_receive_skb_core+0x1ce9/0x4690 net/core/dev.c:5492
__netif_receive_skb_one_core net/core/dev.c:5670 [inline]
__netif_receive_skb+0x12f/0x650 net/core/dev.c:5785
netif_receive_skb_internal net/core/dev.c:5871 [inline]
netif_receive_skb+0x1e8/0x890 net/core/dev.c:5930
tun_rx_batched+0x1b7/0x8f0 drivers/net/tun.c:1550
tun_get_user+0x30cc/0x48a0 drivers/net/tun.c:2007
tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:2053
new_sync_write fs/read_write.c:586 [inline]
vfs_write+0xaeb/0xd30 fs/read_write.c:679
ksys_write+0x18f/0x2b0 fs/read_write.c:731
page last free pid 6639 tgid 6639 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+0x496/0xc20 mm/mmap.c:1681
__mmput+0x115/0x3b0 kernel/fork.c:1348
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: 6641 Comm: syz.0.15 Tainted: G B 6.13.0-rc4-syzkaller-g4bbf9020becb #0
Tainted: [B]=BAD_PAGE
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/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:4157 [inline]
bpf_xdp_frags_shrink_tail+0x3ee/0x7e0 net/core/filter.c:4178
____bpf_xdp_adjust_tail net/core/filter.c:4203 [inline]
bpf_xdp_adjust_tail+0x1c3/0x200 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:514 [inline]
bpf_prog_run_generic_xdp+0x686/0x1510 net/core/dev.c:4973
netif_receive_generic_xdp net/core/dev.c:5086 [inline]
do_xdp_generic+0x757/0xd30 net/core/dev.c:5148
__netif_receive_skb_core+0x1ce9/0x4690 net/core/dev.c:5492
__netif_receive_skb_one_core net/core/dev.c:5670 [inline]
__netif_receive_skb+0x12f/0x650 net/core/dev.c:5785
netif_receive_skb_internal net/core/dev.c:5871 [inline]
netif_receive_skb+0x1e8/0x890 net/core/dev.c:5930
tun_rx_batched+0x1b7/0x8f0 drivers/net/tun.c:1550
tun_get_user+0x30cc/0x48a0 drivers/net/tun.c:2007
tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:2053
new_sync_write fs/read_write.c:586 [inline]
vfs_write+0xaeb/0xd30 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:0x7f750c57e98f
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:00007f750d30a020 EFLAGS: 00000293 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f750c745fa0 RCX: 00007f750c57e98f
RDX: 0000000000011dc0 RSI: 00000000200004c0 RDI: 00000000000000c8
RBP: 00007f750c5f3cc8 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000011dc0 R11: 0000000000000293 R12: 0000000000000000
R13: 0000000000000000 R14: 00007f750c745fa0 R15: 00007ffd45d39c38