BUG: Bad page state in process syz.0.16 pfn:4ab02 page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x7f30b38e2 pfn:0x4ab02 flags: 0x4fff00000000000(node=1|zone=1|lastcpupid=0x7ff) raw: 04fff00000000000 dead000000000040 ffff88801e571000 0000000000000000 raw: 00000007f30b38e2 3fffffffffffffff 00000000ffffffff 0000000000000000 page dumped because: page_pool leak page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0x2820(GFP_ATOMIC|__GFP_NOWARN), pid 5616, tgid 5615 (syz.0.16), ts 132765000420, free_ts 132679059483 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1f4/0x240 mm/page_alloc.c:1717 prep_new_page mm/page_alloc.c:1725 [inline] get_page_from_freelist+0x352b/0x36c0 mm/page_alloc.c:3652 __alloc_frozen_pages_noprof+0x211/0x5b0 mm/page_alloc.c:4934 __alloc_pages_noprof mm/page_alloc.c:4968 [inline] alloc_pages_bulk_noprof+0x84a/0xaf0 mm/page_alloc.c:4888 alloc_pages_bulk_node_noprof include/linux/gfp.h:254 [inline] __page_pool_alloc_pages_slow+0x11f/0x690 net/core/page_pool.c:547 page_pool_alloc_netmems net/core/page_pool.c:598 [inline] page_pool_alloc_frag_netmem+0x59f/0x960 net/core/page_pool.c:1003 page_pool_alloc_netmem include/net/page_pool/helpers.h:131 [inline] page_pool_alloc include/net/page_pool/helpers.h:160 [inline] page_pool_dev_alloc include/net/page_pool/helpers.h:181 [inline] skb_pp_cow_data+0xd9f/0x1820 net/core/skbuff.c:955 netif_skb_check_for_xdp net/core/dev.c:5248 [inline] netif_receive_generic_xdp net/core/dev.c:5287 [inline] do_xdp_generic+0x52a/0xd50 net/core/dev.c:5355 tun_get_user+0x2908/0x47c0 drivers/net/tun.c:1860 tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:1984 new_sync_write fs/read_write.c:591 [inline] vfs_write+0x70f/0xd10 fs/read_write.c:684 ksys_write+0x19d/0x2d0 fs/read_write.c:736 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 5601 tgid 5601 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1262 [inline] __free_frozen_pages+0xde8/0x10a0 mm/page_alloc.c:2680 __slab_free+0x2c6/0x390 mm/slub.c:4557 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0x9a/0x140 mm/kasan/quarantine.c:179 kasan_quarantine_reduce+0x14f/0x170 mm/kasan/quarantine.c:286 __kasan_slab_alloc+0x23/0x80 mm/kasan/common.c:329 kasan_slab_alloc include/linux/kasan.h:250 [inline] slab_post_alloc_hook mm/slub.c:4151 [inline] slab_alloc_node mm/slub.c:4200 [inline] __do_kmalloc_node mm/slub.c:4330 [inline] __kmalloc_noprof+0x238/0x4d0 mm/slub.c:4343 kmalloc_noprof include/linux/slab.h:909 [inline] tomoyo_realpath_from_path+0xcf/0x5e0 security/tomoyo/realpath.c:251 tomoyo_mount_acl security/tomoyo/mount.c:141 [inline] tomoyo_mount_permission+0xab8/0xbd0 security/tomoyo/mount.c:237 security_sb_mount+0xe0/0x2f0 security/security.c:1570 path_mount+0xb9/0xfa0 fs/namespace.c:4148 do_mount fs/namespace.c:4219 [inline] __do_sys_mount fs/namespace.c:4430 [inline] __se_sys_mount+0x38c/0x400 fs/namespace.c:4407 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f Modules linked in: CPU: 0 UID: 0 PID: 5616 Comm: syz.0.16 Not tainted 6.15.0-rc1-syzkaller-g0af2f6be1b42 #0 PREEMPT(full) Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:120 bad_page+0x176/0x1d0 mm/page_alloc.c:505 free_page_is_bad mm/page_alloc.c:948 [inline] free_pages_prepare mm/page_alloc.c:1254 [inline] __free_frozen_pages+0x1040/0x10a0 mm/page_alloc.c:2680 bpf_xdp_shrink_data net/core/filter.c:4155 [inline] bpf_xdp_frags_shrink_tail+0x3bb/0x780 net/core/filter.c:4175 ____bpf_xdp_adjust_tail net/core/filter.c:4200 [inline] bpf_xdp_adjust_tail+0x1c7/0x210 net/core/filter.c:4193 bpf_prog_f476d5219b92964a+0x1e/0x20 __bpf_prog_run include/linux/filter.h:718 [inline] bpf_prog_run_xdp include/net/xdp.h:653 [inline] bpf_prog_run_generic_xdp+0x684/0x1510 net/core/dev.c:5180 netif_receive_generic_xdp net/core/dev.c:5293 [inline] do_xdp_generic+0x769/0xd50 net/core/dev.c:5355 tun_get_user+0x2908/0x47c0 drivers/net/tun.c:1860 tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:1984 new_sync_write fs/read_write.c:591 [inline] vfs_write+0x70f/0xd10 fs/read_write.c:684 ksys_write+0x19d/0x2d0 fs/read_write.c:736 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f1c7158bc1f 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:00007f1c72486000 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f1c717a5fa0 RCX: 00007f1c7158bc1f RDX: 000000000000fdef RSI: 0000200000000a80 RDI: 00000000000000c8 RBP: 00007f1c7160e2a0 R08: 0000000000000000 R09: 0000000000000000 R10: 000000000000fdef R11: 0000000000000293 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f1c717a5fa0 R15: 00007fff1cbfc2d8 BUG: Bad page state in process syz.0.16 pfn:4ab01 page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffffffffffffffff pfn:0x4ab01 flags: 0x4fff00000000000(node=1|zone=1|lastcpupid=0x7ff) raw: 04fff00000000000 dead000000000040 ffff88801e571000 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 0x2820(GFP_ATOMIC|__GFP_NOWARN), pid 5616, tgid 5615 (syz.0.16), ts 132764989313, free_ts 132679059483 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1f4/0x240 mm/page_alloc.c:1717 prep_new_page mm/page_alloc.c:1725 [inline] get_page_from_freelist+0x352b/0x36c0 mm/page_alloc.c:3652 __alloc_frozen_pages_noprof+0x211/0x5b0 mm/page_alloc.c:4934 __alloc_pages_noprof mm/page_alloc.c:4968 [inline] alloc_pages_bulk_noprof+0x84a/0xaf0 mm/page_alloc.c:4888 alloc_pages_bulk_node_noprof include/linux/gfp.h:254 [inline] __page_pool_alloc_pages_slow+0x11f/0x690 net/core/page_pool.c:547 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+0xd7d/0x1820 net/core/skbuff.c:955 netif_skb_check_for_xdp net/core/dev.c:5248 [inline] netif_receive_generic_xdp net/core/dev.c:5287 [inline] do_xdp_generic+0x52a/0xd50 net/core/dev.c:5355 tun_get_user+0x2908/0x47c0 drivers/net/tun.c:1860 tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:1984 new_sync_write fs/read_write.c:591 [inline] vfs_write+0x70f/0xd10 fs/read_write.c:684 ksys_write+0x19d/0x2d0 fs/read_write.c:736 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 5601 tgid 5601 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1262 [inline] __free_frozen_pages+0xde8/0x10a0 mm/page_alloc.c:2680 __slab_free+0x2c6/0x390 mm/slub.c:4557 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0x9a/0x140 mm/kasan/quarantine.c:179 kasan_quarantine_reduce+0x14f/0x170 mm/kasan/quarantine.c:286 __kasan_slab_alloc+0x23/0x80 mm/kasan/common.c:329 kasan_slab_alloc include/linux/kasan.h:250 [inline] slab_post_alloc_hook mm/slub.c:4151 [inline] slab_alloc_node mm/slub.c:4200 [inline] __do_kmalloc_node mm/slub.c:4330 [inline] __kmalloc_noprof+0x238/0x4d0 mm/slub.c:4343 kmalloc_noprof include/linux/slab.h:909 [inline] tomoyo_realpath_from_path+0xcf/0x5e0 security/tomoyo/realpath.c:251 tomoyo_mount_acl security/tomoyo/mount.c:141 [inline] tomoyo_mount_permission+0xab8/0xbd0 security/tomoyo/mount.c:237 security_sb_mount+0xe0/0x2f0 security/security.c:1570 path_mount+0xb9/0xfa0 fs/namespace.c:4148 do_mount fs/namespace.c:4219 [inline] __do_sys_mount fs/namespace.c:4430 [inline] __se_sys_mount+0x38c/0x400 fs/namespace.c:4407 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f Modules linked in: CPU: 0 UID: 0 PID: 5616 Comm: syz.0.16 Tainted: G B 6.15.0-rc1-syzkaller-g0af2f6be1b42 #0 PREEMPT(full) Tainted: [B]=BAD_PAGE Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:120 bad_page+0x176/0x1d0 mm/page_alloc.c:505 free_page_is_bad mm/page_alloc.c:948 [inline] free_pages_prepare mm/page_alloc.c:1254 [inline] __free_frozen_pages+0x1040/0x10a0 mm/page_alloc.c:2680 bpf_xdp_shrink_data net/core/filter.c:4155 [inline] bpf_xdp_frags_shrink_tail+0x3bb/0x780 net/core/filter.c:4175 ____bpf_xdp_adjust_tail net/core/filter.c:4200 [inline] bpf_xdp_adjust_tail+0x1c7/0x210 net/core/filter.c:4193 bpf_prog_f476d5219b92964a+0x1e/0x20 __bpf_prog_run include/linux/filter.h:718 [inline] bpf_prog_run_xdp include/net/xdp.h:653 [inline] bpf_prog_run_generic_xdp+0x684/0x1510 net/core/dev.c:5180 netif_receive_generic_xdp net/core/dev.c:5293 [inline] do_xdp_generic+0x769/0xd50 net/core/dev.c:5355 tun_get_user+0x2908/0x47c0 drivers/net/tun.c:1860 tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:1984 new_sync_write fs/read_write.c:591 [inline] vfs_write+0x70f/0xd10 fs/read_write.c:684 ksys_write+0x19d/0x2d0 fs/read_write.c:736 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f1c7158bc1f 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:00007f1c72486000 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f1c717a5fa0 RCX: 00007f1c7158bc1f RDX: 000000000000fdef RSI: 0000200000000a80 RDI: 00000000000000c8 RBP: 00007f1c7160e2a0 R08: 0000000000000000 R09: 0000000000000000 R10: 000000000000fdef R11: 0000000000000293 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f1c717a5fa0 R15: 00007fff1cbfc2d8 BUG: Bad page state in process syz.0.16 pfn:4ab00 page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff88804ab05500 pfn:0x4ab00 flags: 0x4fff00000000000(node=1|zone=1|lastcpupid=0x7ff) raw: 04fff00000000000 dead000000000040 ffff88801e571000 0000000000000000 raw: ffff88804ab05500 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 5616, tgid 5615 (syz.0.16), ts 132764978651, free_ts 132679059483 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1f4/0x240 mm/page_alloc.c:1717 prep_new_page mm/page_alloc.c:1725 [inline] get_page_from_freelist+0x352b/0x36c0 mm/page_alloc.c:3652 __alloc_frozen_pages_noprof+0x211/0x5b0 mm/page_alloc.c:4934 __alloc_pages_noprof mm/page_alloc.c:4968 [inline] alloc_pages_bulk_noprof+0x84a/0xaf0 mm/page_alloc.c:4888 alloc_pages_bulk_node_noprof include/linux/gfp.h:254 [inline] __page_pool_alloc_pages_slow+0x11f/0x690 net/core/page_pool.c:547 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+0xd7d/0x1820 net/core/skbuff.c:955 netif_skb_check_for_xdp net/core/dev.c:5248 [inline] netif_receive_generic_xdp net/core/dev.c:5287 [inline] do_xdp_generic+0x52a/0xd50 net/core/dev.c:5355 tun_get_user+0x2908/0x47c0 drivers/net/tun.c:1860 tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:1984 new_sync_write fs/read_write.c:591 [inline] vfs_write+0x70f/0xd10 fs/read_write.c:684 ksys_write+0x19d/0x2d0 fs/read_write.c:736 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 5601 tgid 5601 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1262 [inline] __free_frozen_pages+0xde8/0x10a0 mm/page_alloc.c:2680 __slab_free+0x2c6/0x390 mm/slub.c:4557 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0x9a/0x140 mm/kasan/quarantine.c:179 kasan_quarantine_reduce+0x14f/0x170 mm/kasan/quarantine.c:286 __kasan_slab_alloc+0x23/0x80 mm/kasan/common.c:329 kasan_slab_alloc include/linux/kasan.h:250 [inline] slab_post_alloc_hook mm/slub.c:4151 [inline] slab_alloc_node mm/slub.c:4200 [inline] __do_kmalloc_node mm/slub.c:4330 [inline] __kmalloc_noprof+0x238/0x4d0 mm/slub.c:4343 kmalloc_noprof include/linux/slab.h:909 [inline] tomoyo_realpath_from_path+0xcf/0x5e0 security/tomoyo/realpath.c:251 tomoyo_mount_acl security/tomoyo/mount.c:141 [inline] tomoyo_mount_permission+0xab8/0xbd0 security/tomoyo/mount.c:237 security_sb_mount+0xe0/0x2f0 security/security.c:1570 path_mount+0xb9/0xfa0 fs/namespace.c:4148 do_mount fs/namespace.c:4219 [inline] __do_sys_mount fs/namespace.c:4430 [inline] __se_sys_mount+0x38c/0x400 fs/namespace.c:4407 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f Modules linked in: CPU: 0 UID: 0 PID: 5616 Comm: syz.0.16 Tainted: G B 6.15.0-rc1-syzkaller-g0af2f6be1b42 #0 PREEMPT(full) Tainted: [B]=BAD_PAGE Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:120 bad_page+0x176/0x1d0 mm/page_alloc.c:505 free_page_is_bad mm/page_alloc.c:948 [inline] free_pages_prepare mm/page_alloc.c:1254 [inline] __free_frozen_pages+0x1040/0x10a0 mm/page_alloc.c:2680 bpf_xdp_shrink_data net/core/filter.c:4155 [inline] bpf_xdp_frags_shrink_tail+0x3bb/0x780 net/core/filter.c:4175 ____bpf_xdp_adjust_tail net/core/filter.c:4200 [inline] bpf_xdp_adjust_tail+0x1c7/0x210 net/core/filter.c:4193 bpf_prog_f476d5219b92964a+0x1e/0x20 __bpf_prog_run include/linux/filter.h:718 [inline] bpf_prog_run_xdp include/net/xdp.h:653 [inline] bpf_prog_run_generic_xdp+0x684/0x1510 net/core/dev.c:5180 netif_receive_generic_xdp net/core/dev.c:5293 [inline] do_xdp_generic+0x769/0xd50 net/core/dev.c:5355 tun_get_user+0x2908/0x47c0 drivers/net/tun.c:1860 tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:1984 new_sync_write fs/read_write.c:591 [inline] vfs_write+0x70f/0xd10 fs/read_write.c:684 ksys_write+0x19d/0x2d0 fs/read_write.c:736 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f1c7158bc1f 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:00007f1c72486000 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f1c717a5fa0 RCX: 00007f1c7158bc1f RDX: 000000000000fdef RSI: 0000200000000a80 RDI: 00000000000000c8 RBP: 00007f1c7160e2a0 R08: 0000000000000000 R09: 0000000000000000 R10: 000000000000fdef R11: 0000000000000293 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f1c717a5fa0 R15: 00007fff1cbfc2d8 BUG: Bad page state in process syz.0.16 pfn:594a7 page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x594a7 flags: 0x4fff00000000000(node=1|zone=1|lastcpupid=0x7ff) raw: 04fff00000000000 dead000000000040 ffff88801e571000 0000000000000000 raw: 0000000000000000 0000000000000001 00000000ffffffff 0000000000000000 page dumped because: page_pool leak page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0x2820(GFP_ATOMIC|__GFP_NOWARN), pid 5616, tgid 5615 (syz.0.16), ts 132764969106, free_ts 132746987775 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1f4/0x240 mm/page_alloc.c:1717 prep_new_page mm/page_alloc.c:1725 [inline] get_page_from_freelist+0x352b/0x36c0 mm/page_alloc.c:3652 __alloc_frozen_pages_noprof+0x211/0x5b0 mm/page_alloc.c:4934 __alloc_pages_noprof mm/page_alloc.c:4968 [inline] alloc_pages_bulk_noprof+0x84a/0xaf0 mm/page_alloc.c:4888 alloc_pages_bulk_node_noprof include/linux/gfp.h:254 [inline] __page_pool_alloc_pages_slow+0x11f/0x690 net/core/page_pool.c:547 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+0xd7d/0x1820 net/core/skbuff.c:955 netif_skb_check_for_xdp net/core/dev.c:5248 [inline] netif_receive_generic_xdp net/core/dev.c:5287 [inline] do_xdp_generic+0x52a/0xd50 net/core/dev.c:5355 tun_get_user+0x2908/0x47c0 drivers/net/tun.c:1860 tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:1984 new_sync_write fs/read_write.c:591 [inline] vfs_write+0x70f/0xd10 fs/read_write.c:684 ksys_write+0x19d/0x2d0 fs/read_write.c:736 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 4734 tgid 4734 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1262 [inline] __free_frozen_pages+0xde8/0x10a0 mm/page_alloc.c:2680 __slab_free+0x2c6/0x390 mm/slub.c:4557 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0x9a/0x140 mm/kasan/quarantine.c:179 kasan_quarantine_reduce+0x14f/0x170 mm/kasan/quarantine.c:286 __kasan_slab_alloc+0x23/0x80 mm/kasan/common.c:329 kasan_slab_alloc include/linux/kasan.h:250 [inline] slab_post_alloc_hook mm/slub.c:4151 [inline] slab_alloc_node mm/slub.c:4200 [inline] kmem_cache_alloc_noprof+0x1e1/0x390 mm/slub.c:4207 getname_flags+0xb6/0x530 fs/namei.c:146 do_readlinkat+0xd7/0x380 fs/stat.c:563 __do_sys_readlink fs/stat.c:601 [inline] __se_sys_readlink fs/stat.c:598 [inline] __x64_sys_readlink+0x7f/0x90 fs/stat.c:598 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f Modules linked in: CPU: 0 UID: 0 PID: 5616 Comm: syz.0.16 Tainted: G B 6.15.0-rc1-syzkaller-g0af2f6be1b42 #0 PREEMPT(full) Tainted: [B]=BAD_PAGE Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:120 bad_page+0x176/0x1d0 mm/page_alloc.c:505 free_page_is_bad mm/page_alloc.c:948 [inline] free_pages_prepare mm/page_alloc.c:1254 [inline] __free_frozen_pages+0x1040/0x10a0 mm/page_alloc.c:2680 bpf_xdp_shrink_data net/core/filter.c:4155 [inline] bpf_xdp_frags_shrink_tail+0x3bb/0x780 net/core/filter.c:4175 ____bpf_xdp_adjust_tail net/core/filter.c:4200 [inline] bpf_xdp_adjust_tail+0x1c7/0x210 net/core/filter.c:4193 bpf_prog_f476d5219b92964a+0x1e/0x20 __bpf_prog_run include/linux/filter.h:718 [inline] bpf_prog_run_xdp include/net/xdp.h:653 [inline] bpf_prog_run_generic_xdp+0x684/0x1510 net/core/dev.c:5180 netif_receive_generic_xdp net/core/dev.c:5293 [inline] do_xdp_generic+0x769/0xd50 net/core/dev.c:5355 tun_get_user+0x2908/0x47c0 drivers/net/tun.c:1860 tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:1984 new_sync_write fs/read_write.c:591 [inline] vfs_write+0x70f/0xd10 fs/read_write.c:684 ksys_write+0x19d/0x2d0 fs/read_write.c:736 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f1c7158bc1f 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:00007f1c72486000 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f1c717a5fa0 RCX: 00007f1c7158bc1f RDX: 000000000000fdef RSI: 0000200000000a80 RDI: 00000000000000c8 RBP: 00007f1c7160e2a0 R08: 0000000000000000 R09: 0000000000000000 R10: 000000000000fdef R11: 0000000000000293 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f1c717a5fa0 R15: 00007fff1cbfc2d8 BUG: Bad page state in process syz.0.16 pfn:594a6 page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x594a6 flags: 0x4fff00000000000(node=1|zone=1|lastcpupid=0x7ff) raw: 04fff00000000000 dead000000000040 ffff88801e571000 0000000000000000 raw: 0000000000000000 0000000000000001 00000000ffffffff 0000000000000000 page dumped because: page_pool leak page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0x2820(GFP_ATOMIC|__GFP_NOWARN), pid 5616, tgid 5615 (syz.0.16), ts 132764958398, free_ts 132746987775 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1f4/0x240 mm/page_alloc.c:1717 prep_new_page mm/page_alloc.c:1725 [inline] get_page_from_freelist+0x352b/0x36c0 mm/page_alloc.c:3652 __alloc_frozen_pages_noprof+0x211/0x5b0 mm/page_alloc.c:4934 __alloc_pages_noprof mm/page_alloc.c:4968 [inline] alloc_pages_bulk_noprof+0x84a/0xaf0 mm/page_alloc.c:4888 alloc_pages_bulk_node_noprof include/linux/gfp.h:254 [inline] __page_pool_alloc_pages_slow+0x11f/0x690 net/core/page_pool.c:547 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+0xd7d/0x1820 net/core/skbuff.c:955 netif_skb_check_for_xdp net/core/dev.c:5248 [inline] netif_receive_generic_xdp net/core/dev.c:5287 [inline] do_xdp_generic+0x52a/0xd50 net/core/dev.c:5355 tun_get_user+0x2908/0x47c0 drivers/net/tun.c:1860 tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:1984 new_sync_write fs/read_write.c:591 [inline] vfs_write+0x70f/0xd10 fs/read_write.c:684 ksys_write+0x19d/0x2d0 fs/read_write.c:736 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 4734 tgid 4734 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1262 [inline] __free_frozen_pages+0xde8/0x10a0 mm/page_alloc.c:2680 __slab_free+0x2c6/0x390 mm/slub.c:4557 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0x9a/0x140 mm/kasan/quarantine.c:179 kasan_quarantine_reduce+0x14f/0x170 mm/kasan/quarantine.c:286 __kasan_slab_alloc+0x23/0x80 mm/kasan/common.c:329 kasan_slab_alloc include/linux/kasan.h:250 [inline] slab_post_alloc_hook mm/slub.c:4151 [inline] slab_alloc_node mm/slub.c:4200 [inline] kmem_cache_alloc_noprof+0x1e1/0x390 mm/slub.c:4207 getname_flags+0xb6/0x530 fs/namei.c:146 do_readlinkat+0xd7/0x380 fs/stat.c:563 __do_sys_readlink fs/stat.c:601 [inline] __se_sys_readlink fs/stat.c:598 [inline] __x64_sys_readlink+0x7f/0x90 fs/stat.c:598 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f Modules linked in: CPU: 0 UID: 0 PID: 5616 Comm: syz.0.16 Tainted: G B 6.15.0-rc1-syzkaller-g0af2f6be1b42 #0 PREEMPT(full) Tainted: [B]=BAD_PAGE Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:120 bad_page+0x176/0x1d0 mm/page_alloc.c:505 free_page_is_bad mm/page_alloc.c:948 [inline] free_pages_prepare mm/page_alloc.c:1254 [inline] __free_frozen_pages+0x1040/0x10a0 mm/page_alloc.c:2680 bpf_xdp_shrink_data net/core/filter.c:4155 [inline] bpf_xdp_frags_shrink_tail+0x3bb/0x780 net/core/filter.c:4175 ____bpf_xdp_adjust_tail net/core/filter.c:4200 [inline] bpf_xdp_adjust_tail+0x1c7/0x210 net/core/filter.c:4193 bpf_prog_f476d5219b92964a+0x1e/0x20 __bpf_prog_run include/linux/filter.h:718 [inline] bpf_prog_run_xdp include/net/xdp.h:653 [inline] bpf_prog_run_generic_xdp+0x684/0x1510 net/core/dev.c:5180 netif_receive_generic_xdp net/core/dev.c:5293 [inline] do_xdp_generic+0x769/0xd50 net/core/dev.c:5355 tun_get_user+0x2908/0x47c0 drivers/net/tun.c:1860 tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:1984 new_sync_write fs/read_write.c:591 [inline] vfs_write+0x70f/0xd10 fs/read_write.c:684 ksys_write+0x19d/0x2d0 fs/read_write.c:736 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f1c7158bc1f 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:00007f1c72486000 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f1c717a5fa0 RCX: 00007f1c7158bc1f RDX: 000000000000fdef RSI: 0000200000000a80 RDI: 00000000000000c8 RBP: 00007f1c7160e2a0 R08: 0000000000000000 R09: 0000000000000000 R10: 000000000000fdef R11: 0000000000000293 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f1c717a5fa0 R15: 00007fff1cbfc2d8 BUG: Bad page state in process syz.0.16 pfn:594a5 page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x594a5 flags: 0x4fff00000000000(node=1|zone=1|lastcpupid=0x7ff) raw: 04fff00000000000 dead000000000040 ffff88801e571000 0000000000000000 raw: 0000000000000000 0000000000000001 00000000ffffffff 0000000000000000 page dumped because: page_pool leak page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0x2820(GFP_ATOMIC|__GFP_NOWARN), pid 5616, tgid 5615 (syz.0.16), ts 132764946555, free_ts 132746987775 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1f4/0x240 mm/page_alloc.c:1717 prep_new_page mm/page_alloc.c:1725 [inline] get_page_from_freelist+0x352b/0x36c0 mm/page_alloc.c:3652 __alloc_frozen_pages_noprof+0x211/0x5b0 mm/page_alloc.c:4934 __alloc_pages_noprof mm/page_alloc.c:4968 [inline] alloc_pages_bulk_noprof+0x84a/0xaf0 mm/page_alloc.c:4888 alloc_pages_bulk_node_noprof include/linux/gfp.h:254 [inline] __page_pool_alloc_pages_slow+0x11f/0x690 net/core/page_pool.c:547 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+0xd7d/0x1820 net/core/skbuff.c:955 netif_skb_check_for_xdp net/core/dev.c:5248 [inline] netif_receive_generic_xdp net/core/dev.c:5287 [inline] do_xdp_generic+0x52a/0xd50 net/core/dev.c:5355 tun_get_user+0x2908/0x47c0 drivers/net/tun.c:1860 tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:1984 new_sync_write fs/read_write.c:591 [inline] vfs_write+0x70f/0xd10 fs/read_write.c:684 ksys_write+0x19d/0x2d0 fs/read_write.c:736 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 4734 tgid 4734 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1262 [inline] __free_frozen_pages+0xde8/0x10a0 mm/page_alloc.c:2680 __slab_free+0x2c6/0x390 mm/slub.c:4557 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0x9a/0x140 mm/kasan/quarantine.c:179 kasan_quarantine_reduce+0x14f/0x170 mm/kasan/quarantine.c:286 __kasan_slab_alloc+0x23/0x80 mm/kasan/common.c:329 kasan_slab_alloc include/linux/kasan.h:250 [inline] slab_post_alloc_hook mm/slub.c:4151 [inline] slab_alloc_node mm/slub.c:4200 [inline] kmem_cache_alloc_noprof+0x1e1/0x390 mm/slub.c:4207 getname_flags+0xb6/0x530 fs/namei.c:146 do_readlinkat+0xd7/0x380 fs/stat.c:563 __do_sys_readlink fs/stat.c:601 [inline] __se_sys_readlink fs/stat.c:598 [inline] __x64_sys_readlink+0x7f/0x90 fs/stat.c:598 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f Modules linked in: CPU: 0 UID: 0 PID: 5616 Comm: syz.0.16 Tainted: G B 6.15.0-rc1-syzkaller-g0af2f6be1b42 #0 PREEMPT(full) Tainted: [B]=BAD_PAGE Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:120 bad_page+0x176/0x1d0 mm/page_alloc.c:505 free_page_is_bad mm/page_alloc.c:948 [inline] free_pages_prepare mm/page_alloc.c:1254 [inline] __free_frozen_pages+0x1040/0x10a0 mm/page_alloc.c:2680 bpf_xdp_shrink_data net/core/filter.c:4155 [inline] bpf_xdp_frags_shrink_tail+0x3bb/0x780 net/core/filter.c:4175 ____bpf_xdp_adjust_tail net/core/filter.c:4200 [inline] bpf_xdp_adjust_tail+0x1c7/0x210 net/core/filter.c:4193 bpf_prog_f476d5219b92964a+0x1e/0x20 __bpf_prog_run include/linux/filter.h:718 [inline] bpf_prog_run_xdp include/net/xdp.h:653 [inline] bpf_prog_run_generic_xdp+0x684/0x1510 net/core/dev.c:5180 netif_receive_generic_xdp net/core/dev.c:5293 [inline] do_xdp_generic+0x769/0xd50 net/core/dev.c:5355 tun_get_user+0x2908/0x47c0 drivers/net/tun.c:1860 tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:1984 new_sync_write fs/read_write.c:591 [inline] vfs_write+0x70f/0xd10 fs/read_write.c:684 ksys_write+0x19d/0x2d0 fs/read_write.c:736 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f1c7158bc1f 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:00007f1c72486000 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f1c717a5fa0 RCX: 00007f1c7158bc1f RDX: 000000000000fdef RSI: 0000200000000a80 RDI: 00000000000000c8 RBP: 00007f1c7160e2a0 R08: 0000000000000000 R09: 0000000000000000 R10: 000000000000fdef R11: 0000000000000293 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f1c717a5fa0 R15: 00007fff1cbfc2d8 BUG: Bad page state in process syz.0.16 pfn:594a4 page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x594a4 flags: 0x4fff00000000000(node=1|zone=1|lastcpupid=0x7ff) raw: 04fff00000000000 dead000000000040 ffff88801e571000 0000000000000000 raw: 0000000000000000 0000000000000001 00000000ffffffff 0000000000000000 page dumped because: page_pool leak page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0x2820(GFP_ATOMIC|__GFP_NOWARN), pid 5616, tgid 5615 (syz.0.16), ts 132764907870, free_ts 132746987775 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1f4/0x240 mm/page_alloc.c:1717 prep_new_page mm/page_alloc.c:1725 [inline] get_page_from_freelist+0x352b/0x36c0 mm/page_alloc.c:3652 __alloc_frozen_pages_noprof+0x211/0x5b0 mm/page_alloc.c:4934 __alloc_pages_noprof mm/page_alloc.c:4968 [inline] alloc_pages_bulk_noprof+0x84a/0xaf0 mm/page_alloc.c:4888 alloc_pages_bulk_node_noprof include/linux/gfp.h:254 [inline] __page_pool_alloc_pages_slow+0x11f/0x690 net/core/page_pool.c:547 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+0xd7d/0x1820 net/core/skbuff.c:955 netif_skb_check_for_xdp net/core/dev.c:5248 [inline] netif_receive_generic_xdp net/core/dev.c:5287 [inline] do_xdp_generic+0x52a/0xd50 net/core/dev.c:5355 tun_get_user+0x2908/0x47c0 drivers/net/tun.c:1860 tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:1984 new_sync_write fs/read_write.c:591 [inline] vfs_write+0x70f/0xd10 fs/read_write.c:684 ksys_write+0x19d/0x2d0 fs/read_write.c:736 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 4734 tgid 4734 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1262 [inline] __free_frozen_pages+0xde8/0x10a0 mm/page_alloc.c:2680 __slab_free+0x2c6/0x390 mm/slub.c:4557 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0x9a/0x140 mm/kasan/quarantine.c:179 kasan_quarantine_reduce+0x14f/0x170 mm/kasan/quarantine.c:286 __kasan_slab_alloc+0x23/0x80 mm/kasan/common.c:329 kasan_slab_alloc include/linux/kasan.h:250 [inline] slab_post_alloc_hook mm/slub.c:4151 [inline] slab_alloc_node mm/slub.c:4200 [inline] kmem_cache_alloc_noprof+0x1e1/0x390 mm/slub.c:4207 getname_flags+0xb6/0x530 fs/namei.c:146 do_readlinkat+0xd7/0x380 fs/stat.c:563 __do_sys_readlink fs/stat.c:601 [inline] __se_sys_readlink fs/stat.c:598 [inline] __x64_sys_readlink+0x7f/0x90 fs/stat.c:598 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f Modules linked in: CPU: 0 UID: 0 PID: 5616 Comm: syz.0.16 Tainted: G B 6.15.0-rc1-syzkaller-g0af2f6be1b42 #0 PREEMPT(full) Tainted: [B]=BAD_PAGE Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:120 bad_page+0x176/0x1d0 mm/page_alloc.c:505 free_page_is_bad mm/page_alloc.c:948 [inline] free_pages_prepare mm/page_alloc.c:1254 [inline] __free_frozen_pages+0x1040/0x10a0 mm/page_alloc.c:2680 bpf_xdp_shrink_data net/core/filter.c:4155 [inline] bpf_xdp_frags_shrink_tail+0x3bb/0x780 net/core/filter.c:4175 ____bpf_xdp_adjust_tail net/core/filter.c:4200 [inline] bpf_xdp_adjust_tail+0x1c7/0x210 net/core/filter.c:4193 bpf_prog_f476d5219b92964a+0x1e/0x20 __bpf_prog_run include/linux/filter.h:718 [inline] bpf_prog_run_xdp include/net/xdp.h:653 [inline] bpf_prog_run_generic_xdp+0x684/0x1510 net/core/dev.c:5180 netif_receive_generic_xdp net/core/dev.c:5293 [inline] do_xdp_generic+0x769/0xd50 net/core/dev.c:5355 tun_get_user+0x2908/0x47c0 drivers/net/tun.c:1860 tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:1984 new_sync_write fs/read_write.c:591 [inline] vfs_write+0x70f/0xd10 fs/read_write.c:684 ksys_write+0x19d/0x2d0 fs/read_write.c:736 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f1c7158bc1f 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:00007f1c72486000 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f1c717a5fa0 RCX: 00007f1c7158bc1f RDX: 000000000000fdef RSI: 0000200000000a80 RDI: 00000000000000c8 RBP: 00007f1c7160e2a0 R08: 0000000000000000 R09: 0000000000000000 R10: 000000000000fdef R11: 0000000000000293 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f1c717a5fa0 R15: 00007fff1cbfc2d8 BUG: Bad page state in process syz.0.16 pfn:594a3 page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x594a3 flags: 0x4fff00000000000(node=1|zone=1|lastcpupid=0x7ff) raw: 04fff00000000000 dead000000000040 ffff88801e571000 0000000000000000 raw: 0000000000000000 0000000000000001 00000000ffffffff 0000000000000000 page dumped because: page_pool leak page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0x2820(GFP_ATOMIC|__GFP_NOWARN), pid 5616, tgid 5615 (syz.0.16), ts 132764896677, free_ts 132746987775 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1f4/0x240 mm/page_alloc.c:1717 prep_new_page mm/page_alloc.c:1725 [inline] get_page_from_freelist+0x352b/0x36c0 mm/page_alloc.c:3652 __alloc_frozen_pages_noprof+0x211/0x5b0 mm/page_alloc.c:4934 __alloc_pages_noprof mm/page_alloc.c:4968 [inline] alloc_pages_bulk_noprof+0x84a/0xaf0 mm/page_alloc.c:4888 alloc_pages_bulk_node_noprof include/linux/gfp.h:254 [inline] __page_pool_alloc_pages_slow+0x11f/0x690 net/core/page_pool.c:547 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+0xd7d/0x1820 net/core/skbuff.c:955 netif_skb_check_for_xdp net/core/dev.c:5248 [inline] netif_receive_generic_xdp net/core/dev.c:5287 [inline] do_xdp_generic+0x52a/0xd50 net/core/dev.c:5355 tun_get_user+0x2908/0x47c0 drivers/net/tun.c:1860 tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:1984 new_sync_write fs/read_write.c:591 [inline] vfs_write+0x70f/0xd10 fs/read_write.c:684 ksys_write+0x19d/0x2d0 fs/read_write.c:736 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 4734 tgid 4734 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1262 [inline] __free_frozen_pages+0xde8/0x10a0 mm/page_alloc.c:2680 __slab_free+0x2c6/0x390 mm/slub.c:4557 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0x9a/0x140 mm/kasan/quarantine.c:179 kasan_quarantine_reduce+0x14f/0x170 mm/kasan/quarantine.c:286 __kasan_slab_alloc+0x23/0x80 mm/kasan/common.c:329 kasan_slab_alloc include/linux/kasan.h:250 [inline] slab_post_alloc_hook mm/slub.c:4151 [inline] slab_alloc_node mm/slub.c:4200 [inline] kmem_cache_alloc_noprof+0x1e1/0x390 mm/slub.c:4207 getname_flags+0xb6/0x530 fs/namei.c:146 do_readlinkat+0xd7/0x380 fs/stat.c:563 __do_sys_readlink fs/stat.c:601 [inline] __se_sys_readlink fs/stat.c:598 [inline] __x64_sys_readlink+0x7f/0x90 fs/stat.c:598 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f Modules linked in: CPU: 0 UID: 0 PID: 5616 Comm: syz.0.16 Tainted: G B 6.15.0-rc1-syzkaller-g0af2f6be1b42 #0 PREEMPT(full) Tainted: [B]=BAD_PAGE Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:120 bad_page+0x176/0x1d0 mm/page_alloc.c:505 free_page_is_bad mm/page_alloc.c:948 [inline] free_pages_prepare mm/page_alloc.c:1254 [inline] __free_frozen_pages+0x1040/0x10a0 mm/page_alloc.c:2680 bpf_xdp_shrink_data net/core/filter.c:4155 [inline] bpf_xdp_frags_shrink_tail+0x3bb/0x780 net/core/filter.c:4175 ____bpf_xdp_adjust_tail net/core/filter.c:4200 [inline] bpf_xdp_adjust_tail+0x1c7/0x210 net/core/filter.c:4193 bpf_prog_f476d5219b92964a+0x1e/0x20 __bpf_prog_run include/linux/filter.h:718 [inline] bpf_prog_run_xdp include/net/xdp.h:653 [inline] bpf_prog_run_generic_xdp+0x684/0x1510 net/core/dev.c:5180 netif_receive_generic_xdp net/core/dev.c:5293 [inline] do_xdp_generic+0x769/0xd50 net/core/dev.c:5355 tun_get_user+0x2908/0x47c0 drivers/net/tun.c:1860 tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:1984 new_sync_write fs/read_write.c:591 [inline] vfs_write+0x70f/0xd10 fs/read_write.c:684 ksys_write+0x19d/0x2d0 fs/read_write.c:736 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f1c7158bc1f 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:00007f1c72486000 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f1c717a5fa0 RCX: 00007f1c7158bc1f RDX: 000000000000fdef RSI: 0000200000000a80 RDI: 00000000000000c8 RBP: 00007f1c7160e2a0 R08: 0000000000000000 R09: 0000000000000000 R10: 000000000000fdef R11: 0000000000000293 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f1c717a5fa0 R15: 00007fff1cbfc2d8 BUG: Bad page state in process syz.0.16 pfn:594a2 page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x594a2 flags: 0x4fff00000000000(node=1|zone=1|lastcpupid=0x7ff) raw: 04fff00000000000 dead000000000040 ffff88801e571000 0000000000000000 raw: 0000000000000000 0000000000000001 00000000ffffffff 0000000000000000 page dumped because: page_pool leak page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0x2820(GFP_ATOMIC|__GFP_NOWARN), pid 5616, tgid 5615 (syz.0.16), ts 132764886408, free_ts 132746987775 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1f4/0x240 mm/page_alloc.c:1717 prep_new_page mm/page_alloc.c:1725 [inline] get_page_from_freelist+0x352b/0x36c0 mm/page_alloc.c:3652 __alloc_frozen_pages_noprof+0x211/0x5b0 mm/page_alloc.c:4934 __alloc_pages_noprof mm/page_alloc.c:4968 [inline] alloc_pages_bulk_noprof+0x84a/0xaf0 mm/page_alloc.c:4888 alloc_pages_bulk_node_noprof include/linux/gfp.h:254 [inline] __page_pool_alloc_pages_slow+0x11f/0x690 net/core/page_pool.c:547 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+0xd7d/0x1820 net/core/skbuff.c:955 netif_skb_check_for_xdp net/core/dev.c:5248 [inline] netif_receive_generic_xdp net/core/dev.c:5287 [inline] do_xdp_generic+0x52a/0xd50 net/core/dev.c:5355 tun_get_user+0x2908/0x47c0 drivers/net/tun.c:1860 tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:1984 new_sync_write fs/read_write.c:591 [inline] vfs_write+0x70f/0xd10 fs/read_write.c:684 ksys_write+0x19d/0x2d0 fs/read_write.c:736 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 4734 tgid 4734 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1262 [inline] __free_frozen_pages+0xde8/0x10a0 mm/page_alloc.c:2680 __slab_free+0x2c6/0x390 mm/slub.c:4557 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0x9a/0x140 mm/kasan/quarantine.c:179 kasan_quarantine_reduce+0x14f/0x170 mm/kasan/quarantine.c:286 __kasan_slab_alloc+0x23/0x80 mm/kasan/common.c:329 kasan_slab_alloc include/linux/kasan.h:250 [inline] slab_post_alloc_hook mm/slub.c:4151 [inline] slab_alloc_node mm/slub.c:4200 [inline] kmem_cache_alloc_noprof+0x1e1/0x390 mm/slub.c:4207 getname_flags+0xb6/0x530 fs/namei.c:146 do_readlinkat+0xd7/0x380 fs/stat.c:563 __do_sys_readlink fs/stat.c:601 [inline] __se_sys_readlink fs/stat.c:598 [inline] __x64_sys_readlink+0x7f/0x90 fs/stat.c:598 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f Modules linked in: CPU: 0 UID: 0 PID: 5616 Comm: syz.0.16 Tainted: G B 6.15.0-rc1-syzkaller-g0af2f6be1b42 #0 PREEMPT(full) Tainted: [B]=BAD_PAGE Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:120 bad_page+0x176/0x1d0 mm/page_alloc.c:505 free_page_is_bad mm/page_alloc.c:948 [inline] free_pages_prepare mm/page_alloc.c:1254 [inline] __free_frozen_pages+0x1040/0x10a0 mm/page_alloc.c:2680 bpf_xdp_shrink_data net/core/filter.c:4155 [inline] bpf_xdp_frags_shrink_tail+0x3bb/0x780 net/core/filter.c:4175 ____bpf_xdp_adjust_tail net/core/filter.c:4200 [inline] bpf_xdp_adjust_tail+0x1c7/0x210 net/core/filter.c:4193 bpf_prog_f476d5219b92964a+0x1e/0x20 __bpf_prog_run include/linux/filter.h:718 [inline] bpf_prog_run_xdp include/net/xdp.h:653 [inline] bpf_prog_run_generic_xdp+0x684/0x1510 net/core/dev.c:5180 netif_receive_generic_xdp net/core/dev.c:5293 [inline] do_xdp_generic+0x769/0xd50 net/core/dev.c:5355 tun_get_user+0x2908/0x47c0 drivers/net/tun.c:1860 tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:1984 new_sync_write fs/read_write.c:591 [inline] vfs_write+0x70f/0xd10 fs/read_write.c:684 ksys_write+0x19d/0x2d0 fs/read_write.c:736 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f1c7158bc1f 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:00007f1c72486000 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f1c717a5fa0 RCX: 00007f1c7158bc1f RDX: 000000000000fdef RSI: 0000200000000a80 RDI: 00000000000000c8 RBP: 00007f1c7160e2a0 R08: 0000000000000000 R09: 0000000000000000 R10: 000000000000fdef R11: 0000000000000293 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f1c717a5fa0 R15: 00007fff1cbfc2d8 BUG: Bad page state in process syz.0.16 pfn:594a1 page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffffffffffffffff pfn:0x594a1 flags: 0x4fff00000000000(node=1|zone=1|lastcpupid=0x7ff) raw: 04fff00000000000 dead000000000040 ffff88801e571000 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 0x2820(GFP_ATOMIC|__GFP_NOWARN), pid 5616, tgid 5615 (syz.0.16), ts 132764875827, free_ts 132746987775 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1f4/0x240 mm/page_alloc.c:1717 prep_new_page mm/page_alloc.c:1725 [inline] get_page_from_freelist+0x352b/0x36c0 mm/page_alloc.c:3652 __alloc_frozen_pages_noprof+0x211/0x5b0 mm/page_alloc.c:4934 __alloc_pages_noprof mm/page_alloc.c:4968 [inline] alloc_pages_bulk_noprof+0x84a/0xaf0 mm/page_alloc.c:4888 alloc_pages_bulk_node_noprof include/linux/gfp.h:254 [inline] __page_pool_alloc_pages_slow+0x11f/0x690 net/core/page_pool.c:547 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+0xd7d/0x1820 net/core/skbuff.c:955 netif_skb_check_for_xdp net/core/dev.c:5248 [inline] netif_receive_generic_xdp net/core/dev.c:5287 [inline] do_xdp_generic+0x52a/0xd50 net/core/dev.c:5355 tun_get_user+0x2908/0x47c0 drivers/net/tun.c:1860 tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:1984 new_sync_write fs/read_write.c:591 [inline] vfs_write+0x70f/0xd10 fs/read_write.c:684 ksys_write+0x19d/0x2d0 fs/read_write.c:736 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 4734 tgid 4734 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1262 [inline] __free_frozen_pages+0xde8/0x10a0 mm/page_alloc.c:2680 __slab_free+0x2c6/0x390 mm/slub.c:4557 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0x9a/0x140 mm/kasan/quarantine.c:179 kasan_quarantine_reduce+0x14f/0x170 mm/kasan/quarantine.c:286 __kasan_slab_alloc+0x23/0x80 mm/kasan/common.c:329 kasan_slab_alloc include/linux/kasan.h:250 [inline] slab_post_alloc_hook mm/slub.c:4151 [inline] slab_alloc_node mm/slub.c:4200 [inline] kmem_cache_alloc_noprof+0x1e1/0x390 mm/slub.c:4207 getname_flags+0xb6/0x530 fs/namei.c:146 do_readlinkat+0xd7/0x380 fs/stat.c:563 __do_sys_readlink fs/stat.c:601 [inline] __se_sys_readlink fs/stat.c:598 [inline] __x64_sys_readlink+0x7f/0x90 fs/stat.c:598 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f Modules linked in: CPU: 0 UID: 0 PID: 5616 Comm: syz.0.16 Tainted: G B 6.15.0-rc1-syzkaller-g0af2f6be1b42 #0 PREEMPT(full) Tainted: [B]=BAD_PAGE Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:120 bad_page+0x176/0x1d0 mm/page_alloc.c:505 free_page_is_bad mm/page_alloc.c:948 [inline] free_pages_prepare mm/page_alloc.c:1254 [inline] __free_frozen_pages+0x1040/0x10a0 mm/page_alloc.c:2680 bpf_xdp_shrink_data net/core/filter.c:4155 [inline] bpf_xdp_frags_shrink_tail+0x3bb/0x780 net/core/filter.c:4175 ____bpf_xdp_adjust_tail net/core/filter.c:4200 [inline] bpf_xdp_adjust_tail+0x1c7/0x210 net/core/filter.c:4193 bpf_prog_f476d5219b92964a+0x1e/0x20 __bpf_prog_run include/linux/filter.h:718 [inline] bpf_prog_run_xdp include/net/xdp.h:653 [inline] bpf_prog_run_generic_xdp+0x684/0x1510 net/core/dev.c:5180 netif_receive_generic_xdp net/core/dev.c:5293 [inline] do_xdp_generic+0x769/0xd50 net/core/dev.c:5355 tun_get_user+0x2908/0x47c0 drivers/net/tun.c:1860 tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:1984 new_sync_write fs/read_write.c:591 [inline] vfs_write+0x70f/0xd10 fs/read_write.c:684 ksys_write+0x19d/0x2d0 fs/read_write.c:736 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f1c7158bc1f 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:00007f1c72486000 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f1c717a5fa0 RCX: 00007f1c7158bc1f RDX: 000000000000fdef RSI: 0000200000000a80 RDI: 00000000000000c8 RBP: 00007f1c7160e2a0 R08: 0000000000000000 R09: 0000000000000000 R10: 000000000000fdef R11: 0000000000000293 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f1c717a5fa0 R15: 00007fff1cbfc2d8 BUG: Bad page state in process syz.0.16 pfn:594a0 page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff8880594a0000 pfn:0x594a0 flags: 0x4fff00000000000(node=1|zone=1|lastcpupid=0x7ff) raw: 04fff00000000000 dead000000000040 ffff88801e571000 0000000000000000 raw: ffff8880594a0000 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 5616, tgid 5615 (syz.0.16), ts 132764865859, free_ts 132746987775 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1f4/0x240 mm/page_alloc.c:1717 prep_new_page mm/page_alloc.c:1725 [inline] get_page_from_freelist+0x352b/0x36c0 mm/page_alloc.c:3652 __alloc_frozen_pages_noprof+0x211/0x5b0 mm/page_alloc.c:4934 __alloc_pages_noprof mm/page_alloc.c:4968 [inline] alloc_pages_bulk_noprof+0x84a/0xaf0 mm/page_alloc.c:4888 alloc_pages_bulk_node_noprof include/linux/gfp.h:254 [inline] __page_pool_alloc_pages_slow+0x11f/0x690 net/core/page_pool.c:547 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+0xd7d/0x1820 net/core/skbuff.c:955 netif_skb_check_for_xdp net/core/dev.c:5248 [inline] netif_receive_generic_xdp net/core/dev.c:5287 [inline] do_xdp_generic+0x52a/0xd50 net/core/dev.c:5355 tun_get_user+0x2908/0x47c0 drivers/net/tun.c:1860 tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:1984 new_sync_write fs/read_write.c:591 [inline] vfs_write+0x70f/0xd10 fs/read_write.c:684 ksys_write+0x19d/0x2d0 fs/read_write.c:736 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 4734 tgid 4734 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1262 [inline] __free_frozen_pages+0xde8/0x10a0 mm/page_alloc.c:2680 __slab_free+0x2c6/0x390 mm/slub.c:4557 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0x9a/0x140 mm/kasan/quarantine.c:179 kasan_quarantine_reduce+0x14f/0x170 mm/kasan/quarantine.c:286 __kasan_slab_alloc+0x23/0x80 mm/kasan/common.c:329 kasan_slab_alloc include/linux/kasan.h:250 [inline] slab_post_alloc_hook mm/slub.c:4151 [inline] slab_alloc_node mm/slub.c:4200 [inline] kmem_cache_alloc_noprof+0x1e1/0x390 mm/slub.c:4207 getname_flags+0xb6/0x530 fs/namei.c:146 do_readlinkat+0xd7/0x380 fs/stat.c:563 __do_sys_readlink fs/stat.c:601 [inline] __se_sys_readlink fs/stat.c:598 [inline] __x64_sys_readlink+0x7f/0x90 fs/stat.c:598 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f Modules linked in: CPU: 0 UID: 0 PID: 5616 Comm: syz.0.16 Tainted: G B 6.15.0-rc1-syzkaller-g0af2f6be1b42 #0 PREEMPT(full) Tainted: [B]=BAD_PAGE Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:120 bad_page+0x176/0x1d0 mm/page_alloc.c:505 free_page_is_bad mm/page_alloc.c:948 [inline] free_pages_prepare mm/page_alloc.c:1254 [inline] __free_frozen_pages+0x1040/0x10a0 mm/page_alloc.c:2680 bpf_xdp_shrink_data net/core/filter.c:4155 [inline] bpf_xdp_frags_shrink_tail+0x3bb/0x780 net/core/filter.c:4175 ____bpf_xdp_adjust_tail net/core/filter.c:4200 [inline] bpf_xdp_adjust_tail+0x1c7/0x210 net/core/filter.c:4193 bpf_prog_f476d5219b92964a+0x1e/0x20 __bpf_prog_run include/linux/filter.h:718 [inline] bpf_prog_run_xdp include/net/xdp.h:653 [inline] bpf_prog_run_generic_xdp+0x684/0x1510 net/core/dev.c:5180 netif_receive_generic_xdp net/core/dev.c:5293 [inline] do_xdp_generic+0x769/0xd50 net/core/dev.c:5355 tun_get_user+0x2908/0x47c0 drivers/net/tun.c:1860 tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:1984 new_sync_write fs/read_write.c:591 [inline] vfs_write+0x70f/0xd10 fs/read_write.c:684 ksys_write+0x19d/0x2d0 fs/read_write.c:736 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f1c7158bc1f 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:00007f1c72486000 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f1c717a5fa0 RCX: 00007f1c7158bc1f RDX: 000000000000fdef RSI: 0000200000000a80 RDI: 00000000000000c8 RBP: 00007f1c7160e2a0 R08: 0000000000000000 R09: 0000000000000000 R10: 000000000000fdef R11: 0000000000000293 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f1c717a5fa0 R15: 00007fff1cbfc2d8 BUG: Bad page state in process syz.0.16 pfn:543a7 page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x3276 pfn:0x543a7 flags: 0x4fff00000000000(node=1|zone=1|lastcpupid=0x7ff) raw: 04fff00000000000 dead000000000040 ffff88801e571000 0000000000000000 raw: 0000000000003276 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 5616, tgid 5615 (syz.0.16), ts 132764855515, free_ts 132747038398 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1f4/0x240 mm/page_alloc.c:1717 prep_new_page mm/page_alloc.c:1725 [inline] get_page_from_freelist+0x352b/0x36c0 mm/page_alloc.c:3652 __alloc_frozen_pages_noprof+0x211/0x5b0 mm/page_alloc.c:4934 __alloc_pages_noprof mm/page_alloc.c:4968 [inline] alloc_pages_bulk_noprof+0x84a/0xaf0 mm/page_alloc.c:4888 alloc_pages_bulk_node_noprof include/linux/gfp.h:254 [inline] __page_pool_alloc_pages_slow+0x11f/0x690 net/core/page_pool.c:547 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+0xd7d/0x1820 net/core/skbuff.c:955 netif_skb_check_for_xdp net/core/dev.c:5248 [inline] netif_receive_generic_xdp net/core/dev.c:5287 [inline] do_xdp_generic+0x52a/0xd50 net/core/dev.c:5355 tun_get_user+0x2908/0x47c0 drivers/net/tun.c:1860 tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:1984 new_sync_write fs/read_write.c:591 [inline] vfs_write+0x70f/0xd10 fs/read_write.c:684 ksys_write+0x19d/0x2d0 fs/read_write.c:736 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 4734 tgid 4734 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1262 [inline] __free_frozen_pages+0xde8/0x10a0 mm/page_alloc.c:2680 __slab_free+0x2c6/0x390 mm/slub.c:4557 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0x9a/0x140 mm/kasan/quarantine.c:179 kasan_quarantine_reduce+0x14f/0x170 mm/kasan/quarantine.c:286 __kasan_slab_alloc+0x23/0x80 mm/kasan/common.c:329 kasan_slab_alloc include/linux/kasan.h:250 [inline] slab_post_alloc_hook mm/slub.c:4151 [inline] slab_alloc_node mm/slub.c:4200 [inline] kmem_cache_alloc_noprof+0x1e1/0x390 mm/slub.c:4207 getname_flags+0xb6/0x530 fs/namei.c:146 do_readlinkat+0xd7/0x380 fs/stat.c:563 __do_sys_readlink fs/stat.c:601 [inline] __se_sys_readlink fs/stat.c:598 [inline] __x64_sys_readlink+0x7f/0x90 fs/stat.c:598 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f Modules linked in: CPU: 0 UID: 0 PID: 5616 Comm: syz.0.16 Tainted: G B 6.15.0-rc1-syzkaller-g0af2f6be1b42 #0 PREEMPT(full) Tainted: [B]=BAD_PAGE Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:120 bad_page+0x176/0x1d0 mm/page_alloc.c:505 free_page_is_bad mm/page_alloc.c:948 [inline] free_pages_prepare mm/page_alloc.c:1254 [inline] __free_frozen_pages+0x1040/0x10a0 mm/page_alloc.c:2680 bpf_xdp_shrink_data net/core/filter.c:4155 [inline] bpf_xdp_frags_shrink_tail+0x3bb/0x780 net/core/filter.c:4175 ____bpf_xdp_adjust_tail net/core/filter.c:4200 [inline] bpf_xdp_adjust_tail+0x1c7/0x210 net/core/filter.c:4193 bpf_prog_f476d5219b92964a+0x1e/0x20 __bpf_prog_run include/linux/filter.h:718 [inline] bpf_prog_run_xdp include/net/xdp.h:653 [inline] bpf_prog_run_generic_xdp+0x684/0x1510 net/core/dev.c:5180 netif_receive_generic_xdp net/core/dev.c:5293 [inline] do_xdp_generic+0x769/0xd50 net/core/dev.c:5355 tun_get_user+0x2908/0x47c0 drivers/net/tun.c:1860 tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:1984 new_sync_write fs/read_write.c:591 [inline] vfs_write+0x70f/0xd10 fs/read_write.c:684 ksys_write+0x19d/0x2d0 fs/read_write.c:736 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f1c7158bc1f 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:00007f1c72486000 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f1c717a5fa0 RCX: 00007f1c7158bc1f RDX: 000000000000fdef RSI: 0000200000000a80 RDI: 00000000000000c8 RBP: 00007f1c7160e2a0 R08: 0000000000000000 R09: 0000000000000000 R10: 000000000000fdef R11: 0000000000000293 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f1c717a5fa0 R15: 00007fff1cbfc2d8