BUG: Bad page state in process syz.0.16 pfn:4cdea
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff88804cdeae00 pfn:0x4cdea
flags: 0x4fff00000000000(node=1|zone=1|lastcpupid=0x7ff)
raw: 04fff00000000000 dead000000000040 ffff88801e8f0000 0000000000000000
raw: ffff88804cdeae00 3fffffffffffffff 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 5876, tgid 5875 (syz.0.16), ts 142109070078, free_ts 142106058401
set_page_owner include/linux/page_owner.h:32 [inline]
post_alloc_hook+0x240/0x2a0 mm/page_alloc.c:1704
prep_new_page mm/page_alloc.c:1712 [inline]
get_page_from_freelist+0x21e4/0x22c0 mm/page_alloc.c:3669
__alloc_frozen_pages_noprof+0x181/0x370 mm/page_alloc.c:4959
__alloc_pages_noprof mm/page_alloc.c:4993 [inline]
alloc_pages_bulk_noprof+0x560/0x710 mm/page_alloc.c:4913
alloc_pages_bulk_node_noprof include/linux/gfp.h:254 [inline]
__page_pool_alloc_pages_slow+0x127/0x740 net/core/page_pool.c:567
page_pool_alloc_netmems net/core/page_pool.c:618 [inline]
page_pool_alloc_frag_netmem+0x421/0x9b0 net/core/page_pool.c:1038
page_pool_alloc_netmem include/net/page_pool/helpers.h:131 [inline]
page_pool_alloc include/net/page_pool/helpers.h:160 [inline]
page_pool_dev_alloc include/net/page_pool/helpers.h:181 [inline]
skb_pp_cow_data+0xb69/0x13e0 net/core/skbuff.c:952
netif_skb_check_for_xdp net/core/dev.c:5329 [inline]
netif_receive_generic_xdp net/core/dev.c:5370 [inline]
do_xdp_generic+0x699/0x11a0 net/core/dev.c:5438
tun_get_user+0x23fb/0x3ce0 drivers/net/tun.c:1860
tun_chr_write_iter+0x113/0x200 drivers/net/tun.c:1984
new_sync_write fs/read_write.c:593 [inline]
vfs_write+0x54b/0xa90 fs/read_write.c:686
ksys_write+0x145/0x250 fs/read_write.c:738
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
page last free pid 15 tgid 15 stack trace:
reset_page_owner include/linux/page_owner.h:25 [inline]
free_pages_prepare mm/page_alloc.c:1248 [inline]
__free_frozen_pages+0xc71/0xe70 mm/page_alloc.c:2706
pagetable_free include/linux/mm.h:2879 [inline]
pagetable_dtor_free include/linux/mm.h:2977 [inline]
__tlb_remove_table+0x2d2/0x3b0 include/asm-generic/tlb.h:220
__tlb_remove_table_free mm/mmu_gather.c:227 [inline]
tlb_remove_table_rcu+0x85/0x100 mm/mmu_gather.c:290
rcu_do_batch kernel/rcu/tree.c:2576 [inline]
rcu_core+0xca5/0x1710 kernel/rcu/tree.c:2832
handle_softirqs+0x286/0x870 kernel/softirq.c:579
run_ksoftirqd+0x9b/0x100 kernel/softirq.c:968
smpboot_thread_fn+0x53f/0xa60 kernel/smpboot.c:164
kthread+0x70e/0x8a0 kernel/kthread.c:464
ret_from_fork+0x3fc/0x770 arch/x86/kernel/process.c:148
ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245
Modules linked in:
CPU: 0 UID: 0 PID: 5876 Comm: syz.0.16 Not tainted 6.16.0-rc4-syzkaller-ga79a588fc176 #0 PREEMPT(full)
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014
Call Trace:
dump_stack_lvl+0x189/0x250 lib/dump_stack.c:120
bad_page+0x180/0x1c0 mm/page_alloc.c:506
free_page_is_bad mm/page_alloc.c:939 [inline]
free_pages_prepare mm/page_alloc.c:1240 [inline]
__free_frozen_pages+0xe17/0xe70 mm/page_alloc.c:2706
bpf_xdp_shrink_data net/core/filter.c:4172 [inline]
bpf_xdp_frags_shrink_tail+0x3a5/0x750 net/core/filter.c:4192
____bpf_xdp_adjust_tail net/core/filter.c:4217 [inline]
bpf_xdp_adjust_tail+0x1d6/0x220 net/core/filter.c:4210
bpf_prog_f476d5219b92964a+0x1e/0x24
__bpf_prog_run include/linux/filter.h:718 [inline]
bpf_prog_run_xdp include/net/xdp.h:657 [inline]
bpf_prog_run_generic_xdp+0x64b/0x14c0 net/core/dev.c:5260
netif_receive_generic_xdp net/core/dev.c:5376 [inline]
do_xdp_generic+0x9f7/0x11a0 net/core/dev.c:5438
tun_get_user+0x23fb/0x3ce0 drivers/net/tun.c:1860
tun_chr_write_iter+0x113/0x200 drivers/net/tun.c:1984
new_sync_write fs/read_write.c:593 [inline]
vfs_write+0x54b/0xa90 fs/read_write.c:686
ksys_write+0x145/0x250 fs/read_write.c:738
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fe83e58bc1f
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:00007fe83f35f000 EFLAGS: 00000293 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007fe83e7a5fa0 RCX: 00007fe83e58bc1f
RDX: 000000000000fdef RSI: 0000200000000a80 RDI: 00000000000000c8
RBP: 00007fe83e60e2a0 R08: 0000000000000000 R09: 0000000000000000
R10: 000000000000fdef R11: 0000000000000293 R12: 0000000000000000
R13: 0000000000000000 R14: 00007fe83e7a5fa0 R15: 00007fffca44a098
BUG: Bad page state in process syz.0.16 pfn:47624
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff888000000000 pfn:0x47624
flags: 0x4fff00000000000(node=1|zone=1|lastcpupid=0x7ff)
raw: 04fff00000000000 dead000000000040 ffff88801e8f0000 0000000000000000
raw: ffff888000000000 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 5876, tgid 5875 (syz.0.16), ts 142109058141, free_ts 142106075891
set_page_owner include/linux/page_owner.h:32 [inline]
post_alloc_hook+0x240/0x2a0 mm/page_alloc.c:1704
prep_new_page mm/page_alloc.c:1712 [inline]
get_page_from_freelist+0x21e4/0x22c0 mm/page_alloc.c:3669
__alloc_frozen_pages_noprof+0x181/0x370 mm/page_alloc.c:4959
__alloc_pages_noprof mm/page_alloc.c:4993 [inline]
alloc_pages_bulk_noprof+0x560/0x710 mm/page_alloc.c:4913
alloc_pages_bulk_node_noprof include/linux/gfp.h:254 [inline]
__page_pool_alloc_pages_slow+0x127/0x740 net/core/page_pool.c:567
page_pool_alloc_netmem include/net/page_pool/helpers.h:128 [inline]
page_pool_alloc include/net/page_pool/helpers.h:160 [inline]
page_pool_dev_alloc include/net/page_pool/helpers.h:181 [inline]
skb_pp_cow_data+0xb47/0x13e0 net/core/skbuff.c:952
netif_skb_check_for_xdp net/core/dev.c:5329 [inline]
netif_receive_generic_xdp net/core/dev.c:5370 [inline]
do_xdp_generic+0x699/0x11a0 net/core/dev.c:5438
tun_get_user+0x23fb/0x3ce0 drivers/net/tun.c:1860
tun_chr_write_iter+0x113/0x200 drivers/net/tun.c:1984
new_sync_write fs/read_write.c:593 [inline]
vfs_write+0x54b/0xa90 fs/read_write.c:686
ksys_write+0x145/0x250 fs/read_write.c:738
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
page last free pid 15 tgid 15 stack trace:
reset_page_owner include/linux/page_owner.h:25 [inline]
free_pages_prepare mm/page_alloc.c:1248 [inline]
__free_frozen_pages+0xc71/0xe70 mm/page_alloc.c:2706
pagetable_free include/linux/mm.h:2879 [inline]
pagetable_dtor_free include/linux/mm.h:2977 [inline]
__tlb_remove_table+0x2d2/0x3b0 include/asm-generic/tlb.h:220
__tlb_remove_table_free mm/mmu_gather.c:227 [inline]
tlb_remove_table_rcu+0x85/0x100 mm/mmu_gather.c:290
rcu_do_batch kernel/rcu/tree.c:2576 [inline]
rcu_core+0xca5/0x1710 kernel/rcu/tree.c:2832
handle_softirqs+0x286/0x870 kernel/softirq.c:579
run_ksoftirqd+0x9b/0x100 kernel/softirq.c:968
smpboot_thread_fn+0x53f/0xa60 kernel/smpboot.c:164
kthread+0x70e/0x8a0 kernel/kthread.c:464
ret_from_fork+0x3fc/0x770 arch/x86/kernel/process.c:148
ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245
Modules linked in:
CPU: 0 UID: 0 PID: 5876 Comm: syz.0.16 Tainted: G B 6.16.0-rc4-syzkaller-ga79a588fc176 #0 PREEMPT(full)
Tainted: [B]=BAD_PAGE
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014
Call Trace:
dump_stack_lvl+0x189/0x250 lib/dump_stack.c:120
bad_page+0x180/0x1c0 mm/page_alloc.c:506
free_page_is_bad mm/page_alloc.c:939 [inline]
free_pages_prepare mm/page_alloc.c:1240 [inline]
__free_frozen_pages+0xe17/0xe70 mm/page_alloc.c:2706
bpf_xdp_shrink_data net/core/filter.c:4172 [inline]
bpf_xdp_frags_shrink_tail+0x3a5/0x750 net/core/filter.c:4192
____bpf_xdp_adjust_tail net/core/filter.c:4217 [inline]
bpf_xdp_adjust_tail+0x1d6/0x220 net/core/filter.c:4210
bpf_prog_f476d5219b92964a+0x1e/0x24
__bpf_prog_run include/linux/filter.h:718 [inline]
bpf_prog_run_xdp include/net/xdp.h:657 [inline]
bpf_prog_run_generic_xdp+0x64b/0x14c0 net/core/dev.c:5260
netif_receive_generic_xdp net/core/dev.c:5376 [inline]
do_xdp_generic+0x9f7/0x11a0 net/core/dev.c:5438
tun_get_user+0x23fb/0x3ce0 drivers/net/tun.c:1860
tun_chr_write_iter+0x113/0x200 drivers/net/tun.c:1984
new_sync_write fs/read_write.c:593 [inline]
vfs_write+0x54b/0xa90 fs/read_write.c:686
ksys_write+0x145/0x250 fs/read_write.c:738
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fe83e58bc1f
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:00007fe83f35f000 EFLAGS: 00000293 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007fe83e7a5fa0 RCX: 00007fe83e58bc1f
RDX: 000000000000fdef RSI: 0000200000000a80 RDI: 00000000000000c8
RBP: 00007fe83e60e2a0 R08: 0000000000000000 R09: 0000000000000000
R10: 000000000000fdef R11: 0000000000000293 R12: 0000000000000000
R13: 0000000000000000 R14: 00007fe83e7a5fa0 R15: 00007fffca44a098
BUG: Bad page state in process syz.0.16 pfn:4763e
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff888000000000 pfn:0x4763e
flags: 0x4fff00000000000(node=1|zone=1|lastcpupid=0x7ff)
raw: 04fff00000000000 dead000000000040 ffff88801e8f0000 0000000000000000
raw: ffff888000000000 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 5876, tgid 5875 (syz.0.16), ts 142109047191, free_ts 142106092012
set_page_owner include/linux/page_owner.h:32 [inline]
post_alloc_hook+0x240/0x2a0 mm/page_alloc.c:1704
prep_new_page mm/page_alloc.c:1712 [inline]
get_page_from_freelist+0x21e4/0x22c0 mm/page_alloc.c:3669
__alloc_frozen_pages_noprof+0x181/0x370 mm/page_alloc.c:4959
__alloc_pages_noprof mm/page_alloc.c:4993 [inline]
alloc_pages_bulk_noprof+0x560/0x710 mm/page_alloc.c:4913
alloc_pages_bulk_node_noprof include/linux/gfp.h:254 [inline]
__page_pool_alloc_pages_slow+0x127/0x740 net/core/page_pool.c:567
page_pool_alloc_netmem include/net/page_pool/helpers.h:128 [inline]
page_pool_alloc include/net/page_pool/helpers.h:160 [inline]
page_pool_dev_alloc include/net/page_pool/helpers.h:181 [inline]
skb_pp_cow_data+0xb47/0x13e0 net/core/skbuff.c:952
netif_skb_check_for_xdp net/core/dev.c:5329 [inline]
netif_receive_generic_xdp net/core/dev.c:5370 [inline]
do_xdp_generic+0x699/0x11a0 net/core/dev.c:5438
tun_get_user+0x23fb/0x3ce0 drivers/net/tun.c:1860
tun_chr_write_iter+0x113/0x200 drivers/net/tun.c:1984
new_sync_write fs/read_write.c:593 [inline]
vfs_write+0x54b/0xa90 fs/read_write.c:686
ksys_write+0x145/0x250 fs/read_write.c:738
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
page last free pid 15 tgid 15 stack trace:
reset_page_owner include/linux/page_owner.h:25 [inline]
free_pages_prepare mm/page_alloc.c:1248 [inline]
__free_frozen_pages+0xc71/0xe70 mm/page_alloc.c:2706
pagetable_free include/linux/mm.h:2879 [inline]
pagetable_dtor_free include/linux/mm.h:2977 [inline]
__tlb_remove_table+0x2d2/0x3b0 include/asm-generic/tlb.h:220
__tlb_remove_table_free mm/mmu_gather.c:227 [inline]
tlb_remove_table_rcu+0x85/0x100 mm/mmu_gather.c:290
rcu_do_batch kernel/rcu/tree.c:2576 [inline]
rcu_core+0xca5/0x1710 kernel/rcu/tree.c:2832
handle_softirqs+0x286/0x870 kernel/softirq.c:579
run_ksoftirqd+0x9b/0x100 kernel/softirq.c:968
smpboot_thread_fn+0x53f/0xa60 kernel/smpboot.c:164
kthread+0x70e/0x8a0 kernel/kthread.c:464
ret_from_fork+0x3fc/0x770 arch/x86/kernel/process.c:148
ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245
Modules linked in:
CPU: 0 UID: 0 PID: 5876 Comm: syz.0.16 Tainted: G B 6.16.0-rc4-syzkaller-ga79a588fc176 #0 PREEMPT(full)
Tainted: [B]=BAD_PAGE
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014
Call Trace:
dump_stack_lvl+0x189/0x250 lib/dump_stack.c:120
bad_page+0x180/0x1c0 mm/page_alloc.c:506
free_page_is_bad mm/page_alloc.c:939 [inline]
free_pages_prepare mm/page_alloc.c:1240 [inline]
__free_frozen_pages+0xe17/0xe70 mm/page_alloc.c:2706
bpf_xdp_shrink_data net/core/filter.c:4172 [inline]
bpf_xdp_frags_shrink_tail+0x3a5/0x750 net/core/filter.c:4192
____bpf_xdp_adjust_tail net/core/filter.c:4217 [inline]
bpf_xdp_adjust_tail+0x1d6/0x220 net/core/filter.c:4210
bpf_prog_f476d5219b92964a+0x1e/0x24
__bpf_prog_run include/linux/filter.h:718 [inline]
bpf_prog_run_xdp include/net/xdp.h:657 [inline]
bpf_prog_run_generic_xdp+0x64b/0x14c0 net/core/dev.c:5260
netif_receive_generic_xdp net/core/dev.c:5376 [inline]
do_xdp_generic+0x9f7/0x11a0 net/core/dev.c:5438
tun_get_user+0x23fb/0x3ce0 drivers/net/tun.c:1860
tun_chr_write_iter+0x113/0x200 drivers/net/tun.c:1984
new_sync_write fs/read_write.c:593 [inline]
vfs_write+0x54b/0xa90 fs/read_write.c:686
ksys_write+0x145/0x250 fs/read_write.c:738
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fe83e58bc1f
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:00007fe83f35f000 EFLAGS: 00000293 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007fe83e7a5fa0 RCX: 00007fe83e58bc1f
RDX: 000000000000fdef RSI: 0000200000000a80 RDI: 00000000000000c8
RBP: 00007fe83e60e2a0 R08: 0000000000000000 R09: 0000000000000000
R10: 000000000000fdef R11: 0000000000000293 R12: 0000000000000000
R13: 0000000000000000 R14: 00007fe83e7a5fa0 R15: 00007fffca44a098
BUG: Bad page state in process syz.0.16 pfn:50c64
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff888050c64600 pfn:0x50c64
flags: 0x4fff00000000000(node=1|zone=1|lastcpupid=0x7ff)
raw: 04fff00000000000 dead000000000040 ffff88801e8f0000 0000000000000000
raw: ffff888050c64600 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 5876, tgid 5875 (syz.0.16), ts 142109036808, free_ts 142106100123
set_page_owner include/linux/page_owner.h:32 [inline]
post_alloc_hook+0x240/0x2a0 mm/page_alloc.c:1704
prep_new_page mm/page_alloc.c:1712 [inline]
get_page_from_freelist+0x21e4/0x22c0 mm/page_alloc.c:3669
__alloc_frozen_pages_noprof+0x181/0x370 mm/page_alloc.c:4959
__alloc_pages_noprof mm/page_alloc.c:4993 [inline]
alloc_pages_bulk_noprof+0x560/0x710 mm/page_alloc.c:4913
alloc_pages_bulk_node_noprof include/linux/gfp.h:254 [inline]
__page_pool_alloc_pages_slow+0x127/0x740 net/core/page_pool.c:567
page_pool_alloc_netmem include/net/page_pool/helpers.h:128 [inline]
page_pool_alloc include/net/page_pool/helpers.h:160 [inline]
page_pool_dev_alloc include/net/page_pool/helpers.h:181 [inline]
skb_pp_cow_data+0xb47/0x13e0 net/core/skbuff.c:952
netif_skb_check_for_xdp net/core/dev.c:5329 [inline]
netif_receive_generic_xdp net/core/dev.c:5370 [inline]
do_xdp_generic+0x699/0x11a0 net/core/dev.c:5438
tun_get_user+0x23fb/0x3ce0 drivers/net/tun.c:1860
tun_chr_write_iter+0x113/0x200 drivers/net/tun.c:1984
new_sync_write fs/read_write.c:593 [inline]
vfs_write+0x54b/0xa90 fs/read_write.c:686
ksys_write+0x145/0x250 fs/read_write.c:738
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
page last free pid 15 tgid 15 stack trace:
reset_page_owner include/linux/page_owner.h:25 [inline]
free_pages_prepare mm/page_alloc.c:1248 [inline]
__free_frozen_pages+0xc71/0xe70 mm/page_alloc.c:2706
pagetable_free include/linux/mm.h:2879 [inline]
pagetable_dtor_free include/linux/mm.h:2977 [inline]
__tlb_remove_table+0x2d2/0x3b0 include/asm-generic/tlb.h:220
__tlb_remove_table_free mm/mmu_gather.c:227 [inline]
tlb_remove_table_rcu+0x85/0x100 mm/mmu_gather.c:290
rcu_do_batch kernel/rcu/tree.c:2576 [inline]
rcu_core+0xca5/0x1710 kernel/rcu/tree.c:2832
handle_softirqs+0x286/0x870 kernel/softirq.c:579
run_ksoftirqd+0x9b/0x100 kernel/softirq.c:968
smpboot_thread_fn+0x53f/0xa60 kernel/smpboot.c:164
kthread+0x70e/0x8a0 kernel/kthread.c:464
ret_from_fork+0x3fc/0x770 arch/x86/kernel/process.c:148
ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245
Modules linked in:
CPU: 0 UID: 0 PID: 5876 Comm: syz.0.16 Tainted: G B 6.16.0-rc4-syzkaller-ga79a588fc176 #0 PREEMPT(full)
Tainted: [B]=BAD_PAGE
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014
Call Trace:
dump_stack_lvl+0x189/0x250 lib/dump_stack.c:120
bad_page+0x180/0x1c0 mm/page_alloc.c:506
free_page_is_bad mm/page_alloc.c:939 [inline]
free_pages_prepare mm/page_alloc.c:1240 [inline]
__free_frozen_pages+0xe17/0xe70 mm/page_alloc.c:2706
bpf_xdp_shrink_data net/core/filter.c:4172 [inline]
bpf_xdp_frags_shrink_tail+0x3a5/0x750 net/core/filter.c:4192
____bpf_xdp_adjust_tail net/core/filter.c:4217 [inline]
bpf_xdp_adjust_tail+0x1d6/0x220 net/core/filter.c:4210
bpf_prog_f476d5219b92964a+0x1e/0x24
__bpf_prog_run include/linux/filter.h:718 [inline]
bpf_prog_run_xdp include/net/xdp.h:657 [inline]
bpf_prog_run_generic_xdp+0x64b/0x14c0 net/core/dev.c:5260
netif_receive_generic_xdp net/core/dev.c:5376 [inline]
do_xdp_generic+0x9f7/0x11a0 net/core/dev.c:5438
tun_get_user+0x23fb/0x3ce0 drivers/net/tun.c:1860
tun_chr_write_iter+0x113/0x200 drivers/net/tun.c:1984
new_sync_write fs/read_write.c:593 [inline]
vfs_write+0x54b/0xa90 fs/read_write.c:686
ksys_write+0x145/0x250 fs/read_write.c:738
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fe83e58bc1f
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:00007fe83f35f000 EFLAGS: 00000293 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007fe83e7a5fa0 RCX: 00007fe83e58bc1f
RDX: 000000000000fdef RSI: 0000200000000a80 RDI: 00000000000000c8
RBP: 00007fe83e60e2a0 R08: 0000000000000000 R09: 0000000000000000
R10: 000000000000fdef R11: 0000000000000293 R12: 0000000000000000
R13: 0000000000000000 R14: 00007fe83e7a5fa0 R15: 00007fffca44a098
BUG: Bad page state in process syz.0.16 pfn:404ae
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff888000000000 pfn:0x404ae
flags: 0x4fff00000000000(node=1|zone=1|lastcpupid=0x7ff)
raw: 04fff00000000000 dead000000000040 ffff88801e8f0000 0000000000000000
raw: ffff888000000000 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 5876, tgid 5875 (syz.0.16), ts 142109026857, free_ts 142106116391
set_page_owner include/linux/page_owner.h:32 [inline]
post_alloc_hook+0x240/0x2a0 mm/page_alloc.c:1704
prep_new_page mm/page_alloc.c:1712 [inline]
get_page_from_freelist+0x21e4/0x22c0 mm/page_alloc.c:3669
__alloc_frozen_pages_noprof+0x181/0x370 mm/page_alloc.c:4959
__alloc_pages_noprof mm/page_alloc.c:4993 [inline]
alloc_pages_bulk_noprof+0x560/0x710 mm/page_alloc.c:4913
alloc_pages_bulk_node_noprof include/linux/gfp.h:254 [inline]
__page_pool_alloc_pages_slow+0x127/0x740 net/core/page_pool.c:567
page_pool_alloc_netmem include/net/page_pool/helpers.h:128 [inline]
page_pool_alloc include/net/page_pool/helpers.h:160 [inline]
page_pool_dev_alloc include/net/page_pool/helpers.h:181 [inline]
skb_pp_cow_data+0xb47/0x13e0 net/core/skbuff.c:952
netif_skb_check_for_xdp net/core/dev.c:5329 [inline]
netif_receive_generic_xdp net/core/dev.c:5370 [inline]
do_xdp_generic+0x699/0x11a0 net/core/dev.c:5438
tun_get_user+0x23fb/0x3ce0 drivers/net/tun.c:1860
tun_chr_write_iter+0x113/0x200 drivers/net/tun.c:1984
new_sync_write fs/read_write.c:593 [inline]
vfs_write+0x54b/0xa90 fs/read_write.c:686
ksys_write+0x145/0x250 fs/read_write.c:738
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
page last free pid 15 tgid 15 stack trace:
reset_page_owner include/linux/page_owner.h:25 [inline]
free_pages_prepare mm/page_alloc.c:1248 [inline]
__free_frozen_pages+0xc71/0xe70 mm/page_alloc.c:2706
pagetable_free include/linux/mm.h:2879 [inline]
pagetable_dtor_free include/linux/mm.h:2977 [inline]
__tlb_remove_table+0x2d2/0x3b0 include/asm-generic/tlb.h:220
__tlb_remove_table_free mm/mmu_gather.c:227 [inline]
tlb_remove_table_rcu+0x85/0x100 mm/mmu_gather.c:290
rcu_do_batch kernel/rcu/tree.c:2576 [inline]
rcu_core+0xca5/0x1710 kernel/rcu/tree.c:2832
handle_softirqs+0x286/0x870 kernel/softirq.c:579
run_ksoftirqd+0x9b/0x100 kernel/softirq.c:968
smpboot_thread_fn+0x53f/0xa60 kernel/smpboot.c:164
kthread+0x70e/0x8a0 kernel/kthread.c:464
ret_from_fork+0x3fc/0x770 arch/x86/kernel/process.c:148
ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245
Modules linked in:
CPU: 0 UID: 0 PID: 5876 Comm: syz.0.16 Tainted: G B 6.16.0-rc4-syzkaller-ga79a588fc176 #0 PREEMPT(full)
Tainted: [B]=BAD_PAGE
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014
Call Trace:
dump_stack_lvl+0x189/0x250 lib/dump_stack.c:120
bad_page+0x180/0x1c0 mm/page_alloc.c:506
free_page_is_bad mm/page_alloc.c:939 [inline]
free_pages_prepare mm/page_alloc.c:1240 [inline]
__free_frozen_pages+0xe17/0xe70 mm/page_alloc.c:2706
bpf_xdp_shrink_data net/core/filter.c:4172 [inline]
bpf_xdp_frags_shrink_tail+0x3a5/0x750 net/core/filter.c:4192
____bpf_xdp_adjust_tail net/core/filter.c:4217 [inline]
bpf_xdp_adjust_tail+0x1d6/0x220 net/core/filter.c:4210
bpf_prog_f476d5219b92964a+0x1e/0x24
__bpf_prog_run include/linux/filter.h:718 [inline]
bpf_prog_run_xdp include/net/xdp.h:657 [inline]
bpf_prog_run_generic_xdp+0x64b/0x14c0 net/core/dev.c:5260
netif_receive_generic_xdp net/core/dev.c:5376 [inline]
do_xdp_generic+0x9f7/0x11a0 net/core/dev.c:5438
tun_get_user+0x23fb/0x3ce0 drivers/net/tun.c:1860
tun_chr_write_iter+0x113/0x200 drivers/net/tun.c:1984
new_sync_write fs/read_write.c:593 [inline]
vfs_write+0x54b/0xa90 fs/read_write.c:686
ksys_write+0x145/0x250 fs/read_write.c:738
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fe83e58bc1f
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:00007fe83f35f000 EFLAGS: 00000293 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007fe83e7a5fa0 RCX: 00007fe83e58bc1f
RDX: 000000000000fdef RSI: 0000200000000a80 RDI: 00000000000000c8
RBP: 00007fe83e60e2a0 R08: 0000000000000000 R09: 0000000000000000
R10: 000000000000fdef R11: 0000000000000293 R12: 0000000000000000
R13: 0000000000000000 R14: 00007fe83e7a5fa0 R15: 00007fffca44a098
BUG: Bad page state in process syz.0.16 pfn:59cc6
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff888059cc6500 pfn:0x59cc6
flags: 0x4fff00000000000(node=1|zone=1|lastcpupid=0x7ff)
raw: 04fff00000000000 dead000000000040 ffff88801e8f0000 0000000000000000
raw: ffff888059cc6500 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 5876, tgid 5875 (syz.0.16), ts 142109014928, free_ts 142106132371
set_page_owner include/linux/page_owner.h:32 [inline]
post_alloc_hook+0x240/0x2a0 mm/page_alloc.c:1704
prep_new_page mm/page_alloc.c:1712 [inline]
get_page_from_freelist+0x21e4/0x22c0 mm/page_alloc.c:3669
__alloc_frozen_pages_noprof+0x181/0x370 mm/page_alloc.c:4959
__alloc_pages_noprof mm/page_alloc.c:4993 [inline]
alloc_pages_bulk_noprof+0x560/0x710 mm/page_alloc.c:4913
alloc_pages_bulk_node_noprof include/linux/gfp.h:254 [inline]
__page_pool_alloc_pages_slow+0x127/0x740 net/core/page_pool.c:567
page_pool_alloc_netmem include/net/page_pool/helpers.h:128 [inline]
page_pool_alloc include/net/page_pool/helpers.h:160 [inline]
page_pool_dev_alloc include/net/page_pool/helpers.h:181 [inline]
skb_pp_cow_data+0xb47/0x13e0 net/core/skbuff.c:952
netif_skb_check_for_xdp net/core/dev.c:5329 [inline]
netif_receive_generic_xdp net/core/dev.c:5370 [inline]
do_xdp_generic+0x699/0x11a0 net/core/dev.c:5438
tun_get_user+0x23fb/0x3ce0 drivers/net/tun.c:1860
tun_chr_write_iter+0x113/0x200 drivers/net/tun.c:1984
new_sync_write fs/read_write.c:593 [inline]
vfs_write+0x54b/0xa90 fs/read_write.c:686
ksys_write+0x145/0x250 fs/read_write.c:738
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
page last free pid 15 tgid 15 stack trace:
reset_page_owner include/linux/page_owner.h:25 [inline]
free_pages_prepare mm/page_alloc.c:1248 [inline]
__free_frozen_pages+0xc71/0xe70 mm/page_alloc.c:2706
pagetable_free include/linux/mm.h:2879 [inline]
pagetable_dtor_free include/linux/mm.h:2977 [inline]
__tlb_remove_table+0x2d2/0x3b0 include/asm-generic/tlb.h:220
__tlb_remove_table_free mm/mmu_gather.c:227 [inline]
tlb_remove_table_rcu+0x85/0x100 mm/mmu_gather.c:290
rcu_do_batch kernel/rcu/tree.c:2576 [inline]
rcu_core+0xca5/0x1710 kernel/rcu/tree.c:2832
handle_softirqs+0x286/0x870 kernel/softirq.c:579
run_ksoftirqd+0x9b/0x100 kernel/softirq.c:968
smpboot_thread_fn+0x53f/0xa60 kernel/smpboot.c:164
kthread+0x70e/0x8a0 kernel/kthread.c:464
ret_from_fork+0x3fc/0x770 arch/x86/kernel/process.c:148
ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245
Modules linked in:
CPU: 0 UID: 0 PID: 5876 Comm: syz.0.16 Tainted: G B 6.16.0-rc4-syzkaller-ga79a588fc176 #0 PREEMPT(full)
Tainted: [B]=BAD_PAGE
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014
Call Trace:
dump_stack_lvl+0x189/0x250 lib/dump_stack.c:120
bad_page+0x180/0x1c0 mm/page_alloc.c:506
free_page_is_bad mm/page_alloc.c:939 [inline]
free_pages_prepare mm/page_alloc.c:1240 [inline]
__free_frozen_pages+0xe17/0xe70 mm/page_alloc.c:2706
bpf_xdp_shrink_data net/core/filter.c:4172 [inline]
bpf_xdp_frags_shrink_tail+0x3a5/0x750 net/core/filter.c:4192
____bpf_xdp_adjust_tail net/core/filter.c:4217 [inline]
bpf_xdp_adjust_tail+0x1d6/0x220 net/core/filter.c:4210
bpf_prog_f476d5219b92964a+0x1e/0x24
__bpf_prog_run include/linux/filter.h:718 [inline]
bpf_prog_run_xdp include/net/xdp.h:657 [inline]
bpf_prog_run_generic_xdp+0x64b/0x14c0 net/core/dev.c:5260
netif_receive_generic_xdp net/core/dev.c:5376 [inline]
do_xdp_generic+0x9f7/0x11a0 net/core/dev.c:5438
tun_get_user+0x23fb/0x3ce0 drivers/net/tun.c:1860
tun_chr_write_iter+0x113/0x200 drivers/net/tun.c:1984
new_sync_write fs/read_write.c:593 [inline]
vfs_write+0x54b/0xa90 fs/read_write.c:686
ksys_write+0x145/0x250 fs/read_write.c:738
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fe83e58bc1f
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:00007fe83f35f000 EFLAGS: 00000293 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007fe83e7a5fa0 RCX: 00007fe83e58bc1f
RDX: 000000000000fdef RSI: 0000200000000a80 RDI: 00000000000000c8
RBP: 00007fe83e60e2a0 R08: 0000000000000000 R09: 0000000000000000
R10: 000000000000fdef R11: 0000000000000293 R12: 0000000000000000
R13: 0000000000000000 R14: 00007fe83e7a5fa0 R15: 00007fffca44a098
BUG: Bad page state in process syz.0.16 pfn:44723
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff888000000000 pfn:0x44723
flags: 0x4fff00000000000(node=1|zone=1|lastcpupid=0x7ff)
raw: 04fff00000000000 dead000000000040 ffff88801e8f0000 0000000000000000
raw: ffff888000000000 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 5876, tgid 5875 (syz.0.16), ts 142109002436, free_ts 142106157439
set_page_owner include/linux/page_owner.h:32 [inline]
post_alloc_hook+0x240/0x2a0 mm/page_alloc.c:1704
prep_new_page mm/page_alloc.c:1712 [inline]
get_page_from_freelist+0x21e4/0x22c0 mm/page_alloc.c:3669
__alloc_frozen_pages_noprof+0x181/0x370 mm/page_alloc.c:4959
__alloc_pages_noprof mm/page_alloc.c:4993 [inline]
alloc_pages_bulk_noprof+0x560/0x710 mm/page_alloc.c:4913
alloc_pages_bulk_node_noprof include/linux/gfp.h:254 [inline]
__page_pool_alloc_pages_slow+0x127/0x740 net/core/page_pool.c:567
page_pool_alloc_netmem include/net/page_pool/helpers.h:128 [inline]
page_pool_alloc include/net/page_pool/helpers.h:160 [inline]
page_pool_dev_alloc include/net/page_pool/helpers.h:181 [inline]
skb_pp_cow_data+0xb47/0x13e0 net/core/skbuff.c:952
netif_skb_check_for_xdp net/core/dev.c:5329 [inline]
netif_receive_generic_xdp net/core/dev.c:5370 [inline]
do_xdp_generic+0x699/0x11a0 net/core/dev.c:5438
tun_get_user+0x23fb/0x3ce0 drivers/net/tun.c:1860
tun_chr_write_iter+0x113/0x200 drivers/net/tun.c:1984
new_sync_write fs/read_write.c:593 [inline]
vfs_write+0x54b/0xa90 fs/read_write.c:686
ksys_write+0x145/0x250 fs/read_write.c:738
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
page last free pid 15 tgid 15 stack trace:
reset_page_owner include/linux/page_owner.h:25 [inline]
free_pages_prepare mm/page_alloc.c:1248 [inline]
__free_frozen_pages+0xc71/0xe70 mm/page_alloc.c:2706
pagetable_free include/linux/mm.h:2879 [inline]
pagetable_dtor_free include/linux/mm.h:2977 [inline]
__tlb_remove_table+0x2d2/0x3b0 include/asm-generic/tlb.h:220
__tlb_remove_table_free mm/mmu_gather.c:227 [inline]
tlb_remove_table_rcu+0x85/0x100 mm/mmu_gather.c:290
rcu_do_batch kernel/rcu/tree.c:2576 [inline]
rcu_core+0xca5/0x1710 kernel/rcu/tree.c:2832
handle_softirqs+0x286/0x870 kernel/softirq.c:579
run_ksoftirqd+0x9b/0x100 kernel/softirq.c:968
smpboot_thread_fn+0x53f/0xa60 kernel/smpboot.c:164
kthread+0x70e/0x8a0 kernel/kthread.c:464
ret_from_fork+0x3fc/0x770 arch/x86/kernel/process.c:148
ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245
Modules linked in:
CPU: 0 UID: 0 PID: 5876 Comm: syz.0.16 Tainted: G B 6.16.0-rc4-syzkaller-ga79a588fc176 #0 PREEMPT(full)
Tainted: [B]=BAD_PAGE
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014
Call Trace:
dump_stack_lvl+0x189/0x250 lib/dump_stack.c:120
bad_page+0x180/0x1c0 mm/page_alloc.c:506
free_page_is_bad mm/page_alloc.c:939 [inline]
free_pages_prepare mm/page_alloc.c:1240 [inline]
__free_frozen_pages+0xe17/0xe70 mm/page_alloc.c:2706
bpf_xdp_shrink_data net/core/filter.c:4172 [inline]
bpf_xdp_frags_shrink_tail+0x3a5/0x750 net/core/filter.c:4192
____bpf_xdp_adjust_tail net/core/filter.c:4217 [inline]
bpf_xdp_adjust_tail+0x1d6/0x220 net/core/filter.c:4210
bpf_prog_f476d5219b92964a+0x1e/0x24
__bpf_prog_run include/linux/filter.h:718 [inline]
bpf_prog_run_xdp include/net/xdp.h:657 [inline]
bpf_prog_run_generic_xdp+0x64b/0x14c0 net/core/dev.c:5260
netif_receive_generic_xdp net/core/dev.c:5376 [inline]
do_xdp_generic+0x9f7/0x11a0 net/core/dev.c:5438
tun_get_user+0x23fb/0x3ce0 drivers/net/tun.c:1860
tun_chr_write_iter+0x113/0x200 drivers/net/tun.c:1984
new_sync_write fs/read_write.c:593 [inline]
vfs_write+0x54b/0xa90 fs/read_write.c:686
ksys_write+0x145/0x250 fs/read_write.c:738
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fe83e58bc1f
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:00007fe83f35f000 EFLAGS: 00000293 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007fe83e7a5fa0 RCX: 00007fe83e58bc1f
RDX: 000000000000fdef RSI: 0000200000000a80 RDI: 00000000000000c8
RBP: 00007fe83e60e2a0 R08: 0000000000000000 R09: 0000000000000000
R10: 000000000000fdef R11: 0000000000000293 R12: 0000000000000000
R13: 0000000000000000 R14: 00007fe83e7a5fa0 R15: 00007fffca44a098
BUG: Bad page state in process syz.0.16 pfn:446b0
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff888000000000 pfn:0x446b0
flags: 0x4fff00000000000(node=1|zone=1|lastcpupid=0x7ff)
raw: 04fff00000000000 dead000000000040 ffff88801e8f0000 0000000000000000
raw: ffff888000000000 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 5876, tgid 5875 (syz.0.16), ts 142108990308, free_ts 142106173099
set_page_owner include/linux/page_owner.h:32 [inline]
post_alloc_hook+0x240/0x2a0 mm/page_alloc.c:1704
prep_new_page mm/page_alloc.c:1712 [inline]
get_page_from_freelist+0x21e4/0x22c0 mm/page_alloc.c:3669
__alloc_frozen_pages_noprof+0x181/0x370 mm/page_alloc.c:4959
__alloc_pages_noprof mm/page_alloc.c:4993 [inline]
alloc_pages_bulk_noprof+0x560/0x710 mm/page_alloc.c:4913
alloc_pages_bulk_node_noprof include/linux/gfp.h:254 [inline]
__page_pool_alloc_pages_slow+0x127/0x740 net/core/page_pool.c:567
page_pool_alloc_netmem include/net/page_pool/helpers.h:128 [inline]
page_pool_alloc include/net/page_pool/helpers.h:160 [inline]
page_pool_dev_alloc include/net/page_pool/helpers.h:181 [inline]
skb_pp_cow_data+0xb47/0x13e0 net/core/skbuff.c:952
netif_skb_check_for_xdp net/core/dev.c:5329 [inline]
netif_receive_generic_xdp net/core/dev.c:5370 [inline]
do_xdp_generic+0x699/0x11a0 net/core/dev.c:5438
tun_get_user+0x23fb/0x3ce0 drivers/net/tun.c:1860
tun_chr_write_iter+0x113/0x200 drivers/net/tun.c:1984
new_sync_write fs/read_write.c:593 [inline]
vfs_write+0x54b/0xa90 fs/read_write.c:686
ksys_write+0x145/0x250 fs/read_write.c:738
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
page last free pid 15 tgid 15 stack trace:
reset_page_owner include/linux/page_owner.h:25 [inline]
free_pages_prepare mm/page_alloc.c:1248 [inline]
__free_frozen_pages+0xc71/0xe70 mm/page_alloc.c:2706
pagetable_free include/linux/mm.h:2879 [inline]
pagetable_dtor_free include/linux/mm.h:2977 [inline]
__tlb_remove_table+0x2d2/0x3b0 include/asm-generic/tlb.h:220
__tlb_remove_table_free mm/mmu_gather.c:227 [inline]
tlb_remove_table_rcu+0x85/0x100 mm/mmu_gather.c:290
rcu_do_batch kernel/rcu/tree.c:2576 [inline]
rcu_core+0xca5/0x1710 kernel/rcu/tree.c:2832
handle_softirqs+0x286/0x870 kernel/softirq.c:579
run_ksoftirqd+0x9b/0x100 kernel/softirq.c:968
smpboot_thread_fn+0x53f/0xa60 kernel/smpboot.c:164
kthread+0x70e/0x8a0 kernel/kthread.c:464
ret_from_fork+0x3fc/0x770 arch/x86/kernel/process.c:148
ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245
Modules linked in:
CPU: 0 UID: 0 PID: 5876 Comm: syz.0.16 Tainted: G B 6.16.0-rc4-syzkaller-ga79a588fc176 #0 PREEMPT(full)
Tainted: [B]=BAD_PAGE
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014
Call Trace:
dump_stack_lvl+0x189/0x250 lib/dump_stack.c:120
bad_page+0x180/0x1c0 mm/page_alloc.c:506
free_page_is_bad mm/page_alloc.c:939 [inline]
free_pages_prepare mm/page_alloc.c:1240 [inline]
__free_frozen_pages+0xe17/0xe70 mm/page_alloc.c:2706
bpf_xdp_shrink_data net/core/filter.c:4172 [inline]
bpf_xdp_frags_shrink_tail+0x3a5/0x750 net/core/filter.c:4192
____bpf_xdp_adjust_tail net/core/filter.c:4217 [inline]
bpf_xdp_adjust_tail+0x1d6/0x220 net/core/filter.c:4210
bpf_prog_f476d5219b92964a+0x1e/0x24
__bpf_prog_run include/linux/filter.h:718 [inline]
bpf_prog_run_xdp include/net/xdp.h:657 [inline]
bpf_prog_run_generic_xdp+0x64b/0x14c0 net/core/dev.c:5260
netif_receive_generic_xdp net/core/dev.c:5376 [inline]
do_xdp_generic+0x9f7/0x11a0 net/core/dev.c:5438
tun_get_user+0x23fb/0x3ce0 drivers/net/tun.c:1860
tun_chr_write_iter+0x113/0x200 drivers/net/tun.c:1984
new_sync_write fs/read_write.c:593 [inline]
vfs_write+0x54b/0xa90 fs/read_write.c:686
ksys_write+0x145/0x250 fs/read_write.c:738
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fe83e58bc1f
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:00007fe83f35f000 EFLAGS: 00000293 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007fe83e7a5fa0 RCX: 00007fe83e58bc1f
RDX: 000000000000fdef RSI: 0000200000000a80 RDI: 00000000000000c8
RBP: 00007fe83e60e2a0 R08: 0000000000000000 R09: 0000000000000000
R10: 000000000000fdef R11: 0000000000000293 R12: 0000000000000000
R13: 0000000000000000 R14: 00007fe83e7a5fa0 R15: 00007fffca44a098
BUG: Bad page state in process syz.0.16 pfn:330ad
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff888000000000 pfn:0x330ad
flags: 0x4fff00000000000(node=1|zone=1|lastcpupid=0x7ff)
raw: 04fff00000000000 dead000000000040 ffff88801e8f0000 0000000000000000
raw: ffff888000000000 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 5876, tgid 5875 (syz.0.16), ts 142108980431, free_ts 142106188920
set_page_owner include/linux/page_owner.h:32 [inline]
post_alloc_hook+0x240/0x2a0 mm/page_alloc.c:1704
prep_new_page mm/page_alloc.c:1712 [inline]
get_page_from_freelist+0x21e4/0x22c0 mm/page_alloc.c:3669
__alloc_frozen_pages_noprof+0x181/0x370 mm/page_alloc.c:4959
__alloc_pages_noprof mm/page_alloc.c:4993 [inline]
alloc_pages_bulk_noprof+0x560/0x710 mm/page_alloc.c:4913
alloc_pages_bulk_node_noprof include/linux/gfp.h:254 [inline]
__page_pool_alloc_pages_slow+0x127/0x740 net/core/page_pool.c:567
page_pool_alloc_netmem include/net/page_pool/helpers.h:128 [inline]
page_pool_alloc include/net/page_pool/helpers.h:160 [inline]
page_pool_dev_alloc include/net/page_pool/helpers.h:181 [inline]
skb_pp_cow_data+0xb47/0x13e0 net/core/skbuff.c:952
netif_skb_check_for_xdp net/core/dev.c:5329 [inline]
netif_receive_generic_xdp net/core/dev.c:5370 [inline]
do_xdp_generic+0x699/0x11a0 net/core/dev.c:5438
tun_get_user+0x23fb/0x3ce0 drivers/net/tun.c:1860
tun_chr_write_iter+0x113/0x200 drivers/net/tun.c:1984
new_sync_write fs/read_write.c:593 [inline]
vfs_write+0x54b/0xa90 fs/read_write.c:686
ksys_write+0x145/0x250 fs/read_write.c:738
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
page last free pid 15 tgid 15 stack trace:
reset_page_owner include/linux/page_owner.h:25 [inline]
free_pages_prepare mm/page_alloc.c:1248 [inline]
__free_frozen_pages+0xc71/0xe70 mm/page_alloc.c:2706
pagetable_free include/linux/mm.h:2879 [inline]
pagetable_dtor_free include/linux/mm.h:2977 [inline]
__tlb_remove_table+0x2d2/0x3b0 include/asm-generic/tlb.h:220
__tlb_remove_table_free mm/mmu_gather.c:227 [inline]
tlb_remove_table_rcu+0x85/0x100 mm/mmu_gather.c:290
rcu_do_batch kernel/rcu/tree.c:2576 [inline]
rcu_core+0xca5/0x1710 kernel/rcu/tree.c:2832
handle_softirqs+0x286/0x870 kernel/softirq.c:579
run_ksoftirqd+0x9b/0x100 kernel/softirq.c:968
smpboot_thread_fn+0x53f/0xa60 kernel/smpboot.c:164
kthread+0x70e/0x8a0 kernel/kthread.c:464
ret_from_fork+0x3fc/0x770 arch/x86/kernel/process.c:148
ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245
Modules linked in:
CPU: 0 UID: 0 PID: 5876 Comm: syz.0.16 Tainted: G B 6.16.0-rc4-syzkaller-ga79a588fc176 #0 PREEMPT(full)
Tainted: [B]=BAD_PAGE
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014
Call Trace:
dump_stack_lvl+0x189/0x250 lib/dump_stack.c:120
bad_page+0x180/0x1c0 mm/page_alloc.c:506
free_page_is_bad mm/page_alloc.c:939 [inline]
free_pages_prepare mm/page_alloc.c:1240 [inline]
__free_frozen_pages+0xe17/0xe70 mm/page_alloc.c:2706
bpf_xdp_shrink_data net/core/filter.c:4172 [inline]
bpf_xdp_frags_shrink_tail+0x3a5/0x750 net/core/filter.c:4192
____bpf_xdp_adjust_tail net/core/filter.c:4217 [inline]
bpf_xdp_adjust_tail+0x1d6/0x220 net/core/filter.c:4210
bpf_prog_f476d5219b92964a+0x1e/0x24
__bpf_prog_run include/linux/filter.h:718 [inline]
bpf_prog_run_xdp include/net/xdp.h:657 [inline]
bpf_prog_run_generic_xdp+0x64b/0x14c0 net/core/dev.c:5260
netif_receive_generic_xdp net/core/dev.c:5376 [inline]
do_xdp_generic+0x9f7/0x11a0 net/core/dev.c:5438
tun_get_user+0x23fb/0x3ce0 drivers/net/tun.c:1860
tun_chr_write_iter+0x113/0x200 drivers/net/tun.c:1984
new_sync_write fs/read_write.c:593 [inline]
vfs_write+0x54b/0xa90 fs/read_write.c:686
ksys_write+0x145/0x250 fs/read_write.c:738
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fe83e58bc1f
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:00007fe83f35f000 EFLAGS: 00000293 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007fe83e7a5fa0 RCX: 00007fe83e58bc1f
RDX: 000000000000fdef RSI: 0000200000000a80 RDI: 00000000000000c8
RBP: 00007fe83e60e2a0 R08: 0000000000000000 R09: 0000000000000000
R10: 000000000000fdef R11: 0000000000000293 R12: 0000000000000000
R13: 0000000000000000 R14: 00007fe83e7a5fa0 R15: 00007fffca44a098
BUG: Bad page state in process syz.0.16 pfn:4cd16
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff88804cd16200 pfn:0x4cd16
flags: 0x4fff00000000000(node=1|zone=1|lastcpupid=0x7ff)
raw: 04fff00000000000 dead000000000040 ffff88801e8f0000 0000000000000000
raw: ffff88804cd16200 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 5876, tgid 5875 (syz.0.16), ts 142108970311, free_ts 142106204370
set_page_owner include/linux/page_owner.h:32 [inline]
post_alloc_hook+0x240/0x2a0 mm/page_alloc.c:1704
prep_new_page mm/page_alloc.c:1712 [inline]
get_page_from_freelist+0x21e4/0x22c0 mm/page_alloc.c:3669
__alloc_frozen_pages_noprof+0x181/0x370 mm/page_alloc.c:4959
__alloc_pages_noprof mm/page_alloc.c:4993 [inline]
alloc_pages_bulk_noprof+0x560/0x710 mm/page_alloc.c:4913
alloc_pages_bulk_node_noprof include/linux/gfp.h:254 [inline]
__page_pool_alloc_pages_slow+0x127/0x740 net/core/page_pool.c:567
page_pool_alloc_netmem include/net/page_pool/helpers.h:128 [inline]
page_pool_alloc include/net/page_pool/helpers.h:160 [inline]
page_pool_dev_alloc include/net/page_pool/helpers.h:181 [inline]
skb_pp_cow_data+0xb47/0x13e0 net/core/skbuff.c:952
netif_skb_check_for_xdp net/core/dev.c:5329 [inline]
netif_receive_generic_xdp net/core/dev.c:5370 [inline]
do_xdp_generic+0x699/0x11a0 net/core/dev.c:5438
tun_get_user+0x23fb/0x3ce0 drivers/net/tun.c:1860
tun_chr_write_iter+0x113/0x200 drivers/net/tun.c:1984
new_sync_write fs/read_write.c:593 [inline]
vfs_write+0x54b/0xa90 fs/read_write.c:686
ksys_write+0x145/0x250 fs/read_write.c:738
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
page last free pid 15 tgid 15 stack trace:
reset_page_owner include/linux/page_owner.h:25 [inline]
free_pages_prepare mm/page_alloc.c:1248 [inline]
__free_frozen_pages+0xc71/0xe70 mm/page_alloc.c:2706
pagetable_free include/linux/mm.h:2879 [inline]
pagetable_dtor_free include/linux/mm.h:2977 [inline]
__tlb_remove_table+0x2d2/0x3b0 include/asm-generic/tlb.h:220
__tlb_remove_table_free mm/mmu_gather.c:227 [inline]
tlb_remove_table_rcu+0x85/0x100 mm/mmu_gather.c:290
rcu_do_batch kernel/rcu/tree.c:2576 [inline]
rcu_core+0xca5/0x1710 kernel/rcu/tree.c:2832
handle_softirqs+0x286/0x870 kernel/softirq.c:579
run_ksoftirqd+0x9b/0x100 kernel/softirq.c:968
smpboot_thread_fn+0x53f/0xa60 kernel/smpboot.c:164
kthread+0x70e/0x8a0 kernel/kthread.c:464
ret_from_fork+0x3fc/0x770 arch/x86/kernel/process.c:148
ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245
Modules linked in:
CPU: 0 UID: 0 PID: 5876 Comm: syz.0.16 Tainted: G B 6.16.0-rc4-syzkaller-ga79a588fc176 #0 PREEMPT(full)
Tainted: [B]=BAD_PAGE
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014
Call Trace:
dump_stack_lvl+0x189/0x250 lib/dump_stack.c:120
bad_page+0x180/0x1c0 mm/page_alloc.c:506
free_page_is_bad mm/page_alloc.c:939 [inline]
free_pages_prepare mm/page_alloc.c:1240 [inline]
__free_frozen_pages+0xe17/0xe70 mm/page_alloc.c:2706
bpf_xdp_shrink_data net/core/filter.c:4172 [inline]
bpf_xdp_frags_shrink_tail+0x3a5/0x750 net/core/filter.c:4192
____bpf_xdp_adjust_tail net/core/filter.c:4217 [inline]
bpf_xdp_adjust_tail+0x1d6/0x220 net/core/filter.c:4210
bpf_prog_f476d5219b92964a+0x1e/0x24
__bpf_prog_run include/linux/filter.h:718 [inline]
bpf_prog_run_xdp include/net/xdp.h:657 [inline]
bpf_prog_run_generic_xdp+0x64b/0x14c0 net/core/dev.c:5260
netif_receive_generic_xdp net/core/dev.c:5376 [inline]
do_xdp_generic+0x9f7/0x11a0 net/core/dev.c:5438
tun_get_user+0x23fb/0x3ce0 drivers/net/tun.c:1860
tun_chr_write_iter+0x113/0x200 drivers/net/tun.c:1984
new_sync_write fs/read_write.c:593 [inline]
vfs_write+0x54b/0xa90 fs/read_write.c:686
ksys_write+0x145/0x250 fs/read_write.c:738
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fe83e58bc1f
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:00007fe83f35f000 EFLAGS: 00000293 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007fe83e7a5fa0 RCX: 00007fe83e58bc1f
RDX: 000000000000fdef RSI: 0000200000000a80 RDI: 00000000000000c8
RBP: 00007fe83e60e2a0 R08: 0000000000000000 R09: 0000000000000000
R10: 000000000000fdef R11: 0000000000000293 R12: 0000000000000000
R13: 0000000000000000 R14: 00007fe83e7a5fa0 R15: 00007fffca44a098
BUG: Bad page state in process syz.0.16 pfn:3fd23
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff888000000000 pfn:0x3fd23
flags: 0x4fff00000000000(node=1|zone=1|lastcpupid=0x7ff)
raw: 04fff00000000000 dead000000000040 ffff88801e8f0000 0000000000000000
raw: ffff888000000000 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 5876, tgid 5875 (syz.0.16), ts 142108958786, free_ts 142106219495
set_page_owner include/linux/page_owner.h:32 [inline]
post_alloc_hook+0x240/0x2a0 mm/page_alloc.c:1704
prep_new_page mm/page_alloc.c:1712 [inline]
get_page_from_freelist+0x21e4/0x22c0 mm/page_alloc.c:3669
__alloc_frozen_pages_noprof+0x181/0x370 mm/page_alloc.c:4959
__alloc_pages_noprof mm/page_alloc.c:4993 [inline]
alloc_pages_bulk_noprof+0x560/0x710 mm/page_alloc.c:4913
alloc_pages_bulk_node_noprof include/linux/gfp.h:254 [inline]
__page_pool_alloc_pages_slow+0x127/0x740 net/core/page_pool.c:567
page_pool_alloc_netmem include/net/page_pool/helpers.h:128 [inline]
page_pool_alloc include/net/page_pool/helpers.h:160 [inline]
page_pool_dev_alloc include/net/page_pool/helpers.h:181 [inline]
skb_pp_cow_data+0xb47/0x13e0 net/core/skbuff.c:952
netif_skb_check_for_xdp net/core/dev.c:5329 [inline]
netif_receive_generic_xdp net/core/dev.c:5370 [inline]
do_xdp_generic+0x699/0x11a0 net/core/dev.c:5438
tun_get_user+0x23fb/0x3ce0 drivers/net/tun.c:1860
tun_chr_write_iter+0x113/0x200 drivers/net/tun.c:1984
new_sync_write fs/read_write.c:593 [inline]
vfs_write+0x54b/0xa90 fs/read_write.c:686
ksys_write+0x145/0x250 fs/read_write.c:738
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
page last free pid 15 tgid 15 stack trace:
reset_page_owner include/linux/page_owner.h:25 [inline]
free_pages_prepare mm/page_alloc.c:1248 [inline]
__free_frozen_pages+0xc71/0xe70 mm/page_alloc.c:2706
pagetable_free include/linux/mm.h:2879 [inline]
pagetable_dtor_free include/linux/mm.h:2977 [inline]
__tlb_remove_table+0x2d2/0x3b0 include/asm-generic/tlb.h:220
__tlb_remove_table_free mm/mmu_gather.c:227 [inline]
tlb_remove_table_rcu+0x85/0x100 mm/mmu_gather.c:290
rcu_do_batch kernel/rcu/tree.c:2576 [inline]
rcu_core+0xca5/0x1710 kernel/rcu/tree.c:2832
handle_softirqs+0x286/0x870 kernel/softirq.c:579
run_ksoftirqd+0x9b/0x100 kernel/softirq.c:968
smpboot_thread_fn+0x53f/0xa60 kernel/smpboot.c:164
kthread+0x70e/0x8a0 kernel/kthread.c:464
ret_from_fork+0x3fc/0x770 arch/x86/kernel/process.c:148
ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245
Modules linked in:
CPU: 0 UID: 0 PID: 5876 Comm: syz.0.16 Tainted: G B 6.16.0-rc4-syzkaller-ga79a588fc176 #0 PREEMPT(full)
Tainted: [B]=BAD_PAGE
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014
Call Trace:
dump_stack_lvl+0x189/0x250 lib/dump_stack.c:120
bad_page+0x180/0x1c0 mm/page_alloc.c:506
free_page_is_bad mm/page_alloc.c:939 [inline]
free_pages_prepare mm/page_alloc.c:1240 [inline]
__free_frozen_pages+0xe17/0xe70 mm/page_alloc.c:2706
bpf_xdp_shrink_data net/core/filter.c:4172 [inline]
bpf_xdp_frags_shrink_tail+0x3a5/0x750 net/core/filter.c:4192
____bpf_xdp_adjust_tail net/core/filter.c:4217 [inline]
bpf_xdp_adjust_tail+0x1d6/0x220 net/core/filter.c:4210
bpf_prog_f476d5219b92964a+0x1e/0x24
__bpf_prog_run include/linux/filter.h:718 [inline]
bpf_prog_run_xdp include/net/xdp.h:657 [inline]
bpf_prog_run_generic_xdp+0x64b/0x14c0 net/core/dev.c:5260
netif_receive_generic_xdp net/core/dev.c:5376 [inline]
do_xdp_generic+0x9f7/0x11a0 net/core/dev.c:5438
tun_get_user+0x23fb/0x3ce0 drivers/net/tun.c:1860
tun_chr_write_iter+0x113/0x200 drivers/net/tun.c:1984
new_sync_write fs/read_write.c:593 [inline]
vfs_write+0x54b/0xa90 fs/read_write.c:686
ksys_write+0x145/0x250 fs/read_write.c:738
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fe83e58bc1f
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:00007fe83f35f000 EFLAGS: 00000293 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007fe83e7a5fa0 RCX: 00007fe83e58bc1f
RDX: 000000000000fdef RSI: 0000200000000a80 RDI: 00000000000000c8
RBP: 00007fe83e60e2a0 R08: 0000000000000000 R09: 0000000000000000
R10: 000000000000fdef R11: 0000000000000293 R12: 0000000000000000
R13: 0000000000000000 R14: 00007fe83e7a5fa0 R15: 00007fffca44a098
BUG: Bad page state in process syz.0.16 pfn:4cdc0
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff88804cdc0400 pfn:0x4cdc0
flags: 0x4fff00000000000(node=1|zone=1|lastcpupid=0x7ff)
raw: 04fff00000000000 dead000000000040 ffff88801e8f0000 0000000000000000
raw: ffff88804cdc0400 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 5876, tgid 5875 (syz.0.16), ts 142108948956, free_ts 142106229240
set_page_owner include/linux/page_owner.h:32 [inline]
post_alloc_hook+0x240/0x2a0 mm/page_alloc.c:1704
prep_new_page mm/page_alloc.c:1712 [inline]
get_page_from_freelist+0x21e4/0x22c0 mm/page_alloc.c:3669
__alloc_frozen_pages_noprof+0x181/0x370 mm/page_alloc.c:4959
__alloc_pages_noprof mm/page_alloc.c:4993 [inline]
alloc_pages_bulk_noprof+0x560/0x710 mm/page_alloc.c:4913
alloc_pages_bulk_node_noprof include/linux/gfp.h:254 [inline]
__page_pool_alloc_pages_slow+0x127/0x740 net/core/page_pool.c:567
page_pool_alloc_netmem include/net/page_pool/helpers.h:128 [inline]
page_pool_alloc include/net/page_pool/helpers.h:160 [inline]
page_pool_dev_alloc include/net/page_pool/helpers.h:181 [inline]
skb_pp_cow_data+0xb47/0x13e0 net/core/skbuff.c:952
netif_skb_check_for_xdp net/core/dev.c:5329 [inline]
netif_receive_generic_xdp net/core/dev.c:5370 [inline]
do_xdp_generic+0x699/0x11a0 net/core/dev.c:5438
tun_get_user+0x23fb/0x3ce0 drivers/net/tun.c:1860
tun_chr_write_iter+0x113/0x200 drivers/net/tun.c:1984
new_sync_write fs/read_write.c:593 [inline]
vfs_write+0x54b/0xa90 fs/read_write.c:686
ksys_write+0x145/0x250 fs/read_write.c:738
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
page last free pid 15 tgid 15 stack trace:
reset_page_owner include/linux/page_owner.h:25 [inline]
free_pages_prepare mm/page_alloc.c:1248 [inline]
__free_frozen_pages+0xc71/0xe70 mm/page_alloc.c:2706
pagetable_free include/linux/mm.h:2879 [inline]
pagetable_dtor_free include/linux/mm.h:2977 [inline]
__tlb_remove_table+0x2d2/0x3b0 include/asm-generic/tlb.h:220
__tlb_remove_table_free mm/mmu_gather.c:227 [inline]
tlb_remove_table_rcu+0x85/0x100 mm/mmu_gather.c:290
rcu_do_batch kernel/rcu/tree.c:2576 [inline]
rcu_core+0xca5/0x1710 kernel/rcu/tree.c:2832
handle_softirqs+0x286/0x870 kernel/softirq.c:579
run_ksoftirqd+0x9b/0x100 kernel/softirq.c:968
smpboot_thread_fn+0x53f/0xa60 kernel/smpboot.c:164
kthread+0x70e/0x8a0 kernel/kthread.c:464
ret_from_fork+0x3fc/0x770 arch/x86/kernel/process.c:148
ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245
Modules linked in:
CPU: 0 UID: 0 PID: 5876 Comm: syz.0.16 Tainted: G B 6.16.0-rc4-syzkaller-ga79a588fc176 #0 PREEMPT(full)
Tainted: [B]=BAD_PAGE
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014
Call Trace:
dump_stack_lvl+0x189/0x250 lib/dump_stack.c:120
bad_page+0x180/0x1c0 mm/page_alloc.c:506
free_page_is_bad mm/page_alloc.c:939 [inline]
free_pages_prepare mm/page_alloc.c:1240 [inline]
__free_frozen_pages+0xe17/0xe70 mm/page_alloc.c:2706
bpf_xdp_shrink_data net/core/filter.c:4172 [inline]
bpf_xdp_frags_shrink_tail+0x3a5/0x750 net/core/filter.c:4192
____bpf_xdp_adjust_tail net/core/filter.c:4217 [inline]
bpf_xdp_adjust_tail+0x1d6/0x220 net/core/filter.c:4210
bpf_prog_f476d5219b92964a+0x1e/0x24
__bpf_prog_run include/linux/filter.h:718 [inline]
bpf_prog_run_xdp include/net/xdp.h:657 [inline]
bpf_prog_run_generic_xdp+0x64b/0x14c0 net/core/dev.c:5260
netif_receive_generic_xdp net/core/dev.c:5376 [inline]
do_xdp_generic+0x9f7/0x11a0 net/core/dev.c:5438
tun_get_user+0x23fb/0x3ce0 drivers/net/tun.c:1860
tun_chr_write_iter+0x113/0x200 drivers/net/tun.c:1984
new_sync_write fs/read_write.c:593 [inline]
vfs_write+0x54b/0xa90 fs/read_write.c:686
ksys_write+0x145/0x250 fs/read_write.c:738
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fe83e58bc1f
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:00007fe83f35f000 EFLAGS: 00000293 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007fe83e7a5fa0 RCX: 00007fe83e58bc1f
RDX: 000000000000fdef RSI: 0000200000000a80 RDI: 00000000000000c8
RBP: 00007fe83e60e2a0 R08: 0000000000000000 R09: 0000000000000000
R10: 000000000000fdef R11: 0000000000000293 R12: 0000000000000000
R13: 0000000000000000 R14: 00007fe83e7a5fa0 R15: 00007fffca44a098