EXT4-fs (loop2): mounted filesystem without journal. Opts: resgid=0x000000000000ee00,bsddf,grpquota,nojournal_checksum,debug_want_extra_isize=0x0000000000000080,delalloc,nogrpid,noauto_da_alloc,stripe=0x0000000000000002,,errors=continue ================================================================== 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 ffff888119260004 by task syz.2.18/525 CPU: 0 PID: 525 Comm: syz.2.18 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/16/2026 Call Trace: __dump_stack+0x21/0x24 lib/dump_stack.c:77 dump_stack_lvl+0x1a7/0x208 lib/dump_stack.c:118 print_address_description+0x7f/0x2c0 mm/kasan/report.c:248 __kasan_report mm/kasan/report.c:435 [inline] kasan_report+0x100/0x140 mm/kasan/report.c:452 __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+0x6c/0x6b0 fs/ext4/acl.c:162 get_acl+0x15f/0x270 fs/posix_acl.c:141 posix_acl_chmod+0xe1/0x240 fs/posix_acl.c:565 ext4_setattr+0xb65/0x1980 fs/ext4/inode.c:5741 notify_change+0xab5/0xe40 fs/attr.c:410 chmod_common+0x1e4/0x390 fs/open.c:584 do_fchmodat+0xd4/0x1a0 fs/open.c:622 __do_sys_chmod fs/open.c:640 [inline] __se_sys_chmod fs/open.c:638 [inline] __x64_sys_chmod+0x60/0x70 fs/open.c:638 do_syscall_64+0x31/0x40 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x61/0xcb RIP: 0033:0x7f3ae86f6e59 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:00007f3ae8559028 EFLAGS: 00000246 ORIG_RAX: 000000000000005a RAX: ffffffffffffffda RBX: 00007f3ae896ffa0 RCX: 00007f3ae86f6e59 RDX: 0000000000000000 RSI: 000000000000023f RDI: 0000200000000180 RBP: 00007f3ae878cd6f R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f3ae8970038 R14: 00007f3ae896ffa0 R15: 00007ffdbe208db8 The buggy address belongs to the page: page:ffffea0004649800 refcount:0 mapcount:-128 mapping:0000000000000000 index:0xffff888119262200 pfn:0x119260 flags: 0x4000000000000000() raw: 4000000000000000 ffffea000460b808 ffffea0004649c08 0000000000000000 raw: ffff888119262200 0000000000000003 00000000ffffff7f 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as freed page last allocated via order 3, migratetype Unmovable, gfp_mask 0xd20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 108, ts 4709809041, free_ts 39104330101 set_page_owner include/linux/page_owner.h:35 [inline] post_alloc_hook mm/page_alloc.c:2456 [inline] prep_new_page+0x176/0x190 mm/page_alloc.c:2462 get_page_from_freelist+0x225f/0x23f0 mm/page_alloc.c:4254 __alloc_pages_nodemask+0x29a/0x640 mm/page_alloc.c:5384 alloc_slab_page mm/slub.c:-1 [inline] allocate_slab mm/slub.c:1813 [inline] new_slab+0x84/0x3f0 mm/slub.c:1874 new_slab_objects mm/slub.c:2632 [inline] ___slab_alloc+0x2f8/0x4c0 mm/slub.c:2796 __slab_alloc+0x63/0xa0 mm/slub.c:2836 slab_alloc_node mm/slub.c:2918 [inline] slab_alloc mm/slub.c:2960 [inline] kmem_cache_alloc+0x1a4/0x2d0 mm/slub.c:2965 getname_flags+0xba/0x510 fs/namei.c:141 getname fs/namei.c:212 [inline] do_symlinkat+0x48/0x3d0 fs/namei.c:4165 __do_sys_symlink fs/namei.c:4195 [inline] __se_sys_symlink fs/namei.c:4193 [inline] __x64_sys_symlink+0x60/0x70 fs/namei.c:4193 do_syscall_64+0x31/0x40 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x61/0xcb page last free stack trace: reset_page_owner include/linux/page_owner.h:28 [inline] free_pages_prepare mm/page_alloc.c:1349 [inline] __free_pages_ok+0x80b/0x830 mm/page_alloc.c:1629 free_the_page mm/page_alloc.c:5445 [inline] __free_pages+0xd8/0x390 mm/page_alloc.c:5454 __free_slab+0xcf/0x190 mm/slub.c:1899 free_slab mm/slub.c:1914 [inline] discard_slab mm/slub.c:1920 [inline] unfreeze_partials+0x150/0x180 mm/slub.c:2415 put_cpu_partial+0xc1/0x180 mm/slub.c:2451 __slab_free+0x2c9/0x3a0 mm/slub.c:3100 do_slab_free mm/slub.c:3196 [inline] ___cache_free+0x10e/0x130 mm/slub.c:3215 qlink_free+0x50/0x90 mm/kasan/quarantine.c:157 qlist_free_all+0x5f/0xb0 mm/kasan/quarantine.c:176 kasan_quarantine_reduce+0x14a/0x160 mm/kasan/quarantine.c:283 __kasan_slab_alloc+0x2f/0xe0 mm/kasan/common.c:440 kasan_slab_alloc include/linux/kasan.h:244 [inline] slab_post_alloc_hook+0x5d/0x2f0 mm/slab.h:580 slab_alloc_node mm/slub.c:2952 [inline] slab_alloc mm/slub.c:2960 [inline] __kmalloc+0x17b/0x330 mm/slub.c:4034 kmalloc include/linux/slab.h:560 [inline] inotify_handle_inode_event+0x172/0x520 fs/notify/inotify/inotify_fsnotify.c:95 fsnotify_handle_inode_event fs/notify/fsnotify.c:281 [inline] fsnotify_handle_event fs/notify/fsnotify.c:331 [inline] send_to_group fs/notify/fsnotify.c:385 [inline] fsnotify+0x13c0/0x1a90 fs/notify/fsnotify.c:562 __fsnotify_parent+0x583/0x7c0 fs/notify/fsnotify.c:250 Memory state around the buggy address: ffff88811925ff00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88811925ff80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff888119260000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff888119260080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff888119260100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ================================================================== EXT4-fs error (device loop2): xattr_find_entry:297: inode #12: comm syz.2.18: corrupted xattr entries