BUG: Bad page state in process syz.6.12285 pfn:2faf8
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff88802faf8000 pfn:0x2faf8
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000000000 dead000000000040 ffff8880232ac000 0000000000000000
raw: ffff88802faf8000 3ffffffffffffffe 00000000ffffffff 0000000000000000
page dumped because: page_pool leak
page_owner tracks the page as allocated
page last allocated via order 0, migratetype Unmovable, gfp_mask 0x102820(GFP_ATOMIC|__GFP_NOWARN|__GFP_HARDWALL), pid 23595, tgid 23594 (syz.4.7228), ts 420867969370, free_ts 420858224751
set_page_owner include/linux/page_owner.h:32 [inline]
post_alloc_hook+0x153/0x170 mm/page_alloc.c:1888
prep_new_page mm/page_alloc.c:1896 [inline]
get_page_from_freelist+0x111d/0x3140 mm/page_alloc.c:3961
__alloc_frozen_pages_noprof+0x27c/0x2ba0 mm/page_alloc.c:5249
__alloc_pages_noprof mm/page_alloc.c:5283 [inline]
alloc_pages_bulk_noprof+0x782/0x1490 mm/page_alloc.c:5203
alloc_pages_bulk_node_noprof include/linux/gfp.h:255 [inline]
__page_pool_alloc_netmems_slow+0x1c6/0xc10 net/core/page_pool.c:616
page_pool_alloc_netmems net/core/page_pool.c:667 [inline]
page_pool_alloc_netmems+0xc4/0x1a0 net/core/page_pool.c:654
page_pool_alloc_frag_netmem+0x21d/0xa00 net/core/page_pool.c:1076
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_alloc_va include/net/page_pool/helpers.h:198 [inline]
page_pool_dev_alloc_va include/net/page_pool/helpers.h:221 [inline]
skb_pp_cow_data+0x243/0xea0 net/core/skbuff.c:960
skb_cow_data_for_xdp+0x88/0xb0 net/core/skbuff.c:1027
netif_skb_check_for_xdp net/core/dev.c:5497 [inline]
netif_receive_generic_xdp net/core/dev.c:5538 [inline]
do_xdp_generic+0x56b/0x12c0 net/core/dev.c:5606
__netif_receive_skb_core.constprop.0+0x836/0x3550 net/core/dev.c:5959
__netif_receive_skb_one_core+0xb0/0x1e0 net/core/dev.c:6147
__netif_receive_skb+0x1f/0x120 net/core/dev.c:6262
netif_receive_skb_internal net/core/dev.c:6348 [inline]
netif_receive_skb+0x139/0x820 net/core/dev.c:6407
tun_rx_batched.isra.0+0x3f6/0x750 drivers/net/tun.c:1509
tun_get_user+0x1e2e/0x3e10 drivers/net/tun.c:1953
page last free pid 23595 tgid 23594 stack trace:
reset_page_owner include/linux/page_owner.h:25 [inline]
__free_pages_prepare mm/page_alloc.c:1432 [inline]
__free_frozen_pages+0x7ca/0x10a0 mm/page_alloc.c:2977
vfree.part.0+0x12b/0x9d0 mm/vmalloc.c:3479
vfree+0x55/0x80 mm/vmalloc.c:3456
bpf_check+0xe83/0xcdd0 kernel/bpf/verifier.c:26123
bpf_prog_load+0x1c86/0x2c20 kernel/bpf/syscall.c:3089
__sys_bpf+0x223a/0x4b90 kernel/bpf/syscall.c:6229
__do_sys_bpf kernel/bpf/syscall.c:6342 [inline]
__se_sys_bpf kernel/bpf/syscall.c:6340 [inline]
__x64_sys_bpf+0x7b/0xc0 kernel/bpf/syscall.c:6340
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0x106/0xf80 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
Modules linked in:
CPU: 3 UID: 0 PID: 7046 Comm: syz.6.12285 Tainted: G L syzkaller #0 PREEMPT(full)
Tainted: [L]=SOFTLOCKUP
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
Call Trace:
__dump_stack lib/dump_stack.c:94 [inline]
dump_stack_lvl+0x100/0x190 lib/dump_stack.c:120
bad_page.cold+0xbe/0xdf mm/page_alloc.c:676
free_page_is_bad mm/page_alloc.c:1120 [inline]
free_page_is_bad mm/page_alloc.c:1114 [inline]
__free_pages_prepare mm/page_alloc.c:1424 [inline]
__free_frozen_pages+0x7fe/0x10a0 mm/page_alloc.c:2977
page_frag_free+0x284/0x2e0 mm/page_frag_cache.c:169
__xdp_return+0x3cd/0xb90 net/core/xdp.c:448
bpf_xdp_shrink_data net/core/filter.c:4204 [inline]
bpf_xdp_frags_shrink_tail net/core/filter.c:4228 [inline]
____bpf_xdp_adjust_tail net/core/filter.c:4250 [inline]
bpf_xdp_adjust_tail+0x854/0xb60 net/core/filter.c:4243
bpf_prog_5d7dc57dfd7f985a+0x1e/0x24
__bpf_prog_run include/linux/filter.h:723 [inline]
bpf_prog_run_xdp include/net/xdp.h:696 [inline]
bpf_prog_run_generic_xdp+0x614/0x1610 net/core/dev.c:5428
netif_receive_generic_xdp net/core/dev.c:5544 [inline]
do_xdp_generic+0x92e/0x12c0 net/core/dev.c:5606
tun_get_user+0x1bd2/0x3e10 drivers/net/tun.c:1872
tun_chr_write_iter+0xdc/0x200 drivers/net/tun.c:1999
new_sync_write fs/read_write.c:595 [inline]
vfs_write+0x6ac/0x1070 fs/read_write.c:688
ksys_write+0x12a/0x250 fs/read_write.c:740
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0x106/0xf80 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fd7e855cece
Code: 08 0f 85 a5 a8 ff ff 49 89 fb 48 89 f0 48 89 d7 48 89 ce 4c 89 c2 4d 89 ca 4c 8b 44 24 08 4c 8b 4c 24 10 4c 89 5c 24 08 0f 05 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 80 00 00 00 00 48 83 ec 08
RSP: 002b:00007fd7e93aefb8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007fd7e93af6c0 RCX: 00007fd7e855cece
RDX: 000000000000fdef RSI: 0000200000000400 RDI: 00000000000000c8
RBP: 00007fd7e8632b39 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fd7e8816038 R14: 00007fd7e8815fa0 R15: 00007ffe5c7c5038
BUG: Bad page state in process syz.6.12285 pfn:5a4fc
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x4b91 pfn:0x5a4fc
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000000000 dead000000000040 ffff8880232ac000 0000000000000000
raw: 0000000000004b91 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 0x102820(GFP_ATOMIC|__GFP_NOWARN|__GFP_HARDWALL), pid 7046, tgid 7044 (syz.6.12285), ts 717122280482, free_ts 717092950565
set_page_owner include/linux/page_owner.h:32 [inline]
post_alloc_hook+0x153/0x170 mm/page_alloc.c:1888
prep_new_page mm/page_alloc.c:1896 [inline]
get_page_from_freelist+0x111d/0x3140 mm/page_alloc.c:3961
__alloc_frozen_pages_noprof+0x27c/0x2ba0 mm/page_alloc.c:5249
__alloc_pages_noprof mm/page_alloc.c:5283 [inline]
alloc_pages_bulk_noprof+0x782/0x1490 mm/page_alloc.c:5203
alloc_pages_bulk_node_noprof include/linux/gfp.h:255 [inline]
__page_pool_alloc_netmems_slow+0x1c6/0xc10 net/core/page_pool.c:616
page_pool_alloc_netmems net/core/page_pool.c:667 [inline]
page_pool_alloc_netmems+0xc4/0x1a0 net/core/page_pool.c:654
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+0x7f9/0xea0 net/core/skbuff.c:993
skb_cow_data_for_xdp+0x88/0xb0 net/core/skbuff.c:1027
netif_skb_check_for_xdp net/core/dev.c:5497 [inline]
netif_receive_generic_xdp net/core/dev.c:5538 [inline]
do_xdp_generic+0x56b/0x12c0 net/core/dev.c:5606
tun_get_user+0x1bd2/0x3e10 drivers/net/tun.c:1872
tun_chr_write_iter+0xdc/0x200 drivers/net/tun.c:1999
new_sync_write fs/read_write.c:595 [inline]
vfs_write+0x6ac/0x1070 fs/read_write.c:688
ksys_write+0x12a/0x250 fs/read_write.c:740
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0x106/0xf80 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
page last free pid 33 tgid 33 stack trace:
reset_page_owner include/linux/page_owner.h:25 [inline]
__free_pages_prepare mm/page_alloc.c:1432 [inline]
__free_frozen_pages+0x7ca/0x10a0 mm/page_alloc.c:2977
__pagetable_free include/linux/mm.h:3204 [inline]
pagetable_free include/linux/mm.h:3228 [inline]
pagetable_dtor_free include/linux/mm.h:3332 [inline]
__tlb_remove_table include/asm-generic/tlb.h:221 [inline]
__tlb_remove_table_free mm/mmu_gather.c:228 [inline]
tlb_remove_table_rcu+0x2b2/0x390 mm/mmu_gather.c:291
rcu_do_batch kernel/rcu/tree.c:2617 [inline]
rcu_core+0x5a2/0x10d0 kernel/rcu/tree.c:2869
handle_softirqs+0x1eb/0x9e0 kernel/softirq.c:622
run_ksoftirqd kernel/softirq.c:1063 [inline]
run_ksoftirqd+0x38/0x60 kernel/softirq.c:1055
smpboot_thread_fn+0x3d3/0xaa0 kernel/smpboot.c:160
kthread+0x370/0x450 kernel/kthread.c:467
ret_from_fork+0x754/0xd80 arch/x86/kernel/process.c:158
ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245
Modules linked in:
CPU: 3 UID: 0 PID: 7046 Comm: syz.6.12285 Tainted: G B L syzkaller #0 PREEMPT(full)
Tainted: [B]=BAD_PAGE, [L]=SOFTLOCKUP
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
Call Trace:
__dump_stack lib/dump_stack.c:94 [inline]
dump_stack_lvl+0x100/0x190 lib/dump_stack.c:120
bad_page.cold+0xbe/0xdf mm/page_alloc.c:676
free_page_is_bad mm/page_alloc.c:1120 [inline]
free_page_is_bad mm/page_alloc.c:1114 [inline]
__free_pages_prepare mm/page_alloc.c:1424 [inline]
__free_frozen_pages+0x7fe/0x10a0 mm/page_alloc.c:2977
page_frag_free+0x284/0x2e0 mm/page_frag_cache.c:169
__xdp_return+0x3cd/0xb90 net/core/xdp.c:448
bpf_xdp_shrink_data net/core/filter.c:4204 [inline]
bpf_xdp_frags_shrink_tail net/core/filter.c:4228 [inline]
____bpf_xdp_adjust_tail net/core/filter.c:4250 [inline]
bpf_xdp_adjust_tail+0x854/0xb60 net/core/filter.c:4243
bpf_prog_5d7dc57dfd7f985a+0x1e/0x24
__bpf_prog_run include/linux/filter.h:723 [inline]
bpf_prog_run_xdp include/net/xdp.h:696 [inline]
bpf_prog_run_generic_xdp+0x614/0x1610 net/core/dev.c:5428
netif_receive_generic_xdp net/core/dev.c:5544 [inline]
do_xdp_generic+0x92e/0x12c0 net/core/dev.c:5606
tun_get_user+0x1bd2/0x3e10 drivers/net/tun.c:1872
tun_chr_write_iter+0xdc/0x200 drivers/net/tun.c:1999
new_sync_write fs/read_write.c:595 [inline]
vfs_write+0x6ac/0x1070 fs/read_write.c:688
ksys_write+0x12a/0x250 fs/read_write.c:740
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0x106/0xf80 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fd7e855cece
Code: 08 0f 85 a5 a8 ff ff 49 89 fb 48 89 f0 48 89 d7 48 89 ce 4c 89 c2 4d 89 ca 4c 8b 44 24 08 4c 8b 4c 24 10 4c 89 5c 24 08 0f 05 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 80 00 00 00 00 48 83 ec 08
RSP: 002b:00007fd7e93aefb8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007fd7e93af6c0 RCX: 00007fd7e855cece
RDX: 000000000000fdef RSI: 0000200000000400 RDI: 00000000000000c8
RBP: 00007fd7e8632b39 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fd7e8816038 R14: 00007fd7e8815fa0 R15: 00007ffe5c7c5038
BUG: Bad page state in process syz.6.12285 pfn:5a4fb
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x4b90 pfn:0x5a4fb
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000000000 dead000000000040 ffff8880232ac000 0000000000000000
raw: 0000000000004b90 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 0x102820(GFP_ATOMIC|__GFP_NOWARN|__GFP_HARDWALL), pid 7046, tgid 7044 (syz.6.12285), ts 717122274133, free_ts 717092962554
set_page_owner include/linux/page_owner.h:32 [inline]
post_alloc_hook+0x153/0x170 mm/page_alloc.c:1888
prep_new_page mm/page_alloc.c:1896 [inline]
get_page_from_freelist+0x111d/0x3140 mm/page_alloc.c:3961
__alloc_frozen_pages_noprof+0x27c/0x2ba0 mm/page_alloc.c:5249
__alloc_pages_noprof mm/page_alloc.c:5283 [inline]
alloc_pages_bulk_noprof+0x782/0x1490 mm/page_alloc.c:5203
alloc_pages_bulk_node_noprof include/linux/gfp.h:255 [inline]
__page_pool_alloc_netmems_slow+0x1c6/0xc10 net/core/page_pool.c:616
page_pool_alloc_netmems net/core/page_pool.c:667 [inline]
page_pool_alloc_netmems+0xc4/0x1a0 net/core/page_pool.c:654
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+0x7f9/0xea0 net/core/skbuff.c:993
skb_cow_data_for_xdp+0x88/0xb0 net/core/skbuff.c:1027
netif_skb_check_for_xdp net/core/dev.c:5497 [inline]
netif_receive_generic_xdp net/core/dev.c:5538 [inline]
do_xdp_generic+0x56b/0x12c0 net/core/dev.c:5606
tun_get_user+0x1bd2/0x3e10 drivers/net/tun.c:1872
tun_chr_write_iter+0xdc/0x200 drivers/net/tun.c:1999
new_sync_write fs/read_write.c:595 [inline]
vfs_write+0x6ac/0x1070 fs/read_write.c:688
ksys_write+0x12a/0x250 fs/read_write.c:740
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0x106/0xf80 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
page last free pid 33 tgid 33 stack trace:
reset_page_owner include/linux/page_owner.h:25 [inline]
__free_pages_prepare mm/page_alloc.c:1432 [inline]
__free_frozen_pages+0x7ca/0x10a0 mm/page_alloc.c:2977
__pagetable_free include/linux/mm.h:3204 [inline]
pagetable_free include/linux/mm.h:3228 [inline]
pagetable_dtor_free include/linux/mm.h:3332 [inline]
__tlb_remove_table include/asm-generic/tlb.h:221 [inline]
__tlb_remove_table_free mm/mmu_gather.c:228 [inline]
tlb_remove_table_rcu+0x2b2/0x390 mm/mmu_gather.c:291
rcu_do_batch kernel/rcu/tree.c:2617 [inline]
rcu_core+0x5a2/0x10d0 kernel/rcu/tree.c:2869
handle_softirqs+0x1eb/0x9e0 kernel/softirq.c:622
run_ksoftirqd kernel/softirq.c:1063 [inline]
run_ksoftirqd+0x38/0x60 kernel/softirq.c:1055
smpboot_thread_fn+0x3d3/0xaa0 kernel/smpboot.c:160
kthread+0x370/0x450 kernel/kthread.c:467
ret_from_fork+0x754/0xd80 arch/x86/kernel/process.c:158
ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245
Modules linked in:
CPU: 3 UID: 0 PID: 7046 Comm: syz.6.12285 Tainted: G B L syzkaller #0 PREEMPT(full)
Tainted: [B]=BAD_PAGE, [L]=SOFTLOCKUP
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
Call Trace:
__dump_stack lib/dump_stack.c:94 [inline]
dump_stack_lvl+0x100/0x190 lib/dump_stack.c:120
bad_page.cold+0xbe/0xdf mm/page_alloc.c:676
free_page_is_bad mm/page_alloc.c:1120 [inline]
free_page_is_bad mm/page_alloc.c:1114 [inline]
__free_pages_prepare mm/page_alloc.c:1424 [inline]
__free_frozen_pages+0x7fe/0x10a0 mm/page_alloc.c:2977
page_frag_free+0x284/0x2e0 mm/page_frag_cache.c:169
__xdp_return+0x3cd/0xb90 net/core/xdp.c:448
bpf_xdp_shrink_data net/core/filter.c:4204 [inline]
bpf_xdp_frags_shrink_tail net/core/filter.c:4228 [inline]
____bpf_xdp_adjust_tail net/core/filter.c:4250 [inline]
bpf_xdp_adjust_tail+0x854/0xb60 net/core/filter.c:4243
bpf_prog_5d7dc57dfd7f985a+0x1e/0x24
__bpf_prog_run include/linux/filter.h:723 [inline]
bpf_prog_run_xdp include/net/xdp.h:696 [inline]
bpf_prog_run_generic_xdp+0x614/0x1610 net/core/dev.c:5428
netif_receive_generic_xdp net/core/dev.c:5544 [inline]
do_xdp_generic+0x92e/0x12c0 net/core/dev.c:5606
tun_get_user+0x1bd2/0x3e10 drivers/net/tun.c:1872
tun_chr_write_iter+0xdc/0x200 drivers/net/tun.c:1999
new_sync_write fs/read_write.c:595 [inline]
vfs_write+0x6ac/0x1070 fs/read_write.c:688
ksys_write+0x12a/0x250 fs/read_write.c:740
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0x106/0xf80 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fd7e855cece
Code: 08 0f 85 a5 a8 ff ff 49 89 fb 48 89 f0 48 89 d7 48 89 ce 4c 89 c2 4d 89 ca 4c 8b 44 24 08 4c 8b 4c 24 10 4c 89 5c 24 08 0f 05 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 80 00 00 00 00 48 83 ec 08
RSP: 002b:00007fd7e93aefb8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007fd7e93af6c0 RCX: 00007fd7e855cece
RDX: 000000000000fdef RSI: 0000200000000400 RDI: 00000000000000c8
RBP: 00007fd7e8632b39 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fd7e8816038 R14: 00007fd7e8815fa0 R15: 00007ffe5c7c5038
BUG: Bad page state in process syz.6.12285 pfn:5a4fa
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x4b8f pfn:0x5a4fa
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000000000 dead000000000040 ffff8880232ac000 0000000000000000
raw: 0000000000004b8f 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 0x102820(GFP_ATOMIC|__GFP_NOWARN|__GFP_HARDWALL), pid 7046, tgid 7044 (syz.6.12285), ts 717122267396, free_ts 717092973624
set_page_owner include/linux/page_owner.h:32 [inline]
post_alloc_hook+0x153/0x170 mm/page_alloc.c:1888
prep_new_page mm/page_alloc.c:1896 [inline]
get_page_from_freelist+0x111d/0x3140 mm/page_alloc.c:3961
__alloc_frozen_pages_noprof+0x27c/0x2ba0 mm/page_alloc.c:5249
__alloc_pages_noprof mm/page_alloc.c:5283 [inline]
alloc_pages_bulk_noprof+0x782/0x1490 mm/page_alloc.c:5203
alloc_pages_bulk_node_noprof include/linux/gfp.h:255 [inline]
__page_pool_alloc_netmems_slow+0x1c6/0xc10 net/core/page_pool.c:616
page_pool_alloc_netmems net/core/page_pool.c:667 [inline]
page_pool_alloc_netmems+0xc4/0x1a0 net/core/page_pool.c:654
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+0x7f9/0xea0 net/core/skbuff.c:993
skb_cow_data_for_xdp+0x88/0xb0 net/core/skbuff.c:1027
netif_skb_check_for_xdp net/core/dev.c:5497 [inline]
netif_receive_generic_xdp net/core/dev.c:5538 [inline]
do_xdp_generic+0x56b/0x12c0 net/core/dev.c:5606
tun_get_user+0x1bd2/0x3e10 drivers/net/tun.c:1872
tun_chr_write_iter+0xdc/0x200 drivers/net/tun.c:1999
new_sync_write fs/read_write.c:595 [inline]
vfs_write+0x6ac/0x1070 fs/read_write.c:688
ksys_write+0x12a/0x250 fs/read_write.c:740
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0x106/0xf80 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
page last free pid 33 tgid 33 stack trace:
reset_page_owner include/linux/page_owner.h:25 [inline]
__free_pages_prepare mm/page_alloc.c:1432 [inline]
__free_frozen_pages+0x7ca/0x10a0 mm/page_alloc.c:2977
__pagetable_free include/linux/mm.h:3204 [inline]
pagetable_free include/linux/mm.h:3228 [inline]
pagetable_dtor_free include/linux/mm.h:3332 [inline]
__tlb_remove_table include/asm-generic/tlb.h:221 [inline]
__tlb_remove_table_free mm/mmu_gather.c:228 [inline]
tlb_remove_table_rcu+0x2b2/0x390 mm/mmu_gather.c:291
rcu_do_batch kernel/rcu/tree.c:2617 [inline]
rcu_core+0x5a2/0x10d0 kernel/rcu/tree.c:2869
handle_softirqs+0x1eb/0x9e0 kernel/softirq.c:622
run_ksoftirqd kernel/softirq.c:1063 [inline]
run_ksoftirqd+0x38/0x60 kernel/softirq.c:1055
smpboot_thread_fn+0x3d3/0xaa0 kernel/smpboot.c:160
kthread+0x370/0x450 kernel/kthread.c:467
ret_from_fork+0x754/0xd80 arch/x86/kernel/process.c:158
ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245
Modules linked in:
CPU: 3 UID: 0 PID: 7046 Comm: syz.6.12285 Tainted: G B L syzkaller #0 PREEMPT(full)
Tainted: [B]=BAD_PAGE, [L]=SOFTLOCKUP
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
Call Trace:
__dump_stack lib/dump_stack.c:94 [inline]
dump_stack_lvl+0x100/0x190 lib/dump_stack.c:120
bad_page.cold+0xbe/0xdf mm/page_alloc.c:676
free_page_is_bad mm/page_alloc.c:1120 [inline]
free_page_is_bad mm/page_alloc.c:1114 [inline]
__free_pages_prepare mm/page_alloc.c:1424 [inline]
__free_frozen_pages+0x7fe/0x10a0 mm/page_alloc.c:2977
page_frag_free+0x284/0x2e0 mm/page_frag_cache.c:169
__xdp_return+0x3cd/0xb90 net/core/xdp.c:448
bpf_xdp_shrink_data net/core/filter.c:4204 [inline]
bpf_xdp_frags_shrink_tail net/core/filter.c:4228 [inline]
____bpf_xdp_adjust_tail net/core/filter.c:4250 [inline]
bpf_xdp_adjust_tail+0x854/0xb60 net/core/filter.c:4243
bpf_prog_5d7dc57dfd7f985a+0x1e/0x24
__bpf_prog_run include/linux/filter.h:723 [inline]
bpf_prog_run_xdp include/net/xdp.h:696 [inline]
bpf_prog_run_generic_xdp+0x614/0x1610 net/core/dev.c:5428
netif_receive_generic_xdp net/core/dev.c:5544 [inline]
do_xdp_generic+0x92e/0x12c0 net/core/dev.c:5606
tun_get_user+0x1bd2/0x3e10 drivers/net/tun.c:1872
tun_chr_write_iter+0xdc/0x200 drivers/net/tun.c:1999
new_sync_write fs/read_write.c:595 [inline]
vfs_write+0x6ac/0x1070 fs/read_write.c:688
ksys_write+0x12a/0x250 fs/read_write.c:740
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0x106/0xf80 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fd7e855cece
Code: 08 0f 85 a5 a8 ff ff 49 89 fb 48 89 f0 48 89 d7 48 89 ce 4c 89 c2 4d 89 ca 4c 8b 44 24 08 4c 8b 4c 24 10 4c 89 5c 24 08 0f 05 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 80 00 00 00 00 48 83 ec 08
RSP: 002b:00007fd7e93aefb8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007fd7e93af6c0 RCX: 00007fd7e855cece
RDX: 000000000000fdef RSI: 0000200000000400 RDI: 00000000000000c8
RBP: 00007fd7e8632b39 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fd7e8816038 R14: 00007fd7e8815fa0 R15: 00007ffe5c7c5038
BUG: Bad page state in process syz.6.12285 pfn:5a4f9
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffffffffffffffff pfn:0x5a4f9
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000000000 dead000000000040 ffff8880232ac000 0000000000000000
raw: ffffffffffffffff 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 0x102820(GFP_ATOMIC|__GFP_NOWARN|__GFP_HARDWALL), pid 7046, tgid 7044 (syz.6.12285), ts 717122261024, free_ts 717092984964
set_page_owner include/linux/page_owner.h:32 [inline]
post_alloc_hook+0x153/0x170 mm/page_alloc.c:1888
prep_new_page mm/page_alloc.c:1896 [inline]
get_page_from_freelist+0x111d/0x3140 mm/page_alloc.c:3961
__alloc_frozen_pages_noprof+0x27c/0x2ba0 mm/page_alloc.c:5249
__alloc_pages_noprof mm/page_alloc.c:5283 [inline]
alloc_pages_bulk_noprof+0x782/0x1490 mm/page_alloc.c:5203
alloc_pages_bulk_node_noprof include/linux/gfp.h:255 [inline]
__page_pool_alloc_netmems_slow+0x1c6/0xc10 net/core/page_pool.c:616
page_pool_alloc_netmems net/core/page_pool.c:667 [inline]
page_pool_alloc_netmems+0xc4/0x1a0 net/core/page_pool.c:654
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+0x7f9/0xea0 net/core/skbuff.c:993
skb_cow_data_for_xdp+0x88/0xb0 net/core/skbuff.c:1027
netif_skb_check_for_xdp net/core/dev.c:5497 [inline]
netif_receive_generic_xdp net/core/dev.c:5538 [inline]
do_xdp_generic+0x56b/0x12c0 net/core/dev.c:5606
tun_get_user+0x1bd2/0x3e10 drivers/net/tun.c:1872
tun_chr_write_iter+0xdc/0x200 drivers/net/tun.c:1999
new_sync_write fs/read_write.c:595 [inline]
vfs_write+0x6ac/0x1070 fs/read_write.c:688
ksys_write+0x12a/0x250 fs/read_write.c:740
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0x106/0xf80 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
page last free pid 33 tgid 33 stack trace:
reset_page_owner include/linux/page_owner.h:25 [inline]
__free_pages_prepare mm/page_alloc.c:1432 [inline]
__free_frozen_pages+0x7ca/0x10a0 mm/page_alloc.c:2977
__pagetable_free include/linux/mm.h:3204 [inline]
pagetable_free include/linux/mm.h:3228 [inline]
pagetable_dtor_free include/linux/mm.h:3332 [inline]
__tlb_remove_table include/asm-generic/tlb.h:221 [inline]
__tlb_remove_table_free mm/mmu_gather.c:228 [inline]
tlb_remove_table_rcu+0x2b2/0x390 mm/mmu_gather.c:291
rcu_do_batch kernel/rcu/tree.c:2617 [inline]
rcu_core+0x5a2/0x10d0 kernel/rcu/tree.c:2869
handle_softirqs+0x1eb/0x9e0 kernel/softirq.c:622
run_ksoftirqd kernel/softirq.c:1063 [inline]
run_ksoftirqd+0x38/0x60 kernel/softirq.c:1055
smpboot_thread_fn+0x3d3/0xaa0 kernel/smpboot.c:160
kthread+0x370/0x450 kernel/kthread.c:467
ret_from_fork+0x754/0xd80 arch/x86/kernel/process.c:158
ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245
Modules linked in:
CPU: 3 UID: 0 PID: 7046 Comm: syz.6.12285 Tainted: G B L syzkaller #0 PREEMPT(full)
Tainted: [B]=BAD_PAGE, [L]=SOFTLOCKUP
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
Call Trace:
__dump_stack lib/dump_stack.c:94 [inline]
dump_stack_lvl+0x100/0x190 lib/dump_stack.c:120
bad_page.cold+0xbe/0xdf mm/page_alloc.c:676
free_page_is_bad mm/page_alloc.c:1120 [inline]
free_page_is_bad mm/page_alloc.c:1114 [inline]
__free_pages_prepare mm/page_alloc.c:1424 [inline]
__free_frozen_pages+0x7fe/0x10a0 mm/page_alloc.c:2977
page_frag_free+0x284/0x2e0 mm/page_frag_cache.c:169
__xdp_return+0x3cd/0xb90 net/core/xdp.c:448
bpf_xdp_shrink_data net/core/filter.c:4204 [inline]
bpf_xdp_frags_shrink_tail net/core/filter.c:4228 [inline]
____bpf_xdp_adjust_tail net/core/filter.c:4250 [inline]
bpf_xdp_adjust_tail+0x854/0xb60 net/core/filter.c:4243
bpf_prog_5d7dc57dfd7f985a+0x1e/0x24
__bpf_prog_run include/linux/filter.h:723 [inline]
bpf_prog_run_xdp include/net/xdp.h:696 [inline]
bpf_prog_run_generic_xdp+0x614/0x1610 net/core/dev.c:5428
netif_receive_generic_xdp net/core/dev.c:5544 [inline]
do_xdp_generic+0x92e/0x12c0 net/core/dev.c:5606
tun_get_user+0x1bd2/0x3e10 drivers/net/tun.c:1872
tun_chr_write_iter+0xdc/0x200 drivers/net/tun.c:1999
new_sync_write fs/read_write.c:595 [inline]
vfs_write+0x6ac/0x1070 fs/read_write.c:688
ksys_write+0x12a/0x250 fs/read_write.c:740
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0x106/0xf80 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fd7e855cece
Code: 08 0f 85 a5 a8 ff ff 49 89 fb 48 89 f0 48 89 d7 48 89 ce 4c 89 c2 4d 89 ca 4c 8b 44 24 08 4c 8b 4c 24 10 4c 89 5c 24 08 0f 05 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 80 00 00 00 00 48 83 ec 08
RSP: 002b:00007fd7e93aefb8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007fd7e93af6c0 RCX: 00007fd7e855cece
RDX: 000000000000fdef RSI: 0000200000000400 RDI: 00000000000000c8
RBP: 00007fd7e8632b39 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fd7e8816038 R14: 00007fd7e8815fa0 R15: 00007ffe5c7c5038
BUG: Bad page state in process syz.6.12285 pfn:5a4f8
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff88805a4f8000 pfn:0x5a4f8
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000000000 dead000000000040 ffff8880232ac000 0000000000000000
raw: ffff88805a4f8000 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 0x102820(GFP_ATOMIC|__GFP_NOWARN|__GFP_HARDWALL), pid 7046, tgid 7044 (syz.6.12285), ts 717122254763, free_ts 717092996094
set_page_owner include/linux/page_owner.h:32 [inline]
post_alloc_hook+0x153/0x170 mm/page_alloc.c:1888
prep_new_page mm/page_alloc.c:1896 [inline]
get_page_from_freelist+0x111d/0x3140 mm/page_alloc.c:3961
__alloc_frozen_pages_noprof+0x27c/0x2ba0 mm/page_alloc.c:5249
__alloc_pages_noprof mm/page_alloc.c:5283 [inline]
alloc_pages_bulk_noprof+0x782/0x1490 mm/page_alloc.c:5203
alloc_pages_bulk_node_noprof include/linux/gfp.h:255 [inline]
__page_pool_alloc_netmems_slow+0x1c6/0xc10 net/core/page_pool.c:616
page_pool_alloc_netmems net/core/page_pool.c:667 [inline]
page_pool_alloc_netmems+0xc4/0x1a0 net/core/page_pool.c:654
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+0x7f9/0xea0 net/core/skbuff.c:993
skb_cow_data_for_xdp+0x88/0xb0 net/core/skbuff.c:1027
netif_skb_check_for_xdp net/core/dev.c:5497 [inline]
netif_receive_generic_xdp net/core/dev.c:5538 [inline]
do_xdp_generic+0x56b/0x12c0 net/core/dev.c:5606
tun_get_user+0x1bd2/0x3e10 drivers/net/tun.c:1872
tun_chr_write_iter+0xdc/0x200 drivers/net/tun.c:1999
new_sync_write fs/read_write.c:595 [inline]
vfs_write+0x6ac/0x1070 fs/read_write.c:688
ksys_write+0x12a/0x250 fs/read_write.c:740
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0x106/0xf80 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
page last free pid 33 tgid 33 stack trace:
reset_page_owner include/linux/page_owner.h:25 [inline]
__free_pages_prepare mm/page_alloc.c:1432 [inline]
__free_frozen_pages+0x7ca/0x10a0 mm/page_alloc.c:2977
__pagetable_free include/linux/mm.h:3204 [inline]
pagetable_free include/linux/mm.h:3228 [inline]
pagetable_dtor_free include/linux/mm.h:3332 [inline]
__tlb_remove_table include/asm-generic/tlb.h:221 [inline]
__tlb_remove_table_free mm/mmu_gather.c:228 [inline]
tlb_remove_table_rcu+0x2b2/0x390 mm/mmu_gather.c:291
rcu_do_batch kernel/rcu/tree.c:2617 [inline]
rcu_core+0x5a2/0x10d0 kernel/rcu/tree.c:2869
handle_softirqs+0x1eb/0x9e0 kernel/softirq.c:622
run_ksoftirqd kernel/softirq.c:1063 [inline]
run_ksoftirqd+0x38/0x60 kernel/softirq.c:1055
smpboot_thread_fn+0x3d3/0xaa0 kernel/smpboot.c:160
kthread+0x370/0x450 kernel/kthread.c:467
ret_from_fork+0x754/0xd80 arch/x86/kernel/process.c:158
ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245
Modules linked in:
CPU: 3 UID: 0 PID: 7046 Comm: syz.6.12285 Tainted: G B L syzkaller #0 PREEMPT(full)
Tainted: [B]=BAD_PAGE, [L]=SOFTLOCKUP
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
Call Trace:
__dump_stack lib/dump_stack.c:94 [inline]
dump_stack_lvl+0x100/0x190 lib/dump_stack.c:120
bad_page.cold+0xbe/0xdf mm/page_alloc.c:676
free_page_is_bad mm/page_alloc.c:1120 [inline]
free_page_is_bad mm/page_alloc.c:1114 [inline]
__free_pages_prepare mm/page_alloc.c:1424 [inline]
__free_frozen_pages+0x7fe/0x10a0 mm/page_alloc.c:2977
page_frag_free+0x284/0x2e0 mm/page_frag_cache.c:169
__xdp_return+0x3cd/0xb90 net/core/xdp.c:448
bpf_xdp_shrink_data net/core/filter.c:4204 [inline]
bpf_xdp_frags_shrink_tail net/core/filter.c:4228 [inline]
____bpf_xdp_adjust_tail net/core/filter.c:4250 [inline]
bpf_xdp_adjust_tail+0x854/0xb60 net/core/filter.c:4243
bpf_prog_5d7dc57dfd7f985a+0x1e/0x24
__bpf_prog_run include/linux/filter.h:723 [inline]
bpf_prog_run_xdp include/net/xdp.h:696 [inline]
bpf_prog_run_generic_xdp+0x614/0x1610 net/core/dev.c:5428
netif_receive_generic_xdp net/core/dev.c:5544 [inline]
do_xdp_generic+0x92e/0x12c0 net/core/dev.c:5606
tun_get_user+0x1bd2/0x3e10 drivers/net/tun.c:1872
tun_chr_write_iter+0xdc/0x200 drivers/net/tun.c:1999
new_sync_write fs/read_write.c:595 [inline]
vfs_write+0x6ac/0x1070 fs/read_write.c:688
ksys_write+0x12a/0x250 fs/read_write.c:740
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0x106/0xf80 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fd7e855cece
Code: 08 0f 85 a5 a8 ff ff 49 89 fb 48 89 f0 48 89 d7 48 89 ce 4c 89 c2 4d 89 ca 4c 8b 44 24 08 4c 8b 4c 24 10 4c 89 5c 24 08 0f 05 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 80 00 00 00 00 48 83 ec 08
RSP: 002b:00007fd7e93aefb8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007fd7e93af6c0 RCX: 00007fd7e855cece
RDX: 000000000000fdef RSI: 0000200000000400 RDI: 00000000000000c8
RBP: 00007fd7e8632b39 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fd7e8816038 R14: 00007fd7e8815fa0 R15: 00007ffe5c7c5038
BUG: Bad page state in process syz.6.12285 pfn:4e4e7
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x487d pfn:0x4e4e7
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000000000 dead000000000040 ffff8880232ac000 0000000000000000
raw: 000000000000487d 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 0x102820(GFP_ATOMIC|__GFP_NOWARN|__GFP_HARDWALL), pid 7046, tgid 7044 (syz.6.12285), ts 717122248223, free_ts 717093007187
set_page_owner include/linux/page_owner.h:32 [inline]
post_alloc_hook+0x153/0x170 mm/page_alloc.c:1888
prep_new_page mm/page_alloc.c:1896 [inline]
get_page_from_freelist+0x111d/0x3140 mm/page_alloc.c:3961
__alloc_frozen_pages_noprof+0x27c/0x2ba0 mm/page_alloc.c:5249
__alloc_pages_noprof mm/page_alloc.c:5283 [inline]
alloc_pages_bulk_noprof+0x782/0x1490 mm/page_alloc.c:5203
alloc_pages_bulk_node_noprof include/linux/gfp.h:255 [inline]
__page_pool_alloc_netmems_slow+0x1c6/0xc10 net/core/page_pool.c:616
page_pool_alloc_netmems net/core/page_pool.c:667 [inline]
page_pool_alloc_netmems+0xc4/0x1a0 net/core/page_pool.c:654
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+0x7f9/0xea0 net/core/skbuff.c:993
skb_cow_data_for_xdp+0x88/0xb0 net/core/skbuff.c:1027
netif_skb_check_for_xdp net/core/dev.c:5497 [inline]
netif_receive_generic_xdp net/core/dev.c:5538 [inline]
do_xdp_generic+0x56b/0x12c0 net/core/dev.c:5606
tun_get_user+0x1bd2/0x3e10 drivers/net/tun.c:1872
tun_chr_write_iter+0xdc/0x200 drivers/net/tun.c:1999
new_sync_write fs/read_write.c:595 [inline]
vfs_write+0x6ac/0x1070 fs/read_write.c:688
ksys_write+0x12a/0x250 fs/read_write.c:740
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0x106/0xf80 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
page last free pid 33 tgid 33 stack trace:
reset_page_owner include/linux/page_owner.h:25 [inline]
__free_pages_prepare mm/page_alloc.c:1432 [inline]
__free_frozen_pages+0x7ca/0x10a0 mm/page_alloc.c:2977
__pagetable_free include/linux/mm.h:3204 [inline]
pagetable_free include/linux/mm.h:3228 [inline]
pagetable_dtor_free include/linux/mm.h:3332 [inline]
__tlb_remove_table include/asm-generic/tlb.h:221 [inline]
__tlb_remove_table_free mm/mmu_gather.c:228 [inline]
tlb_remove_table_rcu+0x2b2/0x390 mm/mmu_gather.c:291
rcu_do_batch kernel/rcu/tree.c:2617 [inline]
rcu_core+0x5a2/0x10d0 kernel/rcu/tree.c:2869
handle_softirqs+0x1eb/0x9e0 kernel/softirq.c:622
run_ksoftirqd kernel/softirq.c:1063 [inline]
run_ksoftirqd+0x38/0x60 kernel/softirq.c:1055
smpboot_thread_fn+0x3d3/0xaa0 kernel/smpboot.c:160
kthread+0x370/0x450 kernel/kthread.c:467
ret_from_fork+0x754/0xd80 arch/x86/kernel/process.c:158
ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245
Modules linked in:
CPU: 3 UID: 0 PID: 7046 Comm: syz.6.12285 Tainted: G B L syzkaller #0 PREEMPT(full)
Tainted: [B]=BAD_PAGE, [L]=SOFTLOCKUP
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
Call Trace:
__dump_stack lib/dump_stack.c:94 [inline]
dump_stack_lvl+0x100/0x190 lib/dump_stack.c:120
bad_page.cold+0xbe/0xdf mm/page_alloc.c:676
free_page_is_bad mm/page_alloc.c:1120 [inline]
free_page_is_bad mm/page_alloc.c:1114 [inline]
__free_pages_prepare mm/page_alloc.c:1424 [inline]
__free_frozen_pages+0x7fe/0x10a0 mm/page_alloc.c:2977
page_frag_free+0x284/0x2e0 mm/page_frag_cache.c:169
__xdp_return+0x3cd/0xb90 net/core/xdp.c:448
bpf_xdp_shrink_data net/core/filter.c:4204 [inline]
bpf_xdp_frags_shrink_tail net/core/filter.c:4228 [inline]
____bpf_xdp_adjust_tail net/core/filter.c:4250 [inline]
bpf_xdp_adjust_tail+0x854/0xb60 net/core/filter.c:4243
bpf_prog_5d7dc57dfd7f985a+0x1e/0x24
__bpf_prog_run include/linux/filter.h:723 [inline]
bpf_prog_run_xdp include/net/xdp.h:696 [inline]
bpf_prog_run_generic_xdp+0x614/0x1610 net/core/dev.c:5428
netif_receive_generic_xdp net/core/dev.c:5544 [inline]
do_xdp_generic+0x92e/0x12c0 net/core/dev.c:5606
tun_get_user+0x1bd2/0x3e10 drivers/net/tun.c:1872
tun_chr_write_iter+0xdc/0x200 drivers/net/tun.c:1999
new_sync_write fs/read_write.c:595 [inline]
vfs_write+0x6ac/0x1070 fs/read_write.c:688
ksys_write+0x12a/0x250 fs/read_write.c:740
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0x106/0xf80 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fd7e855cece
Code: 08 0f 85 a5 a8 ff ff 49 89 fb 48 89 f0 48 89 d7 48 89 ce 4c 89 c2 4d 89 ca 4c 8b 44 24 08 4c 8b 4c 24 10 4c 89 5c 24 08 0f 05 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 80 00 00 00 00 48 83 ec 08
RSP: 002b:00007fd7e93aefb8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007fd7e93af6c0 RCX: 00007fd7e855cece
RDX: 000000000000fdef RSI: 0000200000000400 RDI: 00000000000000c8
RBP: 00007fd7e8632b39 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fd7e8816038 R14: 00007fd7e8815fa0 R15: 00007ffe5c7c5038
BUG: Bad page state in process syz.6.12285 pfn:60f12
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff888000000000 pfn:0x60f12
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000000000 dead000000000040 ffff8880232ac000 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 0x102820(GFP_ATOMIC|__GFP_NOWARN|__GFP_HARDWALL), pid 7046, tgid 7044 (syz.6.12285), ts 717122241471, free_ts 717093018983
set_page_owner include/linux/page_owner.h:32 [inline]
post_alloc_hook+0x153/0x170 mm/page_alloc.c:1888
prep_new_page mm/page_alloc.c:1896 [inline]
get_page_from_freelist+0x111d/0x3140 mm/page_alloc.c:3961
__alloc_frozen_pages_noprof+0x27c/0x2ba0 mm/page_alloc.c:5249
__alloc_pages_noprof mm/page_alloc.c:5283 [inline]
alloc_pages_bulk_noprof+0x782/0x1490 mm/page_alloc.c:5203
alloc_pages_bulk_node_noprof include/linux/gfp.h:255 [inline]
__page_pool_alloc_netmems_slow+0x1c6/0xc10 net/core/page_pool.c:616
page_pool_alloc_netmems net/core/page_pool.c:667 [inline]
page_pool_alloc_netmems+0xc4/0x1a0 net/core/page_pool.c:654
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+0x7f9/0xea0 net/core/skbuff.c:993
skb_cow_data_for_xdp+0x88/0xb0 net/core/skbuff.c:1027
netif_skb_check_for_xdp net/core/dev.c:5497 [inline]
netif_receive_generic_xdp net/core/dev.c:5538 [inline]
do_xdp_generic+0x56b/0x12c0 net/core/dev.c:5606
tun_get_user+0x1bd2/0x3e10 drivers/net/tun.c:1872
tun_chr_write_iter+0xdc/0x200 drivers/net/tun.c:1999
new_sync_write fs/read_write.c:595 [inline]
vfs_write+0x6ac/0x1070 fs/read_write.c:688
ksys_write+0x12a/0x250 fs/read_write.c:740
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0x106/0xf80 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
page last free pid 33 tgid 33 stack trace:
reset_page_owner include/linux/page_owner.h:25 [inline]
__free_pages_prepare mm/page_alloc.c:1432 [inline]
__free_frozen_pages+0x7ca/0x10a0 mm/page_alloc.c:2977
__pagetable_free include/linux/mm.h:3204 [inline]
pagetable_free include/linux/mm.h:3228 [inline]
pagetable_dtor_free include/linux/mm.h:3332 [inline]
__tlb_remove_table include/asm-generic/tlb.h:221 [inline]
__tlb_remove_table_free mm/mmu_gather.c:228 [inline]
tlb_remove_table_rcu+0x2b2/0x390 mm/mmu_gather.c:291
rcu_do_batch kernel/rcu/tree.c:2617 [inline]
rcu_core+0x5a2/0x10d0 kernel/rcu/tree.c:2869
handle_softirqs+0x1eb/0x9e0 kernel/softirq.c:622
run_ksoftirqd kernel/softirq.c:1063 [inline]
run_ksoftirqd+0x38/0x60 kernel/softirq.c:1055
smpboot_thread_fn+0x3d3/0xaa0 kernel/smpboot.c:160
kthread+0x370/0x450 kernel/kthread.c:467
ret_from_fork+0x754/0xd80 arch/x86/kernel/process.c:158
ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245
Modules linked in:
CPU: 3 UID: 0 PID: 7046 Comm: syz.6.12285 Tainted: G B L syzkaller #0 PREEMPT(full)
Tainted: [B]=BAD_PAGE, [L]=SOFTLOCKUP
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
Call Trace:
__dump_stack lib/dump_stack.c:94 [inline]
dump_stack_lvl+0x100/0x190 lib/dump_stack.c:120
bad_page.cold+0xbe/0xdf mm/page_alloc.c:676
free_page_is_bad mm/page_alloc.c:1120 [inline]
free_page_is_bad mm/page_alloc.c:1114 [inline]
__free_pages_prepare mm/page_alloc.c:1424 [inline]
__free_frozen_pages+0x7fe/0x10a0 mm/page_alloc.c:2977
page_frag_free+0x284/0x2e0 mm/page_frag_cache.c:169
__xdp_return+0x3cd/0xb90 net/core/xdp.c:448
bpf_xdp_shrink_data net/core/filter.c:4204 [inline]
bpf_xdp_frags_shrink_tail net/core/filter.c:4228 [inline]
____bpf_xdp_adjust_tail net/core/filter.c:4250 [inline]
bpf_xdp_adjust_tail+0x854/0xb60 net/core/filter.c:4243
bpf_prog_5d7dc57dfd7f985a+0x1e/0x24
__bpf_prog_run include/linux/filter.h:723 [inline]
bpf_prog_run_xdp include/net/xdp.h:696 [inline]
bpf_prog_run_generic_xdp+0x614/0x1610 net/core/dev.c:5428
netif_receive_generic_xdp net/core/dev.c:5544 [inline]
do_xdp_generic+0x92e/0x12c0 net/core/dev.c:5606
tun_get_user+0x1bd2/0x3e10 drivers/net/tun.c:1872
tun_chr_write_iter+0xdc/0x200 drivers/net/tun.c:1999
new_sync_write fs/read_write.c:595 [inline]
vfs_write+0x6ac/0x1070 fs/read_write.c:688
ksys_write+0x12a/0x250 fs/read_write.c:740
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0x106/0xf80 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fd7e855cece
Code: 08 0f 85 a5 a8 ff ff 49 89 fb 48 89 f0 48 89 d7 48 89 ce 4c 89 c2 4d 89 ca 4c 8b 44 24 08 4c 8b 4c 24 10 4c 89 5c 24 08 0f 05 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 80 00 00 00 00 48 83 ec 08
RSP: 002b:00007fd7e93aefb8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007fd7e93af6c0 RCX: 00007fd7e855cece
RDX: 000000000000fdef RSI: 0000200000000400 RDI: 00000000000000c8
RBP: 00007fd7e8632b39 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fd7e8816038 R14: 00007fd7e8815fa0 R15: 00007ffe5c7c5038
BUG: Bad page state in process syz.6.12285 pfn:4e4e6
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x487c pfn:0x4e4e6
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000000000 dead000000000040 ffff8880232ac000 0000000000000000
raw: 000000000000487c 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 0x102820(GFP_ATOMIC|__GFP_NOWARN|__GFP_HARDWALL), pid 7046, tgid 7044 (syz.6.12285), ts 717122235412, free_ts 717093035900
set_page_owner include/linux/page_owner.h:32 [inline]
post_alloc_hook+0x153/0x170 mm/page_alloc.c:1888
prep_new_page mm/page_alloc.c:1896 [inline]
get_page_from_freelist+0x111d/0x3140 mm/page_alloc.c:3961
__alloc_frozen_pages_noprof+0x27c/0x2ba0 mm/page_alloc.c:5249
__alloc_pages_noprof mm/page_alloc.c:5283 [inline]
alloc_pages_bulk_noprof+0x782/0x1490 mm/page_alloc.c:5203
alloc_pages_bulk_node_noprof include/linux/gfp.h:255 [inline]
__page_pool_alloc_netmems_slow+0x1c6/0xc10 net/core/page_pool.c:616
page_pool_alloc_netmems net/core/page_pool.c:667 [inline]
page_pool_alloc_netmems+0xc4/0x1a0 net/core/page_pool.c:654
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+0x7f9/0xea0 net/core/skbuff.c:993
skb_cow_data_for_xdp+0x88/0xb0 net/core/skbuff.c:1027
netif_skb_check_for_xdp net/core/dev.c:5497 [inline]
netif_receive_generic_xdp net/core/dev.c:5538 [inline]
do_xdp_generic+0x56b/0x12c0 net/core/dev.c:5606
tun_get_user+0x1bd2/0x3e10 drivers/net/tun.c:1872
tun_chr_write_iter+0xdc/0x200 drivers/net/tun.c:1999
new_sync_write fs/read_write.c:595 [inline]
vfs_write+0x6ac/0x1070 fs/read_write.c:688
ksys_write+0x12a/0x250 fs/read_write.c:740
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0x106/0xf80 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
page last free pid 33 tgid 33 stack trace:
reset_page_owner include/linux/page_owner.h:25 [inline]
__free_pages_prepare mm/page_alloc.c:1432 [inline]
__free_frozen_pages+0x7ca/0x10a0 mm/page_alloc.c:2977
__pagetable_free include/linux/mm.h:3204 [inline]
pagetable_free include/linux/mm.h:3228 [inline]
pagetable_dtor_free include/linux/mm.h:3332 [inline]
__tlb_remove_table include/asm-generic/tlb.h:221 [inline]
__tlb_remove_table_free mm/mmu_gather.c:228 [inline]
tlb_remove_table_rcu+0x2b2/0x390 mm/mmu_gather.c:291
rcu_do_batch kernel/rcu/tree.c:2617 [inline]
rcu_core+0x5a2/0x10d0 kernel/rcu/tree.c:2869
handle_softirqs+0x1eb/0x9e0 kernel/softirq.c:622
run_ksoftirqd kernel/softirq.c:1063 [inline]
run_ksoftirqd+0x38/0x60 kernel/softirq.c:1055
smpboot_thread_fn+0x3d3/0xaa0 kernel/smpboot.c:160
kthread+0x370/0x450 kernel/kthread.c:467
ret_from_fork+0x754/0xd80 arch/x86/kernel/process.c:158
ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245
Modules linked in:
CPU: 3 UID: 0 PID: 7046 Comm: syz.6.12285 Tainted: G B L syzkaller #0 PREEMPT(full)
Tainted: [B]=BAD_PAGE, [L]=SOFTLOCKUP
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
Call Trace:
__dump_stack lib/dump_stack.c:94 [inline]
dump_stack_lvl+0x100/0x190 lib/dump_stack.c:120
bad_page.cold+0xbe/0xdf mm/page_alloc.c:676
free_page_is_bad mm/page_alloc.c:1120 [inline]
free_page_is_bad mm/page_alloc.c:1114 [inline]
__free_pages_prepare mm/page_alloc.c:1424 [inline]
__free_frozen_pages+0x7fe/0x10a0 mm/page_alloc.c:2977
page_frag_free+0x284/0x2e0 mm/page_frag_cache.c:169
__xdp_return+0x3cd/0xb90 net/core/xdp.c:448
bpf_xdp_shrink_data net/core/filter.c:4204 [inline]
bpf_xdp_frags_shrink_tail net/core/filter.c:4228 [inline]
____bpf_xdp_adjust_tail net/core/filter.c:4250 [inline]
bpf_xdp_adjust_tail+0x854/0xb60 net/core/filter.c:4243
bpf_prog_5d7dc57dfd7f985a+0x1e/0x24
__bpf_prog_run include/linux/filter.h:723 [inline]
bpf_prog_run_xdp include/net/xdp.h:696 [inline]
bpf_prog_run_generic_xdp+0x614/0x1610 net/core/dev.c:5428
netif_receive_generic_xdp net/core/dev.c:5544 [inline]
do_xdp_generic+0x92e/0x12c0 net/core/dev.c:5606
tun_get_user+0x1bd2/0x3e10 drivers/net/tun.c:1872
tun_chr_write_iter+0xdc/0x200 drivers/net/tun.c:1999
new_sync_write fs/read_write.c:595 [inline]
vfs_write+0x6ac/0x1070 fs/read_write.c:688
ksys_write+0x12a/0x250 fs/read_write.c:740
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0x106/0xf80 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fd7e855cece
Code: 08 0f 85 a5 a8 ff ff 49 89 fb 48 89 f0 48 89 d7 48 89 ce 4c 89 c2 4d 89 ca 4c 8b 44 24 08 4c 8b 4c 24 10 4c 89 5c 24 08 0f 05 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 80 00 00 00 00 48 83 ec 08
RSP: 002b:00007fd7e93aefb8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007fd7e93af6c0 RCX: 00007fd7e855cece
RDX: 000000000000fdef RSI: 0000200000000400 RDI: 00000000000000c8
RBP: 00007fd7e8632b39 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fd7e8816038 R14: 00007fd7e8815fa0 R15: 00007ffe5c7c5038
BUG: Bad page state in process syz.6.12285 pfn:4e4e5
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x487b pfn:0x4e4e5
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000000000 dead000000000040 ffff8880232ac000 0000000000000000
raw: 000000000000487b 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 0x102820(GFP_ATOMIC|__GFP_NOWARN|__GFP_HARDWALL), pid 7046, tgid 7044 (syz.6.12285), ts 717122228753, free_ts 717093047089
set_page_owner include/linux/page_owner.h:32 [inline]
post_alloc_hook+0x153/0x170 mm/page_alloc.c:1888
prep_new_page mm/page_alloc.c:1896 [inline]
get_page_from_freelist+0x111d/0x3140 mm/page_alloc.c:3961
__alloc_frozen_pages_noprof+0x27c/0x2ba0 mm/page_alloc.c:5249
__alloc_pages_noprof mm/page_alloc.c:5283 [inline]
alloc_pages_bulk_noprof+0x782/0x1490 mm/page_alloc.c:5203
alloc_pages_bulk_node_noprof include/linux/gfp.h:255 [inline]
__page_pool_alloc_netmems_slow+0x1c6/0xc10 net/core/page_pool.c:616
page_pool_alloc_netmems net/core/page_pool.c:667 [inline]
page_pool_alloc_netmems+0xc4/0x1a0 net/core/page_pool.c:654
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+0x7f9/0xea0 net/core/skbuff.c:993
skb_cow_data_for_xdp+0x88/0xb0 net/core/skbuff.c:1027
netif_skb_check_for_xdp net/core/dev.c:5497 [inline]
netif_receive_generic_xdp net/core/dev.c:5538 [inline]
do_xdp_generic+0x56b/0x12c0 net/core/dev.c:5606
tun_get_user+0x1bd2/0x3e10 drivers/net/tun.c:1872
tun_chr_write_iter+0xdc/0x200 drivers/net/tun.c:1999
new_sync_write fs/read_write.c:595 [inline]
vfs_write+0x6ac/0x1070 fs/read_write.c:688
ksys_write+0x12a/0x250 fs/read_write.c:740
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0x106/0xf80 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
page last free pid 33 tgid 33 stack trace:
reset_page_owner include/linux/page_owner.h:25 [inline]
__free_pages_prepare mm/page_alloc.c:1432 [inline]
__free_frozen_pages+0x7ca/0x10a0 mm/page_alloc.c:2977
__pagetable_free include/linux/mm.h:3204 [inline]
pagetable_free include/linux/mm.h:3228 [inline]
pagetable_dtor_free include/linux/mm.h:3332 [inline]
__tlb_remove_table include/asm-generic/tlb.h:221 [inline]
__tlb_remove_table_free mm/mmu_gather.c:228 [inline]
tlb_remove_table_rcu+0x2b2/0x390 mm/mmu_gather.c:291
rcu_do_batch kernel/rcu/tree.c:2617 [inline]
rcu_core+0x5a2/0x10d0 kernel/rcu/tree.c:2869
handle_softirqs+0x1eb/0x9e0 kernel/softirq.c:622
run_ksoftirqd kernel/softirq.c:1063 [inline]
run_ksoftirqd+0x38/0x60 kernel/softirq.c:1055
smpboot_thread_fn+0x3d3/0xaa0 kernel/smpboot.c:160
kthread+0x370/0x450 kernel/kthread.c:467
ret_from_fork+0x754/0xd80 arch/x86/kernel/process.c:158
ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245
Modules linked in:
CPU: 3 UID: 0 PID: 7046 Comm: syz.6.12285 Tainted: G B L syzkaller #0 PREEMPT(full)
Tainted: [B]=BAD_PAGE, [L]=SOFTLOCKUP
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
Call Trace:
__dump_stack lib/dump_stack.c:94 [inline]
dump_stack_lvl+0x100/0x190 lib/dump_stack.c:120
bad_page.cold+0xbe/0xdf mm/page_alloc.c:676
free_page_is_bad mm/page_alloc.c:1120 [inline]
free_page_is_bad mm/page_alloc.c:1114 [inline]
__free_pages_prepare mm/page_alloc.c:1424 [inline]
__free_frozen_pages+0x7fe/0x10a0 mm/page_alloc.c:2977
page_frag_free+0x284/0x2e0 mm/page_frag_cache.c:169
__xdp_return+0x3cd/0xb90 net/core/xdp.c:448
bpf_xdp_shrink_data net/core/filter.c:4204 [inline]
bpf_xdp_frags_shrink_tail net/core/filter.c:4228 [inline]
____bpf_xdp_adjust_tail net/core/filter.c:4250 [inline]
bpf_xdp_adjust_tail+0x854/0xb60 net/core/filter.c:4243
bpf_prog_5d7dc57dfd7f985a+0x1e/0x24
__bpf_prog_run include/linux/filter.h:723 [inline]
bpf_prog_run_xdp include/net/xdp.h:696 [inline]
bpf_prog_run_generic_xdp+0x614/0x1610 net/core/dev.c:5428
netif_receive_generic_xdp net/core/dev.c:5544 [inline]
do_xdp_generic+0x92e/0x12c0 net/core/dev.c:5606
tun_get_user+0x1bd2/0x3e10 drivers/net/tun.c:1872
tun_chr_write_iter+0xdc/0x200 drivers/net/tun.c:1999
new_sync_write fs/read_write.c:595 [inline]
vfs_write+0x6ac/0x1070 fs/read_write.c:688
ksys_write+0x12a/0x250 fs/read_write.c:740
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0x106/0xf80 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fd7e855cece
Code: 08 0f 85 a5 a8 ff ff 49 89 fb 48 89 f0 48 89 d7 48 89 ce 4c 89 c2 4d 89 ca 4c 8b 44 24 08 4c 8b 4c 24 10 4c 89 5c 24 08 0f 05 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 80 00 00 00 00 48 83 ec 08
RSP: 002b:00007fd7e93aefb8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007fd7e93af6c0 RCX: 00007fd7e855cece
RDX: 000000000000fdef RSI: 0000200000000400 RDI: 00000000000000c8
RBP: 00007fd7e8632b39 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fd7e8816038 R14: 00007fd7e8815fa0 R15: 00007ffe5c7c5038
BUG: Bad page state in process syz.6.12285 pfn:4e4e4
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x487a pfn:0x4e4e4
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000000000 dead000000000040 ffff8880232ac000 0000000000000000
raw: 000000000000487a 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 0x102820(GFP_ATOMIC|__GFP_NOWARN|__GFP_HARDWALL), pid 7046, tgid 7044 (syz.6.12285), ts 717122222563, free_ts 717093058513
set_page_owner include/linux/page_owner.h:32 [inline]
post_alloc_hook+0x153/0x170 mm/page_alloc.c:1888
prep_new_page mm/page_alloc.c:1896 [inline]
get_page_from_freelist+0x111d/0x3140 mm/page_alloc.c:3961
__alloc_frozen_pages_noprof+0x27c/0x2ba0 mm/page_alloc.c:5249
__alloc_pages_noprof mm/page_alloc.c:5283 [inline]
alloc_pages_bulk_noprof+0x782/0x1490 mm/page_alloc.c:5203
alloc_pages_bulk_node_noprof include/linux/gfp.h:255 [inline]
__page_pool_alloc_netmems_slow+0x1c6/0xc10 net/core/page_pool.c:616
page_pool_alloc_netmems net/core/page_pool.c:667 [inline]
page_pool_alloc_netmems+0xc4/0x1a0 net/core/page_pool.c:654
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+0x7f9/0xea0 net/core/skbuff.c:993
skb_cow_data_for_xdp+0x88/0xb0 net/core/skbuff.c:1027
netif_skb_check_for_xdp net/core/dev.c:5497 [inline]
netif_receive_generic_xdp net/core/dev.c:5538 [inline]
do_xdp_generic+0x56b/0x12c0 net/core/dev.c:5606
tun_get_user+0x1bd2/0x3e10 drivers/net/tun.c:1872
tun_chr_write_iter+0xdc/0x200 drivers/net/tun.c:1999
new_sync_write fs/read_write.c:595 [inline]
vfs_write+0x6ac/0x1070 fs/read_write.c:688
ksys_write+0x12a/0x250 fs/read_write.c:740
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0x106/0xf80 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
page last free pid 33 tgid 33 stack trace:
reset_page_owner include/linux/page_owner.h:25 [inline]
__free_pages_prepare mm/page_alloc.c:1432 [inline]
__free_frozen_pages+0x7ca/0x10a0 mm/page_alloc.c:2977
__pagetable_free include/linux/mm.h:3204 [inline]
pagetable_free include/linux/mm.h:3228 [inline]
pagetable_dtor_free include/linux/mm.h:3332 [inline]
__tlb_remove_table include/asm-generic/tlb.h:221 [inline]
__tlb_remove_table_free mm/mmu_gather.c:228 [inline]
tlb_remove_table_rcu+0x2b2/0x390 mm/mmu_gather.c:291
rcu_do_batch kernel/rcu/tree.c:2617 [inline]
rcu_core+0x5a2/0x10d0 kernel/rcu/tree.c:2869
handle_softirqs+0x1eb/0x9e0 kernel/softirq.c:622
run_ksoftirqd kernel/softirq.c:1063 [inline]
run_ksoftirqd+0x38/0x60 kernel/softirq.c:1055
smpboot_thread_fn+0x3d3/0xaa0 kernel/smpboot.c:160
kthread+0x370/0x450 kernel/kthread.c:467
ret_from_fork+0x754/0xd80 arch/x86/kernel/process.c:158
ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245
Modules linked in:
CPU: 3 UID: 0 PID: 7046 Comm: syz.6.12285 Tainted: G B L syzkaller #0 PREEMPT(full)
Tainted: [B]=BAD_PAGE, [L]=SOFTLOCKUP
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
Call Trace:
__dump_stack lib/dump_stack.c:94 [inline]
dump_stack_lvl+0x100/0x190 lib/dump_stack.c:120
bad_page.cold+0xbe/0xdf mm/page_alloc.c:676
free_page_is_bad mm/page_alloc.c:1120 [inline]
free_page_is_bad mm/page_alloc.c:1114 [inline]
__free_pages_prepare mm/page_alloc.c:1424 [inline]
__free_frozen_pages+0x7fe/0x10a0 mm/page_alloc.c:2977
page_frag_free+0x284/0x2e0 mm/page_frag_cache.c:169
__xdp_return+0x3cd/0xb90 net/core/xdp.c:448
bpf_xdp_shrink_data net/core/filter.c:4204 [inline]
bpf_xdp_frags_shrink_tail net/core/filter.c:4228 [inline]
____bpf_xdp_adjust_tail net/core/filter.c:4250 [inline]
bpf_xdp_adjust_tail+0x854/0xb60 net/core/filter.c:4243
bpf_prog_5d7dc57dfd7f985a+0x1e/0x24
__bpf_prog_run include/linux/filter.h:723 [inline]
bpf_prog_run_xdp include/net/xdp.h:696 [inline]
bpf_prog_run_generic_xdp+0x614/0x1610 net/core/dev.c:5428
netif_receive_generic_xdp net/core/dev.c:5544 [inline]
do_xdp_generic+0x92e/0x12c0 net/core/dev.c:5606
tun_get_user+0x1bd2/0x3e10 drivers/net/tun.c:1872
tun_chr_write_iter+0xdc/0x200 drivers/net/tun.c:1999
new_sync_write fs/read_write.c:595 [inline]
vfs_write+0x6ac/0x1070 fs/read_write.c:688
ksys_write+0x12a/0x250 fs/read_write.c:740
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0x106/0xf80 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fd7e855cece
Code: 08 0f 85 a5 a8 ff ff 49 89 fb 48 89 f0 48 89 d7 48 89 ce 4c 89 c2 4d 89 ca 4c 8b 44 24 08 4c 8b 4c 24 10 4c 89 5c 24 08 0f 05 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 80 00 00 00 00 48 83 ec 08
RSP: 002b:00007fd7e93aefb8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007fd7e93af6c0 RCX: 00007fd7e855cece
RDX: 000000000000fdef RSI: 0000200000000400 RDI: 00000000000000c8
RBP: 00007fd7e8632b39 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fd7e8816038 R14: 00007fd7e8815fa0 R15: 00007ffe5c7c5038
BUG: Bad page state in process syz.6.12285 pfn:4e4e3
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x4879 pfn:0x4e4e3
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000000000 dead000000000040 ffff8880232ac000 0000000000000000
raw: 0000000000004879 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 0x102820(GFP_ATOMIC|__GFP_NOWARN|__GFP_HARDWALL), pid 7046, tgid 7044 (syz.6.12285), ts 717122216426, free_ts 717093070436
set_page_owner include/linux/page_owner.h:32 [inline]
post_alloc_hook+0x153/0x170 mm/page_alloc.c:1888
prep_new_page mm/page_alloc.c:1896 [inline]
get_page_from_freelist+0x111d/0x3140 mm/page_alloc.c:3961
__alloc_frozen_pages_noprof+0x27c/0x2ba0 mm/page_alloc.c:5249
__alloc_pages_noprof mm/page_alloc.c:5283 [inline]
alloc_pages_bulk_noprof+0x782/0x1490 mm/page_alloc.c:5203
alloc_pages_bulk_node_noprof include/linux/gfp.h:255 [inline]
__page_pool_alloc_netmems_slow+0x1c6/0xc10 net/core/page_pool.c:616
page_pool_alloc_netmems net/core/page_pool.c:667 [inline]
page_pool_alloc_netmems+0xc4/0x1a0 net/core/page_pool.c:654
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+0x7f9/0xea0 net/core/skbuff.c:993
skb_cow_data_for_xdp+0x88/0xb0 net/core/skbuff.c:1027
netif_skb_check_for_xdp net/core/dev.c:5497 [inline]
netif_receive_generic_xdp net/core/dev.c:5538 [inline]
do_xdp_generic+0x56b/0x12c0 net/core/dev.c:5606
tun_get_user+0x1bd2/0x3e10 drivers/net/tun.c:1872
tun_chr_write_iter+0xdc/0x200 drivers/net/tun.c:1999
new_sync_write fs/read_write.c:595 [inline]
vfs_write+0x6ac/0x1070 fs/read_write.c:688
ksys_write+0x12a/0x250 fs/read_write.c:740
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0x106/0xf80 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
page last free pid 33 tgid 33 stack trace:
reset_page_owner include/linux/page_owner.h:25 [inline]
__free_pages_prepare mm/page_alloc.c:1432 [inline]
__free_frozen_pages+0x7ca/0x10a0 mm/page_alloc.c:2977
__pagetable_free include/linux/mm.h:3204 [inline]
pagetable_free include/linux/mm.h:3228 [inline]
pagetable_dtor_free include/linux/mm.h:3332 [inline]
__tlb_remove_table include/asm-generic/tlb.h:221 [inline]
__tlb_remove_table_free mm/mmu_gather.c:228 [inline]
tlb_remove_table_rcu+0x2b2/0x390 mm/mmu_gather.c:291
rcu_do_batch kernel/rcu/tree.c:2617 [inline]
rcu_core+0x5a2/0x10d0 kernel/rcu/tree.c:2869
handle_softirqs+0x1eb/0x9e0 kernel/softirq.c:622
run_ksoftirqd kernel/softirq.c:1063 [inline]
run_ksoftirqd+0x38/0x60 kernel/softirq.c:1055
smpboot_thread_fn+0x3d3/0xaa0 kernel/smpboot.c:160
kthread+0x370/0x450 kernel/kthread.c:467
ret_from_fork+0x754/0xd80 arch/x86/kernel/process.c:158
ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245
Modules linked in:
CPU: 3 UID: 0 PID: 7046 Comm: syz.6.12285 Tainted: G B L syzkaller #0 PREEMPT(full)
Tainted: [B]=BAD_PAGE, [L]=SOFTLOCKUP
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
Call Trace:
__dump_stack lib/dump_stack.c:94 [inline]
dump_stack_lvl+0x100/0x190 lib/dump_stack.c:120
bad_page.cold+0xbe/0xdf mm/page_alloc.c:676
free_page_is_bad mm/page_alloc.c:1120 [inline]
free_page_is_bad mm/page_alloc.c:1114 [inline]
__free_pages_prepare mm/page_alloc.c:1424 [inline]
__free_frozen_pages+0x7fe/0x10a0 mm/page_alloc.c:2977
page_frag_free+0x284/0x2e0 mm/page_frag_cache.c:169
__xdp_return+0x3cd/0xb90 net/core/xdp.c:448
bpf_xdp_shrink_data net/core/filter.c:4204 [inline]
bpf_xdp_frags_shrink_tail net/core/filter.c:4228 [inline]
____bpf_xdp_adjust_tail net/core/filter.c:4250 [inline]
bpf_xdp_adjust_tail+0x854/0xb60 net/core/filter.c:4243
bpf_prog_5d7dc57dfd7f985a+0x1e/0x24
__bpf_prog_run include/linux/filter.h:723 [inline]
bpf_prog_run_xdp include/net/xdp.h:696 [inline]
bpf_prog_run_generic_xdp+0x614/0x1610 net/core/dev.c:5428
netif_receive_generic_xdp net/core/dev.c:5544 [inline]
do_xdp_generic+0x92e/0x12c0 net/core/dev.c:5606
tun_get_user+0x1bd2/0x3e10 drivers/net/tun.c:1872
tun_chr_write_iter+0xdc/0x200 drivers/net/tun.c:1999
new_sync_write fs/read_write.c:595 [inline]
vfs_write+0x6ac/0x1070 fs/read_write.c:688
ksys_write+0x12a/0x250 fs/read_write.c:740
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0x106/0xf80 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fd7e855cece
Code: 08 0f 85 a5 a8 ff ff 49 89 fb 48 89 f0 48 89 d7 48 89 ce 4c 89 c2 4d 89 ca 4c 8b 44 24 08 4c 8b 4c 24 10 4c 89 5c 24 08 0f 05 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 80 00 00 00 00 48 83 ec 08
RSP: 002b:00007fd7e93aefb8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007fd7e93af6c0 RCX: 00007fd7e855cece
RDX: 000000000000fdef RSI: 0000200000000400 RDI: 00000000000000c8
RBP: 00007fd7e8632b39 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fd7e8816038 R14: 00007fd7e8815fa0 R15: 00007ffe5c7c5038