Buffer I/O error on dev loop3, logical block 3245768, async page read ================================================================== BUG: KASAN: use-after-free in sysv_new_block+0x72e/0x8e0 fs/sysv/balloc.c:113 Read of size 4 at addr ffff88805db7c0c8 by task syz.3.18/4894 CPU: 0 PID: 4894 Comm: syz.3.18 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026 Call Trace: dump_stack_lvl+0x188/0x250 lib/dump_stack.c:106 print_address_description+0x60/0x2d0 mm/kasan/report.c:248 __kasan_report mm/kasan/report.c:434 [inline] kasan_report+0xdf/0x130 mm/kasan/report.c:451 sysv_new_block+0x72e/0x8e0 fs/sysv/balloc.c:113 alloc_branch fs/sysv/itree.c:134 [inline] get_block+0x26c/0x1540 fs/sysv/itree.c:253 __block_write_begin_int+0x565/0x15d0 fs/buffer.c:2012 __block_write_begin fs/buffer.c:2062 [inline] block_write_begin+0x4d/0xc0 fs/buffer.c:2122 sysv_write_begin+0x35/0x70 fs/sysv/itree.c:487 __page_symlink+0x102/0x200 fs/namei.c:5242 sysv_symlink+0xc8/0x150 fs/sysv/namei.c:86 vfs_symlink+0x245/0x3d0 fs/namei.c:4480 do_symlinkat+0x1ab/0x6b0 fs/namei.c:4509 __do_sys_symlink fs/namei.c:4531 [inline] __se_sys_symlink fs/namei.c:4529 [inline] __x64_sys_symlink+0x7a/0x90 fs/namei.c:4529 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 RIP: 0033:0x7f253560fbe9 Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f2534886028 EFLAGS: 00000246 ORIG_RAX: 0000000000000058 RAX: ffffffffffffffda RBX: 00007f25357ddf80 RCX: 00007f253560fbe9 RDX: 0000000000000000 RSI: 00000000200059c0 RDI: 00000000200049c0 RBP: 00007f25356932bf R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f25357ddf80 R15: 00007fffd8a4b5f8 The buggy address belongs to the page: page:ffffea000176df00 refcount:0 mapcount:0 mapping:0000000000000000 index:0x1 pfn:0x5db7c flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 ffffea000176d088 ffffea0001783f88 0000000000000000 raw: 0000000000000001 0000000000000000 00000000ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as freed page last allocated via order 0, migratetype Movable, gfp_mask 0x1100cca(GFP_HIGHUSER_MOVABLE), pid 4846, ts 105440786277, free_ts 105490808034 prep_new_page mm/page_alloc.c:2426 [inline] get_page_from_freelist+0x24f6/0x2670 mm/page_alloc.c:4192 __alloc_pages+0x1ee/0x480 mm/page_alloc.c:5501 alloc_pages_vma+0x2bc/0x790 mm/mempolicy.c:2146 do_cow_fault mm/memory.c:4283 [inline] do_fault mm/memory.c:4394 [inline] handle_pte_fault mm/memory.c:4650 [inline] __handle_mm_fault mm/memory.c:4785 [inline] handle_mm_fault+0x1c94/0x4440 mm/memory.c:4883 do_user_addr_fault+0x494/0xc90 arch/x86/mm/fault.c:1355 handle_page_fault arch/x86/mm/fault.c:1443 [inline] exc_page_fault+0x60/0x100 arch/x86/mm/fault.c:1496 asm_exc_page_fault+0x22/0x30 arch/x86/include/asm/idtentry.h:606 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1340 [inline] free_pcp_prepare mm/page_alloc.c:1391 [inline] free_unref_page_prepare+0x637/0x6c0 mm/page_alloc.c:3317 free_unref_page_list+0x119/0x830 mm/page_alloc.c:3433 release_pages+0x185f/0x1bd0 mm/swap.c:963 tlb_batch_pages_flush mm/mmu_gather.c:50 [inline] tlb_flush_mmu_free mm/mmu_gather.c:241 [inline] tlb_flush_mmu mm/mmu_gather.c:248 [inline] tlb_finish_mmu+0x1b4/0x370 mm/mmu_gather.c:371 exit_mmap+0x3d0/0x640 mm/mmap.c:3218 __mmput+0x115/0x390 kernel/fork.c:1133 exit_mm+0x632/0x7b0 kernel/exit.c:557 do_exit+0x5b8/0x2110 kernel/exit.c:877 do_group_exit+0x12c/0x2f0 kernel/exit.c:1004 __do_sys_exit_group kernel/exit.c:1015 [inline] __se_sys_exit_group kernel/exit.c:1013 [inline] __x64_sys_exit_group+0x3b/0x40 kernel/exit.c:1013 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 Memory state around the buggy address: ffff88805db7bf80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff88805db7c000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff >ffff88805db7c080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff88805db7c100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff88805db7c180: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ==================================================================