BUG: Bad page state in process syz.0.16 pfn:595db
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff8880595db990 pfn:0x595db
flags: 0x4fff00000000000(node=1|zone=1|lastcpupid=0x7ff)
raw: 04fff00000000000 dead000000000040 ffff88801eed8000 0000000000000000
raw: ffff8880595db990 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 5882, tgid 5881 (syz.0.16), ts 146184881043, free_ts 146096486854
set_page_owner include/linux/page_owner.h:32 [inline]
post_alloc_hook+0x240/0x2a0 mm/page_alloc.c:1704
prep_new_page mm/page_alloc.c:1712 [inline]
get_page_from_freelist+0x21e4/0x22c0 mm/page_alloc.c:3669
__alloc_frozen_pages_noprof+0x181/0x370 mm/page_alloc.c:4959
__alloc_pages_noprof mm/page_alloc.c:4993 [inline]
alloc_pages_bulk_noprof+0x560/0x710 mm/page_alloc.c:4913
alloc_pages_bulk_node_noprof include/linux/gfp.h:254 [inline]
__page_pool_alloc_pages_slow+0x127/0x740 net/core/page_pool.c:567
page_pool_alloc_netmem include/net/page_pool/helpers.h:128 [inline]
page_pool_alloc include/net/page_pool/helpers.h:160 [inline]
page_pool_dev_alloc include/net/page_pool/helpers.h:181 [inline]
skb_pp_cow_data+0xb47/0x13e0 net/core/skbuff.c:952
netif_skb_check_for_xdp net/core/dev.c:5329 [inline]
netif_receive_generic_xdp net/core/dev.c:5370 [inline]
do_xdp_generic+0x699/0x11a0 net/core/dev.c:5438
__netif_receive_skb_core+0x1823/0x4180 net/core/dev.c:5788
__netif_receive_skb_one_core net/core/dev.c:5975 [inline]
__netif_receive_skb+0x72/0x380 net/core/dev.c:6090
netif_receive_skb_internal net/core/dev.c:6176 [inline]
netif_receive_skb+0x1cb/0x790 net/core/dev.c:6235
tun_rx_batched+0x1b9/0x730 drivers/net/tun.c:1485
tun_get_user+0x298e/0x3ce0 drivers/net/tun.c:1938
tun_chr_write_iter+0x113/0x200 drivers/net/tun.c:1984
new_sync_write fs/read_write.c:593 [inline]
vfs_write+0x54b/0xa90 fs/read_write.c:686
ksys_write+0x145/0x250 fs/read_write.c:738
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94
page last free pid 15 tgid 15 stack trace:
reset_page_owner include/linux/page_owner.h:25 [inline]
free_pages_prepare mm/page_alloc.c:1248 [inline]
__free_frozen_pages+0xc71/0xe70 mm/page_alloc.c:2706
rcu_do_batch kernel/rcu/tree.c:2576 [inline]
rcu_core+0xca5/0x1710 kernel/rcu/tree.c:2832
handle_softirqs+0x286/0x870 kernel/softirq.c:579
run_ksoftirqd+0x9b/0x100 kernel/softirq.c:968
smpboot_thread_fn+0x53f/0xa60 kernel/smpboot.c:164
kthread+0x70e/0x8a0 kernel/kthread.c:464
ret_from_fork+0x3fc/0x770 arch/x86/kernel/process.c:148
ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245
Modules linked in:
CPU: 0 UID: 0 PID: 5882 Comm: syz.0.16 Not tainted 6.16.0-rc4-syzkaller-g05df91921da6 #0 PREEMPT(full)
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014
Call Trace:
dump_stack_lvl+0x189/0x250 lib/dump_stack.c:120
bad_page+0x180/0x1c0 mm/page_alloc.c:506
free_page_is_bad mm/page_alloc.c:939 [inline]
free_pages_prepare mm/page_alloc.c:1240 [inline]
__free_frozen_pages+0xe17/0xe70 mm/page_alloc.c:2706
bpf_xdp_shrink_data net/core/filter.c:4172 [inline]
bpf_xdp_frags_shrink_tail+0x3a5/0x750 net/core/filter.c:4192
____bpf_xdp_adjust_tail net/core/filter.c:4217 [inline]
bpf_xdp_adjust_tail+0x1d6/0x220 net/core/filter.c:4210
bpf_prog_f476d5219b92964a+0x1e/0x24
__bpf_prog_run include/linux/filter.h:718 [inline]
bpf_prog_run_xdp include/net/xdp.h:657 [inline]
bpf_prog_run_generic_xdp+0x64b/0x14c0 net/core/dev.c:5260
netif_receive_generic_xdp net/core/dev.c:5376 [inline]
do_xdp_generic+0x9f7/0x11a0 net/core/dev.c:5438
__netif_receive_skb_core+0x1823/0x4180 net/core/dev.c:5788
__netif_receive_skb_one_core net/core/dev.c:5975 [inline]
__netif_receive_skb+0x72/0x380 net/core/dev.c:6090
netif_receive_skb_internal net/core/dev.c:6176 [inline]
netif_receive_skb+0x1cb/0x790 net/core/dev.c:6235
tun_rx_batched+0x1b9/0x730 drivers/net/tun.c:1485
tun_get_user+0x298e/0x3ce0 drivers/net/tun.c:1938
tun_chr_write_iter+0x113/0x200 drivers/net/tun.c:1984
new_sync_write fs/read_write.c:593 [inline]
vfs_write+0x54b/0xa90 fs/read_write.c:686
ksys_write+0x145/0x250 fs/read_write.c:738
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fca7018d3df
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:00007fca6f3fe000 EFLAGS: 00000293 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007fca703b5fa0 RCX: 00007fca7018d3df
RDX: 0000000000011dc0 RSI: 00002000000004c0 RDI: 00000000000000c8
RBP: 00007fca70210b39 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000011dc0 R11: 0000000000000293 R12: 0000000000000000
R13: 0000000000000000 R14: 00007fca703b5fa0 R15: 00007ffce3be7c68
BUG: Bad page state in process syz.0.16 pfn:597b4
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff8880597b4dc0 pfn:0x597b4
flags: 0x4fff00000000000(node=1|zone=1|lastcpupid=0x7ff)
raw: 04fff00000000000 dead000000000040 ffff88801eed8000 0000000000000000
raw: ffff8880597b4dc0 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 5882, tgid 5881 (syz.0.16), ts 146184869184, free_ts 146096506283
set_page_owner include/linux/page_owner.h:32 [inline]
post_alloc_hook+0x240/0x2a0 mm/page_alloc.c:1704
prep_new_page mm/page_alloc.c:1712 [inline]
get_page_from_freelist+0x21e4/0x22c0 mm/page_alloc.c:3669
__alloc_frozen_pages_noprof+0x181/0x370 mm/page_alloc.c:4959
__alloc_pages_noprof mm/page_alloc.c:4993 [inline]
alloc_pages_bulk_noprof+0x560/0x710 mm/page_alloc.c:4913
alloc_pages_bulk_node_noprof include/linux/gfp.h:254 [inline]
__page_pool_alloc_pages_slow+0x127/0x740 net/core/page_pool.c:567
page_pool_alloc_netmem include/net/page_pool/helpers.h:128 [inline]
page_pool_alloc include/net/page_pool/helpers.h:160 [inline]
page_pool_dev_alloc include/net/page_pool/helpers.h:181 [inline]
skb_pp_cow_data+0xb47/0x13e0 net/core/skbuff.c:952
netif_skb_check_for_xdp net/core/dev.c:5329 [inline]
netif_receive_generic_xdp net/core/dev.c:5370 [inline]
do_xdp_generic+0x699/0x11a0 net/core/dev.c:5438
__netif_receive_skb_core+0x1823/0x4180 net/core/dev.c:5788
__netif_receive_skb_one_core net/core/dev.c:5975 [inline]
__netif_receive_skb+0x72/0x380 net/core/dev.c:6090
netif_receive_skb_internal net/core/dev.c:6176 [inline]
netif_receive_skb+0x1cb/0x790 net/core/dev.c:6235
tun_rx_batched+0x1b9/0x730 drivers/net/tun.c:1485
tun_get_user+0x298e/0x3ce0 drivers/net/tun.c:1938
tun_chr_write_iter+0x113/0x200 drivers/net/tun.c:1984
new_sync_write fs/read_write.c:593 [inline]
vfs_write+0x54b/0xa90 fs/read_write.c:686
ksys_write+0x145/0x250 fs/read_write.c:738
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94
page last free pid 15 tgid 15 stack trace:
reset_page_owner include/linux/page_owner.h:25 [inline]
free_pages_prepare mm/page_alloc.c:1248 [inline]
__free_frozen_pages+0xc71/0xe70 mm/page_alloc.c:2706
rcu_do_batch kernel/rcu/tree.c:2576 [inline]
rcu_core+0xca5/0x1710 kernel/rcu/tree.c:2832
handle_softirqs+0x286/0x870 kernel/softirq.c:579
run_ksoftirqd+0x9b/0x100 kernel/softirq.c:968
smpboot_thread_fn+0x53f/0xa60 kernel/smpboot.c:164
kthread+0x70e/0x8a0 kernel/kthread.c:464
ret_from_fork+0x3fc/0x770 arch/x86/kernel/process.c:148
ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245
Modules linked in:
CPU: 0 UID: 0 PID: 5882 Comm: syz.0.16 Tainted: G B 6.16.0-rc4-syzkaller-g05df91921da6 #0 PREEMPT(full)
Tainted: [B]=BAD_PAGE
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014
Call Trace:
dump_stack_lvl+0x189/0x250 lib/dump_stack.c:120
bad_page+0x180/0x1c0 mm/page_alloc.c:506
free_page_is_bad mm/page_alloc.c:939 [inline]
free_pages_prepare mm/page_alloc.c:1240 [inline]
__free_frozen_pages+0xe17/0xe70 mm/page_alloc.c:2706
bpf_xdp_shrink_data net/core/filter.c:4172 [inline]
bpf_xdp_frags_shrink_tail+0x3a5/0x750 net/core/filter.c:4192
____bpf_xdp_adjust_tail net/core/filter.c:4217 [inline]
bpf_xdp_adjust_tail+0x1d6/0x220 net/core/filter.c:4210
bpf_prog_f476d5219b92964a+0x1e/0x24
__bpf_prog_run include/linux/filter.h:718 [inline]
bpf_prog_run_xdp include/net/xdp.h:657 [inline]
bpf_prog_run_generic_xdp+0x64b/0x14c0 net/core/dev.c:5260
netif_receive_generic_xdp net/core/dev.c:5376 [inline]
do_xdp_generic+0x9f7/0x11a0 net/core/dev.c:5438
__netif_receive_skb_core+0x1823/0x4180 net/core/dev.c:5788
__netif_receive_skb_one_core net/core/dev.c:5975 [inline]
__netif_receive_skb+0x72/0x380 net/core/dev.c:6090
netif_receive_skb_internal net/core/dev.c:6176 [inline]
netif_receive_skb+0x1cb/0x790 net/core/dev.c:6235
tun_rx_batched+0x1b9/0x730 drivers/net/tun.c:1485
tun_get_user+0x298e/0x3ce0 drivers/net/tun.c:1938
tun_chr_write_iter+0x113/0x200 drivers/net/tun.c:1984
new_sync_write fs/read_write.c:593 [inline]
vfs_write+0x54b/0xa90 fs/read_write.c:686
ksys_write+0x145/0x250 fs/read_write.c:738
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fca7018d3df
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:00007fca6f3fe000 EFLAGS: 00000293 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007fca703b5fa0 RCX: 00007fca7018d3df
RDX: 0000000000011dc0 RSI: 00002000000004c0 RDI: 00000000000000c8
RBP: 00007fca70210b39 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000011dc0 R11: 0000000000000293 R12: 0000000000000000
R13: 0000000000000000 R14: 00007fca703b5fa0 R15: 00007ffce3be7c68
BUG: Bad page state in process syz.0.16 pfn:4bc88
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff88804bc88dc0 pfn:0x4bc88
flags: 0x4fff00000000000(node=1|zone=1|lastcpupid=0x7ff)
raw: 04fff00000000000 dead000000000040 ffff88801eed8000 0000000000000000
raw: ffff88804bc88dc0 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 5882, tgid 5881 (syz.0.16), ts 146184859906, free_ts 146096523378
set_page_owner include/linux/page_owner.h:32 [inline]
post_alloc_hook+0x240/0x2a0 mm/page_alloc.c:1704
prep_new_page mm/page_alloc.c:1712 [inline]
get_page_from_freelist+0x21e4/0x22c0 mm/page_alloc.c:3669
__alloc_frozen_pages_noprof+0x181/0x370 mm/page_alloc.c:4959
__alloc_pages_noprof mm/page_alloc.c:4993 [inline]
alloc_pages_bulk_noprof+0x560/0x710 mm/page_alloc.c:4913
alloc_pages_bulk_node_noprof include/linux/gfp.h:254 [inline]
__page_pool_alloc_pages_slow+0x127/0x740 net/core/page_pool.c:567
page_pool_alloc_netmem include/net/page_pool/helpers.h:128 [inline]
page_pool_alloc include/net/page_pool/helpers.h:160 [inline]
page_pool_dev_alloc include/net/page_pool/helpers.h:181 [inline]
skb_pp_cow_data+0xb47/0x13e0 net/core/skbuff.c:952
netif_skb_check_for_xdp net/core/dev.c:5329 [inline]
netif_receive_generic_xdp net/core/dev.c:5370 [inline]
do_xdp_generic+0x699/0x11a0 net/core/dev.c:5438
__netif_receive_skb_core+0x1823/0x4180 net/core/dev.c:5788
__netif_receive_skb_one_core net/core/dev.c:5975 [inline]
__netif_receive_skb+0x72/0x380 net/core/dev.c:6090
netif_receive_skb_internal net/core/dev.c:6176 [inline]
netif_receive_skb+0x1cb/0x790 net/core/dev.c:6235
tun_rx_batched+0x1b9/0x730 drivers/net/tun.c:1485
tun_get_user+0x298e/0x3ce0 drivers/net/tun.c:1938
tun_chr_write_iter+0x113/0x200 drivers/net/tun.c:1984
new_sync_write fs/read_write.c:593 [inline]
vfs_write+0x54b/0xa90 fs/read_write.c:686
ksys_write+0x145/0x250 fs/read_write.c:738
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94
page last free pid 15 tgid 15 stack trace:
reset_page_owner include/linux/page_owner.h:25 [inline]
free_pages_prepare mm/page_alloc.c:1248 [inline]
__free_frozen_pages+0xc71/0xe70 mm/page_alloc.c:2706
rcu_do_batch kernel/rcu/tree.c:2576 [inline]
rcu_core+0xca5/0x1710 kernel/rcu/tree.c:2832
handle_softirqs+0x286/0x870 kernel/softirq.c:579
run_ksoftirqd+0x9b/0x100 kernel/softirq.c:968
smpboot_thread_fn+0x53f/0xa60 kernel/smpboot.c:164
kthread+0x70e/0x8a0 kernel/kthread.c:464
ret_from_fork+0x3fc/0x770 arch/x86/kernel/process.c:148
ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245
Modules linked in:
CPU: 0 UID: 0 PID: 5882 Comm: syz.0.16 Tainted: G B 6.16.0-rc4-syzkaller-g05df91921da6 #0 PREEMPT(full)
Tainted: [B]=BAD_PAGE
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014
Call Trace:
dump_stack_lvl+0x189/0x250 lib/dump_stack.c:120
bad_page+0x180/0x1c0 mm/page_alloc.c:506
free_page_is_bad mm/page_alloc.c:939 [inline]
free_pages_prepare mm/page_alloc.c:1240 [inline]
__free_frozen_pages+0xe17/0xe70 mm/page_alloc.c:2706
bpf_xdp_shrink_data net/core/filter.c:4172 [inline]
bpf_xdp_frags_shrink_tail+0x3a5/0x750 net/core/filter.c:4192
____bpf_xdp_adjust_tail net/core/filter.c:4217 [inline]
bpf_xdp_adjust_tail+0x1d6/0x220 net/core/filter.c:4210
bpf_prog_f476d5219b92964a+0x1e/0x24
__bpf_prog_run include/linux/filter.h:718 [inline]
bpf_prog_run_xdp include/net/xdp.h:657 [inline]
bpf_prog_run_generic_xdp+0x64b/0x14c0 net/core/dev.c:5260
netif_receive_generic_xdp net/core/dev.c:5376 [inline]
do_xdp_generic+0x9f7/0x11a0 net/core/dev.c:5438
__netif_receive_skb_core+0x1823/0x4180 net/core/dev.c:5788
__netif_receive_skb_one_core net/core/dev.c:5975 [inline]
__netif_receive_skb+0x72/0x380 net/core/dev.c:6090
netif_receive_skb_internal net/core/dev.c:6176 [inline]
netif_receive_skb+0x1cb/0x790 net/core/dev.c:6235
tun_rx_batched+0x1b9/0x730 drivers/net/tun.c:1485
tun_get_user+0x298e/0x3ce0 drivers/net/tun.c:1938
tun_chr_write_iter+0x113/0x200 drivers/net/tun.c:1984
new_sync_write fs/read_write.c:593 [inline]
vfs_write+0x54b/0xa90 fs/read_write.c:686
ksys_write+0x145/0x250 fs/read_write.c:738
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fca7018d3df
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:00007fca6f3fe000 EFLAGS: 00000293 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007fca703b5fa0 RCX: 00007fca7018d3df
RDX: 0000000000011dc0 RSI: 00002000000004c0 RDI: 00000000000000c8
RBP: 00007fca70210b39 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000011dc0 R11: 0000000000000293 R12: 0000000000000000
R13: 0000000000000000 R14: 00007fca703b5fa0 R15: 00007ffce3be7c68
BUG: Bad page state in process syz.0.16 pfn:44c78
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff888044c78dc0 pfn:0x44c78
flags: 0x4fff00000000000(node=1|zone=1|lastcpupid=0x7ff)
raw: 04fff00000000000 dead000000000040 ffff88801eed8000 0000000000000000
raw: ffff888044c78dc0 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 5882, tgid 5881 (syz.0.16), ts 146184850119, free_ts 146096539801
set_page_owner include/linux/page_owner.h:32 [inline]
post_alloc_hook+0x240/0x2a0 mm/page_alloc.c:1704
prep_new_page mm/page_alloc.c:1712 [inline]
get_page_from_freelist+0x21e4/0x22c0 mm/page_alloc.c:3669
__alloc_frozen_pages_noprof+0x181/0x370 mm/page_alloc.c:4959
__alloc_pages_noprof mm/page_alloc.c:4993 [inline]
alloc_pages_bulk_noprof+0x560/0x710 mm/page_alloc.c:4913
alloc_pages_bulk_node_noprof include/linux/gfp.h:254 [inline]
__page_pool_alloc_pages_slow+0x127/0x740 net/core/page_pool.c:567
page_pool_alloc_netmem include/net/page_pool/helpers.h:128 [inline]
page_pool_alloc include/net/page_pool/helpers.h:160 [inline]
page_pool_dev_alloc include/net/page_pool/helpers.h:181 [inline]
skb_pp_cow_data+0xb47/0x13e0 net/core/skbuff.c:952
netif_skb_check_for_xdp net/core/dev.c:5329 [inline]
netif_receive_generic_xdp net/core/dev.c:5370 [inline]
do_xdp_generic+0x699/0x11a0 net/core/dev.c:5438
__netif_receive_skb_core+0x1823/0x4180 net/core/dev.c:5788
__netif_receive_skb_one_core net/core/dev.c:5975 [inline]
__netif_receive_skb+0x72/0x380 net/core/dev.c:6090
netif_receive_skb_internal net/core/dev.c:6176 [inline]
netif_receive_skb+0x1cb/0x790 net/core/dev.c:6235
tun_rx_batched+0x1b9/0x730 drivers/net/tun.c:1485
tun_get_user+0x298e/0x3ce0 drivers/net/tun.c:1938
tun_chr_write_iter+0x113/0x200 drivers/net/tun.c:1984
new_sync_write fs/read_write.c:593 [inline]
vfs_write+0x54b/0xa90 fs/read_write.c:686
ksys_write+0x145/0x250 fs/read_write.c:738
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94
page last free pid 15 tgid 15 stack trace:
reset_page_owner include/linux/page_owner.h:25 [inline]
free_pages_prepare mm/page_alloc.c:1248 [inline]
__free_frozen_pages+0xc71/0xe70 mm/page_alloc.c:2706
rcu_do_batch kernel/rcu/tree.c:2576 [inline]
rcu_core+0xca5/0x1710 kernel/rcu/tree.c:2832
handle_softirqs+0x286/0x870 kernel/softirq.c:579
run_ksoftirqd+0x9b/0x100 kernel/softirq.c:968
smpboot_thread_fn+0x53f/0xa60 kernel/smpboot.c:164
kthread+0x70e/0x8a0 kernel/kthread.c:464
ret_from_fork+0x3fc/0x770 arch/x86/kernel/process.c:148
ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245
Modules linked in:
CPU: 0 UID: 0 PID: 5882 Comm: syz.0.16 Tainted: G B 6.16.0-rc4-syzkaller-g05df91921da6 #0 PREEMPT(full)
Tainted: [B]=BAD_PAGE
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014
Call Trace:
dump_stack_lvl+0x189/0x250 lib/dump_stack.c:120
bad_page+0x180/0x1c0 mm/page_alloc.c:506
free_page_is_bad mm/page_alloc.c:939 [inline]
free_pages_prepare mm/page_alloc.c:1240 [inline]
__free_frozen_pages+0xe17/0xe70 mm/page_alloc.c:2706
bpf_xdp_shrink_data net/core/filter.c:4172 [inline]
bpf_xdp_frags_shrink_tail+0x3a5/0x750 net/core/filter.c:4192
____bpf_xdp_adjust_tail net/core/filter.c:4217 [inline]
bpf_xdp_adjust_tail+0x1d6/0x220 net/core/filter.c:4210
bpf_prog_f476d5219b92964a+0x1e/0x24
__bpf_prog_run include/linux/filter.h:718 [inline]
bpf_prog_run_xdp include/net/xdp.h:657 [inline]
bpf_prog_run_generic_xdp+0x64b/0x14c0 net/core/dev.c:5260
netif_receive_generic_xdp net/core/dev.c:5376 [inline]
do_xdp_generic+0x9f7/0x11a0 net/core/dev.c:5438
__netif_receive_skb_core+0x1823/0x4180 net/core/dev.c:5788
__netif_receive_skb_one_core net/core/dev.c:5975 [inline]
__netif_receive_skb+0x72/0x380 net/core/dev.c:6090
netif_receive_skb_internal net/core/dev.c:6176 [inline]
netif_receive_skb+0x1cb/0x790 net/core/dev.c:6235
tun_rx_batched+0x1b9/0x730 drivers/net/tun.c:1485
tun_get_user+0x298e/0x3ce0 drivers/net/tun.c:1938
tun_chr_write_iter+0x113/0x200 drivers/net/tun.c:1984
new_sync_write fs/read_write.c:593 [inline]
vfs_write+0x54b/0xa90 fs/read_write.c:686
ksys_write+0x145/0x250 fs/read_write.c:738
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fca7018d3df
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:00007fca6f3fe000 EFLAGS: 00000293 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007fca703b5fa0 RCX: 00007fca7018d3df
RDX: 0000000000011dc0 RSI: 00002000000004c0 RDI: 00000000000000c8
RBP: 00007fca70210b39 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000011dc0 R11: 0000000000000293 R12: 0000000000000000
R13: 0000000000000000 R14: 00007fca703b5fa0 R15: 00007ffce3be7c68
BUG: Bad page state in process syz.0.16 pfn:5957a
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff88805957adc0 pfn:0x5957a
flags: 0x4fff00000000000(node=1|zone=1|lastcpupid=0x7ff)
raw: 04fff00000000000 dead000000000040 ffff88801eed8000 0000000000000000
raw: ffff88805957adc0 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 5882, tgid 5881 (syz.0.16), ts 146184840762, free_ts 146096558390
set_page_owner include/linux/page_owner.h:32 [inline]
post_alloc_hook+0x240/0x2a0 mm/page_alloc.c:1704
prep_new_page mm/page_alloc.c:1712 [inline]
get_page_from_freelist+0x21e4/0x22c0 mm/page_alloc.c:3669
__alloc_frozen_pages_noprof+0x181/0x370 mm/page_alloc.c:4959
__alloc_pages_noprof mm/page_alloc.c:4993 [inline]
alloc_pages_bulk_noprof+0x560/0x710 mm/page_alloc.c:4913
alloc_pages_bulk_node_noprof include/linux/gfp.h:254 [inline]
__page_pool_alloc_pages_slow+0x127/0x740 net/core/page_pool.c:567
page_pool_alloc_netmem include/net/page_pool/helpers.h:128 [inline]
page_pool_alloc include/net/page_pool/helpers.h:160 [inline]
page_pool_dev_alloc include/net/page_pool/helpers.h:181 [inline]
skb_pp_cow_data+0xb47/0x13e0 net/core/skbuff.c:952
netif_skb_check_for_xdp net/core/dev.c:5329 [inline]
netif_receive_generic_xdp net/core/dev.c:5370 [inline]
do_xdp_generic+0x699/0x11a0 net/core/dev.c:5438
__netif_receive_skb_core+0x1823/0x4180 net/core/dev.c:5788
__netif_receive_skb_one_core net/core/dev.c:5975 [inline]
__netif_receive_skb+0x72/0x380 net/core/dev.c:6090
netif_receive_skb_internal net/core/dev.c:6176 [inline]
netif_receive_skb+0x1cb/0x790 net/core/dev.c:6235
tun_rx_batched+0x1b9/0x730 drivers/net/tun.c:1485
tun_get_user+0x298e/0x3ce0 drivers/net/tun.c:1938
tun_chr_write_iter+0x113/0x200 drivers/net/tun.c:1984
new_sync_write fs/read_write.c:593 [inline]
vfs_write+0x54b/0xa90 fs/read_write.c:686
ksys_write+0x145/0x250 fs/read_write.c:738
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94
page last free pid 15 tgid 15 stack trace:
reset_page_owner include/linux/page_owner.h:25 [inline]
free_pages_prepare mm/page_alloc.c:1248 [inline]
__free_frozen_pages+0xc71/0xe70 mm/page_alloc.c:2706
rcu_do_batch kernel/rcu/tree.c:2576 [inline]
rcu_core+0xca5/0x1710 kernel/rcu/tree.c:2832
handle_softirqs+0x286/0x870 kernel/softirq.c:579
run_ksoftirqd+0x9b/0x100 kernel/softirq.c:968
smpboot_thread_fn+0x53f/0xa60 kernel/smpboot.c:164
kthread+0x70e/0x8a0 kernel/kthread.c:464
ret_from_fork+0x3fc/0x770 arch/x86/kernel/process.c:148
ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245
Modules linked in:
CPU: 0 UID: 0 PID: 5882 Comm: syz.0.16 Tainted: G B 6.16.0-rc4-syzkaller-g05df91921da6 #0 PREEMPT(full)
Tainted: [B]=BAD_PAGE
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014
Call Trace:
dump_stack_lvl+0x189/0x250 lib/dump_stack.c:120
bad_page+0x180/0x1c0 mm/page_alloc.c:506
free_page_is_bad mm/page_alloc.c:939 [inline]
free_pages_prepare mm/page_alloc.c:1240 [inline]
__free_frozen_pages+0xe17/0xe70 mm/page_alloc.c:2706
bpf_xdp_shrink_data net/core/filter.c:4172 [inline]
bpf_xdp_frags_shrink_tail+0x3a5/0x750 net/core/filter.c:4192
____bpf_xdp_adjust_tail net/core/filter.c:4217 [inline]
bpf_xdp_adjust_tail+0x1d6/0x220 net/core/filter.c:4210
bpf_prog_f476d5219b92964a+0x1e/0x24
__bpf_prog_run include/linux/filter.h:718 [inline]
bpf_prog_run_xdp include/net/xdp.h:657 [inline]
bpf_prog_run_generic_xdp+0x64b/0x14c0 net/core/dev.c:5260
netif_receive_generic_xdp net/core/dev.c:5376 [inline]
do_xdp_generic+0x9f7/0x11a0 net/core/dev.c:5438
__netif_receive_skb_core+0x1823/0x4180 net/core/dev.c:5788
__netif_receive_skb_one_core net/core/dev.c:5975 [inline]
__netif_receive_skb+0x72/0x380 net/core/dev.c:6090
netif_receive_skb_internal net/core/dev.c:6176 [inline]
netif_receive_skb+0x1cb/0x790 net/core/dev.c:6235
tun_rx_batched+0x1b9/0x730 drivers/net/tun.c:1485
tun_get_user+0x298e/0x3ce0 drivers/net/tun.c:1938
tun_chr_write_iter+0x113/0x200 drivers/net/tun.c:1984
new_sync_write fs/read_write.c:593 [inline]
vfs_write+0x54b/0xa90 fs/read_write.c:686
ksys_write+0x145/0x250 fs/read_write.c:738
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fca7018d3df
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:00007fca6f3fe000 EFLAGS: 00000293 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007fca703b5fa0 RCX: 00007fca7018d3df
RDX: 0000000000011dc0 RSI: 00002000000004c0 RDI: 00000000000000c8
RBP: 00007fca70210b39 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000011dc0 R11: 0000000000000293 R12: 0000000000000000
R13: 0000000000000000 R14: 00007fca703b5fa0 R15: 00007ffce3be7c68
BUG: Bad page state in process syz.0.16 pfn:3d2e8
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff88803d2e8dc0 pfn:0x3d2e8
flags: 0x4fff00000000000(node=1|zone=1|lastcpupid=0x7ff)
raw: 04fff00000000000 dead000000000040 ffff88801eed8000 0000000000000000
raw: ffff88803d2e8dc0 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 5882, tgid 5881 (syz.0.16), ts 146184829076, free_ts 146106548844
set_page_owner include/linux/page_owner.h:32 [inline]
post_alloc_hook+0x240/0x2a0 mm/page_alloc.c:1704
prep_new_page mm/page_alloc.c:1712 [inline]
get_page_from_freelist+0x21e4/0x22c0 mm/page_alloc.c:3669
__alloc_frozen_pages_noprof+0x181/0x370 mm/page_alloc.c:4959
__alloc_pages_noprof mm/page_alloc.c:4993 [inline]
alloc_pages_bulk_noprof+0x560/0x710 mm/page_alloc.c:4913
alloc_pages_bulk_node_noprof include/linux/gfp.h:254 [inline]
__page_pool_alloc_pages_slow+0x127/0x740 net/core/page_pool.c:567
page_pool_alloc_netmem include/net/page_pool/helpers.h:128 [inline]
page_pool_alloc include/net/page_pool/helpers.h:160 [inline]
page_pool_dev_alloc include/net/page_pool/helpers.h:181 [inline]
skb_pp_cow_data+0xb47/0x13e0 net/core/skbuff.c:952
netif_skb_check_for_xdp net/core/dev.c:5329 [inline]
netif_receive_generic_xdp net/core/dev.c:5370 [inline]
do_xdp_generic+0x699/0x11a0 net/core/dev.c:5438
__netif_receive_skb_core+0x1823/0x4180 net/core/dev.c:5788
__netif_receive_skb_one_core net/core/dev.c:5975 [inline]
__netif_receive_skb+0x72/0x380 net/core/dev.c:6090
netif_receive_skb_internal net/core/dev.c:6176 [inline]
netif_receive_skb+0x1cb/0x790 net/core/dev.c:6235
tun_rx_batched+0x1b9/0x730 drivers/net/tun.c:1485
tun_get_user+0x298e/0x3ce0 drivers/net/tun.c:1938
tun_chr_write_iter+0x113/0x200 drivers/net/tun.c:1984
new_sync_write fs/read_write.c:593 [inline]
vfs_write+0x54b/0xa90 fs/read_write.c:686
ksys_write+0x145/0x250 fs/read_write.c:738
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94
page last free pid 15 tgid 15 stack trace:
reset_page_owner include/linux/page_owner.h:25 [inline]
free_pages_prepare mm/page_alloc.c:1248 [inline]
__free_frozen_pages+0xc71/0xe70 mm/page_alloc.c:2706
pagetable_free include/linux/mm.h:2879 [inline]
pagetable_dtor_free include/linux/mm.h:2977 [inline]
__tlb_remove_table+0x2d2/0x3b0 include/asm-generic/tlb.h:220
__tlb_remove_table_free mm/mmu_gather.c:227 [inline]
tlb_remove_table_rcu+0x85/0x100 mm/mmu_gather.c:290
rcu_do_batch kernel/rcu/tree.c:2576 [inline]
rcu_core+0xca5/0x1710 kernel/rcu/tree.c:2832
handle_softirqs+0x286/0x870 kernel/softirq.c:579
run_ksoftirqd+0x9b/0x100 kernel/softirq.c:968
smpboot_thread_fn+0x53f/0xa60 kernel/smpboot.c:164
kthread+0x70e/0x8a0 kernel/kthread.c:464
ret_from_fork+0x3fc/0x770 arch/x86/kernel/process.c:148
ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245
Modules linked in:
CPU: 0 UID: 0 PID: 5882 Comm: syz.0.16 Tainted: G B 6.16.0-rc4-syzkaller-g05df91921da6 #0 PREEMPT(full)
Tainted: [B]=BAD_PAGE
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014
Call Trace:
dump_stack_lvl+0x189/0x250 lib/dump_stack.c:120
bad_page+0x180/0x1c0 mm/page_alloc.c:506
free_page_is_bad mm/page_alloc.c:939 [inline]
free_pages_prepare mm/page_alloc.c:1240 [inline]
__free_frozen_pages+0xe17/0xe70 mm/page_alloc.c:2706
bpf_xdp_shrink_data net/core/filter.c:4172 [inline]
bpf_xdp_frags_shrink_tail+0x3a5/0x750 net/core/filter.c:4192
____bpf_xdp_adjust_tail net/core/filter.c:4217 [inline]
bpf_xdp_adjust_tail+0x1d6/0x220 net/core/filter.c:4210
bpf_prog_f476d5219b92964a+0x1e/0x24
__bpf_prog_run include/linux/filter.h:718 [inline]
bpf_prog_run_xdp include/net/xdp.h:657 [inline]
bpf_prog_run_generic_xdp+0x64b/0x14c0 net/core/dev.c:5260
netif_receive_generic_xdp net/core/dev.c:5376 [inline]
do_xdp_generic+0x9f7/0x11a0 net/core/dev.c:5438
__netif_receive_skb_core+0x1823/0x4180 net/core/dev.c:5788
__netif_receive_skb_one_core net/core/dev.c:5975 [inline]
__netif_receive_skb+0x72/0x380 net/core/dev.c:6090
netif_receive_skb_internal net/core/dev.c:6176 [inline]
netif_receive_skb+0x1cb/0x790 net/core/dev.c:6235
tun_rx_batched+0x1b9/0x730 drivers/net/tun.c:1485
tun_get_user+0x298e/0x3ce0 drivers/net/tun.c:1938
tun_chr_write_iter+0x113/0x200 drivers/net/tun.c:1984
new_sync_write fs/read_write.c:593 [inline]
vfs_write+0x54b/0xa90 fs/read_write.c:686
ksys_write+0x145/0x250 fs/read_write.c:738
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fca7018d3df
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:00007fca6f3fe000 EFLAGS: 00000293 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007fca703b5fa0 RCX: 00007fca7018d3df
RDX: 0000000000011dc0 RSI: 00002000000004c0 RDI: 00000000000000c8
RBP: 00007fca70210b39 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000011dc0 R11: 0000000000000293 R12: 0000000000000000
R13: 0000000000000000 R14: 00007fca703b5fa0 R15: 00007ffce3be7c68
BUG: Bad page state in process syz.0.16 pfn:59747
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff888059747dc0 pfn:0x59747
flags: 0x4fff00000000000(node=1|zone=1|lastcpupid=0x7ff)
raw: 04fff00000000000 dead000000000040 ffff88801eed8000 0000000000000000
raw: ffff888059747dc0 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 5882, tgid 5881 (syz.0.16), ts 146184772783, free_ts 146106568616
set_page_owner include/linux/page_owner.h:32 [inline]
post_alloc_hook+0x240/0x2a0 mm/page_alloc.c:1704
prep_new_page mm/page_alloc.c:1712 [inline]
get_page_from_freelist+0x21e4/0x22c0 mm/page_alloc.c:3669
__alloc_frozen_pages_noprof+0x181/0x370 mm/page_alloc.c:4959
__alloc_pages_noprof mm/page_alloc.c:4993 [inline]
alloc_pages_bulk_noprof+0x560/0x710 mm/page_alloc.c:4913
alloc_pages_bulk_node_noprof include/linux/gfp.h:254 [inline]
__page_pool_alloc_pages_slow+0x127/0x740 net/core/page_pool.c:567
page_pool_alloc_netmem include/net/page_pool/helpers.h:128 [inline]
page_pool_alloc include/net/page_pool/helpers.h:160 [inline]
page_pool_dev_alloc include/net/page_pool/helpers.h:181 [inline]
skb_pp_cow_data+0xb47/0x13e0 net/core/skbuff.c:952
netif_skb_check_for_xdp net/core/dev.c:5329 [inline]
netif_receive_generic_xdp net/core/dev.c:5370 [inline]
do_xdp_generic+0x699/0x11a0 net/core/dev.c:5438
__netif_receive_skb_core+0x1823/0x4180 net/core/dev.c:5788
__netif_receive_skb_one_core net/core/dev.c:5975 [inline]
__netif_receive_skb+0x72/0x380 net/core/dev.c:6090
netif_receive_skb_internal net/core/dev.c:6176 [inline]
netif_receive_skb+0x1cb/0x790 net/core/dev.c:6235
tun_rx_batched+0x1b9/0x730 drivers/net/tun.c:1485
tun_get_user+0x298e/0x3ce0 drivers/net/tun.c:1938
tun_chr_write_iter+0x113/0x200 drivers/net/tun.c:1984
new_sync_write fs/read_write.c:593 [inline]
vfs_write+0x54b/0xa90 fs/read_write.c:686
ksys_write+0x145/0x250 fs/read_write.c:738
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94
page last free pid 15 tgid 15 stack trace:
reset_page_owner include/linux/page_owner.h:25 [inline]
free_pages_prepare mm/page_alloc.c:1248 [inline]
__free_frozen_pages+0xc71/0xe70 mm/page_alloc.c:2706
pagetable_free include/linux/mm.h:2879 [inline]
pagetable_dtor_free include/linux/mm.h:2977 [inline]
__tlb_remove_table+0x2d2/0x3b0 include/asm-generic/tlb.h:220
__tlb_remove_table_free mm/mmu_gather.c:227 [inline]
tlb_remove_table_rcu+0x85/0x100 mm/mmu_gather.c:290
rcu_do_batch kernel/rcu/tree.c:2576 [inline]
rcu_core+0xca5/0x1710 kernel/rcu/tree.c:2832
handle_softirqs+0x286/0x870 kernel/softirq.c:579
run_ksoftirqd+0x9b/0x100 kernel/softirq.c:968
smpboot_thread_fn+0x53f/0xa60 kernel/smpboot.c:164
kthread+0x70e/0x8a0 kernel/kthread.c:464
ret_from_fork+0x3fc/0x770 arch/x86/kernel/process.c:148
ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245
Modules linked in:
CPU: 0 UID: 0 PID: 5882 Comm: syz.0.16 Tainted: G B 6.16.0-rc4-syzkaller-g05df91921da6 #0 PREEMPT(full)
Tainted: [B]=BAD_PAGE
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014
Call Trace:
dump_stack_lvl+0x189/0x250 lib/dump_stack.c:120
bad_page+0x180/0x1c0 mm/page_alloc.c:506
free_page_is_bad mm/page_alloc.c:939 [inline]
free_pages_prepare mm/page_alloc.c:1240 [inline]
__free_frozen_pages+0xe17/0xe70 mm/page_alloc.c:2706
bpf_xdp_shrink_data net/core/filter.c:4172 [inline]
bpf_xdp_frags_shrink_tail+0x3a5/0x750 net/core/filter.c:4192
____bpf_xdp_adjust_tail net/core/filter.c:4217 [inline]
bpf_xdp_adjust_tail+0x1d6/0x220 net/core/filter.c:4210
bpf_prog_f476d5219b92964a+0x1e/0x24
__bpf_prog_run include/linux/filter.h:718 [inline]
bpf_prog_run_xdp include/net/xdp.h:657 [inline]
bpf_prog_run_generic_xdp+0x64b/0x14c0 net/core/dev.c:5260
netif_receive_generic_xdp net/core/dev.c:5376 [inline]
do_xdp_generic+0x9f7/0x11a0 net/core/dev.c:5438
__netif_receive_skb_core+0x1823/0x4180 net/core/dev.c:5788
__netif_receive_skb_one_core net/core/dev.c:5975 [inline]
__netif_receive_skb+0x72/0x380 net/core/dev.c:6090
netif_receive_skb_internal net/core/dev.c:6176 [inline]
netif_receive_skb+0x1cb/0x790 net/core/dev.c:6235
tun_rx_batched+0x1b9/0x730 drivers/net/tun.c:1485
tun_get_user+0x298e/0x3ce0 drivers/net/tun.c:1938
tun_chr_write_iter+0x113/0x200 drivers/net/tun.c:1984
new_sync_write fs/read_write.c:593 [inline]
vfs_write+0x54b/0xa90 fs/read_write.c:686
ksys_write+0x145/0x250 fs/read_write.c:738
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fca7018d3df
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:00007fca6f3fe000 EFLAGS: 00000293 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007fca703b5fa0 RCX: 00007fca7018d3df
RDX: 0000000000011dc0 RSI: 00002000000004c0 RDI: 00000000000000c8
RBP: 00007fca70210b39 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000011dc0 R11: 0000000000000293 R12: 0000000000000000
R13: 0000000000000000 R14: 00007fca703b5fa0 R15: 00007ffce3be7c68
BUG: Bad page state in process syz.0.16 pfn:54d0f
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff888000000000 pfn:0x54d0f
flags: 0x4fff00000000000(node=1|zone=1|lastcpupid=0x7ff)
raw: 04fff00000000000 dead000000000040 ffff88801eed8000 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 5882, tgid 5881 (syz.0.16), ts 146184760394, free_ts 146106586018
set_page_owner include/linux/page_owner.h:32 [inline]
post_alloc_hook+0x240/0x2a0 mm/page_alloc.c:1704
prep_new_page mm/page_alloc.c:1712 [inline]
get_page_from_freelist+0x21e4/0x22c0 mm/page_alloc.c:3669
__alloc_frozen_pages_noprof+0x181/0x370 mm/page_alloc.c:4959
__alloc_pages_noprof mm/page_alloc.c:4993 [inline]
alloc_pages_bulk_noprof+0x560/0x710 mm/page_alloc.c:4913
alloc_pages_bulk_node_noprof include/linux/gfp.h:254 [inline]
__page_pool_alloc_pages_slow+0x127/0x740 net/core/page_pool.c:567
page_pool_alloc_netmem include/net/page_pool/helpers.h:128 [inline]
page_pool_alloc include/net/page_pool/helpers.h:160 [inline]
page_pool_dev_alloc include/net/page_pool/helpers.h:181 [inline]
skb_pp_cow_data+0xb47/0x13e0 net/core/skbuff.c:952
netif_skb_check_for_xdp net/core/dev.c:5329 [inline]
netif_receive_generic_xdp net/core/dev.c:5370 [inline]
do_xdp_generic+0x699/0x11a0 net/core/dev.c:5438
__netif_receive_skb_core+0x1823/0x4180 net/core/dev.c:5788
__netif_receive_skb_one_core net/core/dev.c:5975 [inline]
__netif_receive_skb+0x72/0x380 net/core/dev.c:6090
netif_receive_skb_internal net/core/dev.c:6176 [inline]
netif_receive_skb+0x1cb/0x790 net/core/dev.c:6235
tun_rx_batched+0x1b9/0x730 drivers/net/tun.c:1485
tun_get_user+0x298e/0x3ce0 drivers/net/tun.c:1938
tun_chr_write_iter+0x113/0x200 drivers/net/tun.c:1984
new_sync_write fs/read_write.c:593 [inline]
vfs_write+0x54b/0xa90 fs/read_write.c:686
ksys_write+0x145/0x250 fs/read_write.c:738
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94
page last free pid 15 tgid 15 stack trace:
reset_page_owner include/linux/page_owner.h:25 [inline]
free_pages_prepare mm/page_alloc.c:1248 [inline]
__free_frozen_pages+0xc71/0xe70 mm/page_alloc.c:2706
pagetable_free include/linux/mm.h:2879 [inline]
pagetable_dtor_free include/linux/mm.h:2977 [inline]
__tlb_remove_table+0x2d2/0x3b0 include/asm-generic/tlb.h:220
__tlb_remove_table_free mm/mmu_gather.c:227 [inline]
tlb_remove_table_rcu+0x85/0x100 mm/mmu_gather.c:290
rcu_do_batch kernel/rcu/tree.c:2576 [inline]
rcu_core+0xca5/0x1710 kernel/rcu/tree.c:2832
handle_softirqs+0x286/0x870 kernel/softirq.c:579
run_ksoftirqd+0x9b/0x100 kernel/softirq.c:968
smpboot_thread_fn+0x53f/0xa60 kernel/smpboot.c:164
kthread+0x70e/0x8a0 kernel/kthread.c:464
ret_from_fork+0x3fc/0x770 arch/x86/kernel/process.c:148
ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245
Modules linked in:
CPU: 0 UID: 0 PID: 5882 Comm: syz.0.16 Tainted: G B 6.16.0-rc4-syzkaller-g05df91921da6 #0 PREEMPT(full)
Tainted: [B]=BAD_PAGE
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014
Call Trace:
dump_stack_lvl+0x189/0x250 lib/dump_stack.c:120
bad_page+0x180/0x1c0 mm/page_alloc.c:506
free_page_is_bad mm/page_alloc.c:939 [inline]
free_pages_prepare mm/page_alloc.c:1240 [inline]
__free_frozen_pages+0xe17/0xe70 mm/page_alloc.c:2706
bpf_xdp_shrink_data net/core/filter.c:4172 [inline]
bpf_xdp_frags_shrink_tail+0x3a5/0x750 net/core/filter.c:4192
____bpf_xdp_adjust_tail net/core/filter.c:4217 [inline]
bpf_xdp_adjust_tail+0x1d6/0x220 net/core/filter.c:4210
bpf_prog_f476d5219b92964a+0x1e/0x24
__bpf_prog_run include/linux/filter.h:718 [inline]
bpf_prog_run_xdp include/net/xdp.h:657 [inline]
bpf_prog_run_generic_xdp+0x64b/0x14c0 net/core/dev.c:5260
netif_receive_generic_xdp net/core/dev.c:5376 [inline]
do_xdp_generic+0x9f7/0x11a0 net/core/dev.c:5438
__netif_receive_skb_core+0x1823/0x4180 net/core/dev.c:5788
__netif_receive_skb_one_core net/core/dev.c:5975 [inline]
__netif_receive_skb+0x72/0x380 net/core/dev.c:6090
netif_receive_skb_internal net/core/dev.c:6176 [inline]
netif_receive_skb+0x1cb/0x790 net/core/dev.c:6235
tun_rx_batched+0x1b9/0x730 drivers/net/tun.c:1485
tun_get_user+0x298e/0x3ce0 drivers/net/tun.c:1938
tun_chr_write_iter+0x113/0x200 drivers/net/tun.c:1984
new_sync_write fs/read_write.c:593 [inline]
vfs_write+0x54b/0xa90 fs/read_write.c:686
ksys_write+0x145/0x250 fs/read_write.c:738
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fca7018d3df
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:00007fca6f3fe000 EFLAGS: 00000293 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007fca703b5fa0 RCX: 00007fca7018d3df
RDX: 0000000000011dc0 RSI: 00002000000004c0 RDI: 00000000000000c8
RBP: 00007fca70210b39 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000011dc0 R11: 0000000000000293 R12: 0000000000000000
R13: 0000000000000000 R14: 00007fca703b5fa0 R15: 00007ffce3be7c68
BUG: Bad page state in process syz.0.16 pfn:59ca1
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff888059ca1000 pfn:0x59ca1
flags: 0x4fff00000000000(node=1|zone=1|lastcpupid=0x7ff)
raw: 04fff00000000000 dead000000000040 ffff88801eed8000 0000000000000000
raw: ffff888059ca1000 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 5882, tgid 5881 (syz.0.16), ts 146184746703, free_ts 146106596648
set_page_owner include/linux/page_owner.h:32 [inline]
post_alloc_hook+0x240/0x2a0 mm/page_alloc.c:1704
prep_new_page mm/page_alloc.c:1712 [inline]
get_page_from_freelist+0x21e4/0x22c0 mm/page_alloc.c:3669
__alloc_frozen_pages_noprof+0x181/0x370 mm/page_alloc.c:4959
__alloc_pages_noprof mm/page_alloc.c:4993 [inline]
alloc_pages_bulk_noprof+0x560/0x710 mm/page_alloc.c:4913
alloc_pages_bulk_node_noprof include/linux/gfp.h:254 [inline]
__page_pool_alloc_pages_slow+0x127/0x740 net/core/page_pool.c:567
page_pool_alloc_netmem include/net/page_pool/helpers.h:128 [inline]
page_pool_alloc include/net/page_pool/helpers.h:160 [inline]
page_pool_dev_alloc include/net/page_pool/helpers.h:181 [inline]
skb_pp_cow_data+0xb47/0x13e0 net/core/skbuff.c:952
netif_skb_check_for_xdp net/core/dev.c:5329 [inline]
netif_receive_generic_xdp net/core/dev.c:5370 [inline]
do_xdp_generic+0x699/0x11a0 net/core/dev.c:5438
__netif_receive_skb_core+0x1823/0x4180 net/core/dev.c:5788
__netif_receive_skb_one_core net/core/dev.c:5975 [inline]
__netif_receive_skb+0x72/0x380 net/core/dev.c:6090
netif_receive_skb_internal net/core/dev.c:6176 [inline]
netif_receive_skb+0x1cb/0x790 net/core/dev.c:6235
tun_rx_batched+0x1b9/0x730 drivers/net/tun.c:1485
tun_get_user+0x298e/0x3ce0 drivers/net/tun.c:1938
tun_chr_write_iter+0x113/0x200 drivers/net/tun.c:1984
new_sync_write fs/read_write.c:593 [inline]
vfs_write+0x54b/0xa90 fs/read_write.c:686
ksys_write+0x145/0x250 fs/read_write.c:738
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94
page last free pid 15 tgid 15 stack trace:
reset_page_owner include/linux/page_owner.h:25 [inline]
free_pages_prepare mm/page_alloc.c:1248 [inline]
__free_frozen_pages+0xc71/0xe70 mm/page_alloc.c:2706
pagetable_free include/linux/mm.h:2879 [inline]
pagetable_dtor_free include/linux/mm.h:2977 [inline]
__tlb_remove_table+0x2d2/0x3b0 include/asm-generic/tlb.h:220
__tlb_remove_table_free mm/mmu_gather.c:227 [inline]
tlb_remove_table_rcu+0x85/0x100 mm/mmu_gather.c:290
rcu_do_batch kernel/rcu/tree.c:2576 [inline]
rcu_core+0xca5/0x1710 kernel/rcu/tree.c:2832
handle_softirqs+0x286/0x870 kernel/softirq.c:579
run_ksoftirqd+0x9b/0x100 kernel/softirq.c:968
smpboot_thread_fn+0x53f/0xa60 kernel/smpboot.c:164
kthread+0x70e/0x8a0 kernel/kthread.c:464
ret_from_fork+0x3fc/0x770 arch/x86/kernel/process.c:148
ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245
Modules linked in:
CPU: 0 UID: 0 PID: 5882 Comm: syz.0.16 Tainted: G B 6.16.0-rc4-syzkaller-g05df91921da6 #0 PREEMPT(full)
Tainted: [B]=BAD_PAGE
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014
Call Trace:
dump_stack_lvl+0x189/0x250 lib/dump_stack.c:120
bad_page+0x180/0x1c0 mm/page_alloc.c:506
free_page_is_bad mm/page_alloc.c:939 [inline]
free_pages_prepare mm/page_alloc.c:1240 [inline]
__free_frozen_pages+0xe17/0xe70 mm/page_alloc.c:2706
bpf_xdp_shrink_data net/core/filter.c:4172 [inline]
bpf_xdp_frags_shrink_tail+0x3a5/0x750 net/core/filter.c:4192
____bpf_xdp_adjust_tail net/core/filter.c:4217 [inline]
bpf_xdp_adjust_tail+0x1d6/0x220 net/core/filter.c:4210
bpf_prog_f476d5219b92964a+0x1e/0x24
__bpf_prog_run include/linux/filter.h:718 [inline]
bpf_prog_run_xdp include/net/xdp.h:657 [inline]
bpf_prog_run_generic_xdp+0x64b/0x14c0 net/core/dev.c:5260
netif_receive_generic_xdp net/core/dev.c:5376 [inline]
do_xdp_generic+0x9f7/0x11a0 net/core/dev.c:5438
__netif_receive_skb_core+0x1823/0x4180 net/core/dev.c:5788
__netif_receive_skb_one_core net/core/dev.c:5975 [inline]
__netif_receive_skb+0x72/0x380 net/core/dev.c:6090
netif_receive_skb_internal net/core/dev.c:6176 [inline]
netif_receive_skb+0x1cb/0x790 net/core/dev.c:6235
tun_rx_batched+0x1b9/0x730 drivers/net/tun.c:1485
tun_get_user+0x298e/0x3ce0 drivers/net/tun.c:1938
tun_chr_write_iter+0x113/0x200 drivers/net/tun.c:1984
new_sync_write fs/read_write.c:593 [inline]
vfs_write+0x54b/0xa90 fs/read_write.c:686
ksys_write+0x145/0x250 fs/read_write.c:738
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fca7018d3df
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:00007fca6f3fe000 EFLAGS: 00000293 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007fca703b5fa0 RCX: 00007fca7018d3df
RDX: 0000000000011dc0 RSI: 00002000000004c0 RDI: 00000000000000c8
RBP: 00007fca70210b39 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000011dc0 R11: 0000000000000293 R12: 0000000000000000
R13: 0000000000000000 R14: 00007fca703b5fa0 R15: 00007ffce3be7c68
BUG: Bad page state in process syz.0.16 pfn:34bcb
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff888034bcbe00 pfn:0x34bcb
flags: 0x4fff00000000000(node=1|zone=1|lastcpupid=0x7ff)
raw: 04fff00000000000 dead000000000040 ffff88801eed8000 0000000000000000
raw: ffff888034bcbe00 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 5882, tgid 5881 (syz.0.16), ts 146184733954, free_ts 146159128962
set_page_owner include/linux/page_owner.h:32 [inline]
post_alloc_hook+0x240/0x2a0 mm/page_alloc.c:1704
prep_new_page mm/page_alloc.c:1712 [inline]
get_page_from_freelist+0x21e4/0x22c0 mm/page_alloc.c:3669
__alloc_frozen_pages_noprof+0x181/0x370 mm/page_alloc.c:4959
__alloc_pages_noprof mm/page_alloc.c:4993 [inline]
alloc_pages_bulk_noprof+0x560/0x710 mm/page_alloc.c:4913
alloc_pages_bulk_node_noprof include/linux/gfp.h:254 [inline]
__page_pool_alloc_pages_slow+0x127/0x740 net/core/page_pool.c:567
page_pool_alloc_netmem include/net/page_pool/helpers.h:128 [inline]
page_pool_alloc include/net/page_pool/helpers.h:160 [inline]
page_pool_dev_alloc include/net/page_pool/helpers.h:181 [inline]
skb_pp_cow_data+0xb47/0x13e0 net/core/skbuff.c:952
netif_skb_check_for_xdp net/core/dev.c:5329 [inline]
netif_receive_generic_xdp net/core/dev.c:5370 [inline]
do_xdp_generic+0x699/0x11a0 net/core/dev.c:5438
__netif_receive_skb_core+0x1823/0x4180 net/core/dev.c:5788
__netif_receive_skb_one_core net/core/dev.c:5975 [inline]
__netif_receive_skb+0x72/0x380 net/core/dev.c:6090
netif_receive_skb_internal net/core/dev.c:6176 [inline]
netif_receive_skb+0x1cb/0x790 net/core/dev.c:6235
tun_rx_batched+0x1b9/0x730 drivers/net/tun.c:1485
tun_get_user+0x298e/0x3ce0 drivers/net/tun.c:1938
tun_chr_write_iter+0x113/0x200 drivers/net/tun.c:1984
new_sync_write fs/read_write.c:593 [inline]
vfs_write+0x54b/0xa90 fs/read_write.c:686
ksys_write+0x145/0x250 fs/read_write.c:738
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94
page last free pid 5788 tgid 5788 stack trace:
reset_page_owner include/linux/page_owner.h:25 [inline]
free_pages_prepare mm/page_alloc.c:1248 [inline]
__free_frozen_pages+0xc71/0xe70 mm/page_alloc.c:2706
discard_slab mm/slub.c:2717 [inline]
__put_partials+0x161/0x1c0 mm/slub.c:3186
put_cpu_partial+0x17c/0x250 mm/slub.c:3261
__slab_free+0x2f7/0x400 mm/slub.c:4513
qlink_free mm/kasan/quarantine.c:163 [inline]
qlist_free_all+0x97/0x140 mm/kasan/quarantine.c:179
kasan_quarantine_reduce+0x148/0x160 mm/kasan/quarantine.c:286
__kasan_slab_alloc+0x22/0x80 mm/kasan/common.c:329
kasan_slab_alloc include/linux/kasan.h:250 [inline]
slab_post_alloc_hook mm/slub.c:4148 [inline]
slab_alloc_node mm/slub.c:4197 [inline]
__do_kmalloc_node mm/slub.c:4327 [inline]
__kmalloc_noprof+0x224/0x4f0 mm/slub.c:4340
kmalloc_noprof include/linux/slab.h:909 [inline]
tomoyo_realpath_from_path+0xe3/0x5d0 security/tomoyo/realpath.c:251
tomoyo_get_realpath security/tomoyo/file.c:151 [inline]
tomoyo_path2_perm+0x288/0x680 security/tomoyo/file.c:923
tomoyo_path_rename+0x141/0x190 security/tomoyo/tomoyo.c:300
security_path_rename+0x250/0x490 security/security.c:2026
do_renameat2+0x64d/0xc50 fs/namei.c:5273
__do_sys_rename fs/namei.c:5333 [inline]
__se_sys_rename fs/namei.c:5331 [inline]
__x64_sys_rename+0x82/0x90 fs/namei.c:5331
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
Modules linked in:
CPU: 0 UID: 0 PID: 5882 Comm: syz.0.16 Tainted: G B 6.16.0-rc4-syzkaller-g05df91921da6 #0 PREEMPT(full)
Tainted: [B]=BAD_PAGE
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014
Call Trace:
dump_stack_lvl+0x189/0x250 lib/dump_stack.c:120
bad_page+0x180/0x1c0 mm/page_alloc.c:506
free_page_is_bad mm/page_alloc.c:939 [inline]
free_pages_prepare mm/page_alloc.c:1240 [inline]
__free_frozen_pages+0xe17/0xe70 mm/page_alloc.c:2706
bpf_xdp_shrink_data net/core/filter.c:4172 [inline]
bpf_xdp_frags_shrink_tail+0x3a5/0x750 net/core/filter.c:4192
____bpf_xdp_adjust_tail net/core/filter.c:4217 [inline]
bpf_xdp_adjust_tail+0x1d6/0x220 net/core/filter.c:4210
bpf_prog_f476d5219b92964a+0x1e/0x24
__bpf_prog_run include/linux/filter.h:718 [inline]
bpf_prog_run_xdp include/net/xdp.h:657 [inline]
bpf_prog_run_generic_xdp+0x64b/0x14c0 net/core/dev.c:5260
netif_receive_generic_xdp net/core/dev.c:5376 [inline]
do_xdp_generic+0x9f7/0x11a0 net/core/dev.c:5438
__netif_receive_skb_core+0x1823/0x4180 net/core/dev.c:5788
__netif_receive_skb_one_core net/core/dev.c:5975 [inline]
__netif_receive_skb+0x72/0x380 net/core/dev.c:6090
netif_receive_skb_internal net/core/dev.c:6176 [inline]
netif_receive_skb+0x1cb/0x790 net/core/dev.c:6235
tun_rx_batched+0x1b9/0x730 drivers/net/tun.c:1485
tun_get_user+0x298e/0x3ce0 drivers/net/tun.c:1938
tun_chr_write_iter+0x113/0x200 drivers/net/tun.c:1984
new_sync_write fs/read_write.c:593 [inline]
vfs_write+0x54b/0xa90 fs/read_write.c:686
ksys_write+0x145/0x250 fs/read_write.c:738
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fca7018d3df
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:00007fca6f3fe000 EFLAGS: 00000293 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007fca703b5fa0 RCX: 00007fca7018d3df
RDX: 0000000000011dc0 RSI: 00002000000004c0 RDI: 00000000000000c8
RBP: 00007fca70210b39 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000011dc0 R11: 0000000000000293 R12: 0000000000000000
R13: 0000000000000000 R14: 00007fca703b5fa0 R15: 00007ffce3be7c68
BUG: Bad page state in process syz.0.16 pfn:54c57
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff888054c57f50 pfn:0x54c57
flags: 0x4fff00000000000(node=1|zone=1|lastcpupid=0x7ff)
raw: 04fff00000000000 dead000000000040 ffff88801eed8000 0000000000000000
raw: ffff888054c57f50 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 5882, tgid 5881 (syz.0.16), ts 146184720456, free_ts 146159193927
set_page_owner include/linux/page_owner.h:32 [inline]
post_alloc_hook+0x240/0x2a0 mm/page_alloc.c:1704
prep_new_page mm/page_alloc.c:1712 [inline]
get_page_from_freelist+0x21e4/0x22c0 mm/page_alloc.c:3669
__alloc_frozen_pages_noprof+0x181/0x370 mm/page_alloc.c:4959
__alloc_pages_noprof mm/page_alloc.c:4993 [inline]
alloc_pages_bulk_noprof+0x560/0x710 mm/page_alloc.c:4913
alloc_pages_bulk_node_noprof include/linux/gfp.h:254 [inline]
__page_pool_alloc_pages_slow+0x127/0x740 net/core/page_pool.c:567
page_pool_alloc_netmem include/net/page_pool/helpers.h:128 [inline]
page_pool_alloc include/net/page_pool/helpers.h:160 [inline]
page_pool_dev_alloc include/net/page_pool/helpers.h:181 [inline]
skb_pp_cow_data+0xb47/0x13e0 net/core/skbuff.c:952
netif_skb_check_for_xdp net/core/dev.c:5329 [inline]
netif_receive_generic_xdp net/core/dev.c:5370 [inline]
do_xdp_generic+0x699/0x11a0 net/core/dev.c:5438
__netif_receive_skb_core+0x1823/0x4180 net/core/dev.c:5788
__netif_receive_skb_one_core net/core/dev.c:5975 [inline]
__netif_receive_skb+0x72/0x380 net/core/dev.c:6090
netif_receive_skb_internal net/core/dev.c:6176 [inline]
netif_receive_skb+0x1cb/0x790 net/core/dev.c:6235
tun_rx_batched+0x1b9/0x730 drivers/net/tun.c:1485
tun_get_user+0x298e/0x3ce0 drivers/net/tun.c:1938
tun_chr_write_iter+0x113/0x200 drivers/net/tun.c:1984
new_sync_write fs/read_write.c:593 [inline]
vfs_write+0x54b/0xa90 fs/read_write.c:686
ksys_write+0x145/0x250 fs/read_write.c:738
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94
page last free pid 5788 tgid 5788 stack trace:
reset_page_owner include/linux/page_owner.h:25 [inline]
free_pages_prepare mm/page_alloc.c:1248 [inline]
__free_frozen_pages+0xc71/0xe70 mm/page_alloc.c:2706
discard_slab mm/slub.c:2717 [inline]
__put_partials+0x161/0x1c0 mm/slub.c:3186
put_cpu_partial+0x17c/0x250 mm/slub.c:3261
__slab_free+0x2f7/0x400 mm/slub.c:4513
qlink_free mm/kasan/quarantine.c:163 [inline]
qlist_free_all+0x97/0x140 mm/kasan/quarantine.c:179
kasan_quarantine_reduce+0x148/0x160 mm/kasan/quarantine.c:286
__kasan_slab_alloc+0x22/0x80 mm/kasan/common.c:329
kasan_slab_alloc include/linux/kasan.h:250 [inline]
slab_post_alloc_hook mm/slub.c:4148 [inline]
slab_alloc_node mm/slub.c:4197 [inline]
__do_kmalloc_node mm/slub.c:4327 [inline]
__kmalloc_noprof+0x224/0x4f0 mm/slub.c:4340
kmalloc_noprof include/linux/slab.h:909 [inline]
tomoyo_realpath_from_path+0xe3/0x5d0 security/tomoyo/realpath.c:251
tomoyo_get_realpath security/tomoyo/file.c:151 [inline]
tomoyo_path2_perm+0x288/0x680 security/tomoyo/file.c:923
tomoyo_path_rename+0x141/0x190 security/tomoyo/tomoyo.c:300
security_path_rename+0x250/0x490 security/security.c:2026
do_renameat2+0x64d/0xc50 fs/namei.c:5273
__do_sys_rename fs/namei.c:5333 [inline]
__se_sys_rename fs/namei.c:5331 [inline]
__x64_sys_rename+0x82/0x90 fs/namei.c:5331
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
Modules linked in:
CPU: 0 UID: 0 PID: 5882 Comm: syz.0.16 Tainted: G B 6.16.0-rc4-syzkaller-g05df91921da6 #0 PREEMPT(full)
Tainted: [B]=BAD_PAGE
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014
Call Trace:
dump_stack_lvl+0x189/0x250 lib/dump_stack.c:120
bad_page+0x180/0x1c0 mm/page_alloc.c:506
free_page_is_bad mm/page_alloc.c:939 [inline]
free_pages_prepare mm/page_alloc.c:1240 [inline]
__free_frozen_pages+0xe17/0xe70 mm/page_alloc.c:2706
bpf_xdp_shrink_data net/core/filter.c:4172 [inline]
bpf_xdp_frags_shrink_tail+0x3a5/0x750 net/core/filter.c:4192
____bpf_xdp_adjust_tail net/core/filter.c:4217 [inline]
bpf_xdp_adjust_tail+0x1d6/0x220 net/core/filter.c:4210
bpf_prog_f476d5219b92964a+0x1e/0x24
__bpf_prog_run include/linux/filter.h:718 [inline]
bpf_prog_run_xdp include/net/xdp.h:657 [inline]
bpf_prog_run_generic_xdp+0x64b/0x14c0 net/core/dev.c:5260
netif_receive_generic_xdp net/core/dev.c:5376 [inline]
do_xdp_generic+0x9f7/0x11a0 net/core/dev.c:5438
__netif_receive_skb_core+0x1823/0x4180 net/core/dev.c:5788
__netif_receive_skb_one_core net/core/dev.c:5975 [inline]
__netif_receive_skb+0x72/0x380 net/core/dev.c:6090
netif_receive_skb_internal net/core/dev.c:6176 [inline]
netif_receive_skb+0x1cb/0x790 net/core/dev.c:6235
tun_rx_batched+0x1b9/0x730 drivers/net/tun.c:1485
tun_get_user+0x298e/0x3ce0 drivers/net/tun.c:1938
tun_chr_write_iter+0x113/0x200 drivers/net/tun.c:1984
new_sync_write fs/read_write.c:593 [inline]
vfs_write+0x54b/0xa90 fs/read_write.c:686
ksys_write+0x145/0x250 fs/read_write.c:738
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fca7018d3df
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:00007fca6f3fe000 EFLAGS: 00000293 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007fca703b5fa0 RCX: 00007fca7018d3df
RDX: 0000000000011dc0 RSI: 00002000000004c0 RDI: 00000000000000c8
RBP: 00007fca70210b39 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000011dc0 R11: 0000000000000293 R12: 0000000000000000
R13: 0000000000000000 R14: 00007fca703b5fa0 R15: 00007ffce3be7c68