BUG: Bad page state in process syz.4.1137 pfn:339ee
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff8880339eee88 pfn:0x339ee
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000000000 dead000000000040 ffff888022067000 0000000000000000
raw: ffff8880339eee88 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 9773, tgid 9772 (syz.4.1137), ts 114317769144, free_ts 114299689094
set_page_owner include/linux/page_owner.h:32 [inline]
post_alloc_hook+0x1c0/0x230 mm/page_alloc.c:1851
prep_new_page mm/page_alloc.c:1859 [inline]
get_page_from_freelist+0x132b/0x38e0 mm/page_alloc.c:3858
__alloc_frozen_pages_noprof+0x261/0x23f0 mm/page_alloc.c:5148
__alloc_pages_noprof mm/page_alloc.c:5182 [inline]
alloc_pages_bulk_noprof+0x71c/0x1410 mm/page_alloc.c:5102
alloc_pages_bulk_node_noprof include/linux/gfp.h:254 [inline]
__page_pool_alloc_netmems_slow+0x193/0xc60 net/core/page_pool.c:567
page_pool_alloc_netmems net/core/page_pool.c:618 [inline]
page_pool_alloc_netmems+0xc4/0x190 net/core/page_pool.c:605
page_pool_alloc_frag_netmem+0x219/0x9c0 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:167 [inline]
page_pool_dev_alloc include/net/page_pool/helpers.h:188 [inline]
skb_pp_cow_data+0x584/0xff0 net/core/skbuff.c:951
skb_cow_data_for_xdp+0x88/0xb0 net/core/skbuff.c:985
netif_skb_check_for_xdp net/core/dev.c:5329 [inline]
netif_receive_generic_xdp net/core/dev.c:5370 [inline]
do_xdp_generic+0x530/0x1320 net/core/dev.c:5438
tun_get_user+0x1d43/0x3ce0 drivers/net/tun.c:1872
tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:1996
new_sync_write fs/read_write.c:593 [inline]
vfs_write+0x7d3/0x11d0 fs/read_write.c:686
ksys_write+0x12a/0x250 fs/read_write.c:738
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0xcd/0x4c0 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
page last free pid 0 tgid 0 stack trace:
reset_page_owner include/linux/page_owner.h:25 [inline]
free_pages_prepare mm/page_alloc.c:1395 [inline]
__free_frozen_pages+0x7d5/0x10f0 mm/page_alloc.c:2895
pagetable_free include/linux/mm.h:2898 [inline]
pagetable_dtor_free include/linux/mm.h:2996 [inline]
__tlb_remove_table include/asm-generic/tlb.h:220 [inline]
__tlb_remove_table_free mm/mmu_gather.c:227 [inline]
tlb_remove_table_rcu+0x116/0x1a0 mm/mmu_gather.c:290
rcu_do_batch kernel/rcu/tree.c:2605 [inline]
rcu_core+0x799/0x1530 kernel/rcu/tree.c:2861
handle_softirqs+0x216/0x8e0 kernel/softirq.c:579
__do_softirq kernel/softirq.c:613 [inline]
invoke_softirq kernel/softirq.c:453 [inline]
__irq_exit_rcu+0x109/0x170 kernel/softirq.c:680
irq_exit_rcu+0x9/0x30 kernel/softirq.c:696
instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1050 [inline]
sysvec_apic_timer_interrupt+0xa4/0xc0 arch/x86/kernel/apic/apic.c:1050
asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702
Modules linked in:
CPU: 3 UID: 0 PID: 9773 Comm: syz.4.1137 Not tainted syzkaller #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 lib/dump_stack.c:94 [inline]
dump_stack_lvl+0x16c/0x1f0 lib/dump_stack.c:120
bad_page+0xcf/0x220 mm/page_alloc.c:650
free_page_is_bad mm/page_alloc.c:1083 [inline]
free_page_is_bad mm/page_alloc.c:1077 [inline]
free_pages_prepare mm/page_alloc.c:1387 [inline]
__free_frozen_pages+0x7f7/0x10f0 mm/page_alloc.c:2895
page_frag_free+0x27f/0x2e0 mm/page_frag_cache.c:169
__xdp_return+0x3ab/0xab0 net/core/xdp.c:448
bpf_xdp_shrink_data net/core/filter.c:4181 [inline]
bpf_xdp_frags_shrink_tail net/core/filter.c:4201 [inline]
____bpf_xdp_adjust_tail net/core/filter.c:4226 [inline]
bpf_xdp_adjust_tail+0xa11/0xfd0 net/core/filter.c:4219
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+0x626/0x1530 net/core/dev.c:5260
netif_receive_generic_xdp net/core/dev.c:5376 [inline]
do_xdp_generic+0x8e6/0x1320 net/core/dev.c:5438
tun_get_user+0x1d43/0x3ce0 drivers/net/tun.c:1872
tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:1996
new_sync_write fs/read_write.c:593 [inline]
vfs_write+0x7d3/0x11d0 fs/read_write.c:686
ksys_write+0x12a/0x250 fs/read_write.c:738
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0xcd/0x4c0 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f184e38d69f
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:00007f184f199000 EFLAGS: 00000293 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f184e5b5fa0 RCX: 00007f184e38d69f
RDX: 000000000000fed7 RSI: 00002000000002c0 RDI: 00000000000000c8
RBP: 00007f184e411e19 R08: 0000000000000000 R09: 0000000000000000
R10: 000000000000fed7 R11: 0000000000000293 R12: 0000000000000000
R13: 00007f184e5b6038 R14: 00007f184e5b5fa0 R15: 00007ffc8af2ead8
BUG: Bad page state in process syz.4.1137 pfn:38a62
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x247d pfn:0x38a62
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000000000 dead000000000040 ffff888022067000 0000000000000000
raw: 000000000000247d 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 9773, tgid 9772 (syz.4.1137), ts 114317764836, free_ts 114299695760
set_page_owner include/linux/page_owner.h:32 [inline]
post_alloc_hook+0x1c0/0x230 mm/page_alloc.c:1851
prep_new_page mm/page_alloc.c:1859 [inline]
get_page_from_freelist+0x132b/0x38e0 mm/page_alloc.c:3858
__alloc_frozen_pages_noprof+0x261/0x23f0 mm/page_alloc.c:5148
__alloc_pages_noprof mm/page_alloc.c:5182 [inline]
alloc_pages_bulk_noprof+0x71c/0x1410 mm/page_alloc.c:5102
alloc_pages_bulk_node_noprof include/linux/gfp.h:254 [inline]
__page_pool_alloc_netmems_slow+0x193/0xc60 net/core/page_pool.c:567
page_pool_alloc_netmems net/core/page_pool.c:618 [inline]
page_pool_alloc_netmems+0xc4/0x190 net/core/page_pool.c:605
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+0x7c0/0xff0 net/core/skbuff.c:951
skb_cow_data_for_xdp+0x88/0xb0 net/core/skbuff.c:985
netif_skb_check_for_xdp net/core/dev.c:5329 [inline]
netif_receive_generic_xdp net/core/dev.c:5370 [inline]
do_xdp_generic+0x530/0x1320 net/core/dev.c:5438
tun_get_user+0x1d43/0x3ce0 drivers/net/tun.c:1872
tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:1996
new_sync_write fs/read_write.c:593 [inline]
vfs_write+0x7d3/0x11d0 fs/read_write.c:686
ksys_write+0x12a/0x250 fs/read_write.c:738
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0xcd/0x4c0 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
page last free pid 0 tgid 0 stack trace:
reset_page_owner include/linux/page_owner.h:25 [inline]
free_pages_prepare mm/page_alloc.c:1395 [inline]
__free_frozen_pages+0x7d5/0x10f0 mm/page_alloc.c:2895
pagetable_free include/linux/mm.h:2898 [inline]
pagetable_dtor_free include/linux/mm.h:2996 [inline]
__tlb_remove_table include/asm-generic/tlb.h:220 [inline]
__tlb_remove_table_free mm/mmu_gather.c:227 [inline]
tlb_remove_table_rcu+0x116/0x1a0 mm/mmu_gather.c:290
rcu_do_batch kernel/rcu/tree.c:2605 [inline]
rcu_core+0x799/0x1530 kernel/rcu/tree.c:2861
handle_softirqs+0x216/0x8e0 kernel/softirq.c:579
__do_softirq kernel/softirq.c:613 [inline]
invoke_softirq kernel/softirq.c:453 [inline]
__irq_exit_rcu+0x109/0x170 kernel/softirq.c:680
irq_exit_rcu+0x9/0x30 kernel/softirq.c:696
instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1050 [inline]
sysvec_apic_timer_interrupt+0xa4/0xc0 arch/x86/kernel/apic/apic.c:1050
asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702
Modules linked in:
CPU: 3 UID: 0 PID: 9773 Comm: syz.4.1137 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~bpo12+1 04/01/2014
Call Trace:
__dump_stack lib/dump_stack.c:94 [inline]
dump_stack_lvl+0x16c/0x1f0 lib/dump_stack.c:120
bad_page+0xcf/0x220 mm/page_alloc.c:650
free_page_is_bad mm/page_alloc.c:1083 [inline]
free_page_is_bad mm/page_alloc.c:1077 [inline]
free_pages_prepare mm/page_alloc.c:1387 [inline]
__free_frozen_pages+0x7f7/0x10f0 mm/page_alloc.c:2895
page_frag_free+0x27f/0x2e0 mm/page_frag_cache.c:169
__xdp_return+0x3ab/0xab0 net/core/xdp.c:448
bpf_xdp_shrink_data net/core/filter.c:4181 [inline]
bpf_xdp_frags_shrink_tail net/core/filter.c:4201 [inline]
____bpf_xdp_adjust_tail net/core/filter.c:4226 [inline]
bpf_xdp_adjust_tail+0xa11/0xfd0 net/core/filter.c:4219
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+0x626/0x1530 net/core/dev.c:5260
netif_receive_generic_xdp net/core/dev.c:5376 [inline]
do_xdp_generic+0x8e6/0x1320 net/core/dev.c:5438
tun_get_user+0x1d43/0x3ce0 drivers/net/tun.c:1872
tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:1996
new_sync_write fs/read_write.c:593 [inline]
vfs_write+0x7d3/0x11d0 fs/read_write.c:686
ksys_write+0x12a/0x250 fs/read_write.c:738
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0xcd/0x4c0 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f184e38d69f
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:00007f184f199000 EFLAGS: 00000293 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f184e5b5fa0 RCX: 00007f184e38d69f
RDX: 000000000000fed7 RSI: 00002000000002c0 RDI: 00000000000000c8
RBP: 00007f184e411e19 R08: 0000000000000000 R09: 0000000000000000
R10: 000000000000fed7 R11: 0000000000000293 R12: 0000000000000000
R13: 00007f184e5b6038 R14: 00007f184e5b5fa0 R15: 00007ffc8af2ead8
BUG: Bad page state in process syz.4.1137 pfn:24dd5
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff888000000000 pfn:0x24dd5
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000000000 dead000000000040 ffff888022067000 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 9773, tgid 9772 (syz.4.1137), ts 114317760433, free_ts 114299703674
set_page_owner include/linux/page_owner.h:32 [inline]
post_alloc_hook+0x1c0/0x230 mm/page_alloc.c:1851
prep_new_page mm/page_alloc.c:1859 [inline]
get_page_from_freelist+0x132b/0x38e0 mm/page_alloc.c:3858
__alloc_frozen_pages_noprof+0x261/0x23f0 mm/page_alloc.c:5148
__alloc_pages_noprof mm/page_alloc.c:5182 [inline]
alloc_pages_bulk_noprof+0x71c/0x1410 mm/page_alloc.c:5102
alloc_pages_bulk_node_noprof include/linux/gfp.h:254 [inline]
__page_pool_alloc_netmems_slow+0x193/0xc60 net/core/page_pool.c:567
page_pool_alloc_netmems net/core/page_pool.c:618 [inline]
page_pool_alloc_netmems+0xc4/0x190 net/core/page_pool.c:605
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+0x7c0/0xff0 net/core/skbuff.c:951
skb_cow_data_for_xdp+0x88/0xb0 net/core/skbuff.c:985
netif_skb_check_for_xdp net/core/dev.c:5329 [inline]
netif_receive_generic_xdp net/core/dev.c:5370 [inline]
do_xdp_generic+0x530/0x1320 net/core/dev.c:5438
tun_get_user+0x1d43/0x3ce0 drivers/net/tun.c:1872
tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:1996
new_sync_write fs/read_write.c:593 [inline]
vfs_write+0x7d3/0x11d0 fs/read_write.c:686
ksys_write+0x12a/0x250 fs/read_write.c:738
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0xcd/0x4c0 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
page last free pid 0 tgid 0 stack trace:
reset_page_owner include/linux/page_owner.h:25 [inline]
free_pages_prepare mm/page_alloc.c:1395 [inline]
__free_frozen_pages+0x7d5/0x10f0 mm/page_alloc.c:2895
pagetable_free include/linux/mm.h:2898 [inline]
pagetable_dtor_free include/linux/mm.h:2996 [inline]
__tlb_remove_table include/asm-generic/tlb.h:220 [inline]
__tlb_remove_table_free mm/mmu_gather.c:227 [inline]
tlb_remove_table_rcu+0x116/0x1a0 mm/mmu_gather.c:290
rcu_do_batch kernel/rcu/tree.c:2605 [inline]
rcu_core+0x799/0x1530 kernel/rcu/tree.c:2861
handle_softirqs+0x216/0x8e0 kernel/softirq.c:579
__do_softirq kernel/softirq.c:613 [inline]
invoke_softirq kernel/softirq.c:453 [inline]
__irq_exit_rcu+0x109/0x170 kernel/softirq.c:680
irq_exit_rcu+0x9/0x30 kernel/softirq.c:696
instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1050 [inline]
sysvec_apic_timer_interrupt+0xa4/0xc0 arch/x86/kernel/apic/apic.c:1050
asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702
Modules linked in:
CPU: 3 UID: 0 PID: 9773 Comm: syz.4.1137 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~bpo12+1 04/01/2014
Call Trace:
__dump_stack lib/dump_stack.c:94 [inline]
dump_stack_lvl+0x16c/0x1f0 lib/dump_stack.c:120
bad_page+0xcf/0x220 mm/page_alloc.c:650
free_page_is_bad mm/page_alloc.c:1083 [inline]
free_page_is_bad mm/page_alloc.c:1077 [inline]
free_pages_prepare mm/page_alloc.c:1387 [inline]
__free_frozen_pages+0x7f7/0x10f0 mm/page_alloc.c:2895
page_frag_free+0x27f/0x2e0 mm/page_frag_cache.c:169
__xdp_return+0x3ab/0xab0 net/core/xdp.c:448
bpf_xdp_shrink_data net/core/filter.c:4181 [inline]
bpf_xdp_frags_shrink_tail net/core/filter.c:4201 [inline]
____bpf_xdp_adjust_tail net/core/filter.c:4226 [inline]
bpf_xdp_adjust_tail+0xa11/0xfd0 net/core/filter.c:4219
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+0x626/0x1530 net/core/dev.c:5260
netif_receive_generic_xdp net/core/dev.c:5376 [inline]
do_xdp_generic+0x8e6/0x1320 net/core/dev.c:5438
tun_get_user+0x1d43/0x3ce0 drivers/net/tun.c:1872
tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:1996
new_sync_write fs/read_write.c:593 [inline]
vfs_write+0x7d3/0x11d0 fs/read_write.c:686
ksys_write+0x12a/0x250 fs/read_write.c:738
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0xcd/0x4c0 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f184e38d69f
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:00007f184f199000 EFLAGS: 00000293 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f184e5b5fa0 RCX: 00007f184e38d69f
RDX: 000000000000fed7 RSI: 00002000000002c0 RDI: 00000000000000c8
RBP: 00007f184e411e19 R08: 0000000000000000 R09: 0000000000000000
R10: 000000000000fed7 R11: 0000000000000293 R12: 0000000000000000
R13: 00007f184e5b6038 R14: 00007f184e5b5fa0 R15: 00007ffc8af2ead8
BUG: Bad page state in process syz.4.1137 pfn:32fd4
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff888000000000 pfn:0x32fd4
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000000000 dead000000000040 ffff888022067000 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 9773, tgid 9772 (syz.4.1137), ts 114317756291, free_ts 114299708328
set_page_owner include/linux/page_owner.h:32 [inline]
post_alloc_hook+0x1c0/0x230 mm/page_alloc.c:1851
prep_new_page mm/page_alloc.c:1859 [inline]
get_page_from_freelist+0x132b/0x38e0 mm/page_alloc.c:3858
__alloc_frozen_pages_noprof+0x261/0x23f0 mm/page_alloc.c:5148
__alloc_pages_noprof mm/page_alloc.c:5182 [inline]
alloc_pages_bulk_noprof+0x71c/0x1410 mm/page_alloc.c:5102
alloc_pages_bulk_node_noprof include/linux/gfp.h:254 [inline]
__page_pool_alloc_netmems_slow+0x193/0xc60 net/core/page_pool.c:567
page_pool_alloc_netmems net/core/page_pool.c:618 [inline]
page_pool_alloc_netmems+0xc4/0x190 net/core/page_pool.c:605
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+0x7c0/0xff0 net/core/skbuff.c:951
skb_cow_data_for_xdp+0x88/0xb0 net/core/skbuff.c:985
netif_skb_check_for_xdp net/core/dev.c:5329 [inline]
netif_receive_generic_xdp net/core/dev.c:5370 [inline]
do_xdp_generic+0x530/0x1320 net/core/dev.c:5438
tun_get_user+0x1d43/0x3ce0 drivers/net/tun.c:1872
tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:1996
new_sync_write fs/read_write.c:593 [inline]
vfs_write+0x7d3/0x11d0 fs/read_write.c:686
ksys_write+0x12a/0x250 fs/read_write.c:738
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0xcd/0x4c0 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
page last free pid 0 tgid 0 stack trace:
reset_page_owner include/linux/page_owner.h:25 [inline]
free_pages_prepare mm/page_alloc.c:1395 [inline]
__free_frozen_pages+0x7d5/0x10f0 mm/page_alloc.c:2895
pagetable_free include/linux/mm.h:2898 [inline]
pagetable_dtor_free include/linux/mm.h:2996 [inline]
__tlb_remove_table include/asm-generic/tlb.h:220 [inline]
__tlb_remove_table_free mm/mmu_gather.c:227 [inline]
tlb_remove_table_rcu+0x116/0x1a0 mm/mmu_gather.c:290
rcu_do_batch kernel/rcu/tree.c:2605 [inline]
rcu_core+0x799/0x1530 kernel/rcu/tree.c:2861
handle_softirqs+0x216/0x8e0 kernel/softirq.c:579
__do_softirq kernel/softirq.c:613 [inline]
invoke_softirq kernel/softirq.c:453 [inline]
__irq_exit_rcu+0x109/0x170 kernel/softirq.c:680
irq_exit_rcu+0x9/0x30 kernel/softirq.c:696
instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1050 [inline]
sysvec_apic_timer_interrupt+0xa4/0xc0 arch/x86/kernel/apic/apic.c:1050
asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702
Modules linked in:
CPU: 3 UID: 0 PID: 9773 Comm: syz.4.1137 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~bpo12+1 04/01/2014
Call Trace:
__dump_stack lib/dump_stack.c:94 [inline]
dump_stack_lvl+0x16c/0x1f0 lib/dump_stack.c:120
bad_page+0xcf/0x220 mm/page_alloc.c:650
free_page_is_bad mm/page_alloc.c:1083 [inline]
free_page_is_bad mm/page_alloc.c:1077 [inline]
free_pages_prepare mm/page_alloc.c:1387 [inline]
__free_frozen_pages+0x7f7/0x10f0 mm/page_alloc.c:2895
page_frag_free+0x27f/0x2e0 mm/page_frag_cache.c:169
__xdp_return+0x3ab/0xab0 net/core/xdp.c:448
bpf_xdp_shrink_data net/core/filter.c:4181 [inline]
bpf_xdp_frags_shrink_tail net/core/filter.c:4201 [inline]
____bpf_xdp_adjust_tail net/core/filter.c:4226 [inline]
bpf_xdp_adjust_tail+0xa11/0xfd0 net/core/filter.c:4219
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+0x626/0x1530 net/core/dev.c:5260
netif_receive_generic_xdp net/core/dev.c:5376 [inline]
do_xdp_generic+0x8e6/0x1320 net/core/dev.c:5438
tun_get_user+0x1d43/0x3ce0 drivers/net/tun.c:1872
tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:1996
new_sync_write fs/read_write.c:593 [inline]
vfs_write+0x7d3/0x11d0 fs/read_write.c:686
ksys_write+0x12a/0x250 fs/read_write.c:738
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0xcd/0x4c0 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f184e38d69f
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:00007f184f199000 EFLAGS: 00000293 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f184e5b5fa0 RCX: 00007f184e38d69f
RDX: 000000000000fed7 RSI: 00002000000002c0 RDI: 00000000000000c8
RBP: 00007f184e411e19 R08: 0000000000000000 R09: 0000000000000000
R10: 000000000000fed7 R11: 0000000000000293 R12: 0000000000000000
R13: 00007f184e5b6038 R14: 00007f184e5b5fa0 R15: 00007ffc8af2ead8
BUG: Bad page state in process syz.4.1137 pfn:3365f
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x3365f
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000000000 dead000000000040 ffff888022067000 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 9773, tgid 9772 (syz.4.1137), ts 114317751902, free_ts 114299714920
set_page_owner include/linux/page_owner.h:32 [inline]
post_alloc_hook+0x1c0/0x230 mm/page_alloc.c:1851
prep_new_page mm/page_alloc.c:1859 [inline]
get_page_from_freelist+0x132b/0x38e0 mm/page_alloc.c:3858
__alloc_frozen_pages_noprof+0x261/0x23f0 mm/page_alloc.c:5148
__alloc_pages_noprof mm/page_alloc.c:5182 [inline]
alloc_pages_bulk_noprof+0x71c/0x1410 mm/page_alloc.c:5102
alloc_pages_bulk_node_noprof include/linux/gfp.h:254 [inline]
__page_pool_alloc_netmems_slow+0x193/0xc60 net/core/page_pool.c:567
page_pool_alloc_netmems net/core/page_pool.c:618 [inline]
page_pool_alloc_netmems+0xc4/0x190 net/core/page_pool.c:605
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+0x7c0/0xff0 net/core/skbuff.c:951
skb_cow_data_for_xdp+0x88/0xb0 net/core/skbuff.c:985
netif_skb_check_for_xdp net/core/dev.c:5329 [inline]
netif_receive_generic_xdp net/core/dev.c:5370 [inline]
do_xdp_generic+0x530/0x1320 net/core/dev.c:5438
tun_get_user+0x1d43/0x3ce0 drivers/net/tun.c:1872
tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:1996
new_sync_write fs/read_write.c:593 [inline]
vfs_write+0x7d3/0x11d0 fs/read_write.c:686
ksys_write+0x12a/0x250 fs/read_write.c:738
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0xcd/0x4c0 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
page last free pid 0 tgid 0 stack trace:
reset_page_owner include/linux/page_owner.h:25 [inline]
free_pages_prepare mm/page_alloc.c:1395 [inline]
__free_frozen_pages+0x7d5/0x10f0 mm/page_alloc.c:2895
pagetable_free include/linux/mm.h:2898 [inline]
pagetable_dtor_free include/linux/mm.h:2996 [inline]
__tlb_remove_table include/asm-generic/tlb.h:220 [inline]
__tlb_remove_table_free mm/mmu_gather.c:227 [inline]
tlb_remove_table_rcu+0x116/0x1a0 mm/mmu_gather.c:290
rcu_do_batch kernel/rcu/tree.c:2605 [inline]
rcu_core+0x799/0x1530 kernel/rcu/tree.c:2861
handle_softirqs+0x216/0x8e0 kernel/softirq.c:579
__do_softirq kernel/softirq.c:613 [inline]
invoke_softirq kernel/softirq.c:453 [inline]
__irq_exit_rcu+0x109/0x170 kernel/softirq.c:680
irq_exit_rcu+0x9/0x30 kernel/softirq.c:696
instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1050 [inline]
sysvec_apic_timer_interrupt+0xa4/0xc0 arch/x86/kernel/apic/apic.c:1050
asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702
Modules linked in:
CPU: 3 UID: 0 PID: 9773 Comm: syz.4.1137 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~bpo12+1 04/01/2014
Call Trace:
__dump_stack lib/dump_stack.c:94 [inline]
dump_stack_lvl+0x16c/0x1f0 lib/dump_stack.c:120
bad_page+0xcf/0x220 mm/page_alloc.c:650
free_page_is_bad mm/page_alloc.c:1083 [inline]
free_page_is_bad mm/page_alloc.c:1077 [inline]
free_pages_prepare mm/page_alloc.c:1387 [inline]
__free_frozen_pages+0x7f7/0x10f0 mm/page_alloc.c:2895
page_frag_free+0x27f/0x2e0 mm/page_frag_cache.c:169
__xdp_return+0x3ab/0xab0 net/core/xdp.c:448
bpf_xdp_shrink_data net/core/filter.c:4181 [inline]
bpf_xdp_frags_shrink_tail net/core/filter.c:4201 [inline]
____bpf_xdp_adjust_tail net/core/filter.c:4226 [inline]
bpf_xdp_adjust_tail+0xa11/0xfd0 net/core/filter.c:4219
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+0x626/0x1530 net/core/dev.c:5260
netif_receive_generic_xdp net/core/dev.c:5376 [inline]
do_xdp_generic+0x8e6/0x1320 net/core/dev.c:5438
tun_get_user+0x1d43/0x3ce0 drivers/net/tun.c:1872
tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:1996
new_sync_write fs/read_write.c:593 [inline]
vfs_write+0x7d3/0x11d0 fs/read_write.c:686
ksys_write+0x12a/0x250 fs/read_write.c:738
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0xcd/0x4c0 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f184e38d69f
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:00007f184f199000 EFLAGS: 00000293 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f184e5b5fa0 RCX: 00007f184e38d69f
RDX: 000000000000fed7 RSI: 00002000000002c0 RDI: 00000000000000c8
RBP: 00007f184e411e19 R08: 0000000000000000 R09: 0000000000000000
R10: 000000000000fed7 R11: 0000000000000293 R12: 0000000000000000
R13: 00007f184e5b6038 R14: 00007f184e5b5fa0 R15: 00007ffc8af2ead8
BUG: Bad page state in process syz.4.1137 pfn:32040
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff888000000000 pfn:0x32040
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000000000 dead000000000040 ffff888022067000 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 9773, tgid 9772 (syz.4.1137), ts 114317747623, free_ts 114299721389
set_page_owner include/linux/page_owner.h:32 [inline]
post_alloc_hook+0x1c0/0x230 mm/page_alloc.c:1851
prep_new_page mm/page_alloc.c:1859 [inline]
get_page_from_freelist+0x132b/0x38e0 mm/page_alloc.c:3858
__alloc_frozen_pages_noprof+0x261/0x23f0 mm/page_alloc.c:5148
__alloc_pages_noprof mm/page_alloc.c:5182 [inline]
alloc_pages_bulk_noprof+0x71c/0x1410 mm/page_alloc.c:5102
alloc_pages_bulk_node_noprof include/linux/gfp.h:254 [inline]
__page_pool_alloc_netmems_slow+0x193/0xc60 net/core/page_pool.c:567
page_pool_alloc_netmems net/core/page_pool.c:618 [inline]
page_pool_alloc_netmems+0xc4/0x190 net/core/page_pool.c:605
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+0x7c0/0xff0 net/core/skbuff.c:951
skb_cow_data_for_xdp+0x88/0xb0 net/core/skbuff.c:985
netif_skb_check_for_xdp net/core/dev.c:5329 [inline]
netif_receive_generic_xdp net/core/dev.c:5370 [inline]
do_xdp_generic+0x530/0x1320 net/core/dev.c:5438
tun_get_user+0x1d43/0x3ce0 drivers/net/tun.c:1872
tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:1996
new_sync_write fs/read_write.c:593 [inline]
vfs_write+0x7d3/0x11d0 fs/read_write.c:686
ksys_write+0x12a/0x250 fs/read_write.c:738
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0xcd/0x4c0 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
page last free pid 0 tgid 0 stack trace:
reset_page_owner include/linux/page_owner.h:25 [inline]
free_pages_prepare mm/page_alloc.c:1395 [inline]
__free_frozen_pages+0x7d5/0x10f0 mm/page_alloc.c:2895
pagetable_free include/linux/mm.h:2898 [inline]
pagetable_dtor_free include/linux/mm.h:2996 [inline]
__tlb_remove_table include/asm-generic/tlb.h:220 [inline]
__tlb_remove_table_free mm/mmu_gather.c:227 [inline]
tlb_remove_table_rcu+0x116/0x1a0 mm/mmu_gather.c:290
rcu_do_batch kernel/rcu/tree.c:2605 [inline]
rcu_core+0x799/0x1530 kernel/rcu/tree.c:2861
handle_softirqs+0x216/0x8e0 kernel/softirq.c:579
__do_softirq kernel/softirq.c:613 [inline]
invoke_softirq kernel/softirq.c:453 [inline]
__irq_exit_rcu+0x109/0x170 kernel/softirq.c:680
irq_exit_rcu+0x9/0x30 kernel/softirq.c:696
instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1050 [inline]
sysvec_apic_timer_interrupt+0xa4/0xc0 arch/x86/kernel/apic/apic.c:1050
asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702
Modules linked in:
CPU: 3 UID: 0 PID: 9773 Comm: syz.4.1137 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~bpo12+1 04/01/2014
Call Trace:
__dump_stack lib/dump_stack.c:94 [inline]
dump_stack_lvl+0x16c/0x1f0 lib/dump_stack.c:120
bad_page+0xcf/0x220 mm/page_alloc.c:650
free_page_is_bad mm/page_alloc.c:1083 [inline]
free_page_is_bad mm/page_alloc.c:1077 [inline]
free_pages_prepare mm/page_alloc.c:1387 [inline]
__free_frozen_pages+0x7f7/0x10f0 mm/page_alloc.c:2895
page_frag_free+0x27f/0x2e0 mm/page_frag_cache.c:169
__xdp_return+0x3ab/0xab0 net/core/xdp.c:448
bpf_xdp_shrink_data net/core/filter.c:4181 [inline]
bpf_xdp_frags_shrink_tail net/core/filter.c:4201 [inline]
____bpf_xdp_adjust_tail net/core/filter.c:4226 [inline]
bpf_xdp_adjust_tail+0xa11/0xfd0 net/core/filter.c:4219
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+0x626/0x1530 net/core/dev.c:5260
netif_receive_generic_xdp net/core/dev.c:5376 [inline]
do_xdp_generic+0x8e6/0x1320 net/core/dev.c:5438
tun_get_user+0x1d43/0x3ce0 drivers/net/tun.c:1872
tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:1996
new_sync_write fs/read_write.c:593 [inline]
vfs_write+0x7d3/0x11d0 fs/read_write.c:686
ksys_write+0x12a/0x250 fs/read_write.c:738
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0xcd/0x4c0 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f184e38d69f
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:00007f184f199000 EFLAGS: 00000293 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f184e5b5fa0 RCX: 00007f184e38d69f
RDX: 000000000000fed7 RSI: 00002000000002c0 RDI: 00000000000000c8
RBP: 00007f184e411e19 R08: 0000000000000000 R09: 0000000000000000
R10: 000000000000fed7 R11: 0000000000000293 R12: 0000000000000000
R13: 00007f184e5b6038 R14: 00007f184e5b5fa0 R15: 00007ffc8af2ead8
BUG: Bad page state in process syz.4.1137 pfn:29d5a
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff888029d5a3e0 pfn:0x29d5a
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000000000 dead000000000040 ffff888022067000 0000000000000000
raw: ffff888029d5a3e0 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 9773, tgid 9772 (syz.4.1137), ts 114317743444, free_ts 114299725439
set_page_owner include/linux/page_owner.h:32 [inline]
post_alloc_hook+0x1c0/0x230 mm/page_alloc.c:1851
prep_new_page mm/page_alloc.c:1859 [inline]
get_page_from_freelist+0x132b/0x38e0 mm/page_alloc.c:3858
__alloc_frozen_pages_noprof+0x261/0x23f0 mm/page_alloc.c:5148
__alloc_pages_noprof mm/page_alloc.c:5182 [inline]
alloc_pages_bulk_noprof+0x71c/0x1410 mm/page_alloc.c:5102
alloc_pages_bulk_node_noprof include/linux/gfp.h:254 [inline]
__page_pool_alloc_netmems_slow+0x193/0xc60 net/core/page_pool.c:567
page_pool_alloc_netmems net/core/page_pool.c:618 [inline]
page_pool_alloc_netmems+0xc4/0x190 net/core/page_pool.c:605
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+0x7c0/0xff0 net/core/skbuff.c:951
skb_cow_data_for_xdp+0x88/0xb0 net/core/skbuff.c:985
netif_skb_check_for_xdp net/core/dev.c:5329 [inline]
netif_receive_generic_xdp net/core/dev.c:5370 [inline]
do_xdp_generic+0x530/0x1320 net/core/dev.c:5438
tun_get_user+0x1d43/0x3ce0 drivers/net/tun.c:1872
tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:1996
new_sync_write fs/read_write.c:593 [inline]
vfs_write+0x7d3/0x11d0 fs/read_write.c:686
ksys_write+0x12a/0x250 fs/read_write.c:738
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0xcd/0x4c0 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
page last free pid 0 tgid 0 stack trace:
reset_page_owner include/linux/page_owner.h:25 [inline]
free_pages_prepare mm/page_alloc.c:1395 [inline]
__free_frozen_pages+0x7d5/0x10f0 mm/page_alloc.c:2895
pagetable_free include/linux/mm.h:2898 [inline]
pagetable_dtor_free include/linux/mm.h:2996 [inline]
__tlb_remove_table include/asm-generic/tlb.h:220 [inline]
__tlb_remove_table_free mm/mmu_gather.c:227 [inline]
tlb_remove_table_rcu+0x116/0x1a0 mm/mmu_gather.c:290
rcu_do_batch kernel/rcu/tree.c:2605 [inline]
rcu_core+0x799/0x1530 kernel/rcu/tree.c:2861
handle_softirqs+0x216/0x8e0 kernel/softirq.c:579
__do_softirq kernel/softirq.c:613 [inline]
invoke_softirq kernel/softirq.c:453 [inline]
__irq_exit_rcu+0x109/0x170 kernel/softirq.c:680
irq_exit_rcu+0x9/0x30 kernel/softirq.c:696
instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1050 [inline]
sysvec_apic_timer_interrupt+0xa4/0xc0 arch/x86/kernel/apic/apic.c:1050
asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702
Modules linked in:
CPU: 3 UID: 0 PID: 9773 Comm: syz.4.1137 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~bpo12+1 04/01/2014
Call Trace:
__dump_stack lib/dump_stack.c:94 [inline]
dump_stack_lvl+0x16c/0x1f0 lib/dump_stack.c:120
bad_page+0xcf/0x220 mm/page_alloc.c:650
free_page_is_bad mm/page_alloc.c:1083 [inline]
free_page_is_bad mm/page_alloc.c:1077 [inline]
free_pages_prepare mm/page_alloc.c:1387 [inline]
__free_frozen_pages+0x7f7/0x10f0 mm/page_alloc.c:2895
page_frag_free+0x27f/0x2e0 mm/page_frag_cache.c:169
__xdp_return+0x3ab/0xab0 net/core/xdp.c:448
bpf_xdp_shrink_data net/core/filter.c:4181 [inline]
bpf_xdp_frags_shrink_tail net/core/filter.c:4201 [inline]
____bpf_xdp_adjust_tail net/core/filter.c:4226 [inline]
bpf_xdp_adjust_tail+0xa11/0xfd0 net/core/filter.c:4219
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+0x626/0x1530 net/core/dev.c:5260
netif_receive_generic_xdp net/core/dev.c:5376 [inline]
do_xdp_generic+0x8e6/0x1320 net/core/dev.c:5438
tun_get_user+0x1d43/0x3ce0 drivers/net/tun.c:1872
tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:1996
new_sync_write fs/read_write.c:593 [inline]
vfs_write+0x7d3/0x11d0 fs/read_write.c:686
ksys_write+0x12a/0x250 fs/read_write.c:738
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0xcd/0x4c0 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f184e38d69f
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:00007f184f199000 EFLAGS: 00000293 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f184e5b5fa0 RCX: 00007f184e38d69f
RDX: 000000000000fed7 RSI: 00002000000002c0 RDI: 00000000000000c8
RBP: 00007f184e411e19 R08: 0000000000000000 R09: 0000000000000000
R10: 000000000000fed7 R11: 0000000000000293 R12: 0000000000000000
R13: 00007f184e5b6038 R14: 00007f184e5b5fa0 R15: 00007ffc8af2ead8
BUG: Bad page state in process syz.4.1137 pfn:33d8f
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x33d8f
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000000000 dead000000000040 ffff888022067000 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 9773, tgid 9772 (syz.4.1137), ts 114317739011, free_ts 114299732800
set_page_owner include/linux/page_owner.h:32 [inline]
post_alloc_hook+0x1c0/0x230 mm/page_alloc.c:1851
prep_new_page mm/page_alloc.c:1859 [inline]
get_page_from_freelist+0x132b/0x38e0 mm/page_alloc.c:3858
__alloc_frozen_pages_noprof+0x261/0x23f0 mm/page_alloc.c:5148
__alloc_pages_noprof mm/page_alloc.c:5182 [inline]
alloc_pages_bulk_noprof+0x71c/0x1410 mm/page_alloc.c:5102
alloc_pages_bulk_node_noprof include/linux/gfp.h:254 [inline]
__page_pool_alloc_netmems_slow+0x193/0xc60 net/core/page_pool.c:567
page_pool_alloc_netmems net/core/page_pool.c:618 [inline]
page_pool_alloc_netmems+0xc4/0x190 net/core/page_pool.c:605
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+0x7c0/0xff0 net/core/skbuff.c:951
skb_cow_data_for_xdp+0x88/0xb0 net/core/skbuff.c:985
netif_skb_check_for_xdp net/core/dev.c:5329 [inline]
netif_receive_generic_xdp net/core/dev.c:5370 [inline]
do_xdp_generic+0x530/0x1320 net/core/dev.c:5438
tun_get_user+0x1d43/0x3ce0 drivers/net/tun.c:1872
tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:1996
new_sync_write fs/read_write.c:593 [inline]
vfs_write+0x7d3/0x11d0 fs/read_write.c:686
ksys_write+0x12a/0x250 fs/read_write.c:738
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0xcd/0x4c0 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
page last free pid 0 tgid 0 stack trace:
reset_page_owner include/linux/page_owner.h:25 [inline]
free_pages_prepare mm/page_alloc.c:1395 [inline]
__free_frozen_pages+0x7d5/0x10f0 mm/page_alloc.c:2895
pagetable_free include/linux/mm.h:2898 [inline]
pagetable_dtor_free include/linux/mm.h:2996 [inline]
__tlb_remove_table include/asm-generic/tlb.h:220 [inline]
__tlb_remove_table_free mm/mmu_gather.c:227 [inline]
tlb_remove_table_rcu+0x116/0x1a0 mm/mmu_gather.c:290
rcu_do_batch kernel/rcu/tree.c:2605 [inline]
rcu_core+0x799/0x1530 kernel/rcu/tree.c:2861
handle_softirqs+0x216/0x8e0 kernel/softirq.c:579
__do_softirq kernel/softirq.c:613 [inline]
invoke_softirq kernel/softirq.c:453 [inline]
__irq_exit_rcu+0x109/0x170 kernel/softirq.c:680
irq_exit_rcu+0x9/0x30 kernel/softirq.c:696
instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1050 [inline]
sysvec_apic_timer_interrupt+0xa4/0xc0 arch/x86/kernel/apic/apic.c:1050
asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702
Modules linked in:
CPU: 3 UID: 0 PID: 9773 Comm: syz.4.1137 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~bpo12+1 04/01/2014
Call Trace:
__dump_stack lib/dump_stack.c:94 [inline]
dump_stack_lvl+0x16c/0x1f0 lib/dump_stack.c:120
bad_page+0xcf/0x220 mm/page_alloc.c:650
free_page_is_bad mm/page_alloc.c:1083 [inline]
free_page_is_bad mm/page_alloc.c:1077 [inline]
free_pages_prepare mm/page_alloc.c:1387 [inline]
__free_frozen_pages+0x7f7/0x10f0 mm/page_alloc.c:2895
page_frag_free+0x27f/0x2e0 mm/page_frag_cache.c:169
__xdp_return+0x3ab/0xab0 net/core/xdp.c:448
bpf_xdp_shrink_data net/core/filter.c:4181 [inline]
bpf_xdp_frags_shrink_tail net/core/filter.c:4201 [inline]
____bpf_xdp_adjust_tail net/core/filter.c:4226 [inline]
bpf_xdp_adjust_tail+0xa11/0xfd0 net/core/filter.c:4219
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+0x626/0x1530 net/core/dev.c:5260
netif_receive_generic_xdp net/core/dev.c:5376 [inline]
do_xdp_generic+0x8e6/0x1320 net/core/dev.c:5438
tun_get_user+0x1d43/0x3ce0 drivers/net/tun.c:1872
tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:1996
new_sync_write fs/read_write.c:593 [inline]
vfs_write+0x7d3/0x11d0 fs/read_write.c:686
ksys_write+0x12a/0x250 fs/read_write.c:738
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0xcd/0x4c0 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f184e38d69f
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:00007f184f199000 EFLAGS: 00000293 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f184e5b5fa0 RCX: 00007f184e38d69f
RDX: 000000000000fed7 RSI: 00002000000002c0 RDI: 00000000000000c8
RBP: 00007f184e411e19 R08: 0000000000000000 R09: 0000000000000000
R10: 000000000000fed7 R11: 0000000000000293 R12: 0000000000000000
R13: 00007f184e5b6038 R14: 00007f184e5b5fa0 R15: 00007ffc8af2ead8
BUG: Bad page state in process syz.4.1137 pfn:5a0ed
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x5a0ed
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000000000 dead000000000040 ffff888022067000 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 9773, tgid 9772 (syz.4.1137), ts 114317734803, free_ts 114299739414
set_page_owner include/linux/page_owner.h:32 [inline]
post_alloc_hook+0x1c0/0x230 mm/page_alloc.c:1851
prep_new_page mm/page_alloc.c:1859 [inline]
get_page_from_freelist+0x132b/0x38e0 mm/page_alloc.c:3858
__alloc_frozen_pages_noprof+0x261/0x23f0 mm/page_alloc.c:5148
__alloc_pages_noprof mm/page_alloc.c:5182 [inline]
alloc_pages_bulk_noprof+0x71c/0x1410 mm/page_alloc.c:5102
alloc_pages_bulk_node_noprof include/linux/gfp.h:254 [inline]
__page_pool_alloc_netmems_slow+0x193/0xc60 net/core/page_pool.c:567
page_pool_alloc_netmems net/core/page_pool.c:618 [inline]
page_pool_alloc_netmems+0xc4/0x190 net/core/page_pool.c:605
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+0x7c0/0xff0 net/core/skbuff.c:951
skb_cow_data_for_xdp+0x88/0xb0 net/core/skbuff.c:985
netif_skb_check_for_xdp net/core/dev.c:5329 [inline]
netif_receive_generic_xdp net/core/dev.c:5370 [inline]
do_xdp_generic+0x530/0x1320 net/core/dev.c:5438
tun_get_user+0x1d43/0x3ce0 drivers/net/tun.c:1872
tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:1996
new_sync_write fs/read_write.c:593 [inline]
vfs_write+0x7d3/0x11d0 fs/read_write.c:686
ksys_write+0x12a/0x250 fs/read_write.c:738
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0xcd/0x4c0 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
page last free pid 0 tgid 0 stack trace:
reset_page_owner include/linux/page_owner.h:25 [inline]
free_pages_prepare mm/page_alloc.c:1395 [inline]
__free_frozen_pages+0x7d5/0x10f0 mm/page_alloc.c:2895
pagetable_free include/linux/mm.h:2898 [inline]
pagetable_dtor_free include/linux/mm.h:2996 [inline]
__tlb_remove_table include/asm-generic/tlb.h:220 [inline]
__tlb_remove_table_free mm/mmu_gather.c:227 [inline]
tlb_remove_table_rcu+0x116/0x1a0 mm/mmu_gather.c:290
rcu_do_batch kernel/rcu/tree.c:2605 [inline]
rcu_core+0x799/0x1530 kernel/rcu/tree.c:2861
handle_softirqs+0x216/0x8e0 kernel/softirq.c:579
__do_softirq kernel/softirq.c:613 [inline]
invoke_softirq kernel/softirq.c:453 [inline]
__irq_exit_rcu+0x109/0x170 kernel/softirq.c:680
irq_exit_rcu+0x9/0x30 kernel/softirq.c:696
instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1050 [inline]
sysvec_apic_timer_interrupt+0xa4/0xc0 arch/x86/kernel/apic/apic.c:1050
asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702
Modules linked in:
CPU: 3 UID: 0 PID: 9773 Comm: syz.4.1137 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~bpo12+1 04/01/2014
Call Trace:
__dump_stack lib/dump_stack.c:94 [inline]
dump_stack_lvl+0x16c/0x1f0 lib/dump_stack.c:120
bad_page+0xcf/0x220 mm/page_alloc.c:650
free_page_is_bad mm/page_alloc.c:1083 [inline]
free_page_is_bad mm/page_alloc.c:1077 [inline]
free_pages_prepare mm/page_alloc.c:1387 [inline]
__free_frozen_pages+0x7f7/0x10f0 mm/page_alloc.c:2895
page_frag_free+0x27f/0x2e0 mm/page_frag_cache.c:169
__xdp_return+0x3ab/0xab0 net/core/xdp.c:448
bpf_xdp_shrink_data net/core/filter.c:4181 [inline]
bpf_xdp_frags_shrink_tail net/core/filter.c:4201 [inline]
____bpf_xdp_adjust_tail net/core/filter.c:4226 [inline]
bpf_xdp_adjust_tail+0xa11/0xfd0 net/core/filter.c:4219
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+0x626/0x1530 net/core/dev.c:5260
netif_receive_generic_xdp net/core/dev.c:5376 [inline]
do_xdp_generic+0x8e6/0x1320 net/core/dev.c:5438
tun_get_user+0x1d43/0x3ce0 drivers/net/tun.c:1872
tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:1996
new_sync_write fs/read_write.c:593 [inline]
vfs_write+0x7d3/0x11d0 fs/read_write.c:686
ksys_write+0x12a/0x250 fs/read_write.c:738
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0xcd/0x4c0 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f184e38d69f
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:00007f184f199000 EFLAGS: 00000293 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f184e5b5fa0 RCX: 00007f184e38d69f
RDX: 000000000000fed7 RSI: 00002000000002c0 RDI: 00000000000000c8
RBP: 00007f184e411e19 R08: 0000000000000000 R09: 0000000000000000
R10: 000000000000fed7 R11: 0000000000000293 R12: 0000000000000000
R13: 00007f184e5b6038 R14: 00007f184e5b5fa0 R15: 00007ffc8af2ead8
BUG: Bad page state in process syz.4.1137 pfn:33da9
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x34 pfn:0x33da9
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000000000 dead000000000040 ffff888022067000 0000000000000000
raw: 0000000000000034 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 9773, tgid 9772 (syz.4.1137), ts 114317730574, free_ts 114299743365
set_page_owner include/linux/page_owner.h:32 [inline]
post_alloc_hook+0x1c0/0x230 mm/page_alloc.c:1851
prep_new_page mm/page_alloc.c:1859 [inline]
get_page_from_freelist+0x132b/0x38e0 mm/page_alloc.c:3858
__alloc_frozen_pages_noprof+0x261/0x23f0 mm/page_alloc.c:5148
__alloc_pages_noprof mm/page_alloc.c:5182 [inline]
alloc_pages_bulk_noprof+0x71c/0x1410 mm/page_alloc.c:5102
alloc_pages_bulk_node_noprof include/linux/gfp.h:254 [inline]
__page_pool_alloc_netmems_slow+0x193/0xc60 net/core/page_pool.c:567
page_pool_alloc_netmems net/core/page_pool.c:618 [inline]
page_pool_alloc_netmems+0xc4/0x190 net/core/page_pool.c:605
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+0x7c0/0xff0 net/core/skbuff.c:951
skb_cow_data_for_xdp+0x88/0xb0 net/core/skbuff.c:985
netif_skb_check_for_xdp net/core/dev.c:5329 [inline]
netif_receive_generic_xdp net/core/dev.c:5370 [inline]
do_xdp_generic+0x530/0x1320 net/core/dev.c:5438
tun_get_user+0x1d43/0x3ce0 drivers/net/tun.c:1872
tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:1996
new_sync_write fs/read_write.c:593 [inline]
vfs_write+0x7d3/0x11d0 fs/read_write.c:686
ksys_write+0x12a/0x250 fs/read_write.c:738
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0xcd/0x4c0 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
page last free pid 0 tgid 0 stack trace:
reset_page_owner include/linux/page_owner.h:25 [inline]
free_pages_prepare mm/page_alloc.c:1395 [inline]
__free_frozen_pages+0x7d5/0x10f0 mm/page_alloc.c:2895
pagetable_free include/linux/mm.h:2898 [inline]
pagetable_dtor_free include/linux/mm.h:2996 [inline]
__tlb_remove_table include/asm-generic/tlb.h:220 [inline]
__tlb_remove_table_free mm/mmu_gather.c:227 [inline]
tlb_remove_table_rcu+0x116/0x1a0 mm/mmu_gather.c:290
rcu_do_batch kernel/rcu/tree.c:2605 [inline]
rcu_core+0x799/0x1530 kernel/rcu/tree.c:2861
handle_softirqs+0x216/0x8e0 kernel/softirq.c:579
__do_softirq kernel/softirq.c:613 [inline]
invoke_softirq kernel/softirq.c:453 [inline]
__irq_exit_rcu+0x109/0x170 kernel/softirq.c:680
irq_exit_rcu+0x9/0x30 kernel/softirq.c:696
instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1050 [inline]
sysvec_apic_timer_interrupt+0xa4/0xc0 arch/x86/kernel/apic/apic.c:1050
asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702
Modules linked in:
CPU: 3 UID: 0 PID: 9773 Comm: syz.4.1137 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~bpo12+1 04/01/2014
Call Trace:
__dump_stack lib/dump_stack.c:94 [inline]
dump_stack_lvl+0x16c/0x1f0 lib/dump_stack.c:120
bad_page+0xcf/0x220 mm/page_alloc.c:650
free_page_is_bad mm/page_alloc.c:1083 [inline]
free_page_is_bad mm/page_alloc.c:1077 [inline]
free_pages_prepare mm/page_alloc.c:1387 [inline]
__free_frozen_pages+0x7f7/0x10f0 mm/page_alloc.c:2895
page_frag_free+0x27f/0x2e0 mm/page_frag_cache.c:169
__xdp_return+0x3ab/0xab0 net/core/xdp.c:448
bpf_xdp_shrink_data net/core/filter.c:4181 [inline]
bpf_xdp_frags_shrink_tail net/core/filter.c:4201 [inline]
____bpf_xdp_adjust_tail net/core/filter.c:4226 [inline]
bpf_xdp_adjust_tail+0xa11/0xfd0 net/core/filter.c:4219
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+0x626/0x1530 net/core/dev.c:5260
netif_receive_generic_xdp net/core/dev.c:5376 [inline]
do_xdp_generic+0x8e6/0x1320 net/core/dev.c:5438
tun_get_user+0x1d43/0x3ce0 drivers/net/tun.c:1872
tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:1996
new_sync_write fs/read_write.c:593 [inline]
vfs_write+0x7d3/0x11d0 fs/read_write.c:686
ksys_write+0x12a/0x250 fs/read_write.c:738
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0xcd/0x4c0 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f184e38d69f
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:00007f184f199000 EFLAGS: 00000293 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f184e5b5fa0 RCX: 00007f184e38d69f
RDX: 000000000000fed7 RSI: 00002000000002c0 RDI: 00000000000000c8
RBP: 00007f184e411e19 R08: 0000000000000000 R09: 0000000000000000
R10: 000000000000fed7 R11: 0000000000000293 R12: 0000000000000000
R13: 00007f184e5b6038 R14: 00007f184e5b5fa0 R15: 00007ffc8af2ead8
BUG: Bad page state in process syz.4.1137 pfn:24fe3
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x24fe3
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000000000 dead000000000040 ffff888022067000 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 9773, tgid 9772 (syz.4.1137), ts 114317726358, free_ts 114299750420
set_page_owner include/linux/page_owner.h:32 [inline]
post_alloc_hook+0x1c0/0x230 mm/page_alloc.c:1851
prep_new_page mm/page_alloc.c:1859 [inline]
get_page_from_freelist+0x132b/0x38e0 mm/page_alloc.c:3858
__alloc_frozen_pages_noprof+0x261/0x23f0 mm/page_alloc.c:5148
__alloc_pages_noprof mm/page_alloc.c:5182 [inline]
alloc_pages_bulk_noprof+0x71c/0x1410 mm/page_alloc.c:5102
alloc_pages_bulk_node_noprof include/linux/gfp.h:254 [inline]
__page_pool_alloc_netmems_slow+0x193/0xc60 net/core/page_pool.c:567
page_pool_alloc_netmems net/core/page_pool.c:618 [inline]
page_pool_alloc_netmems+0xc4/0x190 net/core/page_pool.c:605
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+0x7c0/0xff0 net/core/skbuff.c:951
skb_cow_data_for_xdp+0x88/0xb0 net/core/skbuff.c:985
netif_skb_check_for_xdp net/core/dev.c:5329 [inline]
netif_receive_generic_xdp net/core/dev.c:5370 [inline]
do_xdp_generic+0x530/0x1320 net/core/dev.c:5438
tun_get_user+0x1d43/0x3ce0 drivers/net/tun.c:1872
tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:1996
new_sync_write fs/read_write.c:593 [inline]
vfs_write+0x7d3/0x11d0 fs/read_write.c:686
ksys_write+0x12a/0x250 fs/read_write.c:738
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0xcd/0x4c0 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
page last free pid 0 tgid 0 stack trace:
reset_page_owner include/linux/page_owner.h:25 [inline]
free_pages_prepare mm/page_alloc.c:1395 [inline]
__free_frozen_pages+0x7d5/0x10f0 mm/page_alloc.c:2895
pagetable_free include/linux/mm.h:2898 [inline]
pagetable_dtor_free include/linux/mm.h:2996 [inline]
__tlb_remove_table include/asm-generic/tlb.h:220 [inline]
__tlb_remove_table_free mm/mmu_gather.c:227 [inline]
tlb_remove_table_rcu+0x116/0x1a0 mm/mmu_gather.c:290
rcu_do_batch kernel/rcu/tree.c:2605 [inline]
rcu_core+0x799/0x1530 kernel/rcu/tree.c:2861
handle_softirqs+0x216/0x8e0 kernel/softirq.c:579
__do_softirq kernel/softirq.c:613 [inline]
invoke_softirq kernel/softirq.c:453 [inline]
__irq_exit_rcu+0x109/0x170 kernel/softirq.c:680
irq_exit_rcu+0x9/0x30 kernel/softirq.c:696
instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1050 [inline]
sysvec_apic_timer_interrupt+0xa4/0xc0 arch/x86/kernel/apic/apic.c:1050
asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702
Modules linked in:
CPU: 3 UID: 0 PID: 9773 Comm: syz.4.1137 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~bpo12+1 04/01/2014
Call Trace:
__dump_stack lib/dump_stack.c:94 [inline]
dump_stack_lvl+0x16c/0x1f0 lib/dump_stack.c:120
bad_page+0xcf/0x220 mm/page_alloc.c:650
free_page_is_bad mm/page_alloc.c:1083 [inline]
free_page_is_bad mm/page_alloc.c:1077 [inline]
free_pages_prepare mm/page_alloc.c:1387 [inline]
__free_frozen_pages+0x7f7/0x10f0 mm/page_alloc.c:2895
page_frag_free+0x27f/0x2e0 mm/page_frag_cache.c:169
__xdp_return+0x3ab/0xab0 net/core/xdp.c:448
bpf_xdp_shrink_data net/core/filter.c:4181 [inline]
bpf_xdp_frags_shrink_tail net/core/filter.c:4201 [inline]
____bpf_xdp_adjust_tail net/core/filter.c:4226 [inline]
bpf_xdp_adjust_tail+0xa11/0xfd0 net/core/filter.c:4219
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+0x626/0x1530 net/core/dev.c:5260
netif_receive_generic_xdp net/core/dev.c:5376 [inline]
do_xdp_generic+0x8e6/0x1320 net/core/dev.c:5438
tun_get_user+0x1d43/0x3ce0 drivers/net/tun.c:1872
tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:1996
new_sync_write fs/read_write.c:593 [inline]
vfs_write+0x7d3/0x11d0 fs/read_write.c:686
ksys_write+0x12a/0x250 fs/read_write.c:738
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0xcd/0x4c0 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f184e38d69f
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:00007f184f199000 EFLAGS: 00000293 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f184e5b5fa0 RCX: 00007f184e38d69f
RDX: 000000000000fed7 RSI: 00002000000002c0 RDI: 00000000000000c8
RBP: 00007f184e411e19 R08: 0000000000000000 R09: 0000000000000000
R10: 000000000000fed7 R11: 0000000000000293 R12: 0000000000000000
R13: 00007f184e5b6038 R14: 00007f184e5b5fa0 R15: 00007ffc8af2ead8
BUG: Bad page state in process syz.4.1137 pfn:4c727
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff88802a1c4b40 pfn:0x4c727
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000000000 dead000000000040 ffff888022067000 0000000000000000
raw: ffff88802a1c4b40 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 9773, tgid 9772 (syz.4.1137), ts 114317722254, free_ts 114299756661
set_page_owner include/linux/page_owner.h:32 [inline]
post_alloc_hook+0x1c0/0x230 mm/page_alloc.c:1851
prep_new_page mm/page_alloc.c:1859 [inline]
get_page_from_freelist+0x132b/0x38e0 mm/page_alloc.c:3858
__alloc_frozen_pages_noprof+0x261/0x23f0 mm/page_alloc.c:5148
__alloc_pages_noprof mm/page_alloc.c:5182 [inline]
alloc_pages_bulk_noprof+0x71c/0x1410 mm/page_alloc.c:5102
alloc_pages_bulk_node_noprof include/linux/gfp.h:254 [inline]
__page_pool_alloc_netmems_slow+0x193/0xc60 net/core/page_pool.c:567
page_pool_alloc_netmems net/core/page_pool.c:618 [inline]
page_pool_alloc_netmems+0xc4/0x190 net/core/page_pool.c:605
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+0x7c0/0xff0 net/core/skbuff.c:951
skb_cow_data_for_xdp+0x88/0xb0 net/core/skbuff.c:985
netif_skb_check_for_xdp net/core/dev.c:5329 [inline]
netif_receive_generic_xdp net/core/dev.c:5370 [inline]
do_xdp_generic+0x530/0x1320 net/core/dev.c:5438
tun_get_user+0x1d43/0x3ce0 drivers/net/tun.c:1872
tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:1996
new_sync_write fs/read_write.c:593 [inline]
vfs_write+0x7d3/0x11d0 fs/read_write.c:686
ksys_write+0x12a/0x250 fs/read_write.c:738
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0xcd/0x4c0 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
page last free pid 0 tgid 0 stack trace:
reset_page_owner include/linux/page_owner.h:25 [inline]
free_pages_prepare mm/page_alloc.c:1395 [inline]
__free_frozen_pages+0x7d5/0x10f0 mm/page_alloc.c:2895
pagetable_free include/linux/mm.h:2898 [inline]
pagetable_dtor_free include/linux/mm.h:2996 [inline]
__tlb_remove_table include/asm-generic/tlb.h:220 [inline]
__tlb_remove_table_free mm/mmu_gather.c:227 [inline]
tlb_remove_table_rcu+0x116/0x1a0 mm/mmu_gather.c:290
rcu_do_batch kernel/rcu/tree.c:2605 [inline]
rcu_core+0x799/0x1530 kernel/rcu/tree.c:2861
handle_softirqs+0x216/0x8e0 kernel/softirq.c:579
__do_softirq kernel/softirq.c:613 [inline]
invoke_softirq kernel/softirq.c:453 [inline]
__irq_exit_rcu+0x109/0x170 kernel/softirq.c:680
irq_exit_rcu+0x9/0x30 kernel/softirq.c:696
instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1050 [inline]
sysvec_apic_timer_interrupt+0xa4/0xc0 arch/x86/kernel/apic/apic.c:1050
asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702
Modules linked in:
CPU: 3 UID: 0 PID: 9773 Comm: syz.4.1137 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~bpo12+1 04/01/2014
Call Trace:
__dump_stack lib/dump_stack.c:94 [inline]
dump_stack_lvl+0x16c/0x1f0 lib/dump_stack.c:120
bad_page+0xcf/0x220 mm/page_alloc.c:650
free_page_is_bad mm/page_alloc.c:1083 [inline]
free_page_is_bad mm/page_alloc.c:1077 [inline]
free_pages_prepare mm/page_alloc.c:1387 [inline]
__free_frozen_pages+0x7f7/0x10f0 mm/page_alloc.c:2895
page_frag_free+0x27f/0x2e0 mm/page_frag_cache.c:169
__xdp_return+0x3ab/0xab0 net/core/xdp.c:448
bpf_xdp_shrink_data net/core/filter.c:4181 [inline]
bpf_xdp_frags_shrink_tail net/core/filter.c:4201 [inline]
____bpf_xdp_adjust_tail net/core/filter.c:4226 [inline]
bpf_xdp_adjust_tail+0xa11/0xfd0 net/core/filter.c:4219
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+0x626/0x1530 net/core/dev.c:5260
netif_receive_generic_xdp net/core/dev.c:5376 [inline]
do_xdp_generic+0x8e6/0x1320 net/core/dev.c:5438
tun_get_user+0x1d43/0x3ce0 drivers/net/tun.c:1872
tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:1996
new_sync_write fs/read_write.c:593 [inline]
vfs_write+0x7d3/0x11d0 fs/read_write.c:686
ksys_write+0x12a/0x250 fs/read_write.c:738
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0xcd/0x4c0 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f184e38d69f
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:00007f184f199000 EFLAGS: 00000293 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f184e5b5fa0 RCX: 00007f184e38d69f
RDX: 000000000000fed7 RSI: 00002000000002c0 RDI: 00000000000000c8
RBP: 00007f184e411e19 R08: 0000000000000000 R09: 0000000000000000
R10: 000000000000fed7 R11: 0000000000000293 R12: 0000000000000000
R13: 00007f184e5b6038 R14: 00007f184e5b5fa0 R15: 00007ffc8af2ead8