BUG: Bad page state in process syz.3.2708 pfn:64d62
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff888064d62ee0 pfn:0x64d62
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000000000 dead000000000040 ffff88801b790000 0000000000000000
raw: ffff888064d62ee0 3ffffffffffffffd 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 9520, tgid 9487 (syz.5.907), ts 494049871858, free_ts 494049148166
set_page_owner include/linux/page_owner.h:32 [inline]
post_alloc_hook+0x2d1/0x350 mm/page_alloc.c:1558
prep_new_page mm/page_alloc.c:1566 [inline]
get_page_from_freelist+0xfce/0x2f80 mm/page_alloc.c:3476
__alloc_pages_noprof+0x223/0x25b0 mm/page_alloc.c:4753
alloc_pages_bulk_noprof+0x72b/0x10b0 mm/page_alloc.c:4701
alloc_pages_bulk_array_node_noprof include/linux/gfp.h:239 [inline]
__page_pool_alloc_pages_slow+0x18f/0x770 net/core/page_pool.c:538
page_pool_alloc_netmem net/core/page_pool.c:590 [inline]
page_pool_alloc_netmem+0xc4/0x160 net/core/page_pool.c:577
page_pool_alloc_frag_netmem+0x220/0x760 net/core/page_pool.c:960
page_pool_alloc_frag+0x2c/0x80 net/core/page_pool.c:985
page_pool_alloc include/net/page_pool/helpers.h:132 [inline]
page_pool_alloc_va include/net/page_pool/helpers.h:177 [inline]
page_pool_dev_alloc_va include/net/page_pool/helpers.h:201 [inline]
skb_pp_cow_data+0x238/0xe80 net/core/skbuff.c:950
skb_cow_data_for_xdp+0x88/0xb0 net/core/skbuff.c:1017
netif_skb_check_for_xdp net/core/dev.c:5041 [inline]
netif_receive_generic_xdp net/core/dev.c:5080 [inline]
do_xdp_generic+0x3f1/0xe70 net/core/dev.c:5148
__netif_receive_skb_core.constprop.0+0x1330/0x4470 net/core/dev.c:5492
__netif_receive_skb_one_core+0xb1/0x1e0 net/core/dev.c:5670
__netif_receive_skb+0x1d/0x160 net/core/dev.c:5785
netif_receive_skb_internal net/core/dev.c:5871 [inline]
netif_receive_skb+0x13f/0x7b0 net/core/dev.c:5930
tun_rx_batched.isra.0+0x3eb/0x730 drivers/net/tun.c:1574
page last free pid 5814 tgid 5814 stack trace:
reset_page_owner include/linux/page_owner.h:25 [inline]
free_pages_prepare mm/page_alloc.c:1127 [inline]
free_unref_page+0x661/0x1080 mm/page_alloc.c:2659
vfree+0x174/0x950 mm/vmalloc.c:3383
__do_replace+0x7d4/0x9e0 net/ipv4/netfilter/arp_tables.c:937
do_replace net/ipv6/netfilter/ip6_tables.c:1158 [inline]
do_ip6t_set_ctl+0x965/0xbf0 net/ipv6/netfilter/ip6_tables.c:1644
nf_setsockopt+0x8a/0xf0 net/netfilter/nf_sockopt.c:101
ipv6_setsockopt+0x135/0x170 net/ipv6/ipv6_sockglue.c:998
tcp_setsockopt+0xa4/0x100 net/ipv4/tcp.c:4030
do_sock_setsockopt+0x222/0x480 net/socket.c:2313
__sys_setsockopt+0x1a0/0x230 net/socket.c:2338
__do_sys_setsockopt net/socket.c:2344 [inline]
__se_sys_setsockopt net/socket.c:2341 [inline]
__x64_sys_setsockopt+0xbd/0x160 net/socket.c:2341
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x77/0x7f
Modules linked in:
CPU: 0 UID: 0 PID: 16717 Comm: syz.3.2708 Not tainted 6.13.0-rc4-syzkaller-00110-g4099a71718b0 #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+0x16c/0x1f0 lib/dump_stack.c:120
bad_page+0xb3/0x1f0 mm/page_alloc.c:501
free_page_is_bad_report mm/page_alloc.c:913 [inline]
free_page_is_bad mm/page_alloc.c:923 [inline]
free_pages_prepare mm/page_alloc.c:1119 [inline]
free_unref_page+0x72f/0x1080 mm/page_alloc.c:2659
page_frag_free+0x255/0x2a0 mm/page_frag_cache.c:169
__xdp_return+0x217/0xa90 net/core/xdp.c:390
bpf_xdp_shrink_data net/core/filter.c:4157 [inline]
bpf_xdp_frags_shrink_tail net/core/filter.c:4178 [inline]
____bpf_xdp_adjust_tail net/core/filter.c:4203 [inline]
bpf_xdp_adjust_tail+0xa78/0x1080 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+0x630/0x1510 net/core/dev.c:4973
netif_receive_generic_xdp net/core/dev.c:5086 [inline]
do_xdp_generic+0x70a/0xe70 net/core/dev.c:5148
__netif_receive_skb_core.constprop.0+0x1330/0x4470 net/core/dev.c:5492
__netif_receive_skb_one_core+0xb1/0x1e0 net/core/dev.c:5670
__netif_receive_skb+0x1d/0x160 net/core/dev.c:5785
netif_receive_skb_internal net/core/dev.c:5871 [inline]
netif_receive_skb+0x13f/0x7b0 net/core/dev.c:5930
tun_rx_batched.isra.0+0x3eb/0x730 drivers/net/tun.c:1574
tun_get_user+0x2a22/0x3e50 drivers/net/tun.c:2007
tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:2053
new_sync_write fs/read_write.c:586 [inline]
vfs_write+0x5ae/0x1150 fs/read_write.c:679
ksys_write+0x12b/0x250 fs/read_write.c:731
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fd9829847df
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:00007fd983853000 EFLAGS: 00000293 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007fd982b75fa0 RCX: 00007fd9829847df
RDX: 000000000000fdef RSI: 0000000020000600 RDI: 00000000000000c8
RBP: 00007fd982a01b08 R08: 0000000000000000 R09: 0000000000000000
R10: 000000000000fdef R11: 0000000000000293 R12: 0000000000000000
R13: 0000000000000000 R14: 00007fd982b75fa0 R15: 00007ffd3da396e8
BUG: Bad page state in process syz.3.2708 pfn:34b6f
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff888034b6f000 pfn:0x34b6f
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000000000 dead000000000040 ffff88801b790000 0000000000000000
raw: ffff888034b6f000 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 16717, tgid 16714 (syz.3.2708), ts 1380283315062, free_ts 1379262958069
set_page_owner include/linux/page_owner.h:32 [inline]
post_alloc_hook+0x2d1/0x350 mm/page_alloc.c:1558
prep_new_page mm/page_alloc.c:1566 [inline]
get_page_from_freelist+0xfce/0x2f80 mm/page_alloc.c:3476
__alloc_pages_noprof+0x223/0x25b0 mm/page_alloc.c:4753
alloc_pages_bulk_noprof+0x72b/0x10b0 mm/page_alloc.c:4701
alloc_pages_bulk_array_node_noprof include/linux/gfp.h:239 [inline]
__page_pool_alloc_pages_slow+0x18f/0x770 net/core/page_pool.c:538
page_pool_alloc_netmem net/core/page_pool.c:590 [inline]
page_pool_alloc_netmem+0xc4/0x160 net/core/page_pool.c:577
page_pool_alloc_pages+0x1a/0x60 net/core/page_pool.c:597
page_pool_alloc include/net/page_pool/helpers.h:129 [inline]
page_pool_dev_alloc include/net/page_pool/helpers.h:167 [inline]
skb_pp_cow_data+0x72f/0xe80 net/core/skbuff.c:983
skb_cow_data_for_xdp+0x88/0xb0 net/core/skbuff.c:1017
netif_skb_check_for_xdp net/core/dev.c:5041 [inline]
netif_receive_generic_xdp net/core/dev.c:5080 [inline]
do_xdp_generic+0x3f1/0xe70 net/core/dev.c:5148
__netif_receive_skb_core.constprop.0+0x1330/0x4470 net/core/dev.c:5492
__netif_receive_skb_one_core+0xb1/0x1e0 net/core/dev.c:5670
__netif_receive_skb+0x1d/0x160 net/core/dev.c:5785
netif_receive_skb_internal net/core/dev.c:5871 [inline]
netif_receive_skb+0x13f/0x7b0 net/core/dev.c:5930
tun_rx_batched.isra.0+0x3eb/0x730 drivers/net/tun.c:1574
tun_get_user+0x2a22/0x3e50 drivers/net/tun.c:2007
page last free pid 5825 tgid 5825 stack trace:
reset_page_owner include/linux/page_owner.h:25 [inline]
free_pages_prepare mm/page_alloc.c:1127 [inline]
free_unref_page+0x661/0x1080 mm/page_alloc.c:2659
vfree+0x174/0x950 mm/vmalloc.c:3383
bpf_prog_free_deferred+0x53f/0x6f0 kernel/bpf/core.c:2820
process_one_work+0x9c5/0x1ba0 kernel/workqueue.c:3229
process_scheduled_works kernel/workqueue.c:3310 [inline]
worker_thread+0x6c8/0xf00 kernel/workqueue.c:3391
kthread+0x2c1/0x3a0 kernel/kthread.c:389
ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:147
ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244
Modules linked in:
CPU: 0 UID: 0 PID: 16717 Comm: syz.3.2708 Tainted: G B 6.13.0-rc4-syzkaller-00110-g4099a71718b0 #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+0x16c/0x1f0 lib/dump_stack.c:120
bad_page+0xb3/0x1f0 mm/page_alloc.c:501
free_page_is_bad_report mm/page_alloc.c:913 [inline]
free_page_is_bad mm/page_alloc.c:923 [inline]
free_pages_prepare mm/page_alloc.c:1119 [inline]
free_unref_page+0x72f/0x1080 mm/page_alloc.c:2659
page_frag_free+0x255/0x2a0 mm/page_frag_cache.c:169
__xdp_return+0x217/0xa90 net/core/xdp.c:390
bpf_xdp_shrink_data net/core/filter.c:4157 [inline]
bpf_xdp_frags_shrink_tail net/core/filter.c:4178 [inline]
____bpf_xdp_adjust_tail net/core/filter.c:4203 [inline]
bpf_xdp_adjust_tail+0xa78/0x1080 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+0x630/0x1510 net/core/dev.c:4973
netif_receive_generic_xdp net/core/dev.c:5086 [inline]
do_xdp_generic+0x70a/0xe70 net/core/dev.c:5148
__netif_receive_skb_core.constprop.0+0x1330/0x4470 net/core/dev.c:5492
__netif_receive_skb_one_core+0xb1/0x1e0 net/core/dev.c:5670
__netif_receive_skb+0x1d/0x160 net/core/dev.c:5785
netif_receive_skb_internal net/core/dev.c:5871 [inline]
netif_receive_skb+0x13f/0x7b0 net/core/dev.c:5930
tun_rx_batched.isra.0+0x3eb/0x730 drivers/net/tun.c:1574
tun_get_user+0x2a22/0x3e50 drivers/net/tun.c:2007
tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:2053
new_sync_write fs/read_write.c:586 [inline]
vfs_write+0x5ae/0x1150 fs/read_write.c:679
ksys_write+0x12b/0x250 fs/read_write.c:731
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fd9829847df
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:00007fd983853000 EFLAGS: 00000293 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007fd982b75fa0 RCX: 00007fd9829847df
RDX: 000000000000fdef RSI: 0000000020000600 RDI: 00000000000000c8
RBP: 00007fd982a01b08 R08: 0000000000000000 R09: 0000000000000000
R10: 000000000000fdef R11: 0000000000000293 R12: 0000000000000000
R13: 0000000000000000 R14: 00007fd982b75fa0 R15: 00007ffd3da396e8
BUG: Bad page state in process syz.3.2708 pfn:59a19
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff888059a19fc0 pfn:0x59a19
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000000000 dead000000000040 ffff88801b790000 0000000000000000
raw: ffff888059a19fc0 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 16717, tgid 16714 (syz.3.2708), ts 1380283307045, free_ts 1379262997491
set_page_owner include/linux/page_owner.h:32 [inline]
post_alloc_hook+0x2d1/0x350 mm/page_alloc.c:1558
prep_new_page mm/page_alloc.c:1566 [inline]
get_page_from_freelist+0xfce/0x2f80 mm/page_alloc.c:3476
__alloc_pages_noprof+0x223/0x25b0 mm/page_alloc.c:4753
alloc_pages_bulk_noprof+0x72b/0x10b0 mm/page_alloc.c:4701
alloc_pages_bulk_array_node_noprof include/linux/gfp.h:239 [inline]
__page_pool_alloc_pages_slow+0x18f/0x770 net/core/page_pool.c:538
page_pool_alloc_netmem net/core/page_pool.c:590 [inline]
page_pool_alloc_netmem+0xc4/0x160 net/core/page_pool.c:577
page_pool_alloc_pages+0x1a/0x60 net/core/page_pool.c:597
page_pool_alloc include/net/page_pool/helpers.h:129 [inline]
page_pool_dev_alloc include/net/page_pool/helpers.h:167 [inline]
skb_pp_cow_data+0x72f/0xe80 net/core/skbuff.c:983
skb_cow_data_for_xdp+0x88/0xb0 net/core/skbuff.c:1017
netif_skb_check_for_xdp net/core/dev.c:5041 [inline]
netif_receive_generic_xdp net/core/dev.c:5080 [inline]
do_xdp_generic+0x3f1/0xe70 net/core/dev.c:5148
__netif_receive_skb_core.constprop.0+0x1330/0x4470 net/core/dev.c:5492
__netif_receive_skb_one_core+0xb1/0x1e0 net/core/dev.c:5670
__netif_receive_skb+0x1d/0x160 net/core/dev.c:5785
netif_receive_skb_internal net/core/dev.c:5871 [inline]
netif_receive_skb+0x13f/0x7b0 net/core/dev.c:5930
tun_rx_batched.isra.0+0x3eb/0x730 drivers/net/tun.c:1574
tun_get_user+0x2a22/0x3e50 drivers/net/tun.c:2007
page last free pid 5825 tgid 5825 stack trace:
reset_page_owner include/linux/page_owner.h:25 [inline]
free_pages_prepare mm/page_alloc.c:1127 [inline]
free_unref_page+0x661/0x1080 mm/page_alloc.c:2659
vfree+0x174/0x950 mm/vmalloc.c:3383
delayed_vfree_work+0x56/0x70 mm/vmalloc.c:3303
process_one_work+0x9c5/0x1ba0 kernel/workqueue.c:3229
process_scheduled_works kernel/workqueue.c:3310 [inline]
worker_thread+0x6c8/0xf00 kernel/workqueue.c:3391
kthread+0x2c1/0x3a0 kernel/kthread.c:389
ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:147
ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244
Modules linked in:
CPU: 0 UID: 0 PID: 16717 Comm: syz.3.2708 Tainted: G B 6.13.0-rc4-syzkaller-00110-g4099a71718b0 #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+0x16c/0x1f0 lib/dump_stack.c:120
bad_page+0xb3/0x1f0 mm/page_alloc.c:501
free_page_is_bad_report mm/page_alloc.c:913 [inline]
free_page_is_bad mm/page_alloc.c:923 [inline]
free_pages_prepare mm/page_alloc.c:1119 [inline]
free_unref_page+0x72f/0x1080 mm/page_alloc.c:2659
page_frag_free+0x255/0x2a0 mm/page_frag_cache.c:169
__xdp_return+0x217/0xa90 net/core/xdp.c:390
bpf_xdp_shrink_data net/core/filter.c:4157 [inline]
bpf_xdp_frags_shrink_tail net/core/filter.c:4178 [inline]
____bpf_xdp_adjust_tail net/core/filter.c:4203 [inline]
bpf_xdp_adjust_tail+0xa78/0x1080 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+0x630/0x1510 net/core/dev.c:4973
netif_receive_generic_xdp net/core/dev.c:5086 [inline]
do_xdp_generic+0x70a/0xe70 net/core/dev.c:5148
__netif_receive_skb_core.constprop.0+0x1330/0x4470 net/core/dev.c:5492
__netif_receive_skb_one_core+0xb1/0x1e0 net/core/dev.c:5670
__netif_receive_skb+0x1d/0x160 net/core/dev.c:5785
netif_receive_skb_internal net/core/dev.c:5871 [inline]
netif_receive_skb+0x13f/0x7b0 net/core/dev.c:5930
tun_rx_batched.isra.0+0x3eb/0x730 drivers/net/tun.c:1574
tun_get_user+0x2a22/0x3e50 drivers/net/tun.c:2007
tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:2053
new_sync_write fs/read_write.c:586 [inline]
vfs_write+0x5ae/0x1150 fs/read_write.c:679
ksys_write+0x12b/0x250 fs/read_write.c:731
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fd9829847df
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:00007fd983853000 EFLAGS: 00000293 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007fd982b75fa0 RCX: 00007fd9829847df
RDX: 000000000000fdef RSI: 0000000020000600 RDI: 00000000000000c8
RBP: 00007fd982a01b08 R08: 0000000000000000 R09: 0000000000000000
R10: 000000000000fdef R11: 0000000000000293 R12: 0000000000000000
R13: 0000000000000000 R14: 00007fd982b75fa0 R15: 00007ffd3da396e8
BUG: Bad page state in process syz.3.2708 pfn:3016c
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff88803016c960 pfn:0x3016c
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000000000 dead000000000040 ffff88801b790000 0000000000000000
raw: ffff88803016c960 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 16717, tgid 16714 (syz.3.2708), ts 1380283298813, free_ts 1379263004388
set_page_owner include/linux/page_owner.h:32 [inline]
post_alloc_hook+0x2d1/0x350 mm/page_alloc.c:1558
prep_new_page mm/page_alloc.c:1566 [inline]
get_page_from_freelist+0xfce/0x2f80 mm/page_alloc.c:3476
__alloc_pages_noprof+0x223/0x25b0 mm/page_alloc.c:4753
alloc_pages_bulk_noprof+0x72b/0x10b0 mm/page_alloc.c:4701
alloc_pages_bulk_array_node_noprof include/linux/gfp.h:239 [inline]
__page_pool_alloc_pages_slow+0x18f/0x770 net/core/page_pool.c:538
page_pool_alloc_netmem net/core/page_pool.c:590 [inline]
page_pool_alloc_netmem+0xc4/0x160 net/core/page_pool.c:577
page_pool_alloc_pages+0x1a/0x60 net/core/page_pool.c:597
page_pool_alloc include/net/page_pool/helpers.h:129 [inline]
page_pool_dev_alloc include/net/page_pool/helpers.h:167 [inline]
skb_pp_cow_data+0x72f/0xe80 net/core/skbuff.c:983
skb_cow_data_for_xdp+0x88/0xb0 net/core/skbuff.c:1017
netif_skb_check_for_xdp net/core/dev.c:5041 [inline]
netif_receive_generic_xdp net/core/dev.c:5080 [inline]
do_xdp_generic+0x3f1/0xe70 net/core/dev.c:5148
__netif_receive_skb_core.constprop.0+0x1330/0x4470 net/core/dev.c:5492
__netif_receive_skb_one_core+0xb1/0x1e0 net/core/dev.c:5670
__netif_receive_skb+0x1d/0x160 net/core/dev.c:5785
netif_receive_skb_internal net/core/dev.c:5871 [inline]
netif_receive_skb+0x13f/0x7b0 net/core/dev.c:5930
tun_rx_batched.isra.0+0x3eb/0x730 drivers/net/tun.c:1574
tun_get_user+0x2a22/0x3e50 drivers/net/tun.c:2007
page last free pid 5825 tgid 5825 stack trace:
reset_page_owner include/linux/page_owner.h:25 [inline]
free_pages_prepare mm/page_alloc.c:1127 [inline]
free_unref_page+0x661/0x1080 mm/page_alloc.c:2659
vfree+0x174/0x950 mm/vmalloc.c:3383
delayed_vfree_work+0x56/0x70 mm/vmalloc.c:3303
process_one_work+0x9c5/0x1ba0 kernel/workqueue.c:3229
process_scheduled_works kernel/workqueue.c:3310 [inline]
worker_thread+0x6c8/0xf00 kernel/workqueue.c:3391
kthread+0x2c1/0x3a0 kernel/kthread.c:389
ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:147
ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244
Modules linked in:
CPU: 0 UID: 0 PID: 16717 Comm: syz.3.2708 Tainted: G B 6.13.0-rc4-syzkaller-00110-g4099a71718b0 #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+0x16c/0x1f0 lib/dump_stack.c:120
bad_page+0xb3/0x1f0 mm/page_alloc.c:501
free_page_is_bad_report mm/page_alloc.c:913 [inline]
free_page_is_bad mm/page_alloc.c:923 [inline]
free_pages_prepare mm/page_alloc.c:1119 [inline]
free_unref_page+0x72f/0x1080 mm/page_alloc.c:2659
page_frag_free+0x255/0x2a0 mm/page_frag_cache.c:169
__xdp_return+0x217/0xa90 net/core/xdp.c:390
bpf_xdp_shrink_data net/core/filter.c:4157 [inline]
bpf_xdp_frags_shrink_tail net/core/filter.c:4178 [inline]
____bpf_xdp_adjust_tail net/core/filter.c:4203 [inline]
bpf_xdp_adjust_tail+0xa78/0x1080 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+0x630/0x1510 net/core/dev.c:4973
netif_receive_generic_xdp net/core/dev.c:5086 [inline]
do_xdp_generic+0x70a/0xe70 net/core/dev.c:5148
__netif_receive_skb_core.constprop.0+0x1330/0x4470 net/core/dev.c:5492
__netif_receive_skb_one_core+0xb1/0x1e0 net/core/dev.c:5670
__netif_receive_skb+0x1d/0x160 net/core/dev.c:5785
netif_receive_skb_internal net/core/dev.c:5871 [inline]
netif_receive_skb+0x13f/0x7b0 net/core/dev.c:5930
tun_rx_batched.isra.0+0x3eb/0x730 drivers/net/tun.c:1574
tun_get_user+0x2a22/0x3e50 drivers/net/tun.c:2007
tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:2053
new_sync_write fs/read_write.c:586 [inline]
vfs_write+0x5ae/0x1150 fs/read_write.c:679
ksys_write+0x12b/0x250 fs/read_write.c:731
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fd9829847df
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:00007fd983853000 EFLAGS: 00000293 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007fd982b75fa0 RCX: 00007fd9829847df
RDX: 000000000000fdef RSI: 0000000020000600 RDI: 00000000000000c8
RBP: 00007fd982a01b08 R08: 0000000000000000 R09: 0000000000000000
R10: 000000000000fdef R11: 0000000000000293 R12: 0000000000000000
R13: 0000000000000000 R14: 00007fd982b75fa0 R15: 00007ffd3da396e8
BUG: Bad page state in process syz.3.2708 pfn:3524b
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff88803524bdc0 pfn:0x3524b
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000000000 dead000000000040 ffff88801b790000 0000000000000000
raw: ffff88803524bdc0 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 16717, tgid 16714 (syz.3.2708), ts 1380283290998, free_ts 1379263011429
set_page_owner include/linux/page_owner.h:32 [inline]
post_alloc_hook+0x2d1/0x350 mm/page_alloc.c:1558
prep_new_page mm/page_alloc.c:1566 [inline]
get_page_from_freelist+0xfce/0x2f80 mm/page_alloc.c:3476
__alloc_pages_noprof+0x223/0x25b0 mm/page_alloc.c:4753
alloc_pages_bulk_noprof+0x72b/0x10b0 mm/page_alloc.c:4701
alloc_pages_bulk_array_node_noprof include/linux/gfp.h:239 [inline]
__page_pool_alloc_pages_slow+0x18f/0x770 net/core/page_pool.c:538
page_pool_alloc_netmem net/core/page_pool.c:590 [inline]
page_pool_alloc_netmem+0xc4/0x160 net/core/page_pool.c:577
page_pool_alloc_pages+0x1a/0x60 net/core/page_pool.c:597
page_pool_alloc include/net/page_pool/helpers.h:129 [inline]
page_pool_dev_alloc include/net/page_pool/helpers.h:167 [inline]
skb_pp_cow_data+0x72f/0xe80 net/core/skbuff.c:983
skb_cow_data_for_xdp+0x88/0xb0 net/core/skbuff.c:1017
netif_skb_check_for_xdp net/core/dev.c:5041 [inline]
netif_receive_generic_xdp net/core/dev.c:5080 [inline]
do_xdp_generic+0x3f1/0xe70 net/core/dev.c:5148
__netif_receive_skb_core.constprop.0+0x1330/0x4470 net/core/dev.c:5492
__netif_receive_skb_one_core+0xb1/0x1e0 net/core/dev.c:5670
__netif_receive_skb+0x1d/0x160 net/core/dev.c:5785
netif_receive_skb_internal net/core/dev.c:5871 [inline]
netif_receive_skb+0x13f/0x7b0 net/core/dev.c:5930
tun_rx_batched.isra.0+0x3eb/0x730 drivers/net/tun.c:1574
tun_get_user+0x2a22/0x3e50 drivers/net/tun.c:2007
page last free pid 5825 tgid 5825 stack trace:
reset_page_owner include/linux/page_owner.h:25 [inline]
free_pages_prepare mm/page_alloc.c:1127 [inline]
free_unref_page+0x661/0x1080 mm/page_alloc.c:2659
vfree+0x174/0x950 mm/vmalloc.c:3383
delayed_vfree_work+0x56/0x70 mm/vmalloc.c:3303
process_one_work+0x9c5/0x1ba0 kernel/workqueue.c:3229
process_scheduled_works kernel/workqueue.c:3310 [inline]
worker_thread+0x6c8/0xf00 kernel/workqueue.c:3391
kthread+0x2c1/0x3a0 kernel/kthread.c:389
ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:147
ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244
Modules linked in:
CPU: 0 UID: 0 PID: 16717 Comm: syz.3.2708 Tainted: G B 6.13.0-rc4-syzkaller-00110-g4099a71718b0 #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+0x16c/0x1f0 lib/dump_stack.c:120
bad_page+0xb3/0x1f0 mm/page_alloc.c:501
free_page_is_bad_report mm/page_alloc.c:913 [inline]
free_page_is_bad mm/page_alloc.c:923 [inline]
free_pages_prepare mm/page_alloc.c:1119 [inline]
free_unref_page+0x72f/0x1080 mm/page_alloc.c:2659
page_frag_free+0x255/0x2a0 mm/page_frag_cache.c:169
__xdp_return+0x217/0xa90 net/core/xdp.c:390
bpf_xdp_shrink_data net/core/filter.c:4157 [inline]
bpf_xdp_frags_shrink_tail net/core/filter.c:4178 [inline]
____bpf_xdp_adjust_tail net/core/filter.c:4203 [inline]
bpf_xdp_adjust_tail+0xa78/0x1080 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+0x630/0x1510 net/core/dev.c:4973
netif_receive_generic_xdp net/core/dev.c:5086 [inline]
do_xdp_generic+0x70a/0xe70 net/core/dev.c:5148
__netif_receive_skb_core.constprop.0+0x1330/0x4470 net/core/dev.c:5492
__netif_receive_skb_one_core+0xb1/0x1e0 net/core/dev.c:5670
__netif_receive_skb+0x1d/0x160 net/core/dev.c:5785
netif_receive_skb_internal net/core/dev.c:5871 [inline]
netif_receive_skb+0x13f/0x7b0 net/core/dev.c:5930
tun_rx_batched.isra.0+0x3eb/0x730 drivers/net/tun.c:1574
tun_get_user+0x2a22/0x3e50 drivers/net/tun.c:2007
tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:2053
new_sync_write fs/read_write.c:586 [inline]
vfs_write+0x5ae/0x1150 fs/read_write.c:679
ksys_write+0x12b/0x250 fs/read_write.c:731
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fd9829847df
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:00007fd983853000 EFLAGS: 00000293 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007fd982b75fa0 RCX: 00007fd9829847df
RDX: 000000000000fdef RSI: 0000000020000600 RDI: 00000000000000c8
RBP: 00007fd982a01b08 R08: 0000000000000000 R09: 0000000000000000
R10: 000000000000fdef R11: 0000000000000293 R12: 0000000000000000
R13: 0000000000000000 R14: 00007fd982b75fa0 R15: 00007ffd3da396e8
BUG: Bad page state in process syz.3.2708 pfn:30218
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff888030218f50 pfn:0x30218
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000000000 dead000000000040 ffff88801b790000 0000000000000000
raw: ffff888030218f50 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 16717, tgid 16714 (syz.3.2708), ts 1380283282727, free_ts 1379263018273
set_page_owner include/linux/page_owner.h:32 [inline]
post_alloc_hook+0x2d1/0x350 mm/page_alloc.c:1558
prep_new_page mm/page_alloc.c:1566 [inline]
get_page_from_freelist+0xfce/0x2f80 mm/page_alloc.c:3476
__alloc_pages_noprof+0x223/0x25b0 mm/page_alloc.c:4753
alloc_pages_bulk_noprof+0x72b/0x10b0 mm/page_alloc.c:4701
alloc_pages_bulk_array_node_noprof include/linux/gfp.h:239 [inline]
__page_pool_alloc_pages_slow+0x18f/0x770 net/core/page_pool.c:538
page_pool_alloc_netmem net/core/page_pool.c:590 [inline]
page_pool_alloc_netmem+0xc4/0x160 net/core/page_pool.c:577
page_pool_alloc_pages+0x1a/0x60 net/core/page_pool.c:597
page_pool_alloc include/net/page_pool/helpers.h:129 [inline]
page_pool_dev_alloc include/net/page_pool/helpers.h:167 [inline]
skb_pp_cow_data+0x72f/0xe80 net/core/skbuff.c:983
skb_cow_data_for_xdp+0x88/0xb0 net/core/skbuff.c:1017
netif_skb_check_for_xdp net/core/dev.c:5041 [inline]
netif_receive_generic_xdp net/core/dev.c:5080 [inline]
do_xdp_generic+0x3f1/0xe70 net/core/dev.c:5148
__netif_receive_skb_core.constprop.0+0x1330/0x4470 net/core/dev.c:5492
__netif_receive_skb_one_core+0xb1/0x1e0 net/core/dev.c:5670
__netif_receive_skb+0x1d/0x160 net/core/dev.c:5785
netif_receive_skb_internal net/core/dev.c:5871 [inline]
netif_receive_skb+0x13f/0x7b0 net/core/dev.c:5930
tun_rx_batched.isra.0+0x3eb/0x730 drivers/net/tun.c:1574
tun_get_user+0x2a22/0x3e50 drivers/net/tun.c:2007
page last free pid 5825 tgid 5825 stack trace:
reset_page_owner include/linux/page_owner.h:25 [inline]
free_pages_prepare mm/page_alloc.c:1127 [inline]
free_unref_page+0x661/0x1080 mm/page_alloc.c:2659
vfree+0x174/0x950 mm/vmalloc.c:3383
delayed_vfree_work+0x56/0x70 mm/vmalloc.c:3303
process_one_work+0x9c5/0x1ba0 kernel/workqueue.c:3229
process_scheduled_works kernel/workqueue.c:3310 [inline]
worker_thread+0x6c8/0xf00 kernel/workqueue.c:3391
kthread+0x2c1/0x3a0 kernel/kthread.c:389
ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:147
ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244
Modules linked in:
CPU: 0 UID: 0 PID: 16717 Comm: syz.3.2708 Tainted: G B 6.13.0-rc4-syzkaller-00110-g4099a71718b0 #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+0x16c/0x1f0 lib/dump_stack.c:120
bad_page+0xb3/0x1f0 mm/page_alloc.c:501
free_page_is_bad_report mm/page_alloc.c:913 [inline]
free_page_is_bad mm/page_alloc.c:923 [inline]
free_pages_prepare mm/page_alloc.c:1119 [inline]
free_unref_page+0x72f/0x1080 mm/page_alloc.c:2659
page_frag_free+0x255/0x2a0 mm/page_frag_cache.c:169
__xdp_return+0x217/0xa90 net/core/xdp.c:390
bpf_xdp_shrink_data net/core/filter.c:4157 [inline]
bpf_xdp_frags_shrink_tail net/core/filter.c:4178 [inline]
____bpf_xdp_adjust_tail net/core/filter.c:4203 [inline]
bpf_xdp_adjust_tail+0xa78/0x1080 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+0x630/0x1510 net/core/dev.c:4973
netif_receive_generic_xdp net/core/dev.c:5086 [inline]
do_xdp_generic+0x70a/0xe70 net/core/dev.c:5148
__netif_receive_skb_core.constprop.0+0x1330/0x4470 net/core/dev.c:5492
__netif_receive_skb_one_core+0xb1/0x1e0 net/core/dev.c:5670
__netif_receive_skb+0x1d/0x160 net/core/dev.c:5785
netif_receive_skb_internal net/core/dev.c:5871 [inline]
netif_receive_skb+0x13f/0x7b0 net/core/dev.c:5930
tun_rx_batched.isra.0+0x3eb/0x730 drivers/net/tun.c:1574
tun_get_user+0x2a22/0x3e50 drivers/net/tun.c:2007
tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:2053
new_sync_write fs/read_write.c:586 [inline]
vfs_write+0x5ae/0x1150 fs/read_write.c:679
ksys_write+0x12b/0x250 fs/read_write.c:731
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fd9829847df
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:00007fd983853000 EFLAGS: 00000293 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007fd982b75fa0 RCX: 00007fd9829847df
RDX: 000000000000fdef RSI: 0000000020000600 RDI: 00000000000000c8
RBP: 00007fd982a01b08 R08: 0000000000000000 R09: 0000000000000000
R10: 000000000000fdef R11: 0000000000000293 R12: 0000000000000000
R13: 0000000000000000 R14: 00007fd982b75fa0 R15: 00007ffd3da396e8
BUG: Bad page state in process syz.3.2708 pfn:6c538
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff88806c538c30 pfn:0x6c538
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000000000 dead000000000040 ffff88801b790000 0000000000000000
raw: ffff88806c538c30 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 16717, tgid 16714 (syz.3.2708), ts 1380283274804, free_ts 1379263024954
set_page_owner include/linux/page_owner.h:32 [inline]
post_alloc_hook+0x2d1/0x350 mm/page_alloc.c:1558
prep_new_page mm/page_alloc.c:1566 [inline]
get_page_from_freelist+0xfce/0x2f80 mm/page_alloc.c:3476
__alloc_pages_noprof+0x223/0x25b0 mm/page_alloc.c:4753
alloc_pages_bulk_noprof+0x72b/0x10b0 mm/page_alloc.c:4701
alloc_pages_bulk_array_node_noprof include/linux/gfp.h:239 [inline]
__page_pool_alloc_pages_slow+0x18f/0x770 net/core/page_pool.c:538
page_pool_alloc_netmem net/core/page_pool.c:590 [inline]
page_pool_alloc_netmem+0xc4/0x160 net/core/page_pool.c:577
page_pool_alloc_pages+0x1a/0x60 net/core/page_pool.c:597
page_pool_alloc include/net/page_pool/helpers.h:129 [inline]
page_pool_dev_alloc include/net/page_pool/helpers.h:167 [inline]
skb_pp_cow_data+0x72f/0xe80 net/core/skbuff.c:983
skb_cow_data_for_xdp+0x88/0xb0 net/core/skbuff.c:1017
netif_skb_check_for_xdp net/core/dev.c:5041 [inline]
netif_receive_generic_xdp net/core/dev.c:5080 [inline]
do_xdp_generic+0x3f1/0xe70 net/core/dev.c:5148
__netif_receive_skb_core.constprop.0+0x1330/0x4470 net/core/dev.c:5492
__netif_receive_skb_one_core+0xb1/0x1e0 net/core/dev.c:5670
__netif_receive_skb+0x1d/0x160 net/core/dev.c:5785
netif_receive_skb_internal net/core/dev.c:5871 [inline]
netif_receive_skb+0x13f/0x7b0 net/core/dev.c:5930
tun_rx_batched.isra.0+0x3eb/0x730 drivers/net/tun.c:1574
tun_get_user+0x2a22/0x3e50 drivers/net/tun.c:2007
page last free pid 5825 tgid 5825 stack trace:
reset_page_owner include/linux/page_owner.h:25 [inline]
free_pages_prepare mm/page_alloc.c:1127 [inline]
free_unref_page+0x661/0x1080 mm/page_alloc.c:2659
vfree+0x174/0x950 mm/vmalloc.c:3383
delayed_vfree_work+0x56/0x70 mm/vmalloc.c:3303
process_one_work+0x9c5/0x1ba0 kernel/workqueue.c:3229
process_scheduled_works kernel/workqueue.c:3310 [inline]
worker_thread+0x6c8/0xf00 kernel/workqueue.c:3391
kthread+0x2c1/0x3a0 kernel/kthread.c:389
ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:147
ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244
Modules linked in:
CPU: 0 UID: 0 PID: 16717 Comm: syz.3.2708 Tainted: G B 6.13.0-rc4-syzkaller-00110-g4099a71718b0 #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+0x16c/0x1f0 lib/dump_stack.c:120
bad_page+0xb3/0x1f0 mm/page_alloc.c:501
free_page_is_bad_report mm/page_alloc.c:913 [inline]
free_page_is_bad mm/page_alloc.c:923 [inline]
free_pages_prepare mm/page_alloc.c:1119 [inline]
free_unref_page+0x72f/0x1080 mm/page_alloc.c:2659
page_frag_free+0x255/0x2a0 mm/page_frag_cache.c:169
__xdp_return+0x217/0xa90 net/core/xdp.c:390
bpf_xdp_shrink_data net/core/filter.c:4157 [inline]
bpf_xdp_frags_shrink_tail net/core/filter.c:4178 [inline]
____bpf_xdp_adjust_tail net/core/filter.c:4203 [inline]
bpf_xdp_adjust_tail+0xa78/0x1080 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+0x630/0x1510 net/core/dev.c:4973
netif_receive_generic_xdp net/core/dev.c:5086 [inline]
do_xdp_generic+0x70a/0xe70 net/core/dev.c:5148
__netif_receive_skb_core.constprop.0+0x1330/0x4470 net/core/dev.c:5492
__netif_receive_skb_one_core+0xb1/0x1e0 net/core/dev.c:5670
__netif_receive_skb+0x1d/0x160 net/core/dev.c:5785
netif_receive_skb_internal net/core/dev.c:5871 [inline]
netif_receive_skb+0x13f/0x7b0 net/core/dev.c:5930
tun_rx_batched.isra.0+0x3eb/0x730 drivers/net/tun.c:1574
tun_get_user+0x2a22/0x3e50 drivers/net/tun.c:2007
tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:2053
new_sync_write fs/read_write.c:586 [inline]
vfs_write+0x5ae/0x1150 fs/read_write.c:679
ksys_write+0x12b/0x250 fs/read_write.c:731
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fd9829847df
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:00007fd983853000 EFLAGS: 00000293 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007fd982b75fa0 RCX: 00007fd9829847df
RDX: 000000000000fdef RSI: 0000000020000600 RDI: 00000000000000c8
RBP: 00007fd982a01b08 R08: 0000000000000000 R09: 0000000000000000
R10: 000000000000fdef R11: 0000000000000293 R12: 0000000000000000
R13: 0000000000000000 R14: 00007fd982b75fa0 R15: 00007ffd3da396e8
BUG: Bad page state in process syz.3.2708 pfn:65b63
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff888065b63fc0 pfn:0x65b63
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000000000 dead000000000040 ffff88801b790000 0000000000000000
raw: ffff888065b63fc0 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 16717, tgid 16714 (syz.3.2708), ts 1380283266623, free_ts 1379263030547
set_page_owner include/linux/page_owner.h:32 [inline]
post_alloc_hook+0x2d1/0x350 mm/page_alloc.c:1558
prep_new_page mm/page_alloc.c:1566 [inline]
get_page_from_freelist+0xfce/0x2f80 mm/page_alloc.c:3476
__alloc_pages_noprof+0x223/0x25b0 mm/page_alloc.c:4753
alloc_pages_bulk_noprof+0x72b/0x10b0 mm/page_alloc.c:4701
alloc_pages_bulk_array_node_noprof include/linux/gfp.h:239 [inline]
__page_pool_alloc_pages_slow+0x18f/0x770 net/core/page_pool.c:538
page_pool_alloc_netmem net/core/page_pool.c:590 [inline]
page_pool_alloc_netmem+0xc4/0x160 net/core/page_pool.c:577
page_pool_alloc_pages+0x1a/0x60 net/core/page_pool.c:597
page_pool_alloc include/net/page_pool/helpers.h:129 [inline]
page_pool_dev_alloc include/net/page_pool/helpers.h:167 [inline]
skb_pp_cow_data+0x72f/0xe80 net/core/skbuff.c:983
skb_cow_data_for_xdp+0x88/0xb0 net/core/skbuff.c:1017
netif_skb_check_for_xdp net/core/dev.c:5041 [inline]
netif_receive_generic_xdp net/core/dev.c:5080 [inline]
do_xdp_generic+0x3f1/0xe70 net/core/dev.c:5148
__netif_receive_skb_core.constprop.0+0x1330/0x4470 net/core/dev.c:5492
__netif_receive_skb_one_core+0xb1/0x1e0 net/core/dev.c:5670
__netif_receive_skb+0x1d/0x160 net/core/dev.c:5785
netif_receive_skb_internal net/core/dev.c:5871 [inline]
netif_receive_skb+0x13f/0x7b0 net/core/dev.c:5930
tun_rx_batched.isra.0+0x3eb/0x730 drivers/net/tun.c:1574
tun_get_user+0x2a22/0x3e50 drivers/net/tun.c:2007
page last free pid 5825 tgid 5825 stack trace:
reset_page_owner include/linux/page_owner.h:25 [inline]
free_pages_prepare mm/page_alloc.c:1127 [inline]
free_unref_page+0x661/0x1080 mm/page_alloc.c:2659
vfree+0x174/0x950 mm/vmalloc.c:3383
delayed_vfree_work+0x56/0x70 mm/vmalloc.c:3303
process_one_work+0x9c5/0x1ba0 kernel/workqueue.c:3229
process_scheduled_works kernel/workqueue.c:3310 [inline]
worker_thread+0x6c8/0xf00 kernel/workqueue.c:3391
kthread+0x2c1/0x3a0 kernel/kthread.c:389
ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:147
ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244
Modules linked in:
CPU: 0 UID: 0 PID: 16717 Comm: syz.3.2708 Tainted: G B 6.13.0-rc4-syzkaller-00110-g4099a71718b0 #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+0x16c/0x1f0 lib/dump_stack.c:120
bad_page+0xb3/0x1f0 mm/page_alloc.c:501
free_page_is_bad_report mm/page_alloc.c:913 [inline]
free_page_is_bad mm/page_alloc.c:923 [inline]
free_pages_prepare mm/page_alloc.c:1119 [inline]
free_unref_page+0x72f/0x1080 mm/page_alloc.c:2659
page_frag_free+0x255/0x2a0 mm/page_frag_cache.c:169
__xdp_return+0x217/0xa90 net/core/xdp.c:390
bpf_xdp_shrink_data net/core/filter.c:4157 [inline]
bpf_xdp_frags_shrink_tail net/core/filter.c:4178 [inline]
____bpf_xdp_adjust_tail net/core/filter.c:4203 [inline]
bpf_xdp_adjust_tail+0xa78/0x1080 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+0x630/0x1510 net/core/dev.c:4973
netif_receive_generic_xdp net/core/dev.c:5086 [inline]
do_xdp_generic+0x70a/0xe70 net/core/dev.c:5148
__netif_receive_skb_core.constprop.0+0x1330/0x4470 net/core/dev.c:5492
__netif_receive_skb_one_core+0xb1/0x1e0 net/core/dev.c:5670
__netif_receive_skb+0x1d/0x160 net/core/dev.c:5785
netif_receive_skb_internal net/core/dev.c:5871 [inline]
netif_receive_skb+0x13f/0x7b0 net/core/dev.c:5930
tun_rx_batched.isra.0+0x3eb/0x730 drivers/net/tun.c:1574
tun_get_user+0x2a22/0x3e50 drivers/net/tun.c:2007
tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:2053
new_sync_write fs/read_write.c:586 [inline]
vfs_write+0x5ae/0x1150 fs/read_write.c:679
ksys_write+0x12b/0x250 fs/read_write.c:731
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fd9829847df
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:00007fd983853000 EFLAGS: 00000293 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007fd982b75fa0 RCX: 00007fd9829847df
RDX: 000000000000fdef RSI: 0000000020000600 RDI: 00000000000000c8
RBP: 00007fd982a01b08 R08: 0000000000000000 R09: 0000000000000000
R10: 000000000000fdef R11: 0000000000000293 R12: 0000000000000000
R13: 0000000000000000 R14: 00007fd982b75fa0 R15: 00007ffd3da396e8
BUG: Bad page state in process syz.3.2708 pfn:6ecac
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff88806ecacf00 pfn:0x6ecac
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000000000 dead000000000040 ffff88801b790000 0000000000000000
raw: ffff88806ecacf00 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 16717, tgid 16714 (syz.3.2708), ts 1380283258457, free_ts 1379263036184
set_page_owner include/linux/page_owner.h:32 [inline]
post_alloc_hook+0x2d1/0x350 mm/page_alloc.c:1558
prep_new_page mm/page_alloc.c:1566 [inline]
get_page_from_freelist+0xfce/0x2f80 mm/page_alloc.c:3476
__alloc_pages_noprof+0x223/0x25b0 mm/page_alloc.c:4753
alloc_pages_bulk_noprof+0x72b/0x10b0 mm/page_alloc.c:4701
alloc_pages_bulk_array_node_noprof include/linux/gfp.h:239 [inline]
__page_pool_alloc_pages_slow+0x18f/0x770 net/core/page_pool.c:538
page_pool_alloc_netmem net/core/page_pool.c:590 [inline]
page_pool_alloc_netmem+0xc4/0x160 net/core/page_pool.c:577
page_pool_alloc_pages+0x1a/0x60 net/core/page_pool.c:597
page_pool_alloc include/net/page_pool/helpers.h:129 [inline]
page_pool_dev_alloc include/net/page_pool/helpers.h:167 [inline]
skb_pp_cow_data+0x72f/0xe80 net/core/skbuff.c:983
skb_cow_data_for_xdp+0x88/0xb0 net/core/skbuff.c:1017
netif_skb_check_for_xdp net/core/dev.c:5041 [inline]
netif_receive_generic_xdp net/core/dev.c:5080 [inline]
do_xdp_generic+0x3f1/0xe70 net/core/dev.c:5148
__netif_receive_skb_core.constprop.0+0x1330/0x4470 net/core/dev.c:5492
__netif_receive_skb_one_core+0xb1/0x1e0 net/core/dev.c:5670
__netif_receive_skb+0x1d/0x160 net/core/dev.c:5785
netif_receive_skb_internal net/core/dev.c:5871 [inline]
netif_receive_skb+0x13f/0x7b0 net/core/dev.c:5930
tun_rx_batched.isra.0+0x3eb/0x730 drivers/net/tun.c:1574
tun_get_user+0x2a22/0x3e50 drivers/net/tun.c:2007
page last free pid 5825 tgid 5825 stack trace:
reset_page_owner include/linux/page_owner.h:25 [inline]
free_pages_prepare mm/page_alloc.c:1127 [inline]
free_unref_page+0x661/0x1080 mm/page_alloc.c:2659
vfree+0x174/0x950 mm/vmalloc.c:3383
delayed_vfree_work+0x56/0x70 mm/vmalloc.c:3303
process_one_work+0x9c5/0x1ba0 kernel/workqueue.c:3229
process_scheduled_works kernel/workqueue.c:3310 [inline]
worker_thread+0x6c8/0xf00 kernel/workqueue.c:3391
kthread+0x2c1/0x3a0 kernel/kthread.c:389
ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:147
ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244
Modules linked in:
CPU: 0 UID: 0 PID: 16717 Comm: syz.3.2708 Tainted: G B 6.13.0-rc4-syzkaller-00110-g4099a71718b0 #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+0x16c/0x1f0 lib/dump_stack.c:120
bad_page+0xb3/0x1f0 mm/page_alloc.c:501
free_page_is_bad_report mm/page_alloc.c:913 [inline]
free_page_is_bad mm/page_alloc.c:923 [inline]
free_pages_prepare mm/page_alloc.c:1119 [inline]
free_unref_page+0x72f/0x1080 mm/page_alloc.c:2659
page_frag_free+0x255/0x2a0 mm/page_frag_cache.c:169
__xdp_return+0x217/0xa90 net/core/xdp.c:390
bpf_xdp_shrink_data net/core/filter.c:4157 [inline]
bpf_xdp_frags_shrink_tail net/core/filter.c:4178 [inline]
____bpf_xdp_adjust_tail net/core/filter.c:4203 [inline]
bpf_xdp_adjust_tail+0xa78/0x1080 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+0x630/0x1510 net/core/dev.c:4973
netif_receive_generic_xdp net/core/dev.c:5086 [inline]
do_xdp_generic+0x70a/0xe70 net/core/dev.c:5148
__netif_receive_skb_core.constprop.0+0x1330/0x4470 net/core/dev.c:5492
__netif_receive_skb_one_core+0xb1/0x1e0 net/core/dev.c:5670
__netif_receive_skb+0x1d/0x160 net/core/dev.c:5785
netif_receive_skb_internal net/core/dev.c:5871 [inline]
netif_receive_skb+0x13f/0x7b0 net/core/dev.c:5930
tun_rx_batched.isra.0+0x3eb/0x730 drivers/net/tun.c:1574
tun_get_user+0x2a22/0x3e50 drivers/net/tun.c:2007
tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:2053
new_sync_write fs/read_write.c:586 [inline]
vfs_write+0x5ae/0x1150 fs/read_write.c:679
ksys_write+0x12b/0x250 fs/read_write.c:731
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fd9829847df
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:00007fd983853000 EFLAGS: 00000293 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007fd982b75fa0 RCX: 00007fd9829847df
RDX: 000000000000fdef RSI: 0000000020000600 RDI: 00000000000000c8
RBP: 00007fd982a01b08 R08: 0000000000000000 R09: 0000000000000000
R10: 000000000000fdef R11: 0000000000000293 R12: 0000000000000000
R13: 0000000000000000 R14: 00007fd982b75fa0 R15: 00007ffd3da396e8
BUG: Bad page state in process syz.3.2708 pfn:6d7a5
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff88806d7a5000 pfn:0x6d7a5
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000000000 dead000000000040 ffff88801b790000 0000000000000000
raw: ffff88806d7a5000 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 16717, tgid 16714 (syz.3.2708), ts 1380283250567, free_ts 1379263043116
set_page_owner include/linux/page_owner.h:32 [inline]
post_alloc_hook+0x2d1/0x350 mm/page_alloc.c:1558
prep_new_page mm/page_alloc.c:1566 [inline]
get_page_from_freelist+0xfce/0x2f80 mm/page_alloc.c:3476
__alloc_pages_noprof+0x223/0x25b0 mm/page_alloc.c:4753
alloc_pages_bulk_noprof+0x72b/0x10b0 mm/page_alloc.c:4701
alloc_pages_bulk_array_node_noprof include/linux/gfp.h:239 [inline]
__page_pool_alloc_pages_slow+0x18f/0x770 net/core/page_pool.c:538
page_pool_alloc_netmem net/core/page_pool.c:590 [inline]
page_pool_alloc_netmem+0xc4/0x160 net/core/page_pool.c:577
page_pool_alloc_pages+0x1a/0x60 net/core/page_pool.c:597
page_pool_alloc include/net/page_pool/helpers.h:129 [inline]
page_pool_dev_alloc include/net/page_pool/helpers.h:167 [inline]
skb_pp_cow_data+0x72f/0xe80 net/core/skbuff.c:983
skb_cow_data_for_xdp+0x88/0xb0 net/core/skbuff.c:1017
netif_skb_check_for_xdp net/core/dev.c:5041 [inline]
netif_receive_generic_xdp net/core/dev.c:5080 [inline]
do_xdp_generic+0x3f1/0xe70 net/core/dev.c:5148
__netif_receive_skb_core.constprop.0+0x1330/0x4470 net/core/dev.c:5492
__netif_receive_skb_one_core+0xb1/0x1e0 net/core/dev.c:5670
__netif_receive_skb+0x1d/0x160 net/core/dev.c:5785
netif_receive_skb_internal net/core/dev.c:5871 [inline]
netif_receive_skb+0x13f/0x7b0 net/core/dev.c:5930
tun_rx_batched.isra.0+0x3eb/0x730 drivers/net/tun.c:1574
tun_get_user+0x2a22/0x3e50 drivers/net/tun.c:2007
page last free pid 5825 tgid 5825 stack trace:
reset_page_owner include/linux/page_owner.h:25 [inline]
free_pages_prepare mm/page_alloc.c:1127 [inline]
free_unref_page+0x661/0x1080 mm/page_alloc.c:2659
vfree+0x174/0x950 mm/vmalloc.c:3383
delayed_vfree_work+0x56/0x70 mm/vmalloc.c:3303
process_one_work+0x9c5/0x1ba0 kernel/workqueue.c:3229
process_scheduled_works kernel/workqueue.c:3310 [inline]
worker_thread+0x6c8/0xf00 kernel/workqueue.c:3391
kthread+0x2c1/0x3a0 kernel/kthread.c:389
ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:147
ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244
Modules linked in:
CPU: 0 UID: 0 PID: 16717 Comm: syz.3.2708 Tainted: G B 6.13.0-rc4-syzkaller-00110-g4099a71718b0 #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+0x16c/0x1f0 lib/dump_stack.c:120
bad_page+0xb3/0x1f0 mm/page_alloc.c:501
free_page_is_bad_report mm/page_alloc.c:913 [inline]
free_page_is_bad mm/page_alloc.c:923 [inline]
free_pages_prepare mm/page_alloc.c:1119 [inline]
free_unref_page+0x72f/0x1080 mm/page_alloc.c:2659
page_frag_free+0x255/0x2a0 mm/page_frag_cache.c:169
__xdp_return+0x217/0xa90 net/core/xdp.c:390
bpf_xdp_shrink_data net/core/filter.c:4157 [inline]
bpf_xdp_frags_shrink_tail net/core/filter.c:4178 [inline]
____bpf_xdp_adjust_tail net/core/filter.c:4203 [inline]
bpf_xdp_adjust_tail+0xa78/0x1080 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+0x630/0x1510 net/core/dev.c:4973
netif_receive_generic_xdp net/core/dev.c:5086 [inline]
do_xdp_generic+0x70a/0xe70 net/core/dev.c:5148
__netif_receive_skb_core.constprop.0+0x1330/0x4470 net/core/dev.c:5492
__netif_receive_skb_one_core+0xb1/0x1e0 net/core/dev.c:5670
__netif_receive_skb+0x1d/0x160 net/core/dev.c:5785
netif_receive_skb_internal net/core/dev.c:5871 [inline]
netif_receive_skb+0x13f/0x7b0 net/core/dev.c:5930
tun_rx_batched.isra.0+0x3eb/0x730 drivers/net/tun.c:1574
tun_get_user+0x2a22/0x3e50 drivers/net/tun.c:2007
tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:2053
new_sync_write fs/read_write.c:586 [inline]
vfs_write+0x5ae/0x1150 fs/read_write.c:679
ksys_write+0x12b/0x250 fs/read_write.c:731
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fd9829847df
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:00007fd983853000 EFLAGS: 00000293 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007fd982b75fa0 RCX: 00007fd9829847df
RDX: 000000000000fdef RSI: 0000000020000600 RDI: 00000000000000c8
RBP: 00007fd982a01b08 R08: 0000000000000000 R09: 0000000000000000
R10: 000000000000fdef R11: 0000000000000293 R12: 0000000000000000
R13: 0000000000000000 R14: 00007fd982b75fa0 R15: 00007ffd3da396e8
BUG: Bad page state in process syz.3.2708 pfn:41ab3
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff888041ab3f08 pfn:0x41ab3
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000000000 dead000000000040 ffff88801b790000 0000000000000000
raw: ffff888041ab3f08 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 16717, tgid 16714 (syz.3.2708), ts 1380283241936, free_ts 1379263073131
set_page_owner include/linux/page_owner.h:32 [inline]
post_alloc_hook+0x2d1/0x350 mm/page_alloc.c:1558
prep_new_page mm/page_alloc.c:1566 [inline]
get_page_from_freelist+0xfce/0x2f80 mm/page_alloc.c:3476
__alloc_pages_noprof+0x223/0x25b0 mm/page_alloc.c:4753
alloc_pages_bulk_noprof+0x72b/0x10b0 mm/page_alloc.c:4701
alloc_pages_bulk_array_node_noprof include/linux/gfp.h:239 [inline]
__page_pool_alloc_pages_slow+0x18f/0x770 net/core/page_pool.c:538
page_pool_alloc_netmem net/core/page_pool.c:590 [inline]
page_pool_alloc_netmem+0xc4/0x160 net/core/page_pool.c:577
page_pool_alloc_pages+0x1a/0x60 net/core/page_pool.c:597
page_pool_alloc include/net/page_pool/helpers.h:129 [inline]
page_pool_dev_alloc include/net/page_pool/helpers.h:167 [inline]
skb_pp_cow_data+0x72f/0xe80 net/core/skbuff.c:983
skb_cow_data_for_xdp+0x88/0xb0 net/core/skbuff.c:1017
netif_skb_check_for_xdp net/core/dev.c:5041 [inline]
netif_receive_generic_xdp net/core/dev.c:5080 [inline]
do_xdp_generic+0x3f1/0xe70 net/core/dev.c:5148
__netif_receive_skb_core.constprop.0+0x1330/0x4470 net/core/dev.c:5492
__netif_receive_skb_one_core+0xb1/0x1e0 net/core/dev.c:5670
__netif_receive_skb+0x1d/0x160 net/core/dev.c:5785
netif_receive_skb_internal net/core/dev.c:5871 [inline]
netif_receive_skb+0x13f/0x7b0 net/core/dev.c:5930
tun_rx_batched.isra.0+0x3eb/0x730 drivers/net/tun.c:1574
tun_get_user+0x2a22/0x3e50 drivers/net/tun.c:2007
page last free pid 5825 tgid 5825 stack trace:
reset_page_owner include/linux/page_owner.h:25 [inline]
free_pages_prepare mm/page_alloc.c:1127 [inline]
free_unref_page+0x661/0x1080 mm/page_alloc.c:2659
vfree+0x174/0x950 mm/vmalloc.c:3383
delayed_vfree_work+0x56/0x70 mm/vmalloc.c:3303
process_one_work+0x9c5/0x1ba0 kernel/workqueue.c:3229
process_scheduled_works kernel/workqueue.c:3310 [inline]
worker_thread+0x6c8/0xf00 kernel/workqueue.c:3391
kthread+0x2c1/0x3a0 kernel/kthread.c:389
ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:147
ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244
Modules linked in:
CPU: 0 UID: 0 PID: 16717 Comm: syz.3.2708 Tainted: G B 6.13.0-rc4-syzkaller-00110-g4099a71718b0 #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+0x16c/0x1f0 lib/dump_stack.c:120
bad_page+0xb3/0x1f0 mm/page_alloc.c:501
free_page_is_bad_report mm/page_alloc.c:913 [inline]
free_page_is_bad mm/page_alloc.c:923 [inline]
free_pages_prepare mm/page_alloc.c:1119 [inline]
free_unref_page+0x72f/0x1080 mm/page_alloc.c:2659
page_frag_free+0x255/0x2a0 mm/page_frag_cache.c:169
__xdp_return+0x217/0xa90 net/core/xdp.c:390
bpf_xdp_shrink_data net/core/filter.c:4157 [inline]
bpf_xdp_frags_shrink_tail net/core/filter.c:4178 [inline]
____bpf_xdp_adjust_tail net/core/filter.c:4203 [inline]
bpf_xdp_adjust_tail+0xa78/0x1080 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+0x630/0x1510 net/core/dev.c:4973
netif_receive_generic_xdp net/core/dev.c:5086 [inline]
do_xdp_generic+0x70a/0xe70 net/core/dev.c:5148
__netif_receive_skb_core.constprop.0+0x1330/0x4470 net/core/dev.c:5492
__netif_receive_skb_one_core+0xb1/0x1e0 net/core/dev.c:5670
__netif_receive_skb+0x1d/0x160 net/core/dev.c:5785
netif_receive_skb_internal net/core/dev.c:5871 [inline]
netif_receive_skb+0x13f/0x7b0 net/core/dev.c:5930
tun_rx_batched.isra.0+0x3eb/0x730 drivers/net/tun.c:1574
tun_get_user+0x2a22/0x3e50 drivers/net/tun.c:2007
tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:2053
new_sync_write fs/read_write.c:586 [inline]
vfs_write+0x5ae/0x1150 fs/read_write.c:679
ksys_write+0x12b/0x250 fs/read_write.c:731
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fd9829847df
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:00007fd983853000 EFLAGS: 00000293 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007fd982b75fa0 RCX: 00007fd9829847df
RDX: 000000000000fdef RSI: 0000000020000600 RDI: 00000000000000c8
RBP: 00007fd982a01b08 R08: 0000000000000000 R09: 0000000000000000
R10: 000000000000fdef R11: 0000000000000293 R12: 0000000000000000
R13: 0000000000000000 R14: 00007fd982b75fa0 R15: 00007ffd3da396e8
BUG: Bad page state in process syz.3.2708 pfn:6cb6c
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff88806cb6cf70 pfn:0x6cb6c
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000000000 dead000000000040 ffff88801b790000 0000000000000000
raw: ffff88806cb6cf70 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 16717, tgid 16714 (syz.3.2708), ts 1380283233980, free_ts 1379263079506
set_page_owner include/linux/page_owner.h:32 [inline]
post_alloc_hook+0x2d1/0x350 mm/page_alloc.c:1558
prep_new_page mm/page_alloc.c:1566 [inline]
get_page_from_freelist+0xfce/0x2f80 mm/page_alloc.c:3476
__alloc_pages_noprof+0x223/0x25b0 mm/page_alloc.c:4753
alloc_pages_bulk_noprof+0x72b/0x10b0 mm/page_alloc.c:4701
alloc_pages_bulk_array_node_noprof include/linux/gfp.h:239 [inline]
__page_pool_alloc_pages_slow+0x18f/0x770 net/core/page_pool.c:538
page_pool_alloc_netmem net/core/page_pool.c:590 [inline]
page_pool_alloc_netmem+0xc4/0x160 net/core/page_pool.c:577
page_pool_alloc_pages+0x1a/0x60 net/core/page_pool.c:597
page_pool_alloc include/net/page_pool/helpers.h:129 [inline]
page_pool_dev_alloc include/net/page_pool/helpers.h:167 [inline]
skb_pp_cow_data+0x72f/0xe80 net/core/skbuff.c:983
skb_cow_data_for_xdp+0x88/0xb0 net/core/skbuff.c:1017
netif_skb_check_for_xdp net/core/dev.c:5041 [inline]
netif_receive_generic_xdp net/core/dev.c:5080 [inline]
do_xdp_generic+0x3f1/0xe70 net/core/dev.c:5148
__netif_receive_skb_core.constprop.0+0x1330/0x4470 net/core/dev.c:5492
__netif_receive_skb_one_core+0xb1/0x1e0 net/core/dev.c:5670
__netif_receive_skb+0x1d/0x160 net/core/dev.c:5785
netif_receive_skb_internal net/core/dev.c:5871 [inline]
netif_receive_skb+0x13f/0x7b0 net/core/dev.c:5930
tun_rx_batched.isra.0+0x3eb/0x730 drivers/net/tun.c:1574
tun_get_user+0x2a22/0x3e50 drivers/net/tun.c:2007
page last free pid 5825 tgid 5825 stack trace:
reset_page_owner include/linux/page_owner.h:25 [inline]
free_pages_prepare mm/page_alloc.c:1127 [inline]
free_unref_page+0x661/0x1080 mm/page_alloc.c:2659
vfree+0x174/0x950 mm/vmalloc.c:3383
delayed_vfree_work+0x56/0x70 mm/vmalloc.c:3303
process_one_work+0x9c5/0x1ba0 kernel/workqueue.c:3229
process_scheduled_works kernel/workqueue.c:3310 [inline]
worker_thread+0x6c8/0xf00 kernel/workqueue.c:3391
kthread+0x2c1/0x3a0 kernel/kthread.c:389
ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:147
ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244
Modules linked in:
CPU: 0 UID: 0 PID: 16717 Comm: syz.3.2708 Tainted: G B 6.13.0-rc4-syzkaller-00110-g4099a71718b0 #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+0x16c/0x1f0 lib/dump_stack.c:120
bad_page+0xb3/0x1f0 mm/page_alloc.c:501
free_page_is_bad_report mm/page_alloc.c:913 [inline]
free_page_is_bad mm/page_alloc.c:923 [inline]
free_pages_prepare mm/page_alloc.c:1119 [inline]
free_unref_page+0x72f/0x1080 mm/page_alloc.c:2659
page_frag_free+0x255/0x2a0 mm/page_frag_cache.c:169
__xdp_return+0x217/0xa90 net/core/xdp.c:390
bpf_xdp_shrink_data net/core/filter.c:4157 [inline]
bpf_xdp_frags_shrink_tail net/core/filter.c:4178 [inline]
____bpf_xdp_adjust_tail net/core/filter.c:4203 [inline]
bpf_xdp_adjust_tail+0xa78/0x1080 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+0x630/0x1510 net/core/dev.c:4973
netif_receive_generic_xdp net/core/dev.c:5086 [inline]
do_xdp_generic+0x70a/0xe70 net/core/dev.c:5148
__netif_receive_skb_core.constprop.0+0x1330/0x4470 net/core/dev.c:5492
__netif_receive_skb_one_core+0xb1/0x1e0 net/core/dev.c:5670
__netif_receive_skb+0x1d/0x160 net/core/dev.c:5785
netif_receive_skb_internal net/core/dev.c:5871 [inline]
netif_receive_skb+0x13f/0x7b0 net/core/dev.c:5930
tun_rx_batched.isra.0+0x3eb/0x730 drivers/net/tun.c:1574
tun_get_user+0x2a22/0x3e50 drivers/net/tun.c:2007
tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:2053
new_sync_write fs/read_write.c:586 [inline]
vfs_write+0x5ae/0x1150 fs/read_write.c:679
ksys_write+0x12b/0x250 fs/read_write.c:731
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fd9829847df
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:00007fd983853000 EFLAGS: 00000293 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007fd982b75fa0 RCX: 00007fd9829847df
RDX: 000000000000fdef RSI: 0000000020000600 RDI: 00000000000000c8
RBP: 00007fd982a01b08 R08: 0000000000000000 R09: 0000000000000000
R10: 000000000000fdef R11: 0000000000000293 R12: 0000000000000000
R13: 0000000000000000 R14: 00007fd982b75fa0 R15: 00007ffd3da396e8