BUG: Bad page state in process syz.0.0 pfn:52f0c page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x52f0c flags: 0x4fff00000000000(node=1|zone=1|lastcpupid=0x7ff) raw: 04fff00000000000 dead000000000040 ffff88801d5e9000 0000000000000000 raw: 0000000000000000 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 5325, tgid 5324 (syz.0.0), ts 68370507365, free_ts 0 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1f4/0x240 mm/page_alloc.c:1551 prep_new_page mm/page_alloc.c:1559 [inline] get_page_from_freelist+0x365c/0x37a0 mm/page_alloc.c:3477 __alloc_frozen_pages_noprof+0x292/0x710 mm/page_alloc.c:4740 __alloc_pages_noprof mm/page_alloc.c:4774 [inline] alloc_pages_bulk_noprof+0x847/0xae0 mm/page_alloc.c:4694 alloc_pages_bulk_node_noprof include/linux/gfp.h:235 [inline] __page_pool_alloc_pages_slow+0x11f/0x690 net/core/page_pool.c:542 page_pool_alloc_netmems net/core/page_pool.c:593 [inline] page_pool_alloc_frag_netmem+0x59c/0x940 net/core/page_pool.c:998 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+0xcea/0x1720 net/core/skbuff.c:893 netif_skb_check_for_xdp net/core/dev.c:5259 [inline] netif_receive_generic_xdp net/core/dev.c:5298 [inline] do_xdp_generic+0x505/0xd30 net/core/dev.c:5366 tun_get_user+0x2a4b/0x4860 drivers/net/tun.c:1929 tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:2053 new_sync_write fs/read_write.c:591 [inline] vfs_write+0xacf/0xd10 fs/read_write.c:684 ksys_write+0x18f/0x2b0 fs/read_write.c:736 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f page_owner free stack trace missing Modules linked in: CPU: 0 UID: 0 PID: 5325 Comm: syz.0.0 Not tainted 6.14.0-syzkaller-00624-g2f2d52945852 #0 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:120 bad_page+0x176/0x1d0 mm/page_alloc.c:501 free_page_is_bad mm/page_alloc.c:923 [inline] free_pages_prepare mm/page_alloc.c:1119 [inline] free_frozen_pages+0x1082/0x10e0 mm/page_alloc.c:2660 bpf_xdp_shrink_data net/core/filter.c:4155 [inline] bpf_xdp_frags_shrink_tail+0x3b3/0x780 net/core/filter.c:4175 ____bpf_xdp_adjust_tail net/core/filter.c:4200 [inline] bpf_xdp_adjust_tail+0x1c6/0x210 net/core/filter.c:4193 bpf_prog_f476d5219b92964a+0x1e/0x20 __bpf_prog_run include/linux/filter.h:692 [inline] bpf_prog_run_xdp include/net/xdp.h:654 [inline] bpf_prog_run_generic_xdp+0x12af/0x1510 net/core/dev.c:5191 netif_receive_generic_xdp net/core/dev.c:5304 [inline] do_xdp_generic+0x757/0xd30 net/core/dev.c:5366 tun_get_user+0x2a4b/0x4860 drivers/net/tun.c:1929 tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:2053 new_sync_write fs/read_write.c:591 [inline] vfs_write+0xacf/0xd10 fs/read_write.c:684 ksys_write+0x18f/0x2b0 fs/read_write.c:736 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f6df9b8bc1f 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:00007f6dfaab6000 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f6df9da5fa0 RCX: 00007f6df9b8bc1f RDX: 000000000000fdef RSI: 0000200000000a80 RDI: 00000000000000c8 RBP: 00007f6df9c0e2a0 R08: 0000000000000000 R09: 0000000000000000 R10: 000000000000fdef R11: 0000000000000293 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f6df9da5fa0 R15: 00007ffeaa968ba8 BUG: Bad page state in process syz.0.0 pfn:52f0b page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x52f0b flags: 0x4fff00000000000(node=1|zone=1|lastcpupid=0x7ff) raw: 04fff00000000000 dead000000000040 ffff88801d5e9000 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 5325, tgid 5324 (syz.0.0), ts 68370499752, free_ts 0 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1f4/0x240 mm/page_alloc.c:1551 prep_new_page mm/page_alloc.c:1559 [inline] get_page_from_freelist+0x365c/0x37a0 mm/page_alloc.c:3477 __alloc_frozen_pages_noprof+0x292/0x710 mm/page_alloc.c:4740 __alloc_pages_noprof mm/page_alloc.c:4774 [inline] alloc_pages_bulk_noprof+0x847/0xae0 mm/page_alloc.c:4694 alloc_pages_bulk_node_noprof include/linux/gfp.h:235 [inline] __page_pool_alloc_pages_slow+0x11f/0x690 net/core/page_pool.c:542 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+0xcc8/0x1720 net/core/skbuff.c:893 netif_skb_check_for_xdp net/core/dev.c:5259 [inline] netif_receive_generic_xdp net/core/dev.c:5298 [inline] do_xdp_generic+0x505/0xd30 net/core/dev.c:5366 tun_get_user+0x2a4b/0x4860 drivers/net/tun.c:1929 tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:2053 new_sync_write fs/read_write.c:591 [inline] vfs_write+0xacf/0xd10 fs/read_write.c:684 ksys_write+0x18f/0x2b0 fs/read_write.c:736 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f page_owner free stack trace missing Modules linked in: CPU: 0 UID: 0 PID: 5325 Comm: syz.0.0 Tainted: G B 6.14.0-syzkaller-00624-g2f2d52945852 #0 Tainted: [B]=BAD_PAGE Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:120 bad_page+0x176/0x1d0 mm/page_alloc.c:501 free_page_is_bad mm/page_alloc.c:923 [inline] free_pages_prepare mm/page_alloc.c:1119 [inline] free_frozen_pages+0x1082/0x10e0 mm/page_alloc.c:2660 bpf_xdp_shrink_data net/core/filter.c:4155 [inline] bpf_xdp_frags_shrink_tail+0x3b3/0x780 net/core/filter.c:4175 ____bpf_xdp_adjust_tail net/core/filter.c:4200 [inline] bpf_xdp_adjust_tail+0x1c6/0x210 net/core/filter.c:4193 bpf_prog_f476d5219b92964a+0x1e/0x20 __bpf_prog_run include/linux/filter.h:692 [inline] bpf_prog_run_xdp include/net/xdp.h:654 [inline] bpf_prog_run_generic_xdp+0x12af/0x1510 net/core/dev.c:5191 netif_receive_generic_xdp net/core/dev.c:5304 [inline] do_xdp_generic+0x757/0xd30 net/core/dev.c:5366 tun_get_user+0x2a4b/0x4860 drivers/net/tun.c:1929 tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:2053 new_sync_write fs/read_write.c:591 [inline] vfs_write+0xacf/0xd10 fs/read_write.c:684 ksys_write+0x18f/0x2b0 fs/read_write.c:736 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f6df9b8bc1f 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:00007f6dfaab6000 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f6df9da5fa0 RCX: 00007f6df9b8bc1f RDX: 000000000000fdef RSI: 0000200000000a80 RDI: 00000000000000c8 RBP: 00007f6df9c0e2a0 R08: 0000000000000000 R09: 0000000000000000 R10: 000000000000fdef R11: 0000000000000293 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f6df9da5fa0 R15: 00007ffeaa968ba8 BUG: Bad page state in process syz.0.0 pfn:52f0a page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x52f0a flags: 0x4fff00000000000(node=1|zone=1|lastcpupid=0x7ff) raw: 04fff00000000000 dead000000000040 ffff88801d5e9000 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 5325, tgid 5324 (syz.0.0), ts 68370492745, free_ts 0 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1f4/0x240 mm/page_alloc.c:1551 prep_new_page mm/page_alloc.c:1559 [inline] get_page_from_freelist+0x365c/0x37a0 mm/page_alloc.c:3477 __alloc_frozen_pages_noprof+0x292/0x710 mm/page_alloc.c:4740 __alloc_pages_noprof mm/page_alloc.c:4774 [inline] alloc_pages_bulk_noprof+0x847/0xae0 mm/page_alloc.c:4694 alloc_pages_bulk_node_noprof include/linux/gfp.h:235 [inline] __page_pool_alloc_pages_slow+0x11f/0x690 net/core/page_pool.c:542 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+0xcc8/0x1720 net/core/skbuff.c:893 netif_skb_check_for_xdp net/core/dev.c:5259 [inline] netif_receive_generic_xdp net/core/dev.c:5298 [inline] do_xdp_generic+0x505/0xd30 net/core/dev.c:5366 tun_get_user+0x2a4b/0x4860 drivers/net/tun.c:1929 tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:2053 new_sync_write fs/read_write.c:591 [inline] vfs_write+0xacf/0xd10 fs/read_write.c:684 ksys_write+0x18f/0x2b0 fs/read_write.c:736 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f page_owner free stack trace missing Modules linked in: CPU: 0 UID: 0 PID: 5325 Comm: syz.0.0 Tainted: G B 6.14.0-syzkaller-00624-g2f2d52945852 #0 Tainted: [B]=BAD_PAGE Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:120 bad_page+0x176/0x1d0 mm/page_alloc.c:501 free_page_is_bad mm/page_alloc.c:923 [inline] free_pages_prepare mm/page_alloc.c:1119 [inline] free_frozen_pages+0x1082/0x10e0 mm/page_alloc.c:2660 bpf_xdp_shrink_data net/core/filter.c:4155 [inline] bpf_xdp_frags_shrink_tail+0x3b3/0x780 net/core/filter.c:4175 ____bpf_xdp_adjust_tail net/core/filter.c:4200 [inline] bpf_xdp_adjust_tail+0x1c6/0x210 net/core/filter.c:4193 bpf_prog_f476d5219b92964a+0x1e/0x20 __bpf_prog_run include/linux/filter.h:692 [inline] bpf_prog_run_xdp include/net/xdp.h:654 [inline] bpf_prog_run_generic_xdp+0x12af/0x1510 net/core/dev.c:5191 netif_receive_generic_xdp net/core/dev.c:5304 [inline] do_xdp_generic+0x757/0xd30 net/core/dev.c:5366 tun_get_user+0x2a4b/0x4860 drivers/net/tun.c:1929 tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:2053 new_sync_write fs/read_write.c:591 [inline] vfs_write+0xacf/0xd10 fs/read_write.c:684 ksys_write+0x18f/0x2b0 fs/read_write.c:736 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f6df9b8bc1f 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:00007f6dfaab6000 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f6df9da5fa0 RCX: 00007f6df9b8bc1f RDX: 000000000000fdef RSI: 0000200000000a80 RDI: 00000000000000c8 RBP: 00007f6df9c0e2a0 R08: 0000000000000000 R09: 0000000000000000 R10: 000000000000fdef R11: 0000000000000293 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f6df9da5fa0 R15: 00007ffeaa968ba8 BUG: Bad page state in process syz.0.0 pfn:52f09 page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x52f09 flags: 0x4fff00000000000(node=1|zone=1|lastcpupid=0x7ff) raw: 04fff00000000000 dead000000000040 ffff88801d5e9000 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 5325, tgid 5324 (syz.0.0), ts 68370485234, free_ts 0 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1f4/0x240 mm/page_alloc.c:1551 prep_new_page mm/page_alloc.c:1559 [inline] get_page_from_freelist+0x365c/0x37a0 mm/page_alloc.c:3477 __alloc_frozen_pages_noprof+0x292/0x710 mm/page_alloc.c:4740 __alloc_pages_noprof mm/page_alloc.c:4774 [inline] alloc_pages_bulk_noprof+0x847/0xae0 mm/page_alloc.c:4694 alloc_pages_bulk_node_noprof include/linux/gfp.h:235 [inline] __page_pool_alloc_pages_slow+0x11f/0x690 net/core/page_pool.c:542 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+0xcc8/0x1720 net/core/skbuff.c:893 netif_skb_check_for_xdp net/core/dev.c:5259 [inline] netif_receive_generic_xdp net/core/dev.c:5298 [inline] do_xdp_generic+0x505/0xd30 net/core/dev.c:5366 tun_get_user+0x2a4b/0x4860 drivers/net/tun.c:1929 tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:2053 new_sync_write fs/read_write.c:591 [inline] vfs_write+0xacf/0xd10 fs/read_write.c:684 ksys_write+0x18f/0x2b0 fs/read_write.c:736 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f page_owner free stack trace missing Modules linked in: CPU: 0 UID: 0 PID: 5325 Comm: syz.0.0 Tainted: G B 6.14.0-syzkaller-00624-g2f2d52945852 #0 Tainted: [B]=BAD_PAGE Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:120 bad_page+0x176/0x1d0 mm/page_alloc.c:501 free_page_is_bad mm/page_alloc.c:923 [inline] free_pages_prepare mm/page_alloc.c:1119 [inline] free_frozen_pages+0x1082/0x10e0 mm/page_alloc.c:2660 bpf_xdp_shrink_data net/core/filter.c:4155 [inline] bpf_xdp_frags_shrink_tail+0x3b3/0x780 net/core/filter.c:4175 ____bpf_xdp_adjust_tail net/core/filter.c:4200 [inline] bpf_xdp_adjust_tail+0x1c6/0x210 net/core/filter.c:4193 bpf_prog_f476d5219b92964a+0x1e/0x20 __bpf_prog_run include/linux/filter.h:692 [inline] bpf_prog_run_xdp include/net/xdp.h:654 [inline] bpf_prog_run_generic_xdp+0x12af/0x1510 net/core/dev.c:5191 netif_receive_generic_xdp net/core/dev.c:5304 [inline] do_xdp_generic+0x757/0xd30 net/core/dev.c:5366 tun_get_user+0x2a4b/0x4860 drivers/net/tun.c:1929 tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:2053 new_sync_write fs/read_write.c:591 [inline] vfs_write+0xacf/0xd10 fs/read_write.c:684 ksys_write+0x18f/0x2b0 fs/read_write.c:736 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f6df9b8bc1f 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:00007f6dfaab6000 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f6df9da5fa0 RCX: 00007f6df9b8bc1f RDX: 000000000000fdef RSI: 0000200000000a80 RDI: 00000000000000c8 RBP: 00007f6df9c0e2a0 R08: 0000000000000000 R09: 0000000000000000 R10: 000000000000fdef R11: 0000000000000293 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f6df9da5fa0 R15: 00007ffeaa968ba8 BUG: Bad page state in process syz.0.0 pfn:52f08 page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x52f08 flags: 0x4fff00000000000(node=1|zone=1|lastcpupid=0x7ff) raw: 04fff00000000000 dead000000000040 ffff88801d5e9000 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 5325, tgid 5324 (syz.0.0), ts 68370477746, free_ts 0 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1f4/0x240 mm/page_alloc.c:1551 prep_new_page mm/page_alloc.c:1559 [inline] get_page_from_freelist+0x365c/0x37a0 mm/page_alloc.c:3477 __alloc_frozen_pages_noprof+0x292/0x710 mm/page_alloc.c:4740 __alloc_pages_noprof mm/page_alloc.c:4774 [inline] alloc_pages_bulk_noprof+0x847/0xae0 mm/page_alloc.c:4694 alloc_pages_bulk_node_noprof include/linux/gfp.h:235 [inline] __page_pool_alloc_pages_slow+0x11f/0x690 net/core/page_pool.c:542 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+0xcc8/0x1720 net/core/skbuff.c:893 netif_skb_check_for_xdp net/core/dev.c:5259 [inline] netif_receive_generic_xdp net/core/dev.c:5298 [inline] do_xdp_generic+0x505/0xd30 net/core/dev.c:5366 tun_get_user+0x2a4b/0x4860 drivers/net/tun.c:1929 tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:2053 new_sync_write fs/read_write.c:591 [inline] vfs_write+0xacf/0xd10 fs/read_write.c:684 ksys_write+0x18f/0x2b0 fs/read_write.c:736 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f page_owner free stack trace missing Modules linked in: CPU: 0 UID: 0 PID: 5325 Comm: syz.0.0 Tainted: G B 6.14.0-syzkaller-00624-g2f2d52945852 #0 Tainted: [B]=BAD_PAGE Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:120 bad_page+0x176/0x1d0 mm/page_alloc.c:501 free_page_is_bad mm/page_alloc.c:923 [inline] free_pages_prepare mm/page_alloc.c:1119 [inline] free_frozen_pages+0x1082/0x10e0 mm/page_alloc.c:2660 bpf_xdp_shrink_data net/core/filter.c:4155 [inline] bpf_xdp_frags_shrink_tail+0x3b3/0x780 net/core/filter.c:4175 ____bpf_xdp_adjust_tail net/core/filter.c:4200 [inline] bpf_xdp_adjust_tail+0x1c6/0x210 net/core/filter.c:4193 bpf_prog_f476d5219b92964a+0x1e/0x20 __bpf_prog_run include/linux/filter.h:692 [inline] bpf_prog_run_xdp include/net/xdp.h:654 [inline] bpf_prog_run_generic_xdp+0x12af/0x1510 net/core/dev.c:5191 netif_receive_generic_xdp net/core/dev.c:5304 [inline] do_xdp_generic+0x757/0xd30 net/core/dev.c:5366 tun_get_user+0x2a4b/0x4860 drivers/net/tun.c:1929 tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:2053 new_sync_write fs/read_write.c:591 [inline] vfs_write+0xacf/0xd10 fs/read_write.c:684 ksys_write+0x18f/0x2b0 fs/read_write.c:736 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f6df9b8bc1f 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:00007f6dfaab6000 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f6df9da5fa0 RCX: 00007f6df9b8bc1f RDX: 000000000000fdef RSI: 0000200000000a80 RDI: 00000000000000c8 RBP: 00007f6df9c0e2a0 R08: 0000000000000000 R09: 0000000000000000 R10: 000000000000fdef R11: 0000000000000293 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f6df9da5fa0 R15: 00007ffeaa968ba8 BUG: Bad page state in process syz.0.0 pfn:52f07 page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x52f07 flags: 0x4fff00000000000(node=1|zone=1|lastcpupid=0x7ff) raw: 04fff00000000000 dead000000000040 ffff88801d5e9000 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 5325, tgid 5324 (syz.0.0), ts 68370471106, free_ts 0 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1f4/0x240 mm/page_alloc.c:1551 prep_new_page mm/page_alloc.c:1559 [inline] get_page_from_freelist+0x365c/0x37a0 mm/page_alloc.c:3477 __alloc_frozen_pages_noprof+0x292/0x710 mm/page_alloc.c:4740 __alloc_pages_noprof mm/page_alloc.c:4774 [inline] alloc_pages_bulk_noprof+0x847/0xae0 mm/page_alloc.c:4694 alloc_pages_bulk_node_noprof include/linux/gfp.h:235 [inline] __page_pool_alloc_pages_slow+0x11f/0x690 net/core/page_pool.c:542 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+0xcc8/0x1720 net/core/skbuff.c:893 netif_skb_check_for_xdp net/core/dev.c:5259 [inline] netif_receive_generic_xdp net/core/dev.c:5298 [inline] do_xdp_generic+0x505/0xd30 net/core/dev.c:5366 tun_get_user+0x2a4b/0x4860 drivers/net/tun.c:1929 tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:2053 new_sync_write fs/read_write.c:591 [inline] vfs_write+0xacf/0xd10 fs/read_write.c:684 ksys_write+0x18f/0x2b0 fs/read_write.c:736 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f page_owner free stack trace missing Modules linked in: CPU: 0 UID: 0 PID: 5325 Comm: syz.0.0 Tainted: G B 6.14.0-syzkaller-00624-g2f2d52945852 #0 Tainted: [B]=BAD_PAGE Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:120 bad_page+0x176/0x1d0 mm/page_alloc.c:501 free_page_is_bad mm/page_alloc.c:923 [inline] free_pages_prepare mm/page_alloc.c:1119 [inline] free_frozen_pages+0x1082/0x10e0 mm/page_alloc.c:2660 bpf_xdp_shrink_data net/core/filter.c:4155 [inline] bpf_xdp_frags_shrink_tail+0x3b3/0x780 net/core/filter.c:4175 ____bpf_xdp_adjust_tail net/core/filter.c:4200 [inline] bpf_xdp_adjust_tail+0x1c6/0x210 net/core/filter.c:4193 bpf_prog_f476d5219b92964a+0x1e/0x20 __bpf_prog_run include/linux/filter.h:692 [inline] bpf_prog_run_xdp include/net/xdp.h:654 [inline] bpf_prog_run_generic_xdp+0x12af/0x1510 net/core/dev.c:5191 netif_receive_generic_xdp net/core/dev.c:5304 [inline] do_xdp_generic+0x757/0xd30 net/core/dev.c:5366 tun_get_user+0x2a4b/0x4860 drivers/net/tun.c:1929 tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:2053 new_sync_write fs/read_write.c:591 [inline] vfs_write+0xacf/0xd10 fs/read_write.c:684 ksys_write+0x18f/0x2b0 fs/read_write.c:736 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f6df9b8bc1f 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:00007f6dfaab6000 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f6df9da5fa0 RCX: 00007f6df9b8bc1f RDX: 000000000000fdef RSI: 0000200000000a80 RDI: 00000000000000c8 RBP: 00007f6df9c0e2a0 R08: 0000000000000000 R09: 0000000000000000 R10: 000000000000fdef R11: 0000000000000293 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f6df9da5fa0 R15: 00007ffeaa968ba8 BUG: Bad page state in process syz.0.0 pfn:52f06 page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x52f06 flags: 0x4fff00000000000(node=1|zone=1|lastcpupid=0x7ff) raw: 04fff00000000000 dead000000000040 ffff88801d5e9000 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 5325, tgid 5324 (syz.0.0), ts 68370464130, free_ts 0 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1f4/0x240 mm/page_alloc.c:1551 prep_new_page mm/page_alloc.c:1559 [inline] get_page_from_freelist+0x365c/0x37a0 mm/page_alloc.c:3477 __alloc_frozen_pages_noprof+0x292/0x710 mm/page_alloc.c:4740 __alloc_pages_noprof mm/page_alloc.c:4774 [inline] alloc_pages_bulk_noprof+0x847/0xae0 mm/page_alloc.c:4694 alloc_pages_bulk_node_noprof include/linux/gfp.h:235 [inline] __page_pool_alloc_pages_slow+0x11f/0x690 net/core/page_pool.c:542 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+0xcc8/0x1720 net/core/skbuff.c:893 netif_skb_check_for_xdp net/core/dev.c:5259 [inline] netif_receive_generic_xdp net/core/dev.c:5298 [inline] do_xdp_generic+0x505/0xd30 net/core/dev.c:5366 tun_get_user+0x2a4b/0x4860 drivers/net/tun.c:1929 tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:2053 new_sync_write fs/read_write.c:591 [inline] vfs_write+0xacf/0xd10 fs/read_write.c:684 ksys_write+0x18f/0x2b0 fs/read_write.c:736 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f page_owner free stack trace missing Modules linked in: CPU: 0 UID: 0 PID: 5325 Comm: syz.0.0 Tainted: G B 6.14.0-syzkaller-00624-g2f2d52945852 #0 Tainted: [B]=BAD_PAGE Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:120 bad_page+0x176/0x1d0 mm/page_alloc.c:501 free_page_is_bad mm/page_alloc.c:923 [inline] free_pages_prepare mm/page_alloc.c:1119 [inline] free_frozen_pages+0x1082/0x10e0 mm/page_alloc.c:2660 bpf_xdp_shrink_data net/core/filter.c:4155 [inline] bpf_xdp_frags_shrink_tail+0x3b3/0x780 net/core/filter.c:4175 ____bpf_xdp_adjust_tail net/core/filter.c:4200 [inline] bpf_xdp_adjust_tail+0x1c6/0x210 net/core/filter.c:4193 bpf_prog_f476d5219b92964a+0x1e/0x20 __bpf_prog_run include/linux/filter.h:692 [inline] bpf_prog_run_xdp include/net/xdp.h:654 [inline] bpf_prog_run_generic_xdp+0x12af/0x1510 net/core/dev.c:5191 netif_receive_generic_xdp net/core/dev.c:5304 [inline] do_xdp_generic+0x757/0xd30 net/core/dev.c:5366 tun_get_user+0x2a4b/0x4860 drivers/net/tun.c:1929 tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:2053 new_sync_write fs/read_write.c:591 [inline] vfs_write+0xacf/0xd10 fs/read_write.c:684 ksys_write+0x18f/0x2b0 fs/read_write.c:736 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f6df9b8bc1f 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:00007f6dfaab6000 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f6df9da5fa0 RCX: 00007f6df9b8bc1f RDX: 000000000000fdef RSI: 0000200000000a80 RDI: 00000000000000c8 RBP: 00007f6df9c0e2a0 R08: 0000000000000000 R09: 0000000000000000 R10: 000000000000fdef R11: 0000000000000293 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f6df9da5fa0 R15: 00007ffeaa968ba8 BUG: Bad page state in process syz.0.0 pfn:52f05 page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x52f05 flags: 0x4fff00000000000(node=1|zone=1|lastcpupid=0x7ff) raw: 04fff00000000000 dead000000000040 ffff88801d5e9000 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 5325, tgid 5324 (syz.0.0), ts 68370456895, free_ts 0 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1f4/0x240 mm/page_alloc.c:1551 prep_new_page mm/page_alloc.c:1559 [inline] get_page_from_freelist+0x365c/0x37a0 mm/page_alloc.c:3477 __alloc_frozen_pages_noprof+0x292/0x710 mm/page_alloc.c:4740 __alloc_pages_noprof mm/page_alloc.c:4774 [inline] alloc_pages_bulk_noprof+0x847/0xae0 mm/page_alloc.c:4694 alloc_pages_bulk_node_noprof include/linux/gfp.h:235 [inline] __page_pool_alloc_pages_slow+0x11f/0x690 net/core/page_pool.c:542 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+0xcc8/0x1720 net/core/skbuff.c:893 netif_skb_check_for_xdp net/core/dev.c:5259 [inline] netif_receive_generic_xdp net/core/dev.c:5298 [inline] do_xdp_generic+0x505/0xd30 net/core/dev.c:5366 tun_get_user+0x2a4b/0x4860 drivers/net/tun.c:1929 tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:2053 new_sync_write fs/read_write.c:591 [inline] vfs_write+0xacf/0xd10 fs/read_write.c:684 ksys_write+0x18f/0x2b0 fs/read_write.c:736 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f page_owner free stack trace missing Modules linked in: CPU: 0 UID: 0 PID: 5325 Comm: syz.0.0 Tainted: G B 6.14.0-syzkaller-00624-g2f2d52945852 #0 Tainted: [B]=BAD_PAGE Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:120 bad_page+0x176/0x1d0 mm/page_alloc.c:501 free_page_is_bad mm/page_alloc.c:923 [inline] free_pages_prepare mm/page_alloc.c:1119 [inline] free_frozen_pages+0x1082/0x10e0 mm/page_alloc.c:2660 bpf_xdp_shrink_data net/core/filter.c:4155 [inline] bpf_xdp_frags_shrink_tail+0x3b3/0x780 net/core/filter.c:4175 ____bpf_xdp_adjust_tail net/core/filter.c:4200 [inline] bpf_xdp_adjust_tail+0x1c6/0x210 net/core/filter.c:4193 bpf_prog_f476d5219b92964a+0x1e/0x20 __bpf_prog_run include/linux/filter.h:692 [inline] bpf_prog_run_xdp include/net/xdp.h:654 [inline] bpf_prog_run_generic_xdp+0x12af/0x1510 net/core/dev.c:5191 netif_receive_generic_xdp net/core/dev.c:5304 [inline] do_xdp_generic+0x757/0xd30 net/core/dev.c:5366 tun_get_user+0x2a4b/0x4860 drivers/net/tun.c:1929 tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:2053 new_sync_write fs/read_write.c:591 [inline] vfs_write+0xacf/0xd10 fs/read_write.c:684 ksys_write+0x18f/0x2b0 fs/read_write.c:736 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f6df9b8bc1f 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:00007f6dfaab6000 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f6df9da5fa0 RCX: 00007f6df9b8bc1f RDX: 000000000000fdef RSI: 0000200000000a80 RDI: 00000000000000c8 RBP: 00007f6df9c0e2a0 R08: 0000000000000000 R09: 0000000000000000 R10: 000000000000fdef R11: 0000000000000293 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f6df9da5fa0 R15: 00007ffeaa968ba8 BUG: Bad page state in process syz.0.0 pfn:52f04 page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x52f04 flags: 0x4fff00000000000(node=1|zone=1|lastcpupid=0x7ff) raw: 04fff00000000000 dead000000000040 ffff88801d5e9000 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 5325, tgid 5324 (syz.0.0), ts 68370448979, free_ts 0 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1f4/0x240 mm/page_alloc.c:1551 prep_new_page mm/page_alloc.c:1559 [inline] get_page_from_freelist+0x365c/0x37a0 mm/page_alloc.c:3477 __alloc_frozen_pages_noprof+0x292/0x710 mm/page_alloc.c:4740 __alloc_pages_noprof mm/page_alloc.c:4774 [inline] alloc_pages_bulk_noprof+0x847/0xae0 mm/page_alloc.c:4694 alloc_pages_bulk_node_noprof include/linux/gfp.h:235 [inline] __page_pool_alloc_pages_slow+0x11f/0x690 net/core/page_pool.c:542 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+0xcc8/0x1720 net/core/skbuff.c:893 netif_skb_check_for_xdp net/core/dev.c:5259 [inline] netif_receive_generic_xdp net/core/dev.c:5298 [inline] do_xdp_generic+0x505/0xd30 net/core/dev.c:5366 tun_get_user+0x2a4b/0x4860 drivers/net/tun.c:1929 tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:2053 new_sync_write fs/read_write.c:591 [inline] vfs_write+0xacf/0xd10 fs/read_write.c:684 ksys_write+0x18f/0x2b0 fs/read_write.c:736 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f page_owner free stack trace missing Modules linked in: CPU: 0 UID: 0 PID: 5325 Comm: syz.0.0 Tainted: G B 6.14.0-syzkaller-00624-g2f2d52945852 #0 Tainted: [B]=BAD_PAGE Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:120 bad_page+0x176/0x1d0 mm/page_alloc.c:501 free_page_is_bad mm/page_alloc.c:923 [inline] free_pages_prepare mm/page_alloc.c:1119 [inline] free_frozen_pages+0x1082/0x10e0 mm/page_alloc.c:2660 bpf_xdp_shrink_data net/core/filter.c:4155 [inline] bpf_xdp_frags_shrink_tail+0x3b3/0x780 net/core/filter.c:4175 ____bpf_xdp_adjust_tail net/core/filter.c:4200 [inline] bpf_xdp_adjust_tail+0x1c6/0x210 net/core/filter.c:4193 bpf_prog_f476d5219b92964a+0x1e/0x20 __bpf_prog_run include/linux/filter.h:692 [inline] bpf_prog_run_xdp include/net/xdp.h:654 [inline] bpf_prog_run_generic_xdp+0x12af/0x1510 net/core/dev.c:5191 netif_receive_generic_xdp net/core/dev.c:5304 [inline] do_xdp_generic+0x757/0xd30 net/core/dev.c:5366 tun_get_user+0x2a4b/0x4860 drivers/net/tun.c:1929 tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:2053 new_sync_write fs/read_write.c:591 [inline] vfs_write+0xacf/0xd10 fs/read_write.c:684 ksys_write+0x18f/0x2b0 fs/read_write.c:736 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f6df9b8bc1f 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:00007f6dfaab6000 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f6df9da5fa0 RCX: 00007f6df9b8bc1f RDX: 000000000000fdef RSI: 0000200000000a80 RDI: 00000000000000c8 RBP: 00007f6df9c0e2a0 R08: 0000000000000000 R09: 0000000000000000 R10: 000000000000fdef R11: 0000000000000293 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f6df9da5fa0 R15: 00007ffeaa968ba8 BUG: Bad page state in process syz.0.0 pfn:45c4b page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x45c4b flags: 0x4fff00000000000(node=1|zone=1|lastcpupid=0x7ff) raw: 04fff00000000000 dead000000000040 ffff88801d5e9000 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 5325, tgid 5324 (syz.0.0), ts 68370441761, free_ts 66823904665 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1f4/0x240 mm/page_alloc.c:1551 prep_new_page mm/page_alloc.c:1559 [inline] get_page_from_freelist+0x365c/0x37a0 mm/page_alloc.c:3477 __alloc_frozen_pages_noprof+0x292/0x710 mm/page_alloc.c:4740 __alloc_pages_noprof mm/page_alloc.c:4774 [inline] alloc_pages_bulk_noprof+0x847/0xae0 mm/page_alloc.c:4694 alloc_pages_bulk_node_noprof include/linux/gfp.h:235 [inline] __page_pool_alloc_pages_slow+0x11f/0x690 net/core/page_pool.c:542 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+0xcc8/0x1720 net/core/skbuff.c:893 netif_skb_check_for_xdp net/core/dev.c:5259 [inline] netif_receive_generic_xdp net/core/dev.c:5298 [inline] do_xdp_generic+0x505/0xd30 net/core/dev.c:5366 tun_get_user+0x2a4b/0x4860 drivers/net/tun.c:1929 tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:2053 new_sync_write fs/read_write.c:591 [inline] vfs_write+0xacf/0xd10 fs/read_write.c:684 ksys_write+0x18f/0x2b0 fs/read_write.c:736 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 5307 tgid 5307 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1127 [inline] free_frozen_pages+0xe0d/0x10e0 mm/page_alloc.c:2660 stack_depot_save_flags+0x7c6/0x940 lib/stackdepot.c:674 kasan_save_stack mm/kasan/common.c:48 [inline] kasan_save_track+0x51/0x80 mm/kasan/common.c:68 kasan_save_free_info+0x40/0x50 mm/kasan/generic.c:576 poison_slab_object mm/kasan/common.c:247 [inline] __kasan_slab_free+0x59/0x70 mm/kasan/common.c:264 kasan_slab_free include/linux/kasan.h:233 [inline] slab_free_hook mm/slub.c:2376 [inline] slab_free mm/slub.c:4633 [inline] kmem_cache_free+0x195/0x410 mm/slub.c:4735 va_clip mm/vmalloc.c:1645 [inline] va_alloc mm/vmalloc.c:1747 [inline] __alloc_vmap_area mm/vmalloc.c:1783 [inline] alloc_vmap_area+0x1629/0x2400 mm/vmalloc.c:2000 __get_vm_area_node+0x1c8/0x2d0 mm/vmalloc.c:3137 __vmalloc_node_range_noprof+0x344/0x1380 mm/vmalloc.c:3806 __vmalloc_node_noprof mm/vmalloc.c:3911 [inline] vzalloc_noprof+0x79/0x90 mm/vmalloc.c:3984 alloc_counters+0xd7/0x770 net/ipv4/netfilter/ip_tables.c:799 copy_entries_to_user net/ipv6/netfilter/ip6_tables.c:837 [inline] get_entries net/ipv6/netfilter/ip6_tables.c:1039 [inline] do_ip6t_get_ctl+0xf1c/0x18d0 net/ipv6/netfilter/ip6_tables.c:1677 nf_getsockopt+0x299/0x2c0 net/netfilter/nf_sockopt.c:116 ipv6_getsockopt+0x23e/0x360 net/ipv6/ipv6_sockglue.c:1493 tcp_getsockopt+0x163/0x1c0 net/ipv4/tcp.c:4684 do_sock_getsockopt+0x38e/0x740 net/socket.c:2364 Modules linked in: CPU: 0 UID: 0 PID: 5325 Comm: syz.0.0 Tainted: G B 6.14.0-syzkaller-00624-g2f2d52945852 #0 Tainted: [B]=BAD_PAGE Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:120 bad_page+0x176/0x1d0 mm/page_alloc.c:501 free_page_is_bad mm/page_alloc.c:923 [inline] free_pages_prepare mm/page_alloc.c:1119 [inline] free_frozen_pages+0x1082/0x10e0 mm/page_alloc.c:2660 bpf_xdp_shrink_data net/core/filter.c:4155 [inline] bpf_xdp_frags_shrink_tail+0x3b3/0x780 net/core/filter.c:4175 ____bpf_xdp_adjust_tail net/core/filter.c:4200 [inline] bpf_xdp_adjust_tail+0x1c6/0x210 net/core/filter.c:4193 bpf_prog_f476d5219b92964a+0x1e/0x20 __bpf_prog_run include/linux/filter.h:692 [inline] bpf_prog_run_xdp include/net/xdp.h:654 [inline] bpf_prog_run_generic_xdp+0x12af/0x1510 net/core/dev.c:5191 netif_receive_generic_xdp net/core/dev.c:5304 [inline] do_xdp_generic+0x757/0xd30 net/core/dev.c:5366 tun_get_user+0x2a4b/0x4860 drivers/net/tun.c:1929 tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:2053 new_sync_write fs/read_write.c:591 [inline] vfs_write+0xacf/0xd10 fs/read_write.c:684 ksys_write+0x18f/0x2b0 fs/read_write.c:736 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f6df9b8bc1f 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:00007f6dfaab6000 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f6df9da5fa0 RCX: 00007f6df9b8bc1f RDX: 000000000000fdef RSI: 0000200000000a80 RDI: 00000000000000c8 RBP: 00007f6df9c0e2a0 R08: 0000000000000000 R09: 0000000000000000 R10: 000000000000fdef R11: 0000000000000293 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f6df9da5fa0 R15: 00007ffeaa968ba8 BUG: Bad page state in process syz.0.0 pfn:45c4a page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x45c4a flags: 0x4fff00000000000(node=1|zone=1|lastcpupid=0x7ff) raw: 04fff00000000000 dead000000000040 ffff88801d5e9000 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 5325, tgid 5324 (syz.0.0), ts 68370433959, free_ts 66823904665 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1f4/0x240 mm/page_alloc.c:1551 prep_new_page mm/page_alloc.c:1559 [inline] get_page_from_freelist+0x365c/0x37a0 mm/page_alloc.c:3477 __alloc_frozen_pages_noprof+0x292/0x710 mm/page_alloc.c:4740 __alloc_pages_noprof mm/page_alloc.c:4774 [inline] alloc_pages_bulk_noprof+0x847/0xae0 mm/page_alloc.c:4694 alloc_pages_bulk_node_noprof include/linux/gfp.h:235 [inline] __page_pool_alloc_pages_slow+0x11f/0x690 net/core/page_pool.c:542 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+0xcc8/0x1720 net/core/skbuff.c:893 netif_skb_check_for_xdp net/core/dev.c:5259 [inline] netif_receive_generic_xdp net/core/dev.c:5298 [inline] do_xdp_generic+0x505/0xd30 net/core/dev.c:5366 tun_get_user+0x2a4b/0x4860 drivers/net/tun.c:1929 tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:2053 new_sync_write fs/read_write.c:591 [inline] vfs_write+0xacf/0xd10 fs/read_write.c:684 ksys_write+0x18f/0x2b0 fs/read_write.c:736 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 5307 tgid 5307 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1127 [inline] free_frozen_pages+0xe0d/0x10e0 mm/page_alloc.c:2660 stack_depot_save_flags+0x7c6/0x940 lib/stackdepot.c:674 kasan_save_stack mm/kasan/common.c:48 [inline] kasan_save_track+0x51/0x80 mm/kasan/common.c:68 kasan_save_free_info+0x40/0x50 mm/kasan/generic.c:576 poison_slab_object mm/kasan/common.c:247 [inline] __kasan_slab_free+0x59/0x70 mm/kasan/common.c:264 kasan_slab_free include/linux/kasan.h:233 [inline] slab_free_hook mm/slub.c:2376 [inline] slab_free mm/slub.c:4633 [inline] kmem_cache_free+0x195/0x410 mm/slub.c:4735 va_clip mm/vmalloc.c:1645 [inline] va_alloc mm/vmalloc.c:1747 [inline] __alloc_vmap_area mm/vmalloc.c:1783 [inline] alloc_vmap_area+0x1629/0x2400 mm/vmalloc.c:2000 __get_vm_area_node+0x1c8/0x2d0 mm/vmalloc.c:3137 __vmalloc_node_range_noprof+0x344/0x1380 mm/vmalloc.c:3806 __vmalloc_node_noprof mm/vmalloc.c:3911 [inline] vzalloc_noprof+0x79/0x90 mm/vmalloc.c:3984 alloc_counters+0xd7/0x770 net/ipv4/netfilter/ip_tables.c:799 copy_entries_to_user net/ipv6/netfilter/ip6_tables.c:837 [inline] get_entries net/ipv6/netfilter/ip6_tables.c:1039 [inline] do_ip6t_get_ctl+0xf1c/0x18d0 net/ipv6/netfilter/ip6_tables.c:1677 nf_getsockopt+0x299/0x2c0 net/netfilter/nf_sockopt.c:116 ipv6_getsockopt+0x23e/0x360 net/ipv6/ipv6_sockglue.c:1493 tcp_getsockopt+0x163/0x1c0 net/ipv4/tcp.c:4684 do_sock_getsockopt+0x38e/0x740 net/socket.c:2364 Modules linked in: CPU: 0 UID: 0 PID: 5325 Comm: syz.0.0 Tainted: G B 6.14.0-syzkaller-00624-g2f2d52945852 #0 Tainted: [B]=BAD_PAGE Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:120 bad_page+0x176/0x1d0 mm/page_alloc.c:501 free_page_is_bad mm/page_alloc.c:923 [inline] free_pages_prepare mm/page_alloc.c:1119 [inline] free_frozen_pages+0x1082/0x10e0 mm/page_alloc.c:2660 bpf_xdp_shrink_data net/core/filter.c:4155 [inline] bpf_xdp_frags_shrink_tail+0x3b3/0x780 net/core/filter.c:4175 ____bpf_xdp_adjust_tail net/core/filter.c:4200 [inline] bpf_xdp_adjust_tail+0x1c6/0x210 net/core/filter.c:4193 bpf_prog_f476d5219b92964a+0x1e/0x20 __bpf_prog_run include/linux/filter.h:692 [inline] bpf_prog_run_xdp include/net/xdp.h:654 [inline] bpf_prog_run_generic_xdp+0x12af/0x1510 net/core/dev.c:5191 netif_receive_generic_xdp net/core/dev.c:5304 [inline] do_xdp_generic+0x757/0xd30 net/core/dev.c:5366 tun_get_user+0x2a4b/0x4860 drivers/net/tun.c:1929 tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:2053 new_sync_write fs/read_write.c:591 [inline] vfs_write+0xacf/0xd10 fs/read_write.c:684 ksys_write+0x18f/0x2b0 fs/read_write.c:736 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f6df9b8bc1f 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:00007f6dfaab6000 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f6df9da5fa0 RCX: 00007f6df9b8bc1f RDX: 000000000000fdef RSI: 0000200000000a80 RDI: 00000000000000c8 RBP: 00007f6df9c0e2a0 R08: 0000000000000000 R09: 0000000000000000 R10: 000000000000fdef R11: 0000000000000293 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f6df9da5fa0 R15: 00007ffeaa968ba8 BUG: Bad page state in process syz.0.0 pfn:40bdb page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff888040bdb3e0 pfn:0x40bdb flags: 0x4fff00000000000(node=1|zone=1|lastcpupid=0x7ff) raw: 04fff00000000000 dead000000000040 ffff88801d5e9000 0000000000000000 raw: ffff888040bdb3e0 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 5325, tgid 5324 (syz.0.0), ts 68370426513, free_ts 66502789670 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1f4/0x240 mm/page_alloc.c:1551 prep_new_page mm/page_alloc.c:1559 [inline] get_page_from_freelist+0x365c/0x37a0 mm/page_alloc.c:3477 __alloc_frozen_pages_noprof+0x292/0x710 mm/page_alloc.c:4740 __alloc_pages_noprof mm/page_alloc.c:4774 [inline] alloc_pages_bulk_noprof+0x847/0xae0 mm/page_alloc.c:4694 alloc_pages_bulk_node_noprof include/linux/gfp.h:235 [inline] __page_pool_alloc_pages_slow+0x11f/0x690 net/core/page_pool.c:542 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+0xcc8/0x1720 net/core/skbuff.c:893 netif_skb_check_for_xdp net/core/dev.c:5259 [inline] netif_receive_generic_xdp net/core/dev.c:5298 [inline] do_xdp_generic+0x505/0xd30 net/core/dev.c:5366 tun_get_user+0x2a4b/0x4860 drivers/net/tun.c:1929 tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:2053 new_sync_write fs/read_write.c:591 [inline] vfs_write+0xacf/0xd10 fs/read_write.c:684 ksys_write+0x18f/0x2b0 fs/read_write.c:736 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 5307 tgid 5307 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1127 [inline] free_frozen_pages+0xe0d/0x10e0 mm/page_alloc.c:2660 discard_slab mm/slub.c:2707 [inline] __put_partials+0x160/0x1c0 mm/slub.c:3176 put_cpu_partial+0x17c/0x250 mm/slub.c:3251 __slab_free+0x290/0x380 mm/slub.c:4503 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:4138 [inline] slab_alloc_node mm/slub.c:4187 [inline] kmem_cache_alloc_node_noprof+0x1d9/0x380 mm/slub.c:4239 __alloc_skb+0x1c3/0x440 net/core/skbuff.c:596 netlink_sendmsg+0x623/0xca0 net/netlink/af_netlink.c:1857 sock_sendmsg_nosec net/socket.c:718 [inline] __sock_sendmsg+0x221/0x270 net/socket.c:733 __sys_sendto+0x363/0x4c0 net/socket.c:2187 __do_sys_sendto net/socket.c:2194 [inline] __se_sys_sendto net/socket.c:2190 [inline] __x64_sys_sendto+0xde/0x100 net/socket.c:2190 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f Modules linked in: CPU: 0 UID: 0 PID: 5325 Comm: syz.0.0 Tainted: G B 6.14.0-syzkaller-00624-g2f2d52945852 #0 Tainted: [B]=BAD_PAGE Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:120 bad_page+0x176/0x1d0 mm/page_alloc.c:501 free_page_is_bad mm/page_alloc.c:923 [inline] free_pages_prepare mm/page_alloc.c:1119 [inline] free_frozen_pages+0x1082/0x10e0 mm/page_alloc.c:2660 bpf_xdp_shrink_data net/core/filter.c:4155 [inline] bpf_xdp_frags_shrink_tail+0x3b3/0x780 net/core/filter.c:4175 ____bpf_xdp_adjust_tail net/core/filter.c:4200 [inline] bpf_xdp_adjust_tail+0x1c6/0x210 net/core/filter.c:4193 bpf_prog_f476d5219b92964a+0x1e/0x20 __bpf_prog_run include/linux/filter.h:692 [inline] bpf_prog_run_xdp include/net/xdp.h:654 [inline] bpf_prog_run_generic_xdp+0x12af/0x1510 net/core/dev.c:5191 netif_receive_generic_xdp net/core/dev.c:5304 [inline] do_xdp_generic+0x757/0xd30 net/core/dev.c:5366 tun_get_user+0x2a4b/0x4860 drivers/net/tun.c:1929 tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:2053 new_sync_write fs/read_write.c:591 [inline] vfs_write+0xacf/0xd10 fs/read_write.c:684 ksys_write+0x18f/0x2b0 fs/read_write.c:736 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f6df9b8bc1f 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:00007f6dfaab6000 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f6df9da5fa0 RCX: 00007f6df9b8bc1f RDX: 000000000000fdef RSI: 0000200000000a80 RDI: 00000000000000c8 RBP: 00007f6df9c0e2a0 R08: 0000000000000000 R09: 0000000000000000 R10: 000000000000fdef R11: 0000000000000293 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f6df9da5fa0 R15: 00007ffeaa968ba8