BUG: Bad page state in process syz.0.0 pfn:13887
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff888013887640 pfn:0x13887
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000000000 dead000000000040 ffff8880002e0000 0000000000000000
raw: ffff888013887640 3ffffffffffffffe 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 5322, tgid 5321 (syz.0.0), ts 101565026041
set_page_owner include/linux/page_owner.h:33 [inline]
post_alloc_hook+0x1f9/0x250 mm/page_alloc.c:1871
prep_new_page mm/page_alloc.c:1879 [inline]
get_page_from_freelist+0x2209/0x2280 mm/page_alloc.c:3943
__alloc_frozen_pages_noprof+0x217/0x5a0 mm/page_alloc.c:5436
__alloc_pages_noprof+0x10/0x100 mm/page_alloc.c:5471
alloc_pages_bulk_noprof+0x5fa/0x7c0 mm/page_alloc.c:5295
alloc_pages_bulk_node_noprof include/linux/gfp.h:235 [inline]
__page_pool_alloc_netmems_slow+0x14f/0x720 net/core/page_pool.c:637
page_pool_alloc_netmems net/core/page_pool.c:688 [inline]
page_pool_alloc_frag_netmem+0x561/0x9b0 net/core/page_pool.c:1090
page_pool_alloc_netmem include/net/page_pool/helpers.h:131 [inline]
page_pool_alloc include/net/page_pool/helpers.h:167 [inline]
page_pool_dev_alloc include/net/page_pool/helpers.h:188 [inline]
skb_pp_cow_data+0xc2c/0x18e0 net/core/skbuff.c:990
netif_skb_check_for_xdp net/core/dev.c:5652 [inline]
netif_receive_generic_xdp net/core/dev.c:5693 [inline]
do_xdp_generic+0x78f/0x12f0 net/core/dev.c:5761
tun_get_user+0x248b/0x4450 drivers/net/tun.c:1967
tun_chr_write_iter+0x113/0x200 drivers/net/tun.c:2094
new_sync_write fs/read_write.c:595 [inline]
vfs_write+0x612/0xba0 fs/read_write.c:687
ksys_write+0x150/0x270 fs/read_write.c:739
do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84
entry_SYSCALL_64_after_hwframe+0x77/0x7f
page last free pid 5278 tgid 5278 ts 101482428504 stack trace:
reset_page_owner include/linux/page_owner.h:26 [inline]
__free_pages_prepare mm/page_alloc.c:1418 [inline]
__free_frozen_pages+0xc93/0xd90 mm/page_alloc.c:2962
__slab_free+0x274/0x2c0 mm/slub.c:5823
qlink_free mm/kasan/quarantine.c:163 [inline]
qlist_free_all+0x99/0x100 mm/kasan/quarantine.c:179
kasan_quarantine_reduce+0x148/0x160 mm/kasan/quarantine.c:286
__kasan_slab_alloc+0x22/0x80 mm/kasan/common.c:361
kasan_slab_alloc include/linux/kasan.h:253 [inline]
slab_post_alloc_hook mm/slub.c:4683 [inline]
slab_alloc_node mm/slub.c:4996 [inline]
kmem_cache_alloc_noprof+0x2b9/0x600 mm/slub.c:5010
alloc_filename fs/namei.c:147 [inline]
do_getname+0x2e/0x250 fs/namei.c:187
getname include/linux/fs.h:2560 [inline]
getname_maybe_null include/linux/fs.h:2567 [inline]
class_filename_maybe_null_constructor include/linux/fs.h:2591 [inline]
vfs_fstatat+0x45/0x170 fs/stat.c:368
__do_sys_newfstatat fs/stat.c:538 [inline]
__se_sys_newfstatat fs/stat.c:532 [inline]
__x64_sys_newfstatat+0x151/0x200 fs/stat.c:532
do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84
entry_SYSCALL_64_after_hwframe+0x77/0x7f
Modules linked in:
CPU: 0 UID: 0 PID: 5323 Comm: syz.0.0 Not tainted syzkaller #0 PREEMPT(full)
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
Call Trace:
dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120
bad_page+0x17f/0x1c0 mm/page_alloc.c:647
free_page_is_bad mm/page_alloc.c:1082 [inline]
__free_pages_prepare mm/page_alloc.c:1409 [inline]
__free_frozen_pages+0xd37/0xd90 mm/page_alloc.c:2962
bpf_xdp_shrink_data net/core/filter.c:4383 [inline]
bpf_xdp_frags_shrink_tail+0x4ed/0x800 net/core/filter.c:4407
____bpf_xdp_adjust_tail net/core/filter.c:4429 [inline]
bpf_xdp_adjust_tail+0x1ce/0x210 net/core/filter.c:4422
bpf_prog_5d7dc57dfd7f985a+0x1e/0x24
__bpf_prog_run include/linux/filter.h:779 [inline]
bpf_prog_run_xdp include/net/xdp.h:701 [inline]
bpf_prog_run_generic_xdp+0x612/0x1560 net/core/dev.c:5579
netif_receive_generic_xdp net/core/dev.c:5699 [inline]
do_xdp_generic+0xae1/0x12f0 net/core/dev.c:5761
tun_get_user+0x248b/0x4450 drivers/net/tun.c:1967
tun_chr_write_iter+0x113/0x200 drivers/net/tun.c:2094
new_sync_write fs/read_write.c:595 [inline]
vfs_write+0x612/0xba0 fs/read_write.c:687
ksys_write+0x150/0x270 fs/read_write.c:739
do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f054b55ea0e
Code: 08 0f 85 a5 a8 ff ff 49 89 fb 48 89 f0 48 89 d7 48 89 ce 4c 89 c2 4d 89 ca 4c 8b 44 24 08 4c 8b 4c 24 10 4c 89 5c 24 08 0f 05 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 80 00 00 00 00 48 83 ec 08
RSP: 002b:00007f054c530f78 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f054c5316c0 RCX: 00007f054b55ea0e
RDX: 000000000000fdef RSI: 00002000000001c0 RDI: 00000000000000c8
RBP: 00007f054b635888 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f054b826128 R14: 00007f054b826090 R15: 00007ffe7f94b1a8
BUG: Bad page state in process syz.0.0 pfn:14592
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x14592
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000000000 dead000000000040 ffff8880002e0000 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 5323, tgid 5321 (syz.0.0), ts 101617199556
set_page_owner include/linux/page_owner.h:33 [inline]
post_alloc_hook+0x1f9/0x250 mm/page_alloc.c:1871
prep_new_page mm/page_alloc.c:1879 [inline]
get_page_from_freelist+0x2209/0x2280 mm/page_alloc.c:3943
__alloc_frozen_pages_noprof+0x217/0x5a0 mm/page_alloc.c:5436
__alloc_pages_noprof+0x10/0x100 mm/page_alloc.c:5471
alloc_pages_bulk_noprof+0x5fa/0x7c0 mm/page_alloc.c:5295
alloc_pages_bulk_node_noprof include/linux/gfp.h:235 [inline]
__page_pool_alloc_netmems_slow+0x14f/0x720 net/core/page_pool.c:637
page_pool_alloc_netmem include/net/page_pool/helpers.h:128 [inline]
page_pool_alloc include/net/page_pool/helpers.h:167 [inline]
page_pool_dev_alloc include/net/page_pool/helpers.h:188 [inline]
skb_pp_cow_data+0xc08/0x18e0 net/core/skbuff.c:990
netif_skb_check_for_xdp net/core/dev.c:5652 [inline]
netif_receive_generic_xdp net/core/dev.c:5693 [inline]
do_xdp_generic+0x78f/0x12f0 net/core/dev.c:5761
tun_get_user+0x248b/0x4450 drivers/net/tun.c:1967
tun_chr_write_iter+0x113/0x200 drivers/net/tun.c:2094
new_sync_write fs/read_write.c:595 [inline]
vfs_write+0x612/0xba0 fs/read_write.c:687
ksys_write+0x150/0x270 fs/read_write.c:739
do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84
entry_SYSCALL_64_after_hwframe+0x77/0x7f
page last free pid 1 tgid 1 ts 30434970614 stack trace:
reset_page_owner include/linux/page_owner.h:26 [inline]
__free_pages_prepare mm/page_alloc.c:1418 [inline]
__free_frozen_pages+0xc93/0xd90 mm/page_alloc.c:2962
free_reserved_page include/linux/mm.h:4083 [inline]
__free_reserved_area mm/memblock.c:926 [inline]
free_reserved_area+0x204/0x2e0 mm/memblock.c:957
free_init_pages arch/x86/mm/init.c:936 [inline]
free_kernel_image_pages+0xa2/0x100 arch/x86/mm/init.c:952
kernel_init+0x36/0x1d0 init/main.c:1574
ret_from_fork+0x514/0xb70 arch/x86/kernel/process.c:158
ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245
Modules linked in:
CPU: 0 UID: 0 PID: 5323 Comm: syz.0.0 Tainted: G B syzkaller #0 PREEMPT(full)
Tainted: [B]=BAD_PAGE
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
Call Trace:
dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120
bad_page+0x17f/0x1c0 mm/page_alloc.c:647
free_page_is_bad mm/page_alloc.c:1082 [inline]
__free_pages_prepare mm/page_alloc.c:1409 [inline]
__free_frozen_pages+0xd37/0xd90 mm/page_alloc.c:2962
bpf_xdp_shrink_data net/core/filter.c:4383 [inline]
bpf_xdp_frags_shrink_tail+0x4ed/0x800 net/core/filter.c:4407
____bpf_xdp_adjust_tail net/core/filter.c:4429 [inline]
bpf_xdp_adjust_tail+0x1ce/0x210 net/core/filter.c:4422
bpf_prog_5d7dc57dfd7f985a+0x1e/0x24
__bpf_prog_run include/linux/filter.h:779 [inline]
bpf_prog_run_xdp include/net/xdp.h:701 [inline]
bpf_prog_run_generic_xdp+0x612/0x1560 net/core/dev.c:5579
netif_receive_generic_xdp net/core/dev.c:5699 [inline]
do_xdp_generic+0xae1/0x12f0 net/core/dev.c:5761
tun_get_user+0x248b/0x4450 drivers/net/tun.c:1967
tun_chr_write_iter+0x113/0x200 drivers/net/tun.c:2094
new_sync_write fs/read_write.c:595 [inline]
vfs_write+0x612/0xba0 fs/read_write.c:687
ksys_write+0x150/0x270 fs/read_write.c:739
do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f054b55ea0e
Code: 08 0f 85 a5 a8 ff ff 49 89 fb 48 89 f0 48 89 d7 48 89 ce 4c 89 c2 4d 89 ca 4c 8b 44 24 08 4c 8b 4c 24 10 4c 89 5c 24 08 0f 05 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 80 00 00 00 00 48 83 ec 08
RSP: 002b:00007f054c530f78 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f054c5316c0 RCX: 00007f054b55ea0e
RDX: 000000000000fdef RSI: 00002000000001c0 RDI: 00000000000000c8
RBP: 00007f054b635888 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f054b826128 R14: 00007f054b826090 R15: 00007ffe7f94b1a8
BUG: Bad page state in process syz.0.0 pfn:14591
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x14591
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000000000 dead000000000040 ffff8880002e0000 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 5323, tgid 5321 (syz.0.0), ts 101617186025
set_page_owner include/linux/page_owner.h:33 [inline]
post_alloc_hook+0x1f9/0x250 mm/page_alloc.c:1871
prep_new_page mm/page_alloc.c:1879 [inline]
get_page_from_freelist+0x2209/0x2280 mm/page_alloc.c:3943
__alloc_frozen_pages_noprof+0x217/0x5a0 mm/page_alloc.c:5436
__alloc_pages_noprof+0x10/0x100 mm/page_alloc.c:5471
alloc_pages_bulk_noprof+0x5fa/0x7c0 mm/page_alloc.c:5295
alloc_pages_bulk_node_noprof include/linux/gfp.h:235 [inline]
__page_pool_alloc_netmems_slow+0x14f/0x720 net/core/page_pool.c:637
page_pool_alloc_netmem include/net/page_pool/helpers.h:128 [inline]
page_pool_alloc include/net/page_pool/helpers.h:167 [inline]
page_pool_dev_alloc include/net/page_pool/helpers.h:188 [inline]
skb_pp_cow_data+0xc08/0x18e0 net/core/skbuff.c:990
netif_skb_check_for_xdp net/core/dev.c:5652 [inline]
netif_receive_generic_xdp net/core/dev.c:5693 [inline]
do_xdp_generic+0x78f/0x12f0 net/core/dev.c:5761
tun_get_user+0x248b/0x4450 drivers/net/tun.c:1967
tun_chr_write_iter+0x113/0x200 drivers/net/tun.c:2094
new_sync_write fs/read_write.c:595 [inline]
vfs_write+0x612/0xba0 fs/read_write.c:687
ksys_write+0x150/0x270 fs/read_write.c:739
do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84
entry_SYSCALL_64_after_hwframe+0x77/0x7f
page last free pid 1 tgid 1 ts 30434963202 stack trace:
reset_page_owner include/linux/page_owner.h:26 [inline]
__free_pages_prepare mm/page_alloc.c:1418 [inline]
__free_frozen_pages+0xc93/0xd90 mm/page_alloc.c:2962
free_reserved_page include/linux/mm.h:4083 [inline]
__free_reserved_area mm/memblock.c:926 [inline]
free_reserved_area+0x204/0x2e0 mm/memblock.c:957
free_init_pages arch/x86/mm/init.c:936 [inline]
free_kernel_image_pages+0xa2/0x100 arch/x86/mm/init.c:952
kernel_init+0x36/0x1d0 init/main.c:1574
ret_from_fork+0x514/0xb70 arch/x86/kernel/process.c:158
ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245
Modules linked in:
CPU: 0 UID: 0 PID: 5323 Comm: syz.0.0 Tainted: G B syzkaller #0 PREEMPT(full)
Tainted: [B]=BAD_PAGE
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
Call Trace:
dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120
bad_page+0x17f/0x1c0 mm/page_alloc.c:647
free_page_is_bad mm/page_alloc.c:1082 [inline]
__free_pages_prepare mm/page_alloc.c:1409 [inline]
__free_frozen_pages+0xd37/0xd90 mm/page_alloc.c:2962
bpf_xdp_shrink_data net/core/filter.c:4383 [inline]
bpf_xdp_frags_shrink_tail+0x4ed/0x800 net/core/filter.c:4407
____bpf_xdp_adjust_tail net/core/filter.c:4429 [inline]
bpf_xdp_adjust_tail+0x1ce/0x210 net/core/filter.c:4422
bpf_prog_5d7dc57dfd7f985a+0x1e/0x24
__bpf_prog_run include/linux/filter.h:779 [inline]
bpf_prog_run_xdp include/net/xdp.h:701 [inline]
bpf_prog_run_generic_xdp+0x612/0x1560 net/core/dev.c:5579
netif_receive_generic_xdp net/core/dev.c:5699 [inline]
do_xdp_generic+0xae1/0x12f0 net/core/dev.c:5761
tun_get_user+0x248b/0x4450 drivers/net/tun.c:1967
tun_chr_write_iter+0x113/0x200 drivers/net/tun.c:2094
new_sync_write fs/read_write.c:595 [inline]
vfs_write+0x612/0xba0 fs/read_write.c:687
ksys_write+0x150/0x270 fs/read_write.c:739
do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f054b55ea0e
Code: 08 0f 85 a5 a8 ff ff 49 89 fb 48 89 f0 48 89 d7 48 89 ce 4c 89 c2 4d 89 ca 4c 8b 44 24 08 4c 8b 4c 24 10 4c 89 5c 24 08 0f 05 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 80 00 00 00 00 48 83 ec 08
RSP: 002b:00007f054c530f78 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f054c5316c0 RCX: 00007f054b55ea0e
RDX: 000000000000fdef RSI: 00002000000001c0 RDI: 00000000000000c8
RBP: 00007f054b635888 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f054b826128 R14: 00007f054b826090 R15: 00007ffe7f94b1a8
BUG: Bad page state in process syz.0.0 pfn:14590
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x14590
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000000000 dead000000000040 ffff8880002e0000 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 5323, tgid 5321 (syz.0.0), ts 101617171087
set_page_owner include/linux/page_owner.h:33 [inline]
post_alloc_hook+0x1f9/0x250 mm/page_alloc.c:1871
prep_new_page mm/page_alloc.c:1879 [inline]
get_page_from_freelist+0x2209/0x2280 mm/page_alloc.c:3943
__alloc_frozen_pages_noprof+0x217/0x5a0 mm/page_alloc.c:5436
__alloc_pages_noprof+0x10/0x100 mm/page_alloc.c:5471
alloc_pages_bulk_noprof+0x5fa/0x7c0 mm/page_alloc.c:5295
alloc_pages_bulk_node_noprof include/linux/gfp.h:235 [inline]
__page_pool_alloc_netmems_slow+0x14f/0x720 net/core/page_pool.c:637
page_pool_alloc_netmem include/net/page_pool/helpers.h:128 [inline]
page_pool_alloc include/net/page_pool/helpers.h:167 [inline]
page_pool_dev_alloc include/net/page_pool/helpers.h:188 [inline]
skb_pp_cow_data+0xc08/0x18e0 net/core/skbuff.c:990
netif_skb_check_for_xdp net/core/dev.c:5652 [inline]
netif_receive_generic_xdp net/core/dev.c:5693 [inline]
do_xdp_generic+0x78f/0x12f0 net/core/dev.c:5761
tun_get_user+0x248b/0x4450 drivers/net/tun.c:1967
tun_chr_write_iter+0x113/0x200 drivers/net/tun.c:2094
new_sync_write fs/read_write.c:595 [inline]
vfs_write+0x612/0xba0 fs/read_write.c:687
ksys_write+0x150/0x270 fs/read_write.c:739
do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84
entry_SYSCALL_64_after_hwframe+0x77/0x7f
page last free pid 1 tgid 1 ts 30434956452 stack trace:
reset_page_owner include/linux/page_owner.h:26 [inline]
__free_pages_prepare mm/page_alloc.c:1418 [inline]
__free_frozen_pages+0xc93/0xd90 mm/page_alloc.c:2962
free_reserved_page include/linux/mm.h:4083 [inline]
__free_reserved_area mm/memblock.c:926 [inline]
free_reserved_area+0x204/0x2e0 mm/memblock.c:957
free_init_pages arch/x86/mm/init.c:936 [inline]
free_kernel_image_pages+0xa2/0x100 arch/x86/mm/init.c:952
kernel_init+0x36/0x1d0 init/main.c:1574
ret_from_fork+0x514/0xb70 arch/x86/kernel/process.c:158
ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245
Modules linked in:
CPU: 0 UID: 0 PID: 5323 Comm: syz.0.0 Tainted: G B syzkaller #0 PREEMPT(full)
Tainted: [B]=BAD_PAGE
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
Call Trace:
dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120
bad_page+0x17f/0x1c0 mm/page_alloc.c:647
free_page_is_bad mm/page_alloc.c:1082 [inline]
__free_pages_prepare mm/page_alloc.c:1409 [inline]
__free_frozen_pages+0xd37/0xd90 mm/page_alloc.c:2962
bpf_xdp_shrink_data net/core/filter.c:4383 [inline]
bpf_xdp_frags_shrink_tail+0x4ed/0x800 net/core/filter.c:4407
____bpf_xdp_adjust_tail net/core/filter.c:4429 [inline]
bpf_xdp_adjust_tail+0x1ce/0x210 net/core/filter.c:4422
bpf_prog_5d7dc57dfd7f985a+0x1e/0x24
__bpf_prog_run include/linux/filter.h:779 [inline]
bpf_prog_run_xdp include/net/xdp.h:701 [inline]
bpf_prog_run_generic_xdp+0x612/0x1560 net/core/dev.c:5579
netif_receive_generic_xdp net/core/dev.c:5699 [inline]
do_xdp_generic+0xae1/0x12f0 net/core/dev.c:5761
tun_get_user+0x248b/0x4450 drivers/net/tun.c:1967
tun_chr_write_iter+0x113/0x200 drivers/net/tun.c:2094
new_sync_write fs/read_write.c:595 [inline]
vfs_write+0x612/0xba0 fs/read_write.c:687
ksys_write+0x150/0x270 fs/read_write.c:739
do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f054b55ea0e
Code: 08 0f 85 a5 a8 ff ff 49 89 fb 48 89 f0 48 89 d7 48 89 ce 4c 89 c2 4d 89 ca 4c 8b 44 24 08 4c 8b 4c 24 10 4c 89 5c 24 08 0f 05 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 80 00 00 00 00 48 83 ec 08
RSP: 002b:00007f054c530f78 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f054c5316c0 RCX: 00007f054b55ea0e
RDX: 000000000000fdef RSI: 00002000000001c0 RDI: 00000000000000c8
RBP: 00007f054b635888 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f054b826128 R14: 00007f054b826090 R15: 00007ffe7f94b1a8
BUG: Bad page state in process syz.0.0 pfn:0beff
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x90 pfn:0xbeff
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000000000 dead000000000040 ffff8880002e0000 0000000000000000
raw: 0000000000000090 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 5323, tgid 5321 (syz.0.0), ts 101617139820
set_page_owner include/linux/page_owner.h:33 [inline]
post_alloc_hook+0x1f9/0x250 mm/page_alloc.c:1871
prep_new_page mm/page_alloc.c:1879 [inline]
get_page_from_freelist+0x2209/0x2280 mm/page_alloc.c:3943
__alloc_frozen_pages_noprof+0x217/0x5a0 mm/page_alloc.c:5436
__alloc_pages_noprof+0x10/0x100 mm/page_alloc.c:5471
alloc_pages_bulk_noprof+0x5fa/0x7c0 mm/page_alloc.c:5295
alloc_pages_bulk_node_noprof include/linux/gfp.h:235 [inline]
__page_pool_alloc_netmems_slow+0x14f/0x720 net/core/page_pool.c:637
page_pool_alloc_netmem include/net/page_pool/helpers.h:128 [inline]
page_pool_alloc include/net/page_pool/helpers.h:167 [inline]
page_pool_dev_alloc include/net/page_pool/helpers.h:188 [inline]
skb_pp_cow_data+0xc08/0x18e0 net/core/skbuff.c:990
netif_skb_check_for_xdp net/core/dev.c:5652 [inline]
netif_receive_generic_xdp net/core/dev.c:5693 [inline]
do_xdp_generic+0x78f/0x12f0 net/core/dev.c:5761
tun_get_user+0x248b/0x4450 drivers/net/tun.c:1967
tun_chr_write_iter+0x113/0x200 drivers/net/tun.c:2094
new_sync_write fs/read_write.c:595 [inline]
vfs_write+0x612/0xba0 fs/read_write.c:687
ksys_write+0x150/0x270 fs/read_write.c:739
do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84
entry_SYSCALL_64_after_hwframe+0x77/0x7f
page last free pid 29 tgid 29 ts 97570486234 stack trace:
reset_page_owner include/linux/page_owner.h:26 [inline]
__free_pages_prepare mm/page_alloc.c:1418 [inline]
__free_frozen_pages+0xc93/0xd90 mm/page_alloc.c:2962
__folio_put+0x4b3/0x590 mm/folio.c:106
folio_put include/linux/mm.h:2160 [inline]
migrate_folio_done mm/migrate.c:1209 [inline]
migrate_folio_move mm/migrate.c:1440 [inline]
migrate_folios_move mm/migrate.c:1749 [inline]
migrate_pages_batch+0x3c61/0x4f50 mm/migrate.c:2005
migrate_pages_sync mm/migrate.c:2035 [inline]
migrate_pages+0x1b9f/0x2920 mm/migrate.c:2144
compact_zone+0x34ba/0x4ca0 mm/compaction.c:2698
compact_node+0x210/0x310 mm/compaction.c:2945
kcompactd+0xc0b/0x12c0 mm/compaction.c:3243
kthread+0x38b/0x480 kernel/kthread.c:436
ret_from_fork+0x514/0xb70 arch/x86/kernel/process.c:158
ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245
Modules linked in:
CPU: 0 UID: 0 PID: 5323 Comm: syz.0.0 Tainted: G B syzkaller #0 PREEMPT(full)
Tainted: [B]=BAD_PAGE
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
Call Trace:
dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120
bad_page+0x17f/0x1c0 mm/page_alloc.c:647
free_page_is_bad mm/page_alloc.c:1082 [inline]
__free_pages_prepare mm/page_alloc.c:1409 [inline]
__free_frozen_pages+0xd37/0xd90 mm/page_alloc.c:2962
bpf_xdp_shrink_data net/core/filter.c:4383 [inline]
bpf_xdp_frags_shrink_tail+0x4ed/0x800 net/core/filter.c:4407
____bpf_xdp_adjust_tail net/core/filter.c:4429 [inline]
bpf_xdp_adjust_tail+0x1ce/0x210 net/core/filter.c:4422
bpf_prog_5d7dc57dfd7f985a+0x1e/0x24
__bpf_prog_run include/linux/filter.h:779 [inline]
bpf_prog_run_xdp include/net/xdp.h:701 [inline]
bpf_prog_run_generic_xdp+0x612/0x1560 net/core/dev.c:5579
netif_receive_generic_xdp net/core/dev.c:5699 [inline]
do_xdp_generic+0xae1/0x12f0 net/core/dev.c:5761
tun_get_user+0x248b/0x4450 drivers/net/tun.c:1967
tun_chr_write_iter+0x113/0x200 drivers/net/tun.c:2094
new_sync_write fs/read_write.c:595 [inline]
vfs_write+0x612/0xba0 fs/read_write.c:687
ksys_write+0x150/0x270 fs/read_write.c:739
do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f054b55ea0e
Code: 08 0f 85 a5 a8 ff ff 49 89 fb 48 89 f0 48 89 d7 48 89 ce 4c 89 c2 4d 89 ca 4c 8b 44 24 08 4c 8b 4c 24 10 4c 89 5c 24 08 0f 05 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 80 00 00 00 00 48 83 ec 08
RSP: 002b:00007f054c530f78 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f054c5316c0 RCX: 00007f054b55ea0e
RDX: 000000000000fdef RSI: 00002000000001c0 RDI: 00000000000000c8
RBP: 00007f054b635888 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f054b826128 R14: 00007f054b826090 R15: 00007ffe7f94b1a8
BUG: Bad page state in process syz.0.0 pfn:0befe
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x8f pfn:0xbefe
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000000000 dead000000000040 ffff8880002e0000 0000000000000000
raw: 000000000000008f 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 5323, tgid 5321 (syz.0.0), ts 101617121448
set_page_owner include/linux/page_owner.h:33 [inline]
post_alloc_hook+0x1f9/0x250 mm/page_alloc.c:1871
prep_new_page mm/page_alloc.c:1879 [inline]
get_page_from_freelist+0x2209/0x2280 mm/page_alloc.c:3943
__alloc_frozen_pages_noprof+0x217/0x5a0 mm/page_alloc.c:5436
__alloc_pages_noprof+0x10/0x100 mm/page_alloc.c:5471
alloc_pages_bulk_noprof+0x5fa/0x7c0 mm/page_alloc.c:5295
alloc_pages_bulk_node_noprof include/linux/gfp.h:235 [inline]
__page_pool_alloc_netmems_slow+0x14f/0x720 net/core/page_pool.c:637
page_pool_alloc_netmem include/net/page_pool/helpers.h:128 [inline]
page_pool_alloc include/net/page_pool/helpers.h:167 [inline]
page_pool_dev_alloc include/net/page_pool/helpers.h:188 [inline]
skb_pp_cow_data+0xc08/0x18e0 net/core/skbuff.c:990
netif_skb_check_for_xdp net/core/dev.c:5652 [inline]
netif_receive_generic_xdp net/core/dev.c:5693 [inline]
do_xdp_generic+0x78f/0x12f0 net/core/dev.c:5761
tun_get_user+0x248b/0x4450 drivers/net/tun.c:1967
tun_chr_write_iter+0x113/0x200 drivers/net/tun.c:2094
new_sync_write fs/read_write.c:595 [inline]
vfs_write+0x612/0xba0 fs/read_write.c:687
ksys_write+0x150/0x270 fs/read_write.c:739
do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84
entry_SYSCALL_64_after_hwframe+0x77/0x7f
page last free pid 29 tgid 29 ts 97570512690 stack trace:
reset_page_owner include/linux/page_owner.h:26 [inline]
__free_pages_prepare mm/page_alloc.c:1418 [inline]
__free_frozen_pages+0xc93/0xd90 mm/page_alloc.c:2962
__folio_put+0x4b3/0x590 mm/folio.c:106
folio_put include/linux/mm.h:2160 [inline]
migrate_folio_done mm/migrate.c:1209 [inline]
migrate_folio_move mm/migrate.c:1440 [inline]
migrate_folios_move mm/migrate.c:1749 [inline]
migrate_pages_batch+0x3c61/0x4f50 mm/migrate.c:2005
migrate_pages_sync mm/migrate.c:2035 [inline]
migrate_pages+0x1b9f/0x2920 mm/migrate.c:2144
compact_zone+0x34ba/0x4ca0 mm/compaction.c:2698
compact_node+0x210/0x310 mm/compaction.c:2945
kcompactd+0xc0b/0x12c0 mm/compaction.c:3243
kthread+0x38b/0x480 kernel/kthread.c:436
ret_from_fork+0x514/0xb70 arch/x86/kernel/process.c:158
ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245
Modules linked in:
CPU: 0 UID: 0 PID: 5323 Comm: syz.0.0 Tainted: G B syzkaller #0 PREEMPT(full)
Tainted: [B]=BAD_PAGE
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
Call Trace:
dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120
bad_page+0x17f/0x1c0 mm/page_alloc.c:647
free_page_is_bad mm/page_alloc.c:1082 [inline]
__free_pages_prepare mm/page_alloc.c:1409 [inline]
__free_frozen_pages+0xd37/0xd90 mm/page_alloc.c:2962
bpf_xdp_shrink_data net/core/filter.c:4383 [inline]
bpf_xdp_frags_shrink_tail+0x4ed/0x800 net/core/filter.c:4407
____bpf_xdp_adjust_tail net/core/filter.c:4429 [inline]
bpf_xdp_adjust_tail+0x1ce/0x210 net/core/filter.c:4422
bpf_prog_5d7dc57dfd7f985a+0x1e/0x24
__bpf_prog_run include/linux/filter.h:779 [inline]
bpf_prog_run_xdp include/net/xdp.h:701 [inline]
bpf_prog_run_generic_xdp+0x612/0x1560 net/core/dev.c:5579
netif_receive_generic_xdp net/core/dev.c:5699 [inline]
do_xdp_generic+0xae1/0x12f0 net/core/dev.c:5761
tun_get_user+0x248b/0x4450 drivers/net/tun.c:1967
tun_chr_write_iter+0x113/0x200 drivers/net/tun.c:2094
new_sync_write fs/read_write.c:595 [inline]
vfs_write+0x612/0xba0 fs/read_write.c:687
ksys_write+0x150/0x270 fs/read_write.c:739
do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f054b55ea0e
Code: 08 0f 85 a5 a8 ff ff 49 89 fb 48 89 f0 48 89 d7 48 89 ce 4c 89 c2 4d 89 ca 4c 8b 44 24 08 4c 8b 4c 24 10 4c 89 5c 24 08 0f 05 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 80 00 00 00 00 48 83 ec 08
RSP: 002b:00007f054c530f78 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f054c5316c0 RCX: 00007f054b55ea0e
RDX: 000000000000fdef RSI: 00002000000001c0 RDI: 00000000000000c8
RBP: 00007f054b635888 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f054b826128 R14: 00007f054b826090 R15: 00007ffe7f94b1a8
BUG: Bad page state in process syz.0.0 pfn:0befd
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x8e pfn:0xbefd
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000000000 dead000000000040 ffff8880002e0000 0000000000000000
raw: 000000000000008e 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 5323, tgid 5321 (syz.0.0), ts 101617109201
set_page_owner include/linux/page_owner.h:33 [inline]
post_alloc_hook+0x1f9/0x250 mm/page_alloc.c:1871
prep_new_page mm/page_alloc.c:1879 [inline]
get_page_from_freelist+0x2209/0x2280 mm/page_alloc.c:3943
__alloc_frozen_pages_noprof+0x217/0x5a0 mm/page_alloc.c:5436
__alloc_pages_noprof+0x10/0x100 mm/page_alloc.c:5471
alloc_pages_bulk_noprof+0x5fa/0x7c0 mm/page_alloc.c:5295
alloc_pages_bulk_node_noprof include/linux/gfp.h:235 [inline]
__page_pool_alloc_netmems_slow+0x14f/0x720 net/core/page_pool.c:637
page_pool_alloc_netmem include/net/page_pool/helpers.h:128 [inline]
page_pool_alloc include/net/page_pool/helpers.h:167 [inline]
page_pool_dev_alloc include/net/page_pool/helpers.h:188 [inline]
skb_pp_cow_data+0xc08/0x18e0 net/core/skbuff.c:990
netif_skb_check_for_xdp net/core/dev.c:5652 [inline]
netif_receive_generic_xdp net/core/dev.c:5693 [inline]
do_xdp_generic+0x78f/0x12f0 net/core/dev.c:5761
tun_get_user+0x248b/0x4450 drivers/net/tun.c:1967
tun_chr_write_iter+0x113/0x200 drivers/net/tun.c:2094
new_sync_write fs/read_write.c:595 [inline]
vfs_write+0x612/0xba0 fs/read_write.c:687
ksys_write+0x150/0x270 fs/read_write.c:739
do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84
entry_SYSCALL_64_after_hwframe+0x77/0x7f
page last free pid 29 tgid 29 ts 97570531346 stack trace:
reset_page_owner include/linux/page_owner.h:26 [inline]
__free_pages_prepare mm/page_alloc.c:1418 [inline]
__free_frozen_pages+0xc93/0xd90 mm/page_alloc.c:2962
__folio_put+0x4b3/0x590 mm/folio.c:106
folio_put include/linux/mm.h:2160 [inline]
migrate_folio_done mm/migrate.c:1209 [inline]
migrate_folio_move mm/migrate.c:1440 [inline]
migrate_folios_move mm/migrate.c:1749 [inline]
migrate_pages_batch+0x3c61/0x4f50 mm/migrate.c:2005
migrate_pages_sync mm/migrate.c:2035 [inline]
migrate_pages+0x1b9f/0x2920 mm/migrate.c:2144
compact_zone+0x34ba/0x4ca0 mm/compaction.c:2698
compact_node+0x210/0x310 mm/compaction.c:2945
kcompactd+0xc0b/0x12c0 mm/compaction.c:3243
kthread+0x38b/0x480 kernel/kthread.c:436
ret_from_fork+0x514/0xb70 arch/x86/kernel/process.c:158
ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245
Modules linked in:
CPU: 0 UID: 0 PID: 5323 Comm: syz.0.0 Tainted: G B syzkaller #0 PREEMPT(full)
Tainted: [B]=BAD_PAGE
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
Call Trace:
dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120
bad_page+0x17f/0x1c0 mm/page_alloc.c:647
free_page_is_bad mm/page_alloc.c:1082 [inline]
__free_pages_prepare mm/page_alloc.c:1409 [inline]
__free_frozen_pages+0xd37/0xd90 mm/page_alloc.c:2962
bpf_xdp_shrink_data net/core/filter.c:4383 [inline]
bpf_xdp_frags_shrink_tail+0x4ed/0x800 net/core/filter.c:4407
____bpf_xdp_adjust_tail net/core/filter.c:4429 [inline]
bpf_xdp_adjust_tail+0x1ce/0x210 net/core/filter.c:4422
bpf_prog_5d7dc57dfd7f985a+0x1e/0x24
__bpf_prog_run include/linux/filter.h:779 [inline]
bpf_prog_run_xdp include/net/xdp.h:701 [inline]
bpf_prog_run_generic_xdp+0x612/0x1560 net/core/dev.c:5579
netif_receive_generic_xdp net/core/dev.c:5699 [inline]
do_xdp_generic+0xae1/0x12f0 net/core/dev.c:5761
tun_get_user+0x248b/0x4450 drivers/net/tun.c:1967
tun_chr_write_iter+0x113/0x200 drivers/net/tun.c:2094
new_sync_write fs/read_write.c:595 [inline]
vfs_write+0x612/0xba0 fs/read_write.c:687
ksys_write+0x150/0x270 fs/read_write.c:739
do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f054b55ea0e
Code: 08 0f 85 a5 a8 ff ff 49 89 fb 48 89 f0 48 89 d7 48 89 ce 4c 89 c2 4d 89 ca 4c 8b 44 24 08 4c 8b 4c 24 10 4c 89 5c 24 08 0f 05 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 80 00 00 00 00 48 83 ec 08
RSP: 002b:00007f054c530f78 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f054c5316c0 RCX: 00007f054b55ea0e
RDX: 000000000000fdef RSI: 00002000000001c0 RDI: 00000000000000c8
RBP: 00007f054b635888 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f054b826128 R14: 00007f054b826090 R15: 00007ffe7f94b1a8
BUG: Bad page state in process syz.0.0 pfn:0befc
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x8d pfn:0xbefc
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000000000 dead000000000040 ffff8880002e0000 0000000000000000
raw: 000000000000008d 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 5323, tgid 5321 (syz.0.0), ts 101617097931
set_page_owner include/linux/page_owner.h:33 [inline]
post_alloc_hook+0x1f9/0x250 mm/page_alloc.c:1871
prep_new_page mm/page_alloc.c:1879 [inline]
get_page_from_freelist+0x2209/0x2280 mm/page_alloc.c:3943
__alloc_frozen_pages_noprof+0x217/0x5a0 mm/page_alloc.c:5436
__alloc_pages_noprof+0x10/0x100 mm/page_alloc.c:5471
alloc_pages_bulk_noprof+0x5fa/0x7c0 mm/page_alloc.c:5295
alloc_pages_bulk_node_noprof include/linux/gfp.h:235 [inline]
__page_pool_alloc_netmems_slow+0x14f/0x720 net/core/page_pool.c:637
page_pool_alloc_netmem include/net/page_pool/helpers.h:128 [inline]
page_pool_alloc include/net/page_pool/helpers.h:167 [inline]
page_pool_dev_alloc include/net/page_pool/helpers.h:188 [inline]
skb_pp_cow_data+0xc08/0x18e0 net/core/skbuff.c:990
netif_skb_check_for_xdp net/core/dev.c:5652 [inline]
netif_receive_generic_xdp net/core/dev.c:5693 [inline]
do_xdp_generic+0x78f/0x12f0 net/core/dev.c:5761
tun_get_user+0x248b/0x4450 drivers/net/tun.c:1967
tun_chr_write_iter+0x113/0x200 drivers/net/tun.c:2094
new_sync_write fs/read_write.c:595 [inline]
vfs_write+0x612/0xba0 fs/read_write.c:687
ksys_write+0x150/0x270 fs/read_write.c:739
do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84
entry_SYSCALL_64_after_hwframe+0x77/0x7f
page last free pid 29 tgid 29 ts 97570553831 stack trace:
reset_page_owner include/linux/page_owner.h:26 [inline]
__free_pages_prepare mm/page_alloc.c:1418 [inline]
__free_frozen_pages+0xc93/0xd90 mm/page_alloc.c:2962
__folio_put+0x4b3/0x590 mm/folio.c:106
folio_put include/linux/mm.h:2160 [inline]
migrate_folio_done mm/migrate.c:1209 [inline]
migrate_folio_move mm/migrate.c:1440 [inline]
migrate_folios_move mm/migrate.c:1749 [inline]
migrate_pages_batch+0x3c61/0x4f50 mm/migrate.c:2005
migrate_pages_sync mm/migrate.c:2035 [inline]
migrate_pages+0x1b9f/0x2920 mm/migrate.c:2144
compact_zone+0x34ba/0x4ca0 mm/compaction.c:2698
compact_node+0x210/0x310 mm/compaction.c:2945
kcompactd+0xc0b/0x12c0 mm/compaction.c:3243
kthread+0x38b/0x480 kernel/kthread.c:436
ret_from_fork+0x514/0xb70 arch/x86/kernel/process.c:158
ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245
Modules linked in:
CPU: 0 UID: 0 PID: 5323 Comm: syz.0.0 Tainted: G B syzkaller #0 PREEMPT(full)
Tainted: [B]=BAD_PAGE
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
Call Trace:
dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120
bad_page+0x17f/0x1c0 mm/page_alloc.c:647
free_page_is_bad mm/page_alloc.c:1082 [inline]
__free_pages_prepare mm/page_alloc.c:1409 [inline]
__free_frozen_pages+0xd37/0xd90 mm/page_alloc.c:2962
bpf_xdp_shrink_data net/core/filter.c:4383 [inline]
bpf_xdp_frags_shrink_tail+0x4ed/0x800 net/core/filter.c:4407
____bpf_xdp_adjust_tail net/core/filter.c:4429 [inline]
bpf_xdp_adjust_tail+0x1ce/0x210 net/core/filter.c:4422
bpf_prog_5d7dc57dfd7f985a+0x1e/0x24
__bpf_prog_run include/linux/filter.h:779 [inline]
bpf_prog_run_xdp include/net/xdp.h:701 [inline]
bpf_prog_run_generic_xdp+0x612/0x1560 net/core/dev.c:5579
netif_receive_generic_xdp net/core/dev.c:5699 [inline]
do_xdp_generic+0xae1/0x12f0 net/core/dev.c:5761
tun_get_user+0x248b/0x4450 drivers/net/tun.c:1967
tun_chr_write_iter+0x113/0x200 drivers/net/tun.c:2094
new_sync_write fs/read_write.c:595 [inline]
vfs_write+0x612/0xba0 fs/read_write.c:687
ksys_write+0x150/0x270 fs/read_write.c:739
do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f054b55ea0e
Code: 08 0f 85 a5 a8 ff ff 49 89 fb 48 89 f0 48 89 d7 48 89 ce 4c 89 c2 4d 89 ca 4c 8b 44 24 08 4c 8b 4c 24 10 4c 89 5c 24 08 0f 05 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 80 00 00 00 00 48 83 ec 08
RSP: 002b:00007f054c530f78 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f054c5316c0 RCX: 00007f054b55ea0e
RDX: 000000000000fdef RSI: 00002000000001c0 RDI: 00000000000000c8
RBP: 00007f054b635888 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f054b826128 R14: 00007f054b826090 R15: 00007ffe7f94b1a8
BUG: Bad page state in process syz.0.0 pfn:0befb
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x8c pfn:0xbefb
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000000000 dead000000000040 ffff8880002e0000 0000000000000000
raw: 000000000000008c 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 5323, tgid 5321 (syz.0.0), ts 101617087007
set_page_owner include/linux/page_owner.h:33 [inline]
post_alloc_hook+0x1f9/0x250 mm/page_alloc.c:1871
prep_new_page mm/page_alloc.c:1879 [inline]
get_page_from_freelist+0x2209/0x2280 mm/page_alloc.c:3943
__alloc_frozen_pages_noprof+0x217/0x5a0 mm/page_alloc.c:5436
__alloc_pages_noprof+0x10/0x100 mm/page_alloc.c:5471
alloc_pages_bulk_noprof+0x5fa/0x7c0 mm/page_alloc.c:5295
alloc_pages_bulk_node_noprof include/linux/gfp.h:235 [inline]
__page_pool_alloc_netmems_slow+0x14f/0x720 net/core/page_pool.c:637
page_pool_alloc_netmem include/net/page_pool/helpers.h:128 [inline]
page_pool_alloc include/net/page_pool/helpers.h:167 [inline]
page_pool_dev_alloc include/net/page_pool/helpers.h:188 [inline]
skb_pp_cow_data+0xc08/0x18e0 net/core/skbuff.c:990
netif_skb_check_for_xdp net/core/dev.c:5652 [inline]
netif_receive_generic_xdp net/core/dev.c:5693 [inline]
do_xdp_generic+0x78f/0x12f0 net/core/dev.c:5761
tun_get_user+0x248b/0x4450 drivers/net/tun.c:1967
tun_chr_write_iter+0x113/0x200 drivers/net/tun.c:2094
new_sync_write fs/read_write.c:595 [inline]
vfs_write+0x612/0xba0 fs/read_write.c:687
ksys_write+0x150/0x270 fs/read_write.c:739
do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84
entry_SYSCALL_64_after_hwframe+0x77/0x7f
page last free pid 29 tgid 29 ts 101239588977 stack trace:
reset_page_owner include/linux/page_owner.h:26 [inline]
__free_pages_prepare mm/page_alloc.c:1418 [inline]
__free_frozen_pages+0xc93/0xd90 mm/page_alloc.c:2962
__folio_put+0x4b3/0x590 mm/folio.c:106
folio_put include/linux/mm.h:2160 [inline]
migrate_folio_done mm/migrate.c:1209 [inline]
migrate_folio_move mm/migrate.c:1440 [inline]
migrate_folios_move mm/migrate.c:1749 [inline]
migrate_pages_batch+0x3c61/0x4f50 mm/migrate.c:2005
migrate_pages_sync mm/migrate.c:2035 [inline]
migrate_pages+0x1b9f/0x2920 mm/migrate.c:2144
compact_zone+0x34ba/0x4ca0 mm/compaction.c:2698
compact_node+0x210/0x310 mm/compaction.c:2945
kcompactd+0xc0b/0x12c0 mm/compaction.c:3243
kthread+0x38b/0x480 kernel/kthread.c:436
ret_from_fork+0x514/0xb70 arch/x86/kernel/process.c:158
ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245
Modules linked in:
CPU: 0 UID: 0 PID: 5323 Comm: syz.0.0 Tainted: G B syzkaller #0 PREEMPT(full)
Tainted: [B]=BAD_PAGE
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
Call Trace:
dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120
bad_page+0x17f/0x1c0 mm/page_alloc.c:647
free_page_is_bad mm/page_alloc.c:1082 [inline]
__free_pages_prepare mm/page_alloc.c:1409 [inline]
__free_frozen_pages+0xd37/0xd90 mm/page_alloc.c:2962
bpf_xdp_shrink_data net/core/filter.c:4383 [inline]
bpf_xdp_frags_shrink_tail+0x4ed/0x800 net/core/filter.c:4407
____bpf_xdp_adjust_tail net/core/filter.c:4429 [inline]
bpf_xdp_adjust_tail+0x1ce/0x210 net/core/filter.c:4422
bpf_prog_5d7dc57dfd7f985a+0x1e/0x24
__bpf_prog_run include/linux/filter.h:779 [inline]
bpf_prog_run_xdp include/net/xdp.h:701 [inline]
bpf_prog_run_generic_xdp+0x612/0x1560 net/core/dev.c:5579
netif_receive_generic_xdp net/core/dev.c:5699 [inline]
do_xdp_generic+0xae1/0x12f0 net/core/dev.c:5761
tun_get_user+0x248b/0x4450 drivers/net/tun.c:1967
tun_chr_write_iter+0x113/0x200 drivers/net/tun.c:2094
new_sync_write fs/read_write.c:595 [inline]
vfs_write+0x612/0xba0 fs/read_write.c:687
ksys_write+0x150/0x270 fs/read_write.c:739
do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f054b55ea0e
Code: 08 0f 85 a5 a8 ff ff 49 89 fb 48 89 f0 48 89 d7 48 89 ce 4c 89 c2 4d 89 ca 4c 8b 44 24 08 4c 8b 4c 24 10 4c 89 5c 24 08 0f 05 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 80 00 00 00 00 48 83 ec 08
RSP: 002b:00007f054c530f78 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f054c5316c0 RCX: 00007f054b55ea0e
RDX: 000000000000fdef RSI: 00002000000001c0 RDI: 00000000000000c8
RBP: 00007f054b635888 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f054b826128 R14: 00007f054b826090 R15: 00007ffe7f94b1a8
BUG: Bad page state in process syz.0.0 pfn:0befa
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x8b pfn:0xbefa
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000000000 dead000000000040 ffff8880002e0000 0000000000000000
raw: 000000000000008b 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 5323, tgid 5321 (syz.0.0), ts 101617075611
set_page_owner include/linux/page_owner.h:33 [inline]
post_alloc_hook+0x1f9/0x250 mm/page_alloc.c:1871
prep_new_page mm/page_alloc.c:1879 [inline]
get_page_from_freelist+0x2209/0x2280 mm/page_alloc.c:3943
__alloc_frozen_pages_noprof+0x217/0x5a0 mm/page_alloc.c:5436
__alloc_pages_noprof+0x10/0x100 mm/page_alloc.c:5471
alloc_pages_bulk_noprof+0x5fa/0x7c0 mm/page_alloc.c:5295
alloc_pages_bulk_node_noprof include/linux/gfp.h:235 [inline]
__page_pool_alloc_netmems_slow+0x14f/0x720 net/core/page_pool.c:637
page_pool_alloc_netmem include/net/page_pool/helpers.h:128 [inline]
page_pool_alloc include/net/page_pool/helpers.h:167 [inline]
page_pool_dev_alloc include/net/page_pool/helpers.h:188 [inline]
skb_pp_cow_data+0xc08/0x18e0 net/core/skbuff.c:990
netif_skb_check_for_xdp net/core/dev.c:5652 [inline]
netif_receive_generic_xdp net/core/dev.c:5693 [inline]
do_xdp_generic+0x78f/0x12f0 net/core/dev.c:5761
tun_get_user+0x248b/0x4450 drivers/net/tun.c:1967
tun_chr_write_iter+0x113/0x200 drivers/net/tun.c:2094
new_sync_write fs/read_write.c:595 [inline]
vfs_write+0x612/0xba0 fs/read_write.c:687
ksys_write+0x150/0x270 fs/read_write.c:739
do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84
entry_SYSCALL_64_after_hwframe+0x77/0x7f
page last free pid 29 tgid 29 ts 101239615408 stack trace:
reset_page_owner include/linux/page_owner.h:26 [inline]
__free_pages_prepare mm/page_alloc.c:1418 [inline]
__free_frozen_pages+0xc93/0xd90 mm/page_alloc.c:2962
__folio_put+0x4b3/0x590 mm/folio.c:106
folio_put include/linux/mm.h:2160 [inline]
migrate_folio_done mm/migrate.c:1209 [inline]
migrate_folio_move mm/migrate.c:1440 [inline]
migrate_folios_move mm/migrate.c:1749 [inline]
migrate_pages_batch+0x3c61/0x4f50 mm/migrate.c:2005
migrate_pages_sync mm/migrate.c:2035 [inline]
migrate_pages+0x1b9f/0x2920 mm/migrate.c:2144
compact_zone+0x34ba/0x4ca0 mm/compaction.c:2698
compact_node+0x210/0x310 mm/compaction.c:2945
kcompactd+0xc0b/0x12c0 mm/compaction.c:3243
kthread+0x38b/0x480 kernel/kthread.c:436
ret_from_fork+0x514/0xb70 arch/x86/kernel/process.c:158
ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245
Modules linked in:
CPU: 0 UID: 0 PID: 5323 Comm: syz.0.0 Tainted: G B syzkaller #0 PREEMPT(full)
Tainted: [B]=BAD_PAGE
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
Call Trace:
dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120
bad_page+0x17f/0x1c0 mm/page_alloc.c:647
free_page_is_bad mm/page_alloc.c:1082 [inline]
__free_pages_prepare mm/page_alloc.c:1409 [inline]
__free_frozen_pages+0xd37/0xd90 mm/page_alloc.c:2962
bpf_xdp_shrink_data net/core/filter.c:4383 [inline]
bpf_xdp_frags_shrink_tail+0x4ed/0x800 net/core/filter.c:4407
____bpf_xdp_adjust_tail net/core/filter.c:4429 [inline]
bpf_xdp_adjust_tail+0x1ce/0x210 net/core/filter.c:4422
bpf_prog_5d7dc57dfd7f985a+0x1e/0x24
__bpf_prog_run include/linux/filter.h:779 [inline]
bpf_prog_run_xdp include/net/xdp.h:701 [inline]
bpf_prog_run_generic_xdp+0x612/0x1560 net/core/dev.c:5579
netif_receive_generic_xdp net/core/dev.c:5699 [inline]
do_xdp_generic+0xae1/0x12f0 net/core/dev.c:5761
tun_get_user+0x248b/0x4450 drivers/net/tun.c:1967
tun_chr_write_iter+0x113/0x200 drivers/net/tun.c:2094
new_sync_write fs/read_write.c:595 [inline]
vfs_write+0x612/0xba0 fs/read_write.c:687
ksys_write+0x150/0x270 fs/read_write.c:739
do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f054b55ea0e
Code: 08 0f 85 a5 a8 ff ff 49 89 fb 48 89 f0 48 89 d7 48 89 ce 4c 89 c2 4d 89 ca 4c 8b 44 24 08 4c 8b 4c 24 10 4c 89 5c 24 08 0f 05 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 80 00 00 00 00 48 83 ec 08
RSP: 002b:00007f054c530f78 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f054c5316c0 RCX: 00007f054b55ea0e
RDX: 000000000000fdef RSI: 00002000000001c0 RDI: 00000000000000c8
RBP: 00007f054b635888 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f054b826128 R14: 00007f054b826090 R15: 00007ffe7f94b1a8
BUG: Bad page state in process syz.0.0 pfn:0bef9
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x8a pfn:0xbef9
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000000000 dead000000000040 ffff8880002e0000 0000000000000000
raw: 000000000000008a 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 5323, tgid 5321 (syz.0.0), ts 101617063536
set_page_owner include/linux/page_owner.h:33 [inline]
post_alloc_hook+0x1f9/0x250 mm/page_alloc.c:1871
prep_new_page mm/page_alloc.c:1879 [inline]
get_page_from_freelist+0x2209/0x2280 mm/page_alloc.c:3943
__alloc_frozen_pages_noprof+0x217/0x5a0 mm/page_alloc.c:5436
__alloc_pages_noprof+0x10/0x100 mm/page_alloc.c:5471
alloc_pages_bulk_noprof+0x5fa/0x7c0 mm/page_alloc.c:5295
alloc_pages_bulk_node_noprof include/linux/gfp.h:235 [inline]
__page_pool_alloc_netmems_slow+0x14f/0x720 net/core/page_pool.c:637
page_pool_alloc_netmem include/net/page_pool/helpers.h:128 [inline]
page_pool_alloc include/net/page_pool/helpers.h:167 [inline]
page_pool_dev_alloc include/net/page_pool/helpers.h:188 [inline]
skb_pp_cow_data+0xc08/0x18e0 net/core/skbuff.c:990
netif_skb_check_for_xdp net/core/dev.c:5652 [inline]
netif_receive_generic_xdp net/core/dev.c:5693 [inline]
do_xdp_generic+0x78f/0x12f0 net/core/dev.c:5761
tun_get_user+0x248b/0x4450 drivers/net/tun.c:1967
tun_chr_write_iter+0x113/0x200 drivers/net/tun.c:2094
new_sync_write fs/read_write.c:595 [inline]
vfs_write+0x612/0xba0 fs/read_write.c:687
ksys_write+0x150/0x270 fs/read_write.c:739
do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84
entry_SYSCALL_64_after_hwframe+0x77/0x7f
page last free pid 29 tgid 29 ts 101239640658 stack trace:
reset_page_owner include/linux/page_owner.h:26 [inline]
__free_pages_prepare mm/page_alloc.c:1418 [inline]
__free_frozen_pages+0xc93/0xd90 mm/page_alloc.c:2962
__folio_put+0x4b3/0x590 mm/folio.c:106
folio_put include/linux/mm.h:2160 [inline]
migrate_folio_done mm/migrate.c:1209 [inline]
migrate_folio_move mm/migrate.c:1440 [inline]
migrate_folios_move mm/migrate.c:1749 [inline]
migrate_pages_batch+0x3c61/0x4f50 mm/migrate.c:2005
migrate_pages_sync mm/migrate.c:2035 [inline]
migrate_pages+0x1b9f/0x2920 mm/migrate.c:2144
compact_zone+0x34ba/0x4ca0 mm/compaction.c:2698
compact_node+0x210/0x310 mm/compaction.c:2945
kcompactd+0xc0b/0x12c0 mm/compaction.c:3243
kthread+0x38b/0x480 kernel/kthread.c:436
ret_from_fork+0x514/0xb70 arch/x86/kernel/process.c:158
ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245
Modules linked in:
CPU: 0 UID: 0 PID: 5323 Comm: syz.0.0 Tainted: G B syzkaller #0 PREEMPT(full)
Tainted: [B]=BAD_PAGE
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
Call Trace:
dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120
bad_page+0x17f/0x1c0 mm/page_alloc.c:647
free_page_is_bad mm/page_alloc.c:1082 [inline]
__free_pages_prepare mm/page_alloc.c:1409 [inline]
__free_frozen_pages+0xd37/0xd90 mm/page_alloc.c:2962
bpf_xdp_shrink_data net/core/filter.c:4383 [inline]
bpf_xdp_frags_shrink_tail+0x4ed/0x800 net/core/filter.c:4407
____bpf_xdp_adjust_tail net/core/filter.c:4429 [inline]
bpf_xdp_adjust_tail+0x1ce/0x210 net/core/filter.c:4422
bpf_prog_5d7dc57dfd7f985a+0x1e/0x24
__bpf_prog_run include/linux/filter.h:779 [inline]
bpf_prog_run_xdp include/net/xdp.h:701 [inline]
bpf_prog_run_generic_xdp+0x612/0x1560 net/core/dev.c:5579
netif_receive_generic_xdp net/core/dev.c:5699 [inline]
do_xdp_generic+0xae1/0x12f0 net/core/dev.c:5761
tun_get_user+0x248b/0x4450 drivers/net/tun.c:1967
tun_chr_write_iter+0x113/0x200 drivers/net/tun.c:2094
new_sync_write fs/read_write.c:595 [inline]
vfs_write+0x612/0xba0 fs/read_write.c:687
ksys_write+0x150/0x270 fs/read_write.c:739
do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f054b55ea0e
Code: 08 0f 85 a5 a8 ff ff 49 89 fb 48 89 f0 48 89 d7 48 89 ce 4c 89 c2 4d 89 ca 4c 8b 44 24 08 4c 8b 4c 24 10 4c 89 5c 24 08 0f 05 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 80 00 00 00 00 48 83 ec 08
RSP: 002b:00007f054c530f78 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f054c5316c0 RCX: 00007f054b55ea0e
RDX: 000000000000fdef RSI: 00002000000001c0 RDI: 00000000000000c8
RBP: 00007f054b635888 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f054b826128 R14: 00007f054b826090 R15: 00007ffe7f94b1a8
BUG: Bad page state in process syz.0.0 pfn:0bef8
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x89 pfn:0xbef8
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000000000 dead000000000040 ffff8880002e0000 0000000000000000
raw: 0000000000000089 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 5323, tgid 5321 (syz.0.0), ts 101617048856
set_page_owner include/linux/page_owner.h:33 [inline]
post_alloc_hook+0x1f9/0x250 mm/page_alloc.c:1871
prep_new_page mm/page_alloc.c:1879 [inline]
get_page_from_freelist+0x2209/0x2280 mm/page_alloc.c:3943
__alloc_frozen_pages_noprof+0x217/0x5a0 mm/page_alloc.c:5436
__alloc_pages_noprof+0x10/0x100 mm/page_alloc.c:5471
alloc_pages_bulk_noprof+0x5fa/0x7c0 mm/page_alloc.c:5295
alloc_pages_bulk_node_noprof include/linux/gfp.h:235 [inline]
__page_pool_alloc_netmems_slow+0x14f/0x720 net/core/page_pool.c:637
page_pool_alloc_netmem include/net/page_pool/helpers.h:128 [inline]
page_pool_alloc include/net/page_pool/helpers.h:167 [inline]
page_pool_dev_alloc include/net/page_pool/helpers.h:188 [inline]
skb_pp_cow_data+0xc08/0x18e0 net/core/skbuff.c:990
netif_skb_check_for_xdp net/core/dev.c:5652 [inline]
netif_receive_generic_xdp net/core/dev.c:5693 [inline]
do_xdp_generic+0x78f/0x12f0 net/core/dev.c:5761
tun_get_user+0x248b/0x4450 drivers/net/tun.c:1967
tun_chr_write_iter+0x113/0x200 drivers/net/tun.c:2094
new_sync_write fs/read_write.c:595 [inline]
vfs_write+0x612/0xba0 fs/read_write.c:687
ksys_write+0x150/0x270 fs/read_write.c:739
do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84
entry_SYSCALL_64_after_hwframe+0x77/0x7f
page last free pid 29 tgid 29 ts 101239740092 stack trace:
reset_page_owner include/linux/page_owner.h:26 [inline]
__free_pages_prepare mm/page_alloc.c:1418 [inline]
__free_frozen_pages+0xc93/0xd90 mm/page_alloc.c:2962
__folio_put+0x4b3/0x590 mm/folio.c:106
folio_put include/linux/mm.h:2160 [inline]
migrate_folio_done mm/migrate.c:1209 [inline]
migrate_folio_move mm/migrate.c:1440 [inline]
migrate_folios_move mm/migrate.c:1749 [inline]
migrate_pages_batch+0x3c61/0x4f50 mm/migrate.c:2005
migrate_pages_sync mm/migrate.c:2035 [inline]
migrate_pages+0x1b9f/0x2920 mm/migrate.c:2144
compact_zone+0x34ba/0x4ca0 mm/compaction.c:2698
compact_node+0x210/0x310 mm/compaction.c:2945
kcompactd+0xc0b/0x12c0 mm/compaction.c:3243
kthread+0x38b/0x480 kernel/kthread.c:436
ret_from_fork+0x514/0xb70 arch/x86/kernel/process.c:158
ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245
Modules linked in:
CPU: 0 UID: 0 PID: 5323 Comm: syz.0.0 Tainted: G B syzkaller #0 PREEMPT(full)
Tainted: [B]=BAD_PAGE
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
Call Trace:
dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120
bad_page+0x17f/0x1c0 mm/page_alloc.c:647
free_page_is_bad mm/page_alloc.c:1082 [inline]
__free_pages_prepare mm/page_alloc.c:1409 [inline]
__free_frozen_pages+0xd37/0xd90 mm/page_alloc.c:2962
bpf_xdp_shrink_data net/core/filter.c:4383 [inline]
bpf_xdp_frags_shrink_tail+0x4ed/0x800 net/core/filter.c:4407
____bpf_xdp_adjust_tail net/core/filter.c:4429 [inline]
bpf_xdp_adjust_tail+0x1ce/0x210 net/core/filter.c:4422
bpf_prog_5d7dc57dfd7f985a+0x1e/0x24
__bpf_prog_run include/linux/filter.h:779 [inline]
bpf_prog_run_xdp include/net/xdp.h:701 [inline]
bpf_prog_run_generic_xdp+0x612/0x1560 net/core/dev.c:5579
netif_receive_generic_xdp net/core/dev.c:5699 [inline]
do_xdp_generic+0xae1/0x12f0 net/core/dev.c:5761
tun_get_user+0x248b/0x4450 drivers/net/tun.c:1967
tun_chr_write_iter+0x113/0x200 drivers/net/tun.c:2094
new_sync_write fs/read_write.c:595 [inline]
vfs_write+0x612/0xba0 fs/read_write.c:687
ksys_write+0x150/0x270 fs/read_write.c:739
do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f054b55ea0e
Code: 08 0f 85 a5 a8 ff ff 49 89 fb 48 89 f0 48 89 d7 48 89 ce 4c 89 c2 4d 89 ca 4c 8b 44 24 08 4c 8b 4c 24 10 4c 89 5c 24 08 0f 05 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 80 00 00 00 00 48 83 ec 08
RSP: 002b:00007f054c530f78 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f054c5316c0 RCX: 00007f054b55ea0e
RDX: 000000000000fdef RSI: 00002000000001c0 RDI: 00000000000000c8
RBP: 00007f054b635888 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f054b826128 R14: 00007f054b826090 R15: 00007ffe7f94b1a8