loop2: detected capacity change from 0 to 1024 EXT4-fs (loop2): mounted filesystem without journal. Opts: block_validity,errors=remount-ro,sysvgroups,norecovery,debug_want_extra_isize=0x0000000000000080,grpjquota=,nogrpid,noauto_da_alloc,norecovery,. Quota mode: none. ================================================================== BUG: KASAN: use-after-free in xattr_find_entry fs/ext4/xattr.c:294 [inline] BUG: KASAN: use-after-free in ext4_xattr_ibody_get+0x606/0x670 fs/ext4/xattr.c:601 Read of size 4 at addr ffff8881125c8004 by task syz.2.20/385 CPU: 1 PID: 385 Comm: syz.2.20 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/09/2026 Call Trace: __dump_stack+0x21/0x30 lib/dump_stack.c:88 dump_stack_lvl+0x110/0x170 lib/dump_stack.c:106 print_address_description+0x7f/0x2c0 mm/kasan/report.c:248 __kasan_report mm/kasan/report.c:427 [inline] kasan_report+0x10f/0x150 mm/kasan/report.c:444 __asan_report_load4_noabort+0x14/0x20 mm/kasan/report_generic.c:308 xattr_find_entry fs/ext4/xattr.c:294 [inline] ext4_xattr_ibody_get+0x606/0x670 fs/ext4/xattr.c:601 ext4_xattr_get+0x116/0x830 fs/ext4/xattr.c:655 ext4_get_acl+0x85/0x6c0 fs/ext4/acl.c:165 get_acl+0x161/0x270 fs/posix_acl.c:153 posix_acl_chmod+0xe9/0x250 fs/posix_acl.c:602 ext4_setattr+0xb6b/0x1b10 fs/ext4/inode.c:5672 notify_change+0xc30/0xf40 fs/attr.c:505 chmod_common+0x21a/0x3c0 fs/open.c:583 do_fchmodat+0xd4/0x1a0 fs/open.c:622 __do_sys_fchmodat fs/open.c:635 [inline] __se_sys_fchmodat fs/open.c:632 [inline] __x64_sys_fchmodat+0x7b/0x90 fs/open.c:632 x64_sys_call+0x1b7/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:269 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:0x7f1c80a35e99 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:00007ffd3a29d0f8 EFLAGS: 00000246 ORIG_RAX: 000000000000010c RAX: ffffffffffffffda RBX: 00007f1c80cbdfa0 RCX: 00007f1c80a35e99 RDX: 00000000ffffff50 RSI: 0000200000000300 RDI: ffffffffffffff9c RBP: 00007f1c80acbeaf R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f1c80cbdfac R14: 00007f1c80cbdfa0 R15: 00007f1c80cbdfa0 Allocated by task 312: kasan_save_stack mm/kasan/common.c:38 [inline] kasan_set_track mm/kasan/common.c:45 [inline] set_alloc_info mm/kasan/common.c:433 [inline] __kasan_slab_alloc+0xb7/0xe0 mm/kasan/common.c:466 kasan_slab_alloc include/linux/kasan.h:217 [inline] slab_post_alloc_hook+0x4f/0x2b0 mm/slab.h:550 slab_alloc_node mm/slub.c:3245 [inline] slab_alloc mm/slub.c:3255 [inline] kmem_cache_alloc+0xf7/0x260 mm/slub.c:3260 getname_flags+0xba/0x510 fs/namei.c:138 user_path_at_empty+0x2f/0x1c0 fs/namei.c:2890 user_path_at include/linux/namei.h:57 [inline] vfs_statx+0x109/0xa20 fs/stat.c:221 vfs_fstatat fs/stat.c:243 [inline] __do_sys_newfstatat fs/stat.c:411 [inline] __se_sys_newfstatat+0x10e/0x3d0 fs/stat.c:405 __x64_sys_newfstatat+0x9b/0xb0 fs/stat.c:405 x64_sys_call+0x2c1/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:263 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 Freed by task 312: kasan_save_stack mm/kasan/common.c:38 [inline] kasan_set_track+0x4a/0x70 mm/kasan/common.c:45 kasan_set_free_info+0x23/0x40 mm/kasan/generic.c:370 ____kasan_slab_free+0x125/0x160 mm/kasan/common.c:365 __kasan_slab_free+0x11/0x20 mm/kasan/common.c:373 kasan_slab_free include/linux/kasan.h:193 [inline] slab_free_hook mm/slub.c:1728 [inline] slab_free_freelist_hook+0xc2/0x190 mm/slub.c:1754 slab_free mm/slub.c:3526 [inline] kmem_cache_free+0x100/0x320 mm/slub.c:3544 putname fs/namei.c:271 [inline] user_path_at_empty+0x162/0x1c0 fs/namei.c:2893 user_path_at include/linux/namei.h:57 [inline] vfs_statx+0x109/0xa20 fs/stat.c:221 vfs_fstatat fs/stat.c:243 [inline] __do_sys_newfstatat fs/stat.c:411 [inline] __se_sys_newfstatat+0x10e/0x3d0 fs/stat.c:405 __x64_sys_newfstatat+0x9b/0xb0 fs/stat.c:405 x64_sys_call+0x2c1/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:263 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 The buggy address belongs to the object at ffff8881125c8000 which belongs to the cache names_cache of size 4096 The buggy address is located 4 bytes inside of 4096-byte region [ffff8881125c8000, ffff8881125c9000) The buggy address belongs to the page: page:ffffea0004497200 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1125c8 head:ffffea0004497200 order:3 compound_mapcount:0 compound_pincount:0 flags: 0x4000000000010200(slab|head|zone=1) raw: 4000000000010200 ffffea0004495c00 0000000200000002 ffff8881001c4600 raw: 0000000000000000 0000000000070007 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 3, migratetype Unmovable, gfp_mask 0xd20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 115, ts 5931790712, free_ts 0 set_page_owner include/linux/page_owner.h:33 [inline] post_alloc_hook+0x192/0x1b0 mm/page_alloc.c:2607 prep_new_page+0x1c/0x110 mm/page_alloc.c:2613 get_page_from_freelist+0x2c3a/0x2cd0 mm/page_alloc.c:4487 __alloc_pages+0x1a2/0x460 mm/page_alloc.c:5824 alloc_slab_page mm/slub.c:-1 [inline] allocate_slab mm/slub.c:1937 [inline] new_slab+0xa0/0x4d0 mm/slub.c:2000 ___slab_alloc+0x3ac/0x840 mm/slub.c:3033 __slab_alloc+0x49/0x90 mm/slub.c:3120 slab_alloc_node mm/slub.c:3211 [inline] slab_alloc mm/slub.c:3255 [inline] kmem_cache_alloc+0x138/0x260 mm/slub.c:3260 getname_flags+0xba/0x510 fs/namei.c:138 getname+0x19/0x20 fs/namei.c:217 do_sys_openat2+0xeb/0x7f0 fs/open.c:1230 do_sys_open fs/open.c:1252 [inline] __do_sys_openat fs/open.c:1268 [inline] __se_sys_openat fs/open.c:1263 [inline] __x64_sys_openat+0x136/0x160 fs/open.c:1263 x64_sys_call+0x219/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:258 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_owner free stack trace missing Memory state around the buggy address: ffff8881125c7f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff8881125c7f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff8881125c8000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff8881125c8080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8881125c8100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ================================================================== EXT4-fs error (device loop2): xattr_find_entry:297: inode #12: comm syz.2.20: corrupted xattr entries EXT4-fs (loop2): Remounting filesystem read-only