BUG: Bad page state in process syz.3.791 pfn:2788d
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff88802788df00 pfn:0x2788d
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000000000 dead000000000040 ffff88802045a000 0000000000000000
raw: ffff88802788df00 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 8043, tgid 8042 (syz.3.791), ts 94194170464, free_ts 94029598912
set_page_owner include/linux/page_owner.h:32 [inline]
post_alloc_hook+0x181/0x1b0 mm/page_alloc.c:1551
prep_new_page mm/page_alloc.c:1559 [inline]
get_page_from_freelist+0xfce/0x2f80 mm/page_alloc.c:3477
__alloc_frozen_pages_noprof+0x221/0x2470 mm/page_alloc.c:4739
__alloc_pages_noprof mm/page_alloc.c:4773 [inline]
alloc_pages_bulk_noprof+0x6f9/0x1390 mm/page_alloc.c:4693
alloc_pages_bulk_node_noprof include/linux/gfp.h:235 [inline]
__page_pool_alloc_pages_slow+0x18c/0x770 net/core/page_pool.c:542
page_pool_alloc_netmems net/core/page_pool.c:593 [inline]
page_pool_alloc_netmems+0xc4/0x160 net/core/page_pool.c:580
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+0x776/0xf10 net/core/skbuff.c:893
skb_cow_data_for_xdp+0x88/0xb0 net/core/skbuff.c:927
netif_skb_check_for_xdp net/core/dev.c:5262 [inline]
netif_receive_generic_xdp net/core/dev.c:5301 [inline]
do_xdp_generic+0x3f1/0xe70 net/core/dev.c:5369
__netif_receive_skb_core.constprop.0+0x12da/0x4330 net/core/dev.c:5719
__netif_receive_skb_one_core+0xb1/0x1e0 net/core/dev.c:5897
__netif_receive_skb+0x1d/0x160 net/core/dev.c:6012
netif_receive_skb_internal net/core/dev.c:6098 [inline]
netif_receive_skb+0x13f/0x7b0 net/core/dev.c:6157
tun_rx_batched.isra.0+0x3eb/0x730 drivers/net/tun.c:1574
tun_get_user+0x2a22/0x3e50 drivers/net/tun.c:2007
tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:2053
page last free pid 6768 tgid 6768 stack trace:
reset_page_owner include/linux/page_owner.h:25 [inline]
free_pages_prepare mm/page_alloc.c:1127 [inline]
free_frozen_pages+0x6db/0xfb0 mm/page_alloc.c:2660
__put_partials+0x14c/0x170 mm/slub.c:3153
qlink_free mm/kasan/quarantine.c:163 [inline]
qlist_free_all+0x4e/0x120 mm/kasan/quarantine.c:179
kasan_quarantine_reduce+0x195/0x1e0 mm/kasan/quarantine.c:286
__kasan_slab_alloc+0x69/0x90 mm/kasan/common.c:329
kasan_slab_alloc include/linux/kasan.h:250 [inline]
slab_post_alloc_hook mm/slub.c:4115 [inline]
slab_alloc_node mm/slub.c:4164 [inline]
kmem_cache_alloc_noprof+0x226/0x3d0 mm/slub.c:4171
locks_alloc_lock fs/locks.c:275 [inline]
flock_lock_inode+0xbfd/0x1040 fs/locks.c:1091
flock_lock_inode_wait fs/locks.c:2084 [inline]
locks_lock_inode_wait+0x1c7/0x450 fs/locks.c:2111
locks_lock_file_wait include/linux/filelock.h:422 [inline]
__do_sys_flock+0x448/0x520 fs/locks.c:2179
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x77/0x7f
Modules linked in:
CPU: 2 UID: 0 PID: 8043 Comm: syz.3.791 Not tainted 6.14.0-rc4-syzkaller-00052-gac9c34d1e45a #0
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+0xb3/0x1f0 mm/page_alloc.c:501
free_page_is_bad_report mm/page_alloc.c:913 [inline]
free_page_is_bad mm/page_alloc.c:923 [inline]
free_pages_prepare mm/page_alloc.c:1119 [inline]
free_frozen_pages+0x701/0xfb0 mm/page_alloc.c:2660
page_frag_free+0x255/0x2a0 mm/page_frag_cache.c:169
__xdp_return+0x319/0xa70 net/core/xdp.c:447
bpf_xdp_shrink_data net/core/filter.c:4155 [inline]
bpf_xdp_frags_shrink_tail net/core/filter.c:4175 [inline]
____bpf_xdp_adjust_tail net/core/filter.c:4200 [inline]
bpf_xdp_adjust_tail+0x9de/0xf70 net/core/filter.c:4193
bpf_prog_f476d5219b92964a+0x1e/0x20
__bpf_prog_run include/linux/filter.h:692 [inline]
bpf_prog_run_xdp include/net/xdp.h:654 [inline]
bpf_prog_run_generic_xdp+0xe33/0x1500 net/core/dev.c:5194
netif_receive_generic_xdp net/core/dev.c:5307 [inline]
do_xdp_generic+0x70a/0xe70 net/core/dev.c:5369
__netif_receive_skb_core.constprop.0+0x12da/0x4330 net/core/dev.c:5719
__netif_receive_skb_one_core+0xb1/0x1e0 net/core/dev.c:5897
__netif_receive_skb+0x1d/0x160 net/core/dev.c:6012
netif_receive_skb_internal net/core/dev.c:6098 [inline]
netif_receive_skb+0x13f/0x7b0 net/core/dev.c:6157
tun_rx_batched.isra.0+0x3eb/0x730 drivers/net/tun.c:1574
tun_get_user+0x2a22/0x3e50 drivers/net/tun.c:2007
tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:2053
new_sync_write fs/read_write.c:586 [inline]
vfs_write+0x5ae/0x1150 fs/read_write.c:679
ksys_write+0x12b/0x250 fs/read_write.c:731
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f46c3f8bc1f
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:00007f46c4dc2000 EFLAGS: 00000293 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f46c41a5fa0 RCX: 00007f46c3f8bc1f
RDX: 0000000000011dc0 RSI: 0000400000000440 RDI: 00000000000000c8
RBP: 00007f46c400e2a0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000011dc0 R11: 0000000000000293 R12: 0000000000000000
R13: 0000000000000000 R14: 00007f46c41a5fa0 R15: 00007ffeaccebd98
BUG: Bad page state in process syz.3.791 pfn:2d280
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x2d280
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000000000 dead000000000040 ffff88802045a000 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 8043, tgid 8042 (syz.3.791), ts 94194166242, free_ts 94039608332
set_page_owner include/linux/page_owner.h:32 [inline]
post_alloc_hook+0x181/0x1b0 mm/page_alloc.c:1551
prep_new_page mm/page_alloc.c:1559 [inline]
get_page_from_freelist+0xfce/0x2f80 mm/page_alloc.c:3477
__alloc_frozen_pages_noprof+0x221/0x2470 mm/page_alloc.c:4739
__alloc_pages_noprof mm/page_alloc.c:4773 [inline]
alloc_pages_bulk_noprof+0x6f9/0x1390 mm/page_alloc.c:4693
alloc_pages_bulk_node_noprof include/linux/gfp.h:235 [inline]
__page_pool_alloc_pages_slow+0x18c/0x770 net/core/page_pool.c:542
page_pool_alloc_netmems net/core/page_pool.c:593 [inline]
page_pool_alloc_netmems+0xc4/0x160 net/core/page_pool.c:580
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+0x776/0xf10 net/core/skbuff.c:893
skb_cow_data_for_xdp+0x88/0xb0 net/core/skbuff.c:927
netif_skb_check_for_xdp net/core/dev.c:5262 [inline]
netif_receive_generic_xdp net/core/dev.c:5301 [inline]
do_xdp_generic+0x3f1/0xe70 net/core/dev.c:5369
__netif_receive_skb_core.constprop.0+0x12da/0x4330 net/core/dev.c:5719
__netif_receive_skb_one_core+0xb1/0x1e0 net/core/dev.c:5897
__netif_receive_skb+0x1d/0x160 net/core/dev.c:6012
netif_receive_skb_internal net/core/dev.c:6098 [inline]
netif_receive_skb+0x13f/0x7b0 net/core/dev.c:6157
tun_rx_batched.isra.0+0x3eb/0x730 drivers/net/tun.c:1574
tun_get_user+0x2a22/0x3e50 drivers/net/tun.c:2007
tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:2053
page last free pid 6318 tgid 6318 stack trace:
reset_page_owner include/linux/page_owner.h:25 [inline]
free_pages_prepare mm/page_alloc.c:1127 [inline]
free_frozen_pages+0x6db/0xfb0 mm/page_alloc.c:2660
selinux_genfs_get_sid security/selinux/hooks.c:1348 [inline]
inode_doinit_with_dentry+0xac4/0x12c0 security/selinux/hooks.c:1546
selinux_d_instantiate+0x26/0x30 security/selinux/hooks.c:6373
security_d_instantiate+0x142/0x1a0 security/security.c:4079
d_splice_alias+0x93/0xf50 fs/dcache.c:3017
kernfs_iop_lookup+0x286/0x330 fs/kernfs/dir.c:1230
lookup_open.isra.0+0x4d9/0x1580 fs/namei.c:3629
open_last_lookups fs/namei.c:3750 [inline]
path_openat+0x904/0x2d80 fs/namei.c:3986
do_filp_open+0x20c/0x470 fs/namei.c:4016
do_sys_openat2+0x17a/0x1e0 fs/open.c:1428
do_sys_open fs/open.c:1443 [inline]
__do_sys_openat fs/open.c:1459 [inline]
__se_sys_openat fs/open.c:1454 [inline]
__x64_sys_openat+0x175/0x210 fs/open.c:1454
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x77/0x7f
Modules linked in:
CPU: 2 UID: 0 PID: 8043 Comm: syz.3.791 Tainted: G B 6.14.0-rc4-syzkaller-00052-gac9c34d1e45a #0
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+0xb3/0x1f0 mm/page_alloc.c:501
free_page_is_bad_report mm/page_alloc.c:913 [inline]
free_page_is_bad mm/page_alloc.c:923 [inline]
free_pages_prepare mm/page_alloc.c:1119 [inline]
free_frozen_pages+0x701/0xfb0 mm/page_alloc.c:2660
page_frag_free+0x255/0x2a0 mm/page_frag_cache.c:169
__xdp_return+0x319/0xa70 net/core/xdp.c:447
bpf_xdp_shrink_data net/core/filter.c:4155 [inline]
bpf_xdp_frags_shrink_tail net/core/filter.c:4175 [inline]
____bpf_xdp_adjust_tail net/core/filter.c:4200 [inline]
bpf_xdp_adjust_tail+0x9de/0xf70 net/core/filter.c:4193
bpf_prog_f476d5219b92964a+0x1e/0x20
__bpf_prog_run include/linux/filter.h:692 [inline]
bpf_prog_run_xdp include/net/xdp.h:654 [inline]
bpf_prog_run_generic_xdp+0xe33/0x1500 net/core/dev.c:5194
netif_receive_generic_xdp net/core/dev.c:5307 [inline]
do_xdp_generic+0x70a/0xe70 net/core/dev.c:5369
__netif_receive_skb_core.constprop.0+0x12da/0x4330 net/core/dev.c:5719
__netif_receive_skb_one_core+0xb1/0x1e0 net/core/dev.c:5897
__netif_receive_skb+0x1d/0x160 net/core/dev.c:6012
netif_receive_skb_internal net/core/dev.c:6098 [inline]
netif_receive_skb+0x13f/0x7b0 net/core/dev.c:6157
tun_rx_batched.isra.0+0x3eb/0x730 drivers/net/tun.c:1574
tun_get_user+0x2a22/0x3e50 drivers/net/tun.c:2007
tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:2053
new_sync_write fs/read_write.c:586 [inline]
vfs_write+0x5ae/0x1150 fs/read_write.c:679
ksys_write+0x12b/0x250 fs/read_write.c:731
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f46c3f8bc1f
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:00007f46c4dc2000 EFLAGS: 00000293 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f46c41a5fa0 RCX: 00007f46c3f8bc1f
RDX: 0000000000011dc0 RSI: 0000400000000440 RDI: 00000000000000c8
RBP: 00007f46c400e2a0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000011dc0 R11: 0000000000000293 R12: 0000000000000000
R13: 0000000000000000 R14: 00007f46c41a5fa0 R15: 00007ffeaccebd98
BUG: Bad page state in process syz.3.791 pfn:51cc0
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x400000189 pfn:0x51cc0
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000000000 dead000000000040 ffff88802045a000 0000000000000000
raw: 0000000400000189 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 8043, tgid 8042 (syz.3.791), ts 94194162018, free_ts 94080550105
set_page_owner include/linux/page_owner.h:32 [inline]
post_alloc_hook+0x181/0x1b0 mm/page_alloc.c:1551
prep_new_page mm/page_alloc.c:1559 [inline]
get_page_from_freelist+0xfce/0x2f80 mm/page_alloc.c:3477
__alloc_frozen_pages_noprof+0x221/0x2470 mm/page_alloc.c:4739
__alloc_pages_noprof mm/page_alloc.c:4773 [inline]
alloc_pages_bulk_noprof+0x6f9/0x1390 mm/page_alloc.c:4693
alloc_pages_bulk_node_noprof include/linux/gfp.h:235 [inline]
__page_pool_alloc_pages_slow+0x18c/0x770 net/core/page_pool.c:542
page_pool_alloc_netmems net/core/page_pool.c:593 [inline]
page_pool_alloc_netmems+0xc4/0x160 net/core/page_pool.c:580
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+0x776/0xf10 net/core/skbuff.c:893
skb_cow_data_for_xdp+0x88/0xb0 net/core/skbuff.c:927
netif_skb_check_for_xdp net/core/dev.c:5262 [inline]
netif_receive_generic_xdp net/core/dev.c:5301 [inline]
do_xdp_generic+0x3f1/0xe70 net/core/dev.c:5369
__netif_receive_skb_core.constprop.0+0x12da/0x4330 net/core/dev.c:5719
__netif_receive_skb_one_core+0xb1/0x1e0 net/core/dev.c:5897
__netif_receive_skb+0x1d/0x160 net/core/dev.c:6012
netif_receive_skb_internal net/core/dev.c:6098 [inline]
netif_receive_skb+0x13f/0x7b0 net/core/dev.c:6157
tun_rx_batched.isra.0+0x3eb/0x730 drivers/net/tun.c:1574
tun_get_user+0x2a22/0x3e50 drivers/net/tun.c:2007
tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:2053
page last free pid 1470 tgid 1470 stack trace:
reset_page_owner include/linux/page_owner.h:25 [inline]
free_pages_prepare mm/page_alloc.c:1127 [inline]
free_frozen_pages+0x6db/0xfb0 mm/page_alloc.c:2660
pagetable_free include/linux/mm.h:2917 [inline]
pagetable_dtor_free include/linux/mm.h:3015 [inline]
__tlb_remove_table include/asm-generic/tlb.h:216 [inline]
__tlb_remove_table_free mm/mmu_gather.c:227 [inline]
tlb_remove_table_rcu+0x116/0x1a0 mm/mmu_gather.c:282
rcu_do_batch kernel/rcu/tree.c:2546 [inline]
rcu_core+0x79d/0x14d0 kernel/rcu/tree.c:2802
handle_softirqs+0x213/0x8f0 kernel/softirq.c:561
__do_softirq kernel/softirq.c:595 [inline]
invoke_softirq kernel/softirq.c:435 [inline]
__irq_exit_rcu+0x109/0x170 kernel/softirq.c:662
irq_exit_rcu+0x9/0x30 kernel/softirq.c:678
instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1049 [inline]
sysvec_apic_timer_interrupt+0xa4/0xc0 arch/x86/kernel/apic/apic.c:1049
asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702
Modules linked in:
CPU: 2 UID: 0 PID: 8043 Comm: syz.3.791 Tainted: G B 6.14.0-rc4-syzkaller-00052-gac9c34d1e45a #0
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+0xb3/0x1f0 mm/page_alloc.c:501
free_page_is_bad_report mm/page_alloc.c:913 [inline]
free_page_is_bad mm/page_alloc.c:923 [inline]
free_pages_prepare mm/page_alloc.c:1119 [inline]
free_frozen_pages+0x701/0xfb0 mm/page_alloc.c:2660
page_frag_free+0x255/0x2a0 mm/page_frag_cache.c:169
__xdp_return+0x319/0xa70 net/core/xdp.c:447
bpf_xdp_shrink_data net/core/filter.c:4155 [inline]
bpf_xdp_frags_shrink_tail net/core/filter.c:4175 [inline]
____bpf_xdp_adjust_tail net/core/filter.c:4200 [inline]
bpf_xdp_adjust_tail+0x9de/0xf70 net/core/filter.c:4193
bpf_prog_f476d5219b92964a+0x1e/0x20
__bpf_prog_run include/linux/filter.h:692 [inline]
bpf_prog_run_xdp include/net/xdp.h:654 [inline]
bpf_prog_run_generic_xdp+0xe33/0x1500 net/core/dev.c:5194
netif_receive_generic_xdp net/core/dev.c:5307 [inline]
do_xdp_generic+0x70a/0xe70 net/core/dev.c:5369
__netif_receive_skb_core.constprop.0+0x12da/0x4330 net/core/dev.c:5719
__netif_receive_skb_one_core+0xb1/0x1e0 net/core/dev.c:5897
__netif_receive_skb+0x1d/0x160 net/core/dev.c:6012
netif_receive_skb_internal net/core/dev.c:6098 [inline]
netif_receive_skb+0x13f/0x7b0 net/core/dev.c:6157
tun_rx_batched.isra.0+0x3eb/0x730 drivers/net/tun.c:1574
tun_get_user+0x2a22/0x3e50 drivers/net/tun.c:2007
tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:2053
new_sync_write fs/read_write.c:586 [inline]
vfs_write+0x5ae/0x1150 fs/read_write.c:679
ksys_write+0x12b/0x250 fs/read_write.c:731
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f46c3f8bc1f
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:00007f46c4dc2000 EFLAGS: 00000293 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f46c41a5fa0 RCX: 00007f46c3f8bc1f
RDX: 0000000000011dc0 RSI: 0000400000000440 RDI: 00000000000000c8
RBP: 00007f46c400e2a0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000011dc0 R11: 0000000000000293 R12: 0000000000000000
R13: 0000000000000000 R14: 00007f46c41a5fa0 R15: 00007ffeaccebd98
BUG: Bad page state in process syz.3.791 pfn:283d6
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff8880283d6d90 pfn:0x283d6
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000000000 dead000000000040 ffff88802045a000 0000000000000000
raw: ffff8880283d6d90 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 8043, tgid 8042 (syz.3.791), ts 94194157199, free_ts 94080560554
set_page_owner include/linux/page_owner.h:32 [inline]
post_alloc_hook+0x181/0x1b0 mm/page_alloc.c:1551
prep_new_page mm/page_alloc.c:1559 [inline]
get_page_from_freelist+0xfce/0x2f80 mm/page_alloc.c:3477
__alloc_frozen_pages_noprof+0x221/0x2470 mm/page_alloc.c:4739
__alloc_pages_noprof mm/page_alloc.c:4773 [inline]
alloc_pages_bulk_noprof+0x6f9/0x1390 mm/page_alloc.c:4693
alloc_pages_bulk_node_noprof include/linux/gfp.h:235 [inline]
__page_pool_alloc_pages_slow+0x18c/0x770 net/core/page_pool.c:542
page_pool_alloc_netmems net/core/page_pool.c:593 [inline]
page_pool_alloc_netmems+0xc4/0x160 net/core/page_pool.c:580
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+0x776/0xf10 net/core/skbuff.c:893
skb_cow_data_for_xdp+0x88/0xb0 net/core/skbuff.c:927
netif_skb_check_for_xdp net/core/dev.c:5262 [inline]
netif_receive_generic_xdp net/core/dev.c:5301 [inline]
do_xdp_generic+0x3f1/0xe70 net/core/dev.c:5369
__netif_receive_skb_core.constprop.0+0x12da/0x4330 net/core/dev.c:5719
__netif_receive_skb_one_core+0xb1/0x1e0 net/core/dev.c:5897
__netif_receive_skb+0x1d/0x160 net/core/dev.c:6012
netif_receive_skb_internal net/core/dev.c:6098 [inline]
netif_receive_skb+0x13f/0x7b0 net/core/dev.c:6157
tun_rx_batched.isra.0+0x3eb/0x730 drivers/net/tun.c:1574
tun_get_user+0x2a22/0x3e50 drivers/net/tun.c:2007
tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:2053
page last free pid 1470 tgid 1470 stack trace:
reset_page_owner include/linux/page_owner.h:25 [inline]
free_pages_prepare mm/page_alloc.c:1127 [inline]
free_frozen_pages+0x6db/0xfb0 mm/page_alloc.c:2660
pagetable_free include/linux/mm.h:2917 [inline]
pagetable_dtor_free include/linux/mm.h:3015 [inline]
__tlb_remove_table include/asm-generic/tlb.h:216 [inline]
__tlb_remove_table_free mm/mmu_gather.c:227 [inline]
tlb_remove_table_rcu+0x116/0x1a0 mm/mmu_gather.c:282
rcu_do_batch kernel/rcu/tree.c:2546 [inline]
rcu_core+0x79d/0x14d0 kernel/rcu/tree.c:2802
handle_softirqs+0x213/0x8f0 kernel/softirq.c:561
__do_softirq kernel/softirq.c:595 [inline]
invoke_softirq kernel/softirq.c:435 [inline]
__irq_exit_rcu+0x109/0x170 kernel/softirq.c:662
irq_exit_rcu+0x9/0x30 kernel/softirq.c:678
instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1049 [inline]
sysvec_apic_timer_interrupt+0xa4/0xc0 arch/x86/kernel/apic/apic.c:1049
asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702
Modules linked in:
CPU: 2 UID: 0 PID: 8043 Comm: syz.3.791 Tainted: G B 6.14.0-rc4-syzkaller-00052-gac9c34d1e45a #0
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+0xb3/0x1f0 mm/page_alloc.c:501
free_page_is_bad_report mm/page_alloc.c:913 [inline]
free_page_is_bad mm/page_alloc.c:923 [inline]
free_pages_prepare mm/page_alloc.c:1119 [inline]
free_frozen_pages+0x701/0xfb0 mm/page_alloc.c:2660
page_frag_free+0x255/0x2a0 mm/page_frag_cache.c:169
__xdp_return+0x319/0xa70 net/core/xdp.c:447
bpf_xdp_shrink_data net/core/filter.c:4155 [inline]
bpf_xdp_frags_shrink_tail net/core/filter.c:4175 [inline]
____bpf_xdp_adjust_tail net/core/filter.c:4200 [inline]
bpf_xdp_adjust_tail+0x9de/0xf70 net/core/filter.c:4193
bpf_prog_f476d5219b92964a+0x1e/0x20
__bpf_prog_run include/linux/filter.h:692 [inline]
bpf_prog_run_xdp include/net/xdp.h:654 [inline]
bpf_prog_run_generic_xdp+0xe33/0x1500 net/core/dev.c:5194
netif_receive_generic_xdp net/core/dev.c:5307 [inline]
do_xdp_generic+0x70a/0xe70 net/core/dev.c:5369
__netif_receive_skb_core.constprop.0+0x12da/0x4330 net/core/dev.c:5719
__netif_receive_skb_one_core+0xb1/0x1e0 net/core/dev.c:5897
__netif_receive_skb+0x1d/0x160 net/core/dev.c:6012
netif_receive_skb_internal net/core/dev.c:6098 [inline]
netif_receive_skb+0x13f/0x7b0 net/core/dev.c:6157
tun_rx_batched.isra.0+0x3eb/0x730 drivers/net/tun.c:1574
tun_get_user+0x2a22/0x3e50 drivers/net/tun.c:2007
tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:2053
new_sync_write fs/read_write.c:586 [inline]
vfs_write+0x5ae/0x1150 fs/read_write.c:679
ksys_write+0x12b/0x250 fs/read_write.c:731
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f46c3f8bc1f
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:00007f46c4dc2000 EFLAGS: 00000293 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f46c41a5fa0 RCX: 00007f46c3f8bc1f
RDX: 0000000000011dc0 RSI: 0000400000000440 RDI: 00000000000000c8
RBP: 00007f46c400e2a0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000011dc0 R11: 0000000000000293 R12: 0000000000000000
R13: 0000000000000000 R14: 00007f46c41a5fa0 R15: 00007ffeaccebd98
BUG: Bad page state in process syz.3.791 pfn:29091
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff888000000000 pfn:0x29091
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000000000 dead000000000040 ffff88802045a000 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 8043, tgid 8042 (syz.3.791), ts 94194152896, free_ts 94080568716
set_page_owner include/linux/page_owner.h:32 [inline]
post_alloc_hook+0x181/0x1b0 mm/page_alloc.c:1551
prep_new_page mm/page_alloc.c:1559 [inline]
get_page_from_freelist+0xfce/0x2f80 mm/page_alloc.c:3477
__alloc_frozen_pages_noprof+0x221/0x2470 mm/page_alloc.c:4739
__alloc_pages_noprof mm/page_alloc.c:4773 [inline]
alloc_pages_bulk_noprof+0x6f9/0x1390 mm/page_alloc.c:4693
alloc_pages_bulk_node_noprof include/linux/gfp.h:235 [inline]
__page_pool_alloc_pages_slow+0x18c/0x770 net/core/page_pool.c:542
page_pool_alloc_netmems net/core/page_pool.c:593 [inline]
page_pool_alloc_netmems+0xc4/0x160 net/core/page_pool.c:580
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+0x776/0xf10 net/core/skbuff.c:893
skb_cow_data_for_xdp+0x88/0xb0 net/core/skbuff.c:927
netif_skb_check_for_xdp net/core/dev.c:5262 [inline]
netif_receive_generic_xdp net/core/dev.c:5301 [inline]
do_xdp_generic+0x3f1/0xe70 net/core/dev.c:5369
__netif_receive_skb_core.constprop.0+0x12da/0x4330 net/core/dev.c:5719
__netif_receive_skb_one_core+0xb1/0x1e0 net/core/dev.c:5897
__netif_receive_skb+0x1d/0x160 net/core/dev.c:6012
netif_receive_skb_internal net/core/dev.c:6098 [inline]
netif_receive_skb+0x13f/0x7b0 net/core/dev.c:6157
tun_rx_batched.isra.0+0x3eb/0x730 drivers/net/tun.c:1574
tun_get_user+0x2a22/0x3e50 drivers/net/tun.c:2007
tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:2053
page last free pid 1470 tgid 1470 stack trace:
reset_page_owner include/linux/page_owner.h:25 [inline]
free_pages_prepare mm/page_alloc.c:1127 [inline]
free_frozen_pages+0x6db/0xfb0 mm/page_alloc.c:2660
pagetable_free include/linux/mm.h:2917 [inline]
pagetable_dtor_free include/linux/mm.h:3015 [inline]
__tlb_remove_table include/asm-generic/tlb.h:216 [inline]
__tlb_remove_table_free mm/mmu_gather.c:227 [inline]
tlb_remove_table_rcu+0x116/0x1a0 mm/mmu_gather.c:282
rcu_do_batch kernel/rcu/tree.c:2546 [inline]
rcu_core+0x79d/0x14d0 kernel/rcu/tree.c:2802
handle_softirqs+0x213/0x8f0 kernel/softirq.c:561
__do_softirq kernel/softirq.c:595 [inline]
invoke_softirq kernel/softirq.c:435 [inline]
__irq_exit_rcu+0x109/0x170 kernel/softirq.c:662
irq_exit_rcu+0x9/0x30 kernel/softirq.c:678
instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1049 [inline]
sysvec_apic_timer_interrupt+0xa4/0xc0 arch/x86/kernel/apic/apic.c:1049
asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702
Modules linked in:
CPU: 2 UID: 0 PID: 8043 Comm: syz.3.791 Tainted: G B 6.14.0-rc4-syzkaller-00052-gac9c34d1e45a #0
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+0xb3/0x1f0 mm/page_alloc.c:501
free_page_is_bad_report mm/page_alloc.c:913 [inline]
free_page_is_bad mm/page_alloc.c:923 [inline]
free_pages_prepare mm/page_alloc.c:1119 [inline]
free_frozen_pages+0x701/0xfb0 mm/page_alloc.c:2660
page_frag_free+0x255/0x2a0 mm/page_frag_cache.c:169
__xdp_return+0x319/0xa70 net/core/xdp.c:447
bpf_xdp_shrink_data net/core/filter.c:4155 [inline]
bpf_xdp_frags_shrink_tail net/core/filter.c:4175 [inline]
____bpf_xdp_adjust_tail net/core/filter.c:4200 [inline]
bpf_xdp_adjust_tail+0x9de/0xf70 net/core/filter.c:4193
bpf_prog_f476d5219b92964a+0x1e/0x20
__bpf_prog_run include/linux/filter.h:692 [inline]
bpf_prog_run_xdp include/net/xdp.h:654 [inline]
bpf_prog_run_generic_xdp+0xe33/0x1500 net/core/dev.c:5194
netif_receive_generic_xdp net/core/dev.c:5307 [inline]
do_xdp_generic+0x70a/0xe70 net/core/dev.c:5369
__netif_receive_skb_core.constprop.0+0x12da/0x4330 net/core/dev.c:5719
__netif_receive_skb_one_core+0xb1/0x1e0 net/core/dev.c:5897
__netif_receive_skb+0x1d/0x160 net/core/dev.c:6012
netif_receive_skb_internal net/core/dev.c:6098 [inline]
netif_receive_skb+0x13f/0x7b0 net/core/dev.c:6157
tun_rx_batched.isra.0+0x3eb/0x730 drivers/net/tun.c:1574
tun_get_user+0x2a22/0x3e50 drivers/net/tun.c:2007
tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:2053
new_sync_write fs/read_write.c:586 [inline]
vfs_write+0x5ae/0x1150 fs/read_write.c:679
ksys_write+0x12b/0x250 fs/read_write.c:731
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f46c3f8bc1f
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:00007f46c4dc2000 EFLAGS: 00000293 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f46c41a5fa0 RCX: 00007f46c3f8bc1f
RDX: 0000000000011dc0 RSI: 0000400000000440 RDI: 00000000000000c8
RBP: 00007f46c400e2a0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000011dc0 R11: 0000000000000293 R12: 0000000000000000
R13: 0000000000000000 R14: 00007f46c41a5fa0 R15: 00007ffeaccebd98
BUG: Bad page state in process syz.3.791 pfn:2707f
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff888000000000 pfn:0x2707f
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000000000 dead000000000040 ffff88802045a000 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 8043, tgid 8042 (syz.3.791), ts 94194148619, free_ts 94080577728
set_page_owner include/linux/page_owner.h:32 [inline]
post_alloc_hook+0x181/0x1b0 mm/page_alloc.c:1551
prep_new_page mm/page_alloc.c:1559 [inline]
get_page_from_freelist+0xfce/0x2f80 mm/page_alloc.c:3477
__alloc_frozen_pages_noprof+0x221/0x2470 mm/page_alloc.c:4739
__alloc_pages_noprof mm/page_alloc.c:4773 [inline]
alloc_pages_bulk_noprof+0x6f9/0x1390 mm/page_alloc.c:4693
alloc_pages_bulk_node_noprof include/linux/gfp.h:235 [inline]
__page_pool_alloc_pages_slow+0x18c/0x770 net/core/page_pool.c:542
page_pool_alloc_netmems net/core/page_pool.c:593 [inline]
page_pool_alloc_netmems+0xc4/0x160 net/core/page_pool.c:580
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+0x776/0xf10 net/core/skbuff.c:893
skb_cow_data_for_xdp+0x88/0xb0 net/core/skbuff.c:927
netif_skb_check_for_xdp net/core/dev.c:5262 [inline]
netif_receive_generic_xdp net/core/dev.c:5301 [inline]
do_xdp_generic+0x3f1/0xe70 net/core/dev.c:5369
__netif_receive_skb_core.constprop.0+0x12da/0x4330 net/core/dev.c:5719
__netif_receive_skb_one_core+0xb1/0x1e0 net/core/dev.c:5897
__netif_receive_skb+0x1d/0x160 net/core/dev.c:6012
netif_receive_skb_internal net/core/dev.c:6098 [inline]
netif_receive_skb+0x13f/0x7b0 net/core/dev.c:6157
tun_rx_batched.isra.0+0x3eb/0x730 drivers/net/tun.c:1574
tun_get_user+0x2a22/0x3e50 drivers/net/tun.c:2007
tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:2053
page last free pid 1470 tgid 1470 stack trace:
reset_page_owner include/linux/page_owner.h:25 [inline]
free_pages_prepare mm/page_alloc.c:1127 [inline]
free_frozen_pages+0x6db/0xfb0 mm/page_alloc.c:2660
pagetable_free include/linux/mm.h:2917 [inline]
pagetable_dtor_free include/linux/mm.h:3015 [inline]
__tlb_remove_table include/asm-generic/tlb.h:216 [inline]
__tlb_remove_table_free mm/mmu_gather.c:227 [inline]
tlb_remove_table_rcu+0x116/0x1a0 mm/mmu_gather.c:282
rcu_do_batch kernel/rcu/tree.c:2546 [inline]
rcu_core+0x79d/0x14d0 kernel/rcu/tree.c:2802
handle_softirqs+0x213/0x8f0 kernel/softirq.c:561
__do_softirq kernel/softirq.c:595 [inline]
invoke_softirq kernel/softirq.c:435 [inline]
__irq_exit_rcu+0x109/0x170 kernel/softirq.c:662
irq_exit_rcu+0x9/0x30 kernel/softirq.c:678
instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1049 [inline]
sysvec_apic_timer_interrupt+0xa4/0xc0 arch/x86/kernel/apic/apic.c:1049
asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702
Modules linked in:
CPU: 2 UID: 0 PID: 8043 Comm: syz.3.791 Tainted: G B 6.14.0-rc4-syzkaller-00052-gac9c34d1e45a #0
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+0xb3/0x1f0 mm/page_alloc.c:501
free_page_is_bad_report mm/page_alloc.c:913 [inline]
free_page_is_bad mm/page_alloc.c:923 [inline]
free_pages_prepare mm/page_alloc.c:1119 [inline]
free_frozen_pages+0x701/0xfb0 mm/page_alloc.c:2660
page_frag_free+0x255/0x2a0 mm/page_frag_cache.c:169
__xdp_return+0x319/0xa70 net/core/xdp.c:447
bpf_xdp_shrink_data net/core/filter.c:4155 [inline]
bpf_xdp_frags_shrink_tail net/core/filter.c:4175 [inline]
____bpf_xdp_adjust_tail net/core/filter.c:4200 [inline]
bpf_xdp_adjust_tail+0x9de/0xf70 net/core/filter.c:4193
bpf_prog_f476d5219b92964a+0x1e/0x20
__bpf_prog_run include/linux/filter.h:692 [inline]
bpf_prog_run_xdp include/net/xdp.h:654 [inline]
bpf_prog_run_generic_xdp+0xe33/0x1500 net/core/dev.c:5194
netif_receive_generic_xdp net/core/dev.c:5307 [inline]
do_xdp_generic+0x70a/0xe70 net/core/dev.c:5369
__netif_receive_skb_core.constprop.0+0x12da/0x4330 net/core/dev.c:5719
__netif_receive_skb_one_core+0xb1/0x1e0 net/core/dev.c:5897
__netif_receive_skb+0x1d/0x160 net/core/dev.c:6012
netif_receive_skb_internal net/core/dev.c:6098 [inline]
netif_receive_skb+0x13f/0x7b0 net/core/dev.c:6157
tun_rx_batched.isra.0+0x3eb/0x730 drivers/net/tun.c:1574
tun_get_user+0x2a22/0x3e50 drivers/net/tun.c:2007
tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:2053
new_sync_write fs/read_write.c:586 [inline]
vfs_write+0x5ae/0x1150 fs/read_write.c:679
ksys_write+0x12b/0x250 fs/read_write.c:731
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f46c3f8bc1f
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:00007f46c4dc2000 EFLAGS: 00000293 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f46c41a5fa0 RCX: 00007f46c3f8bc1f
RDX: 0000000000011dc0 RSI: 0000400000000440 RDI: 00000000000000c8
RBP: 00007f46c400e2a0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000011dc0 R11: 0000000000000293 R12: 0000000000000000
R13: 0000000000000000 R14: 00007f46c41a5fa0 R15: 00007ffeaccebd98
BUG: Bad page state in process syz.3.791 pfn:27725
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff888027725e88 pfn:0x27725
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000000000 dead000000000040 ffff88802045a000 0000000000000000
raw: ffff888027725e88 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 8043, tgid 8042 (syz.3.791), ts 94194144376, free_ts 94080585646
set_page_owner include/linux/page_owner.h:32 [inline]
post_alloc_hook+0x181/0x1b0 mm/page_alloc.c:1551
prep_new_page mm/page_alloc.c:1559 [inline]
get_page_from_freelist+0xfce/0x2f80 mm/page_alloc.c:3477
__alloc_frozen_pages_noprof+0x221/0x2470 mm/page_alloc.c:4739
__alloc_pages_noprof mm/page_alloc.c:4773 [inline]
alloc_pages_bulk_noprof+0x6f9/0x1390 mm/page_alloc.c:4693
alloc_pages_bulk_node_noprof include/linux/gfp.h:235 [inline]
__page_pool_alloc_pages_slow+0x18c/0x770 net/core/page_pool.c:542
page_pool_alloc_netmems net/core/page_pool.c:593 [inline]
page_pool_alloc_netmems+0xc4/0x160 net/core/page_pool.c:580
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+0x776/0xf10 net/core/skbuff.c:893
skb_cow_data_for_xdp+0x88/0xb0 net/core/skbuff.c:927
netif_skb_check_for_xdp net/core/dev.c:5262 [inline]
netif_receive_generic_xdp net/core/dev.c:5301 [inline]
do_xdp_generic+0x3f1/0xe70 net/core/dev.c:5369
__netif_receive_skb_core.constprop.0+0x12da/0x4330 net/core/dev.c:5719
__netif_receive_skb_one_core+0xb1/0x1e0 net/core/dev.c:5897
__netif_receive_skb+0x1d/0x160 net/core/dev.c:6012
netif_receive_skb_internal net/core/dev.c:6098 [inline]
netif_receive_skb+0x13f/0x7b0 net/core/dev.c:6157
tun_rx_batched.isra.0+0x3eb/0x730 drivers/net/tun.c:1574
tun_get_user+0x2a22/0x3e50 drivers/net/tun.c:2007
tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:2053
page last free pid 1470 tgid 1470 stack trace:
reset_page_owner include/linux/page_owner.h:25 [inline]
free_pages_prepare mm/page_alloc.c:1127 [inline]
free_frozen_pages+0x6db/0xfb0 mm/page_alloc.c:2660
pagetable_free include/linux/mm.h:2917 [inline]
pagetable_dtor_free include/linux/mm.h:3015 [inline]
__tlb_remove_table include/asm-generic/tlb.h:216 [inline]
__tlb_remove_table_free mm/mmu_gather.c:227 [inline]
tlb_remove_table_rcu+0x116/0x1a0 mm/mmu_gather.c:282
rcu_do_batch kernel/rcu/tree.c:2546 [inline]
rcu_core+0x79d/0x14d0 kernel/rcu/tree.c:2802
handle_softirqs+0x213/0x8f0 kernel/softirq.c:561
__do_softirq kernel/softirq.c:595 [inline]
invoke_softirq kernel/softirq.c:435 [inline]
__irq_exit_rcu+0x109/0x170 kernel/softirq.c:662
irq_exit_rcu+0x9/0x30 kernel/softirq.c:678
instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1049 [inline]
sysvec_apic_timer_interrupt+0xa4/0xc0 arch/x86/kernel/apic/apic.c:1049
asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702
Modules linked in:
CPU: 2 UID: 0 PID: 8043 Comm: syz.3.791 Tainted: G B 6.14.0-rc4-syzkaller-00052-gac9c34d1e45a #0
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+0xb3/0x1f0 mm/page_alloc.c:501
free_page_is_bad_report mm/page_alloc.c:913 [inline]
free_page_is_bad mm/page_alloc.c:923 [inline]
free_pages_prepare mm/page_alloc.c:1119 [inline]
free_frozen_pages+0x701/0xfb0 mm/page_alloc.c:2660
page_frag_free+0x255/0x2a0 mm/page_frag_cache.c:169
__xdp_return+0x319/0xa70 net/core/xdp.c:447
bpf_xdp_shrink_data net/core/filter.c:4155 [inline]
bpf_xdp_frags_shrink_tail net/core/filter.c:4175 [inline]
____bpf_xdp_adjust_tail net/core/filter.c:4200 [inline]
bpf_xdp_adjust_tail+0x9de/0xf70 net/core/filter.c:4193
bpf_prog_f476d5219b92964a+0x1e/0x20
__bpf_prog_run include/linux/filter.h:692 [inline]
bpf_prog_run_xdp include/net/xdp.h:654 [inline]
bpf_prog_run_generic_xdp+0xe33/0x1500 net/core/dev.c:5194
netif_receive_generic_xdp net/core/dev.c:5307 [inline]
do_xdp_generic+0x70a/0xe70 net/core/dev.c:5369
__netif_receive_skb_core.constprop.0+0x12da/0x4330 net/core/dev.c:5719
__netif_receive_skb_one_core+0xb1/0x1e0 net/core/dev.c:5897
__netif_receive_skb+0x1d/0x160 net/core/dev.c:6012
netif_receive_skb_internal net/core/dev.c:6098 [inline]
netif_receive_skb+0x13f/0x7b0 net/core/dev.c:6157
tun_rx_batched.isra.0+0x3eb/0x730 drivers/net/tun.c:1574
tun_get_user+0x2a22/0x3e50 drivers/net/tun.c:2007
tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:2053
new_sync_write fs/read_write.c:586 [inline]
vfs_write+0x5ae/0x1150 fs/read_write.c:679
ksys_write+0x12b/0x250 fs/read_write.c:731
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f46c3f8bc1f
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:00007f46c4dc2000 EFLAGS: 00000293 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f46c41a5fa0 RCX: 00007f46c3f8bc1f
RDX: 0000000000011dc0 RSI: 0000400000000440 RDI: 00000000000000c8
RBP: 00007f46c400e2a0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000011dc0 R11: 0000000000000293 R12: 0000000000000000
R13: 0000000000000000 R14: 00007f46c41a5fa0 R15: 00007ffeaccebd98
BUG: Bad page state in process syz.3.791 pfn:2724c
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff888000000000 pfn:0x2724c
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000000000 dead000000000040 ffff88802045a000 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 8043, tgid 8042 (syz.3.791), ts 94194140240, free_ts 94080593499
set_page_owner include/linux/page_owner.h:32 [inline]
post_alloc_hook+0x181/0x1b0 mm/page_alloc.c:1551
prep_new_page mm/page_alloc.c:1559 [inline]
get_page_from_freelist+0xfce/0x2f80 mm/page_alloc.c:3477
__alloc_frozen_pages_noprof+0x221/0x2470 mm/page_alloc.c:4739
__alloc_pages_noprof mm/page_alloc.c:4773 [inline]
alloc_pages_bulk_noprof+0x6f9/0x1390 mm/page_alloc.c:4693
alloc_pages_bulk_node_noprof include/linux/gfp.h:235 [inline]
__page_pool_alloc_pages_slow+0x18c/0x770 net/core/page_pool.c:542
page_pool_alloc_netmems net/core/page_pool.c:593 [inline]
page_pool_alloc_netmems+0xc4/0x160 net/core/page_pool.c:580
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+0x776/0xf10 net/core/skbuff.c:893
skb_cow_data_for_xdp+0x88/0xb0 net/core/skbuff.c:927
netif_skb_check_for_xdp net/core/dev.c:5262 [inline]
netif_receive_generic_xdp net/core/dev.c:5301 [inline]
do_xdp_generic+0x3f1/0xe70 net/core/dev.c:5369
__netif_receive_skb_core.constprop.0+0x12da/0x4330 net/core/dev.c:5719
__netif_receive_skb_one_core+0xb1/0x1e0 net/core/dev.c:5897
__netif_receive_skb+0x1d/0x160 net/core/dev.c:6012
netif_receive_skb_internal net/core/dev.c:6098 [inline]
netif_receive_skb+0x13f/0x7b0 net/core/dev.c:6157
tun_rx_batched.isra.0+0x3eb/0x730 drivers/net/tun.c:1574
tun_get_user+0x2a22/0x3e50 drivers/net/tun.c:2007
tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:2053
page last free pid 1470 tgid 1470 stack trace:
reset_page_owner include/linux/page_owner.h:25 [inline]
free_pages_prepare mm/page_alloc.c:1127 [inline]
free_frozen_pages+0x6db/0xfb0 mm/page_alloc.c:2660
pagetable_free include/linux/mm.h:2917 [inline]
pagetable_dtor_free include/linux/mm.h:3015 [inline]
__tlb_remove_table include/asm-generic/tlb.h:216 [inline]
__tlb_remove_table_free mm/mmu_gather.c:227 [inline]
tlb_remove_table_rcu+0x116/0x1a0 mm/mmu_gather.c:282
rcu_do_batch kernel/rcu/tree.c:2546 [inline]
rcu_core+0x79d/0x14d0 kernel/rcu/tree.c:2802
handle_softirqs+0x213/0x8f0 kernel/softirq.c:561
__do_softirq kernel/softirq.c:595 [inline]
invoke_softirq kernel/softirq.c:435 [inline]
__irq_exit_rcu+0x109/0x170 kernel/softirq.c:662
irq_exit_rcu+0x9/0x30 kernel/softirq.c:678
instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1049 [inline]
sysvec_apic_timer_interrupt+0xa4/0xc0 arch/x86/kernel/apic/apic.c:1049
asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702
Modules linked in:
CPU: 2 UID: 0 PID: 8043 Comm: syz.3.791 Tainted: G B 6.14.0-rc4-syzkaller-00052-gac9c34d1e45a #0
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+0xb3/0x1f0 mm/page_alloc.c:501
free_page_is_bad_report mm/page_alloc.c:913 [inline]
free_page_is_bad mm/page_alloc.c:923 [inline]
free_pages_prepare mm/page_alloc.c:1119 [inline]
free_frozen_pages+0x701/0xfb0 mm/page_alloc.c:2660
page_frag_free+0x255/0x2a0 mm/page_frag_cache.c:169
__xdp_return+0x319/0xa70 net/core/xdp.c:447
bpf_xdp_shrink_data net/core/filter.c:4155 [inline]
bpf_xdp_frags_shrink_tail net/core/filter.c:4175 [inline]
____bpf_xdp_adjust_tail net/core/filter.c:4200 [inline]
bpf_xdp_adjust_tail+0x9de/0xf70 net/core/filter.c:4193
bpf_prog_f476d5219b92964a+0x1e/0x20
__bpf_prog_run include/linux/filter.h:692 [inline]
bpf_prog_run_xdp include/net/xdp.h:654 [inline]
bpf_prog_run_generic_xdp+0xe33/0x1500 net/core/dev.c:5194
netif_receive_generic_xdp net/core/dev.c:5307 [inline]
do_xdp_generic+0x70a/0xe70 net/core/dev.c:5369
__netif_receive_skb_core.constprop.0+0x12da/0x4330 net/core/dev.c:5719
__netif_receive_skb_one_core+0xb1/0x1e0 net/core/dev.c:5897
__netif_receive_skb+0x1d/0x160 net/core/dev.c:6012
netif_receive_skb_internal net/core/dev.c:6098 [inline]
netif_receive_skb+0x13f/0x7b0 net/core/dev.c:6157
tun_rx_batched.isra.0+0x3eb/0x730 drivers/net/tun.c:1574
tun_get_user+0x2a22/0x3e50 drivers/net/tun.c:2007
tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:2053
new_sync_write fs/read_write.c:586 [inline]
vfs_write+0x5ae/0x1150 fs/read_write.c:679
ksys_write+0x12b/0x250 fs/read_write.c:731
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f46c3f8bc1f
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:00007f46c4dc2000 EFLAGS: 00000293 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f46c41a5fa0 RCX: 00007f46c3f8bc1f
RDX: 0000000000011dc0 RSI: 0000400000000440 RDI: 00000000000000c8
RBP: 00007f46c400e2a0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000011dc0 R11: 0000000000000293 R12: 0000000000000000
R13: 0000000000000000 R14: 00007f46c41a5fa0 R15: 00007ffeaccebd98
BUG: Bad page state in process syz.3.791 pfn:4f28e
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff888000000000 pfn:0x4f28e
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000000000 dead000000000040 ffff88802045a000 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 8043, tgid 8042 (syz.3.791), ts 94194135695, free_ts 94080599261
set_page_owner include/linux/page_owner.h:32 [inline]
post_alloc_hook+0x181/0x1b0 mm/page_alloc.c:1551
prep_new_page mm/page_alloc.c:1559 [inline]
get_page_from_freelist+0xfce/0x2f80 mm/page_alloc.c:3477
__alloc_frozen_pages_noprof+0x221/0x2470 mm/page_alloc.c:4739
__alloc_pages_noprof mm/page_alloc.c:4773 [inline]
alloc_pages_bulk_noprof+0x6f9/0x1390 mm/page_alloc.c:4693
alloc_pages_bulk_node_noprof include/linux/gfp.h:235 [inline]
__page_pool_alloc_pages_slow+0x18c/0x770 net/core/page_pool.c:542
page_pool_alloc_netmems net/core/page_pool.c:593 [inline]
page_pool_alloc_netmems+0xc4/0x160 net/core/page_pool.c:580
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+0x776/0xf10 net/core/skbuff.c:893
skb_cow_data_for_xdp+0x88/0xb0 net/core/skbuff.c:927
netif_skb_check_for_xdp net/core/dev.c:5262 [inline]
netif_receive_generic_xdp net/core/dev.c:5301 [inline]
do_xdp_generic+0x3f1/0xe70 net/core/dev.c:5369
__netif_receive_skb_core.constprop.0+0x12da/0x4330 net/core/dev.c:5719
__netif_receive_skb_one_core+0xb1/0x1e0 net/core/dev.c:5897
__netif_receive_skb+0x1d/0x160 net/core/dev.c:6012
netif_receive_skb_internal net/core/dev.c:6098 [inline]
netif_receive_skb+0x13f/0x7b0 net/core/dev.c:6157
tun_rx_batched.isra.0+0x3eb/0x730 drivers/net/tun.c:1574
tun_get_user+0x2a22/0x3e50 drivers/net/tun.c:2007
tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:2053
page last free pid 1470 tgid 1470 stack trace:
reset_page_owner include/linux/page_owner.h:25 [inline]
free_pages_prepare mm/page_alloc.c:1127 [inline]
free_frozen_pages+0x6db/0xfb0 mm/page_alloc.c:2660
pagetable_free include/linux/mm.h:2917 [inline]
pagetable_dtor_free include/linux/mm.h:3015 [inline]
__tlb_remove_table include/asm-generic/tlb.h:216 [inline]
__tlb_remove_table_free mm/mmu_gather.c:227 [inline]
tlb_remove_table_rcu+0x116/0x1a0 mm/mmu_gather.c:282
rcu_do_batch kernel/rcu/tree.c:2546 [inline]
rcu_core+0x79d/0x14d0 kernel/rcu/tree.c:2802
handle_softirqs+0x213/0x8f0 kernel/softirq.c:561
__do_softirq kernel/softirq.c:595 [inline]
invoke_softirq kernel/softirq.c:435 [inline]
__irq_exit_rcu+0x109/0x170 kernel/softirq.c:662
irq_exit_rcu+0x9/0x30 kernel/softirq.c:678
instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1049 [inline]
sysvec_apic_timer_interrupt+0xa4/0xc0 arch/x86/kernel/apic/apic.c:1049
asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702
Modules linked in:
CPU: 2 UID: 0 PID: 8043 Comm: syz.3.791 Tainted: G B 6.14.0-rc4-syzkaller-00052-gac9c34d1e45a #0
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+0xb3/0x1f0 mm/page_alloc.c:501
free_page_is_bad_report mm/page_alloc.c:913 [inline]
free_page_is_bad mm/page_alloc.c:923 [inline]
free_pages_prepare mm/page_alloc.c:1119 [inline]
free_frozen_pages+0x701/0xfb0 mm/page_alloc.c:2660
page_frag_free+0x255/0x2a0 mm/page_frag_cache.c:169
__xdp_return+0x319/0xa70 net/core/xdp.c:447
bpf_xdp_shrink_data net/core/filter.c:4155 [inline]
bpf_xdp_frags_shrink_tail net/core/filter.c:4175 [inline]
____bpf_xdp_adjust_tail net/core/filter.c:4200 [inline]
bpf_xdp_adjust_tail+0x9de/0xf70 net/core/filter.c:4193
bpf_prog_f476d5219b92964a+0x1e/0x20
__bpf_prog_run include/linux/filter.h:692 [inline]
bpf_prog_run_xdp include/net/xdp.h:654 [inline]
bpf_prog_run_generic_xdp+0xe33/0x1500 net/core/dev.c:5194
netif_receive_generic_xdp net/core/dev.c:5307 [inline]
do_xdp_generic+0x70a/0xe70 net/core/dev.c:5369
__netif_receive_skb_core.constprop.0+0x12da/0x4330 net/core/dev.c:5719
__netif_receive_skb_one_core+0xb1/0x1e0 net/core/dev.c:5897
__netif_receive_skb+0x1d/0x160 net/core/dev.c:6012
netif_receive_skb_internal net/core/dev.c:6098 [inline]
netif_receive_skb+0x13f/0x7b0 net/core/dev.c:6157
tun_rx_batched.isra.0+0x3eb/0x730 drivers/net/tun.c:1574
tun_get_user+0x2a22/0x3e50 drivers/net/tun.c:2007
tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:2053
new_sync_write fs/read_write.c:586 [inline]
vfs_write+0x5ae/0x1150 fs/read_write.c:679
ksys_write+0x12b/0x250 fs/read_write.c:731
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f46c3f8bc1f
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:00007f46c4dc2000 EFLAGS: 00000293 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f46c41a5fa0 RCX: 00007f46c3f8bc1f
RDX: 0000000000011dc0 RSI: 0000400000000440 RDI: 00000000000000c8
RBP: 00007f46c400e2a0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000011dc0 R11: 0000000000000293 R12: 0000000000000000
R13: 0000000000000000 R14: 00007f46c41a5fa0 R15: 00007ffeaccebd98
BUG: Bad page state in process syz.3.791 pfn:305e7
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x2 pfn:0x305e7
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000000000 dead000000000040 ffff88802045a000 0000000000000000
raw: 0000000000000002 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 8043, tgid 8042 (syz.3.791), ts 94194131188, free_ts 94080607009
set_page_owner include/linux/page_owner.h:32 [inline]
post_alloc_hook+0x181/0x1b0 mm/page_alloc.c:1551
prep_new_page mm/page_alloc.c:1559 [inline]
get_page_from_freelist+0xfce/0x2f80 mm/page_alloc.c:3477
__alloc_frozen_pages_noprof+0x221/0x2470 mm/page_alloc.c:4739
__alloc_pages_noprof mm/page_alloc.c:4773 [inline]
alloc_pages_bulk_noprof+0x6f9/0x1390 mm/page_alloc.c:4693
alloc_pages_bulk_node_noprof include/linux/gfp.h:235 [inline]
__page_pool_alloc_pages_slow+0x18c/0x770 net/core/page_pool.c:542
page_pool_alloc_netmems net/core/page_pool.c:593 [inline]
page_pool_alloc_netmems+0xc4/0x160 net/core/page_pool.c:580
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+0x776/0xf10 net/core/skbuff.c:893
skb_cow_data_for_xdp+0x88/0xb0 net/core/skbuff.c:927
netif_skb_check_for_xdp net/core/dev.c:5262 [inline]
netif_receive_generic_xdp net/core/dev.c:5301 [inline]
do_xdp_generic+0x3f1/0xe70 net/core/dev.c:5369
__netif_receive_skb_core.constprop.0+0x12da/0x4330 net/core/dev.c:5719
__netif_receive_skb_one_core+0xb1/0x1e0 net/core/dev.c:5897
__netif_receive_skb+0x1d/0x160 net/core/dev.c:6012
netif_receive_skb_internal net/core/dev.c:6098 [inline]
netif_receive_skb+0x13f/0x7b0 net/core/dev.c:6157
tun_rx_batched.isra.0+0x3eb/0x730 drivers/net/tun.c:1574
tun_get_user+0x2a22/0x3e50 drivers/net/tun.c:2007
tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:2053
page last free pid 1470 tgid 1470 stack trace:
reset_page_owner include/linux/page_owner.h:25 [inline]
free_pages_prepare mm/page_alloc.c:1127 [inline]
free_frozen_pages+0x6db/0xfb0 mm/page_alloc.c:2660
pagetable_free include/linux/mm.h:2917 [inline]
pagetable_dtor_free include/linux/mm.h:3015 [inline]
__tlb_remove_table include/asm-generic/tlb.h:216 [inline]
__tlb_remove_table_free mm/mmu_gather.c:227 [inline]
tlb_remove_table_rcu+0x116/0x1a0 mm/mmu_gather.c:282
rcu_do_batch kernel/rcu/tree.c:2546 [inline]
rcu_core+0x79d/0x14d0 kernel/rcu/tree.c:2802
handle_softirqs+0x213/0x8f0 kernel/softirq.c:561
__do_softirq kernel/softirq.c:595 [inline]
invoke_softirq kernel/softirq.c:435 [inline]
__irq_exit_rcu+0x109/0x170 kernel/softirq.c:662
irq_exit_rcu+0x9/0x30 kernel/softirq.c:678
instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1049 [inline]
sysvec_apic_timer_interrupt+0xa4/0xc0 arch/x86/kernel/apic/apic.c:1049
asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702
Modules linked in:
CPU: 2 UID: 0 PID: 8043 Comm: syz.3.791 Tainted: G B 6.14.0-rc4-syzkaller-00052-gac9c34d1e45a #0
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+0xb3/0x1f0 mm/page_alloc.c:501
free_page_is_bad_report mm/page_alloc.c:913 [inline]
free_page_is_bad mm/page_alloc.c:923 [inline]
free_pages_prepare mm/page_alloc.c:1119 [inline]
free_frozen_pages+0x701/0xfb0 mm/page_alloc.c:2660
page_frag_free+0x255/0x2a0 mm/page_frag_cache.c:169
__xdp_return+0x319/0xa70 net/core/xdp.c:447
bpf_xdp_shrink_data net/core/filter.c:4155 [inline]
bpf_xdp_frags_shrink_tail net/core/filter.c:4175 [inline]
____bpf_xdp_adjust_tail net/core/filter.c:4200 [inline]
bpf_xdp_adjust_tail+0x9de/0xf70 net/core/filter.c:4193
bpf_prog_f476d5219b92964a+0x1e/0x20
__bpf_prog_run include/linux/filter.h:692 [inline]
bpf_prog_run_xdp include/net/xdp.h:654 [inline]
bpf_prog_run_generic_xdp+0xe33/0x1500 net/core/dev.c:5194
netif_receive_generic_xdp net/core/dev.c:5307 [inline]
do_xdp_generic+0x70a/0xe70 net/core/dev.c:5369
__netif_receive_skb_core.constprop.0+0x12da/0x4330 net/core/dev.c:5719
__netif_receive_skb_one_core+0xb1/0x1e0 net/core/dev.c:5897
__netif_receive_skb+0x1d/0x160 net/core/dev.c:6012
netif_receive_skb_internal net/core/dev.c:6098 [inline]
netif_receive_skb+0x13f/0x7b0 net/core/dev.c:6157
tun_rx_batched.isra.0+0x3eb/0x730 drivers/net/tun.c:1574
tun_get_user+0x2a22/0x3e50 drivers/net/tun.c:2007
tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:2053
new_sync_write fs/read_write.c:586 [inline]
vfs_write+0x5ae/0x1150 fs/read_write.c:679
ksys_write+0x12b/0x250 fs/read_write.c:731
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f46c3f8bc1f
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:00007f46c4dc2000 EFLAGS: 00000293 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f46c41a5fa0 RCX: 00007f46c3f8bc1f
RDX: 0000000000011dc0 RSI: 0000400000000440 RDI: 00000000000000c8
RBP: 00007f46c400e2a0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000011dc0 R11: 0000000000000293 R12: 0000000000000000
R13: 0000000000000000 R14: 00007f46c41a5fa0 R15: 00007ffeaccebd98
BUG: Bad page state in process syz.3.791 pfn:2d2dc
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xe3 pfn:0x2d2dc
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000000000 dead000000000040 ffff88802045a000 0000000000000000
raw: 00000000000000e3 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 8043, tgid 8042 (syz.3.791), ts 94194126959, free_ts 94165941186
set_page_owner include/linux/page_owner.h:32 [inline]
post_alloc_hook+0x181/0x1b0 mm/page_alloc.c:1551
prep_new_page mm/page_alloc.c:1559 [inline]
get_page_from_freelist+0xfce/0x2f80 mm/page_alloc.c:3477
__alloc_frozen_pages_noprof+0x221/0x2470 mm/page_alloc.c:4739
__alloc_pages_noprof mm/page_alloc.c:4773 [inline]
alloc_pages_bulk_noprof+0x6f9/0x1390 mm/page_alloc.c:4693
alloc_pages_bulk_node_noprof include/linux/gfp.h:235 [inline]
__page_pool_alloc_pages_slow+0x18c/0x770 net/core/page_pool.c:542
page_pool_alloc_netmems net/core/page_pool.c:593 [inline]
page_pool_alloc_netmems+0xc4/0x160 net/core/page_pool.c:580
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+0x776/0xf10 net/core/skbuff.c:893
skb_cow_data_for_xdp+0x88/0xb0 net/core/skbuff.c:927
netif_skb_check_for_xdp net/core/dev.c:5262 [inline]
netif_receive_generic_xdp net/core/dev.c:5301 [inline]
do_xdp_generic+0x3f1/0xe70 net/core/dev.c:5369
__netif_receive_skb_core.constprop.0+0x12da/0x4330 net/core/dev.c:5719
__netif_receive_skb_one_core+0xb1/0x1e0 net/core/dev.c:5897
__netif_receive_skb+0x1d/0x160 net/core/dev.c:6012
netif_receive_skb_internal net/core/dev.c:6098 [inline]
netif_receive_skb+0x13f/0x7b0 net/core/dev.c:6157
tun_rx_batched.isra.0+0x3eb/0x730 drivers/net/tun.c:1574
tun_get_user+0x2a22/0x3e50 drivers/net/tun.c:2007
tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:2053
page last free pid 8040 tgid 8038 stack trace:
reset_page_owner include/linux/page_owner.h:25 [inline]
free_pages_prepare mm/page_alloc.c:1127 [inline]
free_frozen_pages+0x6db/0xfb0 mm/page_alloc.c:2660
tlb_batch_list_free mm/mmu_gather.c:159 [inline]
tlb_finish_mmu+0x237/0x7b0 mm/mmu_gather.c:491
exit_mmap+0x40e/0xba0 mm/mmap.c:1297
__mmput+0x12a/0x410 kernel/fork.c:1356
mmput+0x62/0x70 kernel/fork.c:1378
exit_mm kernel/exit.c:570 [inline]
do_exit+0x9ba/0x2d70 kernel/exit.c:925
io_sq_thread+0x1051/0x1c30 io_uring/sqpoll.c:389
ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:148
ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244
Modules linked in:
CPU: 2 UID: 0 PID: 8043 Comm: syz.3.791 Tainted: G B 6.14.0-rc4-syzkaller-00052-gac9c34d1e45a #0
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+0xb3/0x1f0 mm/page_alloc.c:501
free_page_is_bad_report mm/page_alloc.c:913 [inline]
free_page_is_bad mm/page_alloc.c:923 [inline]
free_pages_prepare mm/page_alloc.c:1119 [inline]
free_frozen_pages+0x701/0xfb0 mm/page_alloc.c:2660
page_frag_free+0x255/0x2a0 mm/page_frag_cache.c:169
__xdp_return+0x319/0xa70 net/core/xdp.c:447
bpf_xdp_shrink_data net/core/filter.c:4155 [inline]
bpf_xdp_frags_shrink_tail net/core/filter.c:4175 [inline]
____bpf_xdp_adjust_tail net/core/filter.c:4200 [inline]
bpf_xdp_adjust_tail+0x9de/0xf70 net/core/filter.c:4193
bpf_prog_f476d5219b92964a+0x1e/0x20
__bpf_prog_run include/linux/filter.h:692 [inline]
bpf_prog_run_xdp include/net/xdp.h:654 [inline]
bpf_prog_run_generic_xdp+0xe33/0x1500 net/core/dev.c:5194
netif_receive_generic_xdp net/core/dev.c:5307 [inline]
do_xdp_generic+0x70a/0xe70 net/core/dev.c:5369
__netif_receive_skb_core.constprop.0+0x12da/0x4330 net/core/dev.c:5719
__netif_receive_skb_one_core+0xb1/0x1e0 net/core/dev.c:5897
__netif_receive_skb+0x1d/0x160 net/core/dev.c:6012
netif_receive_skb_internal net/core/dev.c:6098 [inline]
netif_receive_skb+0x13f/0x7b0 net/core/dev.c:6157
tun_rx_batched.isra.0+0x3eb/0x730 drivers/net/tun.c:1574
tun_get_user+0x2a22/0x3e50 drivers/net/tun.c:2007
tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:2053
new_sync_write fs/read_write.c:586 [inline]
vfs_write+0x5ae/0x1150 fs/read_write.c:679
ksys_write+0x12b/0x250 fs/read_write.c:731
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f46c3f8bc1f
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:00007f46c4dc2000 EFLAGS: 00000293 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f46c41a5fa0 RCX: 00007f46c3f8bc1f
RDX: 0000000000011dc0 RSI: 0000400000000440 RDI: 00000000000000c8
RBP: 00007f46c400e2a0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000011dc0 R11: 0000000000000293 R12: 0000000000000000
R13: 0000000000000000 R14: 00007f46c41a5fa0 R15: 00007ffeaccebd98
bond0: (slave syz_tun): Releasing backup interface