BUG: Bad page state in process syz-executor167 pfn:75ee2
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x75ee2
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000000000 dead000000000040 ffff888021ac0000 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 5823, tgid 5823 (syz-executor167), ts 62274430155, free_ts 54932467684
set_page_owner include/linux/page_owner.h:32 [inline]
post_alloc_hook+0x1f3/0x230 mm/page_alloc.c:1556
prep_new_page mm/page_alloc.c:1564 [inline]
get_page_from_freelist+0x3651/0x37a0 mm/page_alloc.c:3474
__alloc_pages_noprof+0x292/0x710 mm/page_alloc.c:4751
alloc_pages_bulk_noprof+0x70b/0xcc0 mm/page_alloc.c:4699
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+0x30d6/0x4890 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 5810 tgid 5810 stack trace:
reset_page_owner include/linux/page_owner.h:25 [inline]
free_pages_prepare mm/page_alloc.c:1127 [inline]
free_unref_page+0xde3/0x1130 mm/page_alloc.c:2657
__folio_put+0x2c7/0x440 mm/swap.c:112
pipe_buf_release include/linux/pipe_fs_i.h:219 [inline]
pipe_update_tail fs/pipe.c:224 [inline]
pipe_read+0x6ed/0x13e0 fs/pipe.c:344
new_sync_read fs/read_write.c:484 [inline]
vfs_read+0x991/0xb70 fs/read_write.c:565
ksys_read+0x18f/0x2b0 fs/read_write.c:708
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: 0 UID: 0 PID: 5823 Comm: syz-executor167 Not tainted 6.13.0-rc1-syzkaller-00337-g7503345ac5f5 #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+0x1048/0x1130 mm/page_alloc.c:2657
bpf_xdp_shrink_data net/core/filter.c:4148 [inline]
bpf_xdp_frags_shrink_tail+0x3ee/0x7e0 net/core/filter.c:4169
____bpf_xdp_adjust_tail net/core/filter.c:4194 [inline]
bpf_xdp_adjust_tail+0x1c3/0x200 net/core/filter.c:4187
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+0x30d6/0x4890 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:0x7fa04c96edb0
Code: 40 00 48 c7 c2 b8 ff ff ff f7 d8 64 89 02 48 c7 c0 ff ff ff ff eb b7 0f 1f 00 80 3d f1 e2 07 00 00 74 17 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 58 c3 0f 1f 80 00 00 00 00 48 83 ec 28 48 89
RSP: 002b:00007fff7ac126c8 EFLAGS: 00000202 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007fa04c96edb0
RDX: 0000000000011dc0 RSI: 00000000200004c0 RDI: 00000000000000c8
RBP: 0000000000000000 R08: 00007fff7ac127f8 R09: 00007fff7ac127f8
R10: 00007fff7ac127f8 R11: 0000000000000202 R12: 00007fa04c9bd0de
R13: 0000000000000000 R14: 00007fff7ac12700 R15: 00007fff7ac126f0
BUG: Bad page state in process syz-executor167 pfn:75ee1
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x75ee1
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000000000 dead000000000040 ffff888021ac0000 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 5823, tgid 5823 (syz-executor167), ts 62274423990, free_ts 54932458266
set_page_owner include/linux/page_owner.h:32 [inline]
post_alloc_hook+0x1f3/0x230 mm/page_alloc.c:1556
prep_new_page mm/page_alloc.c:1564 [inline]
get_page_from_freelist+0x3651/0x37a0 mm/page_alloc.c:3474
__alloc_pages_noprof+0x292/0x710 mm/page_alloc.c:4751
alloc_pages_bulk_noprof+0x70b/0xcc0 mm/page_alloc.c:4699
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+0x30d6/0x4890 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 5810 tgid 5810 stack trace:
reset_page_owner include/linux/page_owner.h:25 [inline]
free_pages_prepare mm/page_alloc.c:1127 [inline]
free_unref_page+0xde3/0x1130 mm/page_alloc.c:2657
__folio_put+0x2c7/0x440 mm/swap.c:112
pipe_buf_release include/linux/pipe_fs_i.h:219 [inline]
pipe_update_tail fs/pipe.c:224 [inline]
pipe_read+0x6ed/0x13e0 fs/pipe.c:344
new_sync_read fs/read_write.c:484 [inline]
vfs_read+0x991/0xb70 fs/read_write.c:565
ksys_read+0x18f/0x2b0 fs/read_write.c:708
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: 0 UID: 0 PID: 5823 Comm: syz-executor167 Tainted: G B 6.13.0-rc1-syzkaller-00337-g7503345ac5f5 #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+0x1048/0x1130 mm/page_alloc.c:2657
bpf_xdp_shrink_data net/core/filter.c:4148 [inline]
bpf_xdp_frags_shrink_tail+0x3ee/0x7e0 net/core/filter.c:4169
____bpf_xdp_adjust_tail net/core/filter.c:4194 [inline]
bpf_xdp_adjust_tail+0x1c3/0x200 net/core/filter.c:4187
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+0x30d6/0x4890 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:0x7fa04c96edb0
Code: 40 00 48 c7 c2 b8 ff ff ff f7 d8 64 89 02 48 c7 c0 ff ff ff ff eb b7 0f 1f 00 80 3d f1 e2 07 00 00 74 17 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 58 c3 0f 1f 80 00 00 00 00 48 83 ec 28 48 89
RSP: 002b:00007fff7ac126c8 EFLAGS: 00000202 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007fa04c96edb0
RDX: 0000000000011dc0 RSI: 00000000200004c0 RDI: 00000000000000c8
RBP: 0000000000000000 R08: 00007fff7ac127f8 R09: 00007fff7ac127f8
R10: 00007fff7ac127f8 R11: 0000000000000202 R12: 00007fa04c9bd0de
R13: 0000000000000000 R14: 00007fff7ac12700 R15: 00007fff7ac126f0
BUG: Bad page state in process syz-executor167 pfn:75ee0
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x75ee0
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000000000 dead000000000040 ffff888021ac0000 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 5823, tgid 5823 (syz-executor167), ts 62274417695, free_ts 54932448591
set_page_owner include/linux/page_owner.h:32 [inline]
post_alloc_hook+0x1f3/0x230 mm/page_alloc.c:1556
prep_new_page mm/page_alloc.c:1564 [inline]
get_page_from_freelist+0x3651/0x37a0 mm/page_alloc.c:3474
__alloc_pages_noprof+0x292/0x710 mm/page_alloc.c:4751
alloc_pages_bulk_noprof+0x70b/0xcc0 mm/page_alloc.c:4699
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+0x30d6/0x4890 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 5810 tgid 5810 stack trace:
reset_page_owner include/linux/page_owner.h:25 [inline]
free_pages_prepare mm/page_alloc.c:1127 [inline]
free_unref_page+0xde3/0x1130 mm/page_alloc.c:2657
__folio_put+0x2c7/0x440 mm/swap.c:112
pipe_buf_release include/linux/pipe_fs_i.h:219 [inline]
pipe_update_tail fs/pipe.c:224 [inline]
pipe_read+0x6ed/0x13e0 fs/pipe.c:344
new_sync_read fs/read_write.c:484 [inline]
vfs_read+0x991/0xb70 fs/read_write.c:565
ksys_read+0x18f/0x2b0 fs/read_write.c:708
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: 0 UID: 0 PID: 5823 Comm: syz-executor167 Tainted: G B 6.13.0-rc1-syzkaller-00337-g7503345ac5f5 #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+0x1048/0x1130 mm/page_alloc.c:2657
bpf_xdp_shrink_data net/core/filter.c:4148 [inline]
bpf_xdp_frags_shrink_tail+0x3ee/0x7e0 net/core/filter.c:4169
____bpf_xdp_adjust_tail net/core/filter.c:4194 [inline]
bpf_xdp_adjust_tail+0x1c3/0x200 net/core/filter.c:4187
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+0x30d6/0x4890 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:0x7fa04c96edb0
Code: 40 00 48 c7 c2 b8 ff ff ff f7 d8 64 89 02 48 c7 c0 ff ff ff ff eb b7 0f 1f 00 80 3d f1 e2 07 00 00 74 17 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 58 c3 0f 1f 80 00 00 00 00 48 83 ec 28 48 89
RSP: 002b:00007fff7ac126c8 EFLAGS: 00000202 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007fa04c96edb0
RDX: 0000000000011dc0 RSI: 00000000200004c0 RDI: 00000000000000c8
RBP: 0000000000000000 R08: 00007fff7ac127f8 R09: 00007fff7ac127f8
R10: 00007fff7ac127f8 R11: 0000000000000202 R12: 00007fa04c9bd0de
R13: 0000000000000000 R14: 00007fff7ac12700 R15: 00007fff7ac126f0
BUG: Bad page state in process syz-executor167 pfn:7575f
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x7575f
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000000000 dead000000000040 ffff888021ac0000 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 5823, tgid 5823 (syz-executor167), ts 62274411640, free_ts 50813649747
set_page_owner include/linux/page_owner.h:32 [inline]
post_alloc_hook+0x1f3/0x230 mm/page_alloc.c:1556
prep_new_page mm/page_alloc.c:1564 [inline]
get_page_from_freelist+0x3651/0x37a0 mm/page_alloc.c:3474
__alloc_pages_noprof+0x292/0x710 mm/page_alloc.c:4751
alloc_pages_bulk_noprof+0x70b/0xcc0 mm/page_alloc.c:4699
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+0x30d6/0x4890 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 5672 tgid 5672 stack trace:
reset_page_owner include/linux/page_owner.h:25 [inline]
free_pages_prepare mm/page_alloc.c:1127 [inline]
free_unref_page+0xde3/0x1130 mm/page_alloc.c:2657
__folio_put+0x2c7/0x440 mm/swap.c:112
pipe_buf_release include/linux/pipe_fs_i.h:219 [inline]
pipe_update_tail fs/pipe.c:224 [inline]
pipe_read+0x6ed/0x13e0 fs/pipe.c:344
new_sync_read fs/read_write.c:484 [inline]
vfs_read+0x991/0xb70 fs/read_write.c:565
ksys_read+0x18f/0x2b0 fs/read_write.c:708
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: 0 UID: 0 PID: 5823 Comm: syz-executor167 Tainted: G B 6.13.0-rc1-syzkaller-00337-g7503345ac5f5 #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+0x1048/0x1130 mm/page_alloc.c:2657
bpf_xdp_shrink_data net/core/filter.c:4148 [inline]
bpf_xdp_frags_shrink_tail+0x3ee/0x7e0 net/core/filter.c:4169
____bpf_xdp_adjust_tail net/core/filter.c:4194 [inline]
bpf_xdp_adjust_tail+0x1c3/0x200 net/core/filter.c:4187
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+0x30d6/0x4890 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:0x7fa04c96edb0
Code: 40 00 48 c7 c2 b8 ff ff ff f7 d8 64 89 02 48 c7 c0 ff ff ff ff eb b7 0f 1f 00 80 3d f1 e2 07 00 00 74 17 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 58 c3 0f 1f 80 00 00 00 00 48 83 ec 28 48 89
RSP: 002b:00007fff7ac126c8 EFLAGS: 00000202 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007fa04c96edb0
RDX: 0000000000011dc0 RSI: 00000000200004c0 RDI: 00000000000000c8
RBP: 0000000000000000 R08: 00007fff7ac127f8 R09: 00007fff7ac127f8
R10: 00007fff7ac127f8 R11: 0000000000000202 R12: 00007fa04c9bd0de
R13: 0000000000000000 R14: 00007fff7ac12700 R15: 00007fff7ac126f0
BUG: Bad page state in process syz-executor167 pfn:7575e
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x7575e
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000000000 dead000000000040 ffff888021ac0000 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 5823, tgid 5823 (syz-executor167), ts 62274405511, free_ts 50813624494
set_page_owner include/linux/page_owner.h:32 [inline]
post_alloc_hook+0x1f3/0x230 mm/page_alloc.c:1556
prep_new_page mm/page_alloc.c:1564 [inline]
get_page_from_freelist+0x3651/0x37a0 mm/page_alloc.c:3474
__alloc_pages_noprof+0x292/0x710 mm/page_alloc.c:4751
alloc_pages_bulk_noprof+0x70b/0xcc0 mm/page_alloc.c:4699
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+0x30d6/0x4890 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 5672 tgid 5672 stack trace:
reset_page_owner include/linux/page_owner.h:25 [inline]
free_pages_prepare mm/page_alloc.c:1127 [inline]
free_unref_page+0xde3/0x1130 mm/page_alloc.c:2657
__folio_put+0x2c7/0x440 mm/swap.c:112
pipe_buf_release include/linux/pipe_fs_i.h:219 [inline]
pipe_update_tail fs/pipe.c:224 [inline]
pipe_read+0x6ed/0x13e0 fs/pipe.c:344
new_sync_read fs/read_write.c:484 [inline]
vfs_read+0x991/0xb70 fs/read_write.c:565
ksys_read+0x18f/0x2b0 fs/read_write.c:708
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: 0 UID: 0 PID: 5823 Comm: syz-executor167 Tainted: G B 6.13.0-rc1-syzkaller-00337-g7503345ac5f5 #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+0x1048/0x1130 mm/page_alloc.c:2657
bpf_xdp_shrink_data net/core/filter.c:4148 [inline]
bpf_xdp_frags_shrink_tail+0x3ee/0x7e0 net/core/filter.c:4169
____bpf_xdp_adjust_tail net/core/filter.c:4194 [inline]
bpf_xdp_adjust_tail+0x1c3/0x200 net/core/filter.c:4187
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+0x30d6/0x4890 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:0x7fa04c96edb0
Code: 40 00 48 c7 c2 b8 ff ff ff f7 d8 64 89 02 48 c7 c0 ff ff ff ff eb b7 0f 1f 00 80 3d f1 e2 07 00 00 74 17 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 58 c3 0f 1f 80 00 00 00 00 48 83 ec 28 48 89
RSP: 002b:00007fff7ac126c8 EFLAGS: 00000202 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007fa04c96edb0
RDX: 0000000000011dc0 RSI: 00000000200004c0 RDI: 00000000000000c8
RBP: 0000000000000000 R08: 00007fff7ac127f8 R09: 00007fff7ac127f8
R10: 00007fff7ac127f8 R11: 0000000000000202 R12: 00007fa04c9bd0de
R13: 0000000000000000 R14: 00007fff7ac12700 R15: 00007fff7ac126f0
BUG: Bad page state in process syz-executor167 pfn:7575d
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x7575d
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000000000 dead000000000040 ffff888021ac0000 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 5823, tgid 5823 (syz-executor167), ts 62274399461, free_ts 50813614970
set_page_owner include/linux/page_owner.h:32 [inline]
post_alloc_hook+0x1f3/0x230 mm/page_alloc.c:1556
prep_new_page mm/page_alloc.c:1564 [inline]
get_page_from_freelist+0x3651/0x37a0 mm/page_alloc.c:3474
__alloc_pages_noprof+0x292/0x710 mm/page_alloc.c:4751
alloc_pages_bulk_noprof+0x70b/0xcc0 mm/page_alloc.c:4699
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+0x30d6/0x4890 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 5672 tgid 5672 stack trace:
reset_page_owner include/linux/page_owner.h:25 [inline]
free_pages_prepare mm/page_alloc.c:1127 [inline]
free_unref_page+0xde3/0x1130 mm/page_alloc.c:2657
__folio_put+0x2c7/0x440 mm/swap.c:112
pipe_buf_release include/linux/pipe_fs_i.h:219 [inline]
pipe_update_tail fs/pipe.c:224 [inline]
pipe_read+0x6ed/0x13e0 fs/pipe.c:344
new_sync_read fs/read_write.c:484 [inline]
vfs_read+0x991/0xb70 fs/read_write.c:565
ksys_read+0x18f/0x2b0 fs/read_write.c:708
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: 0 UID: 0 PID: 5823 Comm: syz-executor167 Tainted: G B 6.13.0-rc1-syzkaller-00337-g7503345ac5f5 #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+0x1048/0x1130 mm/page_alloc.c:2657
bpf_xdp_shrink_data net/core/filter.c:4148 [inline]
bpf_xdp_frags_shrink_tail+0x3ee/0x7e0 net/core/filter.c:4169
____bpf_xdp_adjust_tail net/core/filter.c:4194 [inline]
bpf_xdp_adjust_tail+0x1c3/0x200 net/core/filter.c:4187
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+0x30d6/0x4890 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:0x7fa04c96edb0
Code: 40 00 48 c7 c2 b8 ff ff ff f7 d8 64 89 02 48 c7 c0 ff ff ff ff eb b7 0f 1f 00 80 3d f1 e2 07 00 00 74 17 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 58 c3 0f 1f 80 00 00 00 00 48 83 ec 28 48 89
RSP: 002b:00007fff7ac126c8 EFLAGS: 00000202 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007fa04c96edb0
RDX: 0000000000011dc0 RSI: 00000000200004c0 RDI: 00000000000000c8
RBP: 0000000000000000 R08: 00007fff7ac127f8 R09: 00007fff7ac127f8
R10: 00007fff7ac127f8 R11: 0000000000000202 R12: 00007fa04c9bd0de
R13: 0000000000000000 R14: 00007fff7ac12700 R15: 00007fff7ac126f0
BUG: Bad page state in process syz-executor167 pfn:7575c
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x7575c
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000000000 dead000000000040 ffff888021ac0000 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 5823, tgid 5823 (syz-executor167), ts 62274393210, free_ts 50813604036
set_page_owner include/linux/page_owner.h:32 [inline]
post_alloc_hook+0x1f3/0x230 mm/page_alloc.c:1556
prep_new_page mm/page_alloc.c:1564 [inline]
get_page_from_freelist+0x3651/0x37a0 mm/page_alloc.c:3474
__alloc_pages_noprof+0x292/0x710 mm/page_alloc.c:4751
alloc_pages_bulk_noprof+0x70b/0xcc0 mm/page_alloc.c:4699
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+0x30d6/0x4890 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 5672 tgid 5672 stack trace:
reset_page_owner include/linux/page_owner.h:25 [inline]
free_pages_prepare mm/page_alloc.c:1127 [inline]
free_unref_page+0xde3/0x1130 mm/page_alloc.c:2657
__folio_put+0x2c7/0x440 mm/swap.c:112
pipe_buf_release include/linux/pipe_fs_i.h:219 [inline]
pipe_update_tail fs/pipe.c:224 [inline]
pipe_read+0x6ed/0x13e0 fs/pipe.c:344
new_sync_read fs/read_write.c:484 [inline]
vfs_read+0x991/0xb70 fs/read_write.c:565
ksys_read+0x18f/0x2b0 fs/read_write.c:708
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: 0 UID: 0 PID: 5823 Comm: syz-executor167 Tainted: G B 6.13.0-rc1-syzkaller-00337-g7503345ac5f5 #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+0x1048/0x1130 mm/page_alloc.c:2657
bpf_xdp_shrink_data net/core/filter.c:4148 [inline]
bpf_xdp_frags_shrink_tail+0x3ee/0x7e0 net/core/filter.c:4169
____bpf_xdp_adjust_tail net/core/filter.c:4194 [inline]
bpf_xdp_adjust_tail+0x1c3/0x200 net/core/filter.c:4187
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+0x30d6/0x4890 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:0x7fa04c96edb0
Code: 40 00 48 c7 c2 b8 ff ff ff f7 d8 64 89 02 48 c7 c0 ff ff ff ff eb b7 0f 1f 00 80 3d f1 e2 07 00 00 74 17 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 58 c3 0f 1f 80 00 00 00 00 48 83 ec 28 48 89
RSP: 002b:00007fff7ac126c8 EFLAGS: 00000202 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007fa04c96edb0
RDX: 0000000000011dc0 RSI: 00000000200004c0 RDI: 00000000000000c8
RBP: 0000000000000000 R08: 00007fff7ac127f8 R09: 00007fff7ac127f8
R10: 00007fff7ac127f8 R11: 0000000000000202 R12: 00007fa04c9bd0de
R13: 0000000000000000 R14: 00007fff7ac12700 R15: 00007fff7ac126f0
BUG: Bad page state in process syz-executor167 pfn:2c057
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x2c057
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000000000 dead000000000040 ffff888021ac0000 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 5823, tgid 5823 (syz-executor167), ts 62274387049, free_ts 55571351288
set_page_owner include/linux/page_owner.h:32 [inline]
post_alloc_hook+0x1f3/0x230 mm/page_alloc.c:1556
prep_new_page mm/page_alloc.c:1564 [inline]
get_page_from_freelist+0x3651/0x37a0 mm/page_alloc.c:3474
__alloc_pages_noprof+0x292/0x710 mm/page_alloc.c:4751
alloc_pages_bulk_noprof+0x70b/0xcc0 mm/page_alloc.c:4699
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+0x30d6/0x4890 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 5813 tgid 5813 stack trace:
reset_page_owner include/linux/page_owner.h:25 [inline]
free_pages_prepare mm/page_alloc.c:1127 [inline]
free_unref_page+0xde3/0x1130 mm/page_alloc.c:2657
__slab_free+0x31b/0x3d0 mm/slub.c:4509
qlink_free mm/kasan/quarantine.c:163 [inline]
qlist_free_all+0x9a/0x140 mm/kasan/quarantine.c:179
kasan_quarantine_reduce+0x14f/0x170 mm/kasan/quarantine.c:286
__kasan_slab_alloc+0x23/0x80 mm/kasan/common.c:329
kasan_slab_alloc include/linux/kasan.h:250 [inline]
slab_post_alloc_hook mm/slub.c:4104 [inline]
slab_alloc_node mm/slub.c:4153 [inline]
kmem_cache_alloc_noprof+0x1d9/0x380 mm/slub.c:4160
getname_flags+0xb7/0x540 fs/namei.c:139
do_sys_openat2+0xd2/0x1d0 fs/open.c:1396
do_sys_open fs/open.c:1417 [inline]
__do_sys_openat fs/open.c:1433 [inline]
__se_sys_openat fs/open.c:1428 [inline]
__x64_sys_openat+0x247/0x2a0 fs/open.c:1428
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: 0 UID: 0 PID: 5823 Comm: syz-executor167 Tainted: G B 6.13.0-rc1-syzkaller-00337-g7503345ac5f5 #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+0x1048/0x1130 mm/page_alloc.c:2657
bpf_xdp_shrink_data net/core/filter.c:4148 [inline]
bpf_xdp_frags_shrink_tail+0x3ee/0x7e0 net/core/filter.c:4169
____bpf_xdp_adjust_tail net/core/filter.c:4194 [inline]
bpf_xdp_adjust_tail+0x1c3/0x200 net/core/filter.c:4187
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+0x30d6/0x4890 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:0x7fa04c96edb0
Code: 40 00 48 c7 c2 b8 ff ff ff f7 d8 64 89 02 48 c7 c0 ff ff ff ff eb b7 0f 1f 00 80 3d f1 e2 07 00 00 74 17 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 58 c3 0f 1f 80 00 00 00 00 48 83 ec 28 48 89
RSP: 002b:00007fff7ac126c8 EFLAGS: 00000202 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007fa04c96edb0
RDX: 0000000000011dc0 RSI: 00000000200004c0 RDI: 00000000000000c8
RBP: 0000000000000000 R08: 00007fff7ac127f8 R09: 00007fff7ac127f8
R10: 00007fff7ac127f8 R11: 0000000000000202 R12: 00007fa04c9bd0de
R13: 0000000000000000 R14: 00007fff7ac12700 R15: 00007fff7ac126f0
BUG: Bad page state in process syz-executor167 pfn:2c056
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x2c056
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000000000 dead000000000040 ffff888021ac0000 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 5823, tgid 5823 (syz-executor167), ts 62274380727, free_ts 55571351288
set_page_owner include/linux/page_owner.h:32 [inline]
post_alloc_hook+0x1f3/0x230 mm/page_alloc.c:1556
prep_new_page mm/page_alloc.c:1564 [inline]
get_page_from_freelist+0x3651/0x37a0 mm/page_alloc.c:3474
__alloc_pages_noprof+0x292/0x710 mm/page_alloc.c:4751
alloc_pages_bulk_noprof+0x70b/0xcc0 mm/page_alloc.c:4699
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+0x30d6/0x4890 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 5813 tgid 5813 stack trace:
reset_page_owner include/linux/page_owner.h:25 [inline]
free_pages_prepare mm/page_alloc.c:1127 [inline]
free_unref_page+0xde3/0x1130 mm/page_alloc.c:2657
__slab_free+0x31b/0x3d0 mm/slub.c:4509
qlink_free mm/kasan/quarantine.c:163 [inline]
qlist_free_all+0x9a/0x140 mm/kasan/quarantine.c:179
kasan_quarantine_reduce+0x14f/0x170 mm/kasan/quarantine.c:286
__kasan_slab_alloc+0x23/0x80 mm/kasan/common.c:329
kasan_slab_alloc include/linux/kasan.h:250 [inline]
slab_post_alloc_hook mm/slub.c:4104 [inline]
slab_alloc_node mm/slub.c:4153 [inline]
kmem_cache_alloc_noprof+0x1d9/0x380 mm/slub.c:4160
getname_flags+0xb7/0x540 fs/namei.c:139
do_sys_openat2+0xd2/0x1d0 fs/open.c:1396
do_sys_open fs/open.c:1417 [inline]
__do_sys_openat fs/open.c:1433 [inline]
__se_sys_openat fs/open.c:1428 [inline]
__x64_sys_openat+0x247/0x2a0 fs/open.c:1428
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: 0 UID: 0 PID: 5823 Comm: syz-executor167 Tainted: G B 6.13.0-rc1-syzkaller-00337-g7503345ac5f5 #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+0x1048/0x1130 mm/page_alloc.c:2657
bpf_xdp_shrink_data net/core/filter.c:4148 [inline]
bpf_xdp_frags_shrink_tail+0x3ee/0x7e0 net/core/filter.c:4169
____bpf_xdp_adjust_tail net/core/filter.c:4194 [inline]
bpf_xdp_adjust_tail+0x1c3/0x200 net/core/filter.c:4187
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+0x30d6/0x4890 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:0x7fa04c96edb0
Code: 40 00 48 c7 c2 b8 ff ff ff f7 d8 64 89 02 48 c7 c0 ff ff ff ff eb b7 0f 1f 00 80 3d f1 e2 07 00 00 74 17 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 58 c3 0f 1f 80 00 00 00 00 48 83 ec 28 48 89
RSP: 002b:00007fff7ac126c8 EFLAGS: 00000202 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007fa04c96edb0
RDX: 0000000000011dc0 RSI: 00000000200004c0 RDI: 00000000000000c8
RBP: 0000000000000000 R08: 00007fff7ac127f8 R09: 00007fff7ac127f8
R10: 00007fff7ac127f8 R11: 0000000000000202 R12: 00007fa04c9bd0de
R13: 0000000000000000 R14: 00007fff7ac12700 R15: 00007fff7ac126f0
BUG: Bad page state in process syz-executor167 pfn:2c055
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x4 pfn:0x2c055
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000000000 dead000000000040 ffff888021ac0000 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 5823, tgid 5823 (syz-executor167), ts 62274374532, free_ts 55571351288
set_page_owner include/linux/page_owner.h:32 [inline]
post_alloc_hook+0x1f3/0x230 mm/page_alloc.c:1556
prep_new_page mm/page_alloc.c:1564 [inline]
get_page_from_freelist+0x3651/0x37a0 mm/page_alloc.c:3474
__alloc_pages_noprof+0x292/0x710 mm/page_alloc.c:4751
alloc_pages_bulk_noprof+0x70b/0xcc0 mm/page_alloc.c:4699
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+0x30d6/0x4890 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 5813 tgid 5813 stack trace:
reset_page_owner include/linux/page_owner.h:25 [inline]
free_pages_prepare mm/page_alloc.c:1127 [inline]
free_unref_page+0xde3/0x1130 mm/page_alloc.c:2657
__slab_free+0x31b/0x3d0 mm/slub.c:4509
qlink_free mm/kasan/quarantine.c:163 [inline]
qlist_free_all+0x9a/0x140 mm/kasan/quarantine.c:179
kasan_quarantine_reduce+0x14f/0x170 mm/kasan/quarantine.c:286
__kasan_slab_alloc+0x23/0x80 mm/kasan/common.c:329
kasan_slab_alloc include/linux/kasan.h:250 [inline]
slab_post_alloc_hook mm/slub.c:4104 [inline]
slab_alloc_node mm/slub.c:4153 [inline]
kmem_cache_alloc_noprof+0x1d9/0x380 mm/slub.c:4160
getname_flags+0xb7/0x540 fs/namei.c:139
do_sys_openat2+0xd2/0x1d0 fs/open.c:1396
do_sys_open fs/open.c:1417 [inline]
__do_sys_openat fs/open.c:1433 [inline]
__se_sys_openat fs/open.c:1428 [inline]
__x64_sys_openat+0x247/0x2a0 fs/open.c:1428
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: 0 UID: 0 PID: 5823 Comm: syz-executor167 Tainted: G B 6.13.0-rc1-syzkaller-00337-g7503345ac5f5 #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+0x1048/0x1130 mm/page_alloc.c:2657
bpf_xdp_shrink_data net/core/filter.c:4148 [inline]
bpf_xdp_frags_shrink_tail+0x3ee/0x7e0 net/core/filter.c:4169
____bpf_xdp_adjust_tail net/core/filter.c:4194 [inline]
bpf_xdp_adjust_tail+0x1c3/0x200 net/core/filter.c:4187
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+0x30d6/0x4890 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:0x7fa04c96edb0
Code: 40 00 48 c7 c2 b8 ff ff ff f7 d8 64 89 02 48 c7 c0 ff ff ff ff eb b7 0f 1f 00 80 3d f1 e2 07 00 00 74 17 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 58 c3 0f 1f 80 00 00 00 00 48 83 ec 28 48 89
RSP: 002b:00007fff7ac126c8 EFLAGS: 00000202 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007fa04c96edb0
RDX: 0000000000011dc0 RSI: 00000000200004c0 RDI: 00000000000000c8
RBP: 0000000000000000 R08: 00007fff7ac127f8 R09: 00007fff7ac127f8
R10: 00007fff7ac127f8 R11: 0000000000000202 R12: 00007fa04c9bd0de
R13: 0000000000000000 R14: 00007fff7ac12700 R15: 00007fff7ac126f0
BUG: Bad page state in process syz-executor167 pfn:2c054
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff88802c055800 pfn:0x2c054
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000000000 dead000000000040 ffff888021ac0000 0000000000000000
raw: ffff88802c055800 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 5823, tgid 5823 (syz-executor167), ts 62274368222, free_ts 55571351288
set_page_owner include/linux/page_owner.h:32 [inline]
post_alloc_hook+0x1f3/0x230 mm/page_alloc.c:1556
prep_new_page mm/page_alloc.c:1564 [inline]
get_page_from_freelist+0x3651/0x37a0 mm/page_alloc.c:3474
__alloc_pages_noprof+0x292/0x710 mm/page_alloc.c:4751
alloc_pages_bulk_noprof+0x70b/0xcc0 mm/page_alloc.c:4699
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+0x30d6/0x4890 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 5813 tgid 5813 stack trace:
reset_page_owner include/linux/page_owner.h:25 [inline]
free_pages_prepare mm/page_alloc.c:1127 [inline]
free_unref_page+0xde3/0x1130 mm/page_alloc.c:2657
__slab_free+0x31b/0x3d0 mm/slub.c:4509
qlink_free mm/kasan/quarantine.c:163 [inline]
qlist_free_all+0x9a/0x140 mm/kasan/quarantine.c:179
kasan_quarantine_reduce+0x14f/0x170 mm/kasan/quarantine.c:286
__kasan_slab_alloc+0x23/0x80 mm/kasan/common.c:329
kasan_slab_alloc include/linux/kasan.h:250 [inline]
slab_post_alloc_hook mm/slub.c:4104 [inline]
slab_alloc_node mm/slub.c:4153 [inline]
kmem_cache_alloc_noprof+0x1d9/0x380 mm/slub.c:4160
getname_flags+0xb7/0x540 fs/namei.c:139
do_sys_openat2+0xd2/0x1d0 fs/open.c:1396
do_sys_open fs/open.c:1417 [inline]
__do_sys_openat fs/open.c:1433 [inline]
__se_sys_openat fs/open.c:1428 [inline]
__x64_sys_openat+0x247/0x2a0 fs/open.c:1428
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: 0 UID: 0 PID: 5823 Comm: syz-executor167 Tainted: G B 6.13.0-rc1-syzkaller-00337-g7503345ac5f5 #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+0x1048/0x1130 mm/page_alloc.c:2657
bpf_xdp_shrink_data net/core/filter.c:4148 [inline]
bpf_xdp_frags_shrink_tail+0x3ee/0x7e0 net/core/filter.c:4169
____bpf_xdp_adjust_tail net/core/filter.c:4194 [inline]
bpf_xdp_adjust_tail+0x1c3/0x200 net/core/filter.c:4187
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+0x30d6/0x4890 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:0x7fa04c96edb0
Code: 40 00 48 c7 c2 b8 ff ff ff f7 d8 64 89 02 48 c7 c0 ff ff ff ff eb b7 0f 1f 00 80 3d f1 e2 07 00 00 74 17 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 58 c3 0f 1f 80 00 00 00 00 48 83 ec 28 48 89
RSP: 002b:00007fff7ac126c8 EFLAGS: 00000202 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007fa04c96edb0
RDX: 0000000000011dc0 RSI: 00000000200004c0 RDI: 00000000000000c8
RBP: 0000000000000000 R08: 00007fff7ac127f8 R09: 00007fff7ac127f8
R10: 00007fff7ac127f8 R11: 0000000000000202 R12: 00007fa04c9bd0de
R13: 0000000000000000 R14: 00007fff7ac12700 R15: 00007fff7ac126f0