loop5: rw=0, want=6491538, limit=128 Buffer I/O error on dev loop5, logical block 3245768, async page read ================================================================== BUG: KASAN: use-after-free in sysv_new_inode+0x1130/0x12c0 fs/sysv/ialloc.c:153 Read of size 2 at addr ffff88805c5f71ce by task syz.5.116/5394 CPU: 1 PID: 5394 Comm: syz.5.116 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/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_inode+0x1130/0x12c0 fs/sysv/ialloc.c:153 sysv_mknod+0x4a/0xd0 fs/sysv/namei.c:53 vfs_mknod+0x424/0x4c0 fs/namei.c:3952 do_mknodat+0x453/0x630 fs/namei.c:-1 __do_sys_mknodat fs/namei.c:4030 [inline] __se_sys_mknodat fs/namei.c:4027 [inline] __x64_sys_mknodat+0xa5/0xc0 fs/namei.c:4027 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:0x7f6184c96f79 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:00007f6182ec3028 EFLAGS: 00000246 ORIG_RAX: 0000000000000103 RAX: ffffffffffffffda RBX: 00007f6184f11090 RCX: 00007f6184c96f79 RDX: 0000000000006000 RSI: 0000200000000040 RDI: ffffffffffffff9c RBP: 00007f6184d2d7e0 R08: 0000000000000000 R09: 0000000000000000 R10: 000000000000070a R11: 0000000000000246 R12: 0000000000000000 R13: 00007f6184f11128 R14: 00007f6184f11090 R15: 00007ffdcc05d628 The buggy address belongs to the page: page:ffffea0001717dc0 refcount:0 mapcount:0 mapping:0000000000000000 index:0x1 pfn:0x5c5f7 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 ffffea0001717e08 ffffea0001717d88 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 5330, ts 149054076152, free_ts 151135206479 prep_new_page mm/page_alloc.c:2426 [inline] get_page_from_freelist+0x1bbd/0x1ca0 mm/page_alloc.c:4192 __alloc_pages+0x1ee/0x480 mm/page_alloc.c:5487 alloc_pages_vma+0x393/0x7c0 mm/mempolicy.c:2146 shmem_alloc_page mm/shmem.c:1586 [inline] shmem_alloc_and_acct_page+0x47f/0xbe0 mm/shmem.c:1611 shmem_getpage_gfp+0x14f4/0x2d40 mm/shmem.c:1906 shmem_fault+0x1ac/0x540 mm/shmem.c:2118 __do_fault+0x141/0x330 mm/memory.c:3928 do_read_fault mm/memory.c:4264 [inline] do_fault mm/memory.c:4392 [inline] handle_pte_fault mm/memory.c:4650 [inline] __handle_mm_fault mm/memory.c:4785 [inline] handle_mm_fault+0x2985/0x4410 mm/memory.c:4883 faultin_page mm/gup.c:976 [inline] __get_user_pages+0x94b/0x11e0 mm/gup.c:1197 populate_vma_page_range+0x213/0x290 mm/gup.c:1529 __mm_populate+0x275/0x3b0 mm/gup.c:1638 mm_populate include/linux/mm.h:2646 [inline] vm_mmap_pgoff+0x212/0x2d0 mm/util.c:556 ksys_mmap_pgoff+0x140/0x790 mm/mmap.c:1635 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 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/0x820 mm/page_alloc.c:3433 release_pages+0x186c/0x1be0 mm/swap.c:963 __pagevec_release+0x6d/0xe0 mm/swap.c:983 pagevec_release include/linux/pagevec.h:81 [inline] shmem_undo_range+0x62b/0x1930 mm/shmem.c:964 shmem_truncate_range mm/shmem.c:1063 [inline] shmem_evict_inode+0x220/0xa40 mm/shmem.c:1145 evict+0x4c9/0x8d0 fs/inode.c:647 __dentry_kill+0x431/0x650 fs/dcache.c:586 dentry_kill+0xb8/0x290 fs/dcache.c:-1 dput+0xd8/0x1a0 fs/dcache.c:893 __fput+0x5ee/0x930 fs/file_table.c:319 task_work_run+0x125/0x1a0 kernel/task_work.c:188 exit_task_work include/linux/task_work.h:33 [inline] do_exit+0x626/0x20c0 kernel/exit.c:883 do_group_exit+0x12e/0x300 kernel/exit.c:997 get_signal+0x6ca/0x12c0 kernel/signal.c:2900 arch_do_signal_or_restart+0xe7/0x12c0 arch/x86/kernel/signal.c:867 Memory state around the buggy address: ffff88805c5f7080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff88805c5f7100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff >ffff88805c5f7180: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff88805c5f7200: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff88805c5f7280: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ==================================================================