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. Quota mode: writeback. ================================================================== 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 ffff88811c342004 by task syz.2.23/510 CPU: 0 PID: 510 Comm: syz.2.23 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/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_chmod fs/open.c:640 [inline] __se_sys_chmod fs/open.c:638 [inline] __x64_sys_chmod+0x60/0x70 fs/open.c:638 x64_sys_call+0xad/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:91 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:0x7f3fbec29e59 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:00007f3fbea8c028 EFLAGS: 00000246 ORIG_RAX: 000000000000005a RAX: ffffffffffffffda RBX: 00007f3fbeea2fa0 RCX: 00007f3fbec29e59 RDX: 0000000000000000 RSI: 000000000000023f RDI: 0000200000000180 RBP: 00007f3fbecbfe6f R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f3fbeea3038 R14: 00007f3fbeea2fa0 R15: 00007ffcc3d50668 The buggy address belongs to the page: page:ffffea000470d080 refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x11c342 flags: 0x4000000000000000(zone=1) raw: 4000000000000000 ffffea00043e7648 ffffea0004728c08 0000000000000000 raw: 0000000000000000 00000000002a0000 00000000ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as freed page last allocated via order 0, migratetype Unmovable, gfp_mask 0x12800(GFP_NOWAIT|__GFP_NOWARN|__GFP_NORETRY), pid 205, ts 13034300727, free_ts 41476120144 set_page_owner include/linux/page_owner.h:33 [inline] post_alloc_hook+0x192/0x1b0 mm/page_alloc.c:2610 prep_new_page+0x1c/0x110 mm/page_alloc.c:2616 get_page_from_freelist+0x2d42/0x2dd0 mm/page_alloc.c:4492 __alloc_pages+0x1a2/0x460 mm/page_alloc.c:5829 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 anon_vma_chain_alloc mm/rmap.c:141 [inline] anon_vma_clone+0xb7/0x4c0 mm/rmap.c:291 anon_vma_fork+0x8f/0x520 mm/rmap.c:354 dup_mmap kernel/fork.c:622 [inline] dup_mm kernel/fork.c:1533 [inline] copy_mm+0x9f9/0x13a0 kernel/fork.c:1585 copy_process+0x1130/0x3230 kernel/fork.c:2355 kernel_clone+0x233/0x960 kernel/fork.c:2744 __do_sys_clone kernel/fork.c:2870 [inline] __se_sys_clone kernel/fork.c:2854 [inline] __x64_sys_clone+0x198/0x210 kernel/fork.c:2854 x64_sys_call+0x41f/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:57 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 page last free stack trace: reset_page_owner include/linux/page_owner.h:26 [inline] free_pages_prepare mm/page_alloc.c:1477 [inline] free_pcp_prepare mm/page_alloc.c:1549 [inline] free_unref_page_prepare+0x5fa/0x600 mm/page_alloc.c:3540 free_unref_page+0xae/0x540 mm/page_alloc.c:3622 free_the_page mm/page_alloc.c:808 [inline] __free_pages+0x6c/0x100 mm/page_alloc.c:5905 __free_slab+0xe5/0x1e0 mm/slub.c:2025 free_slab mm/slub.c:2040 [inline] discard_slab mm/slub.c:2046 [inline] __unfreeze_partials+0x15a/0x190 mm/slub.c:2532 put_cpu_partial+0xc6/0x120 mm/slub.c:2612 __slab_free+0x1d4/0x290 mm/slub.c:3395 do_slab_free mm/slub.c:3514 [inline] ___cache_free+0x104/0x120 mm/slub.c:3535 qlink_free+0x4d/0x90 mm/kasan/quarantine.c:157 qlist_free_all+0x5f/0xb0 mm/kasan/quarantine.c:176 kasan_quarantine_reduce+0x14a/0x170 mm/kasan/quarantine.c:283 __kasan_slab_alloc+0x2f/0xe0 mm/kasan/common.c:443 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] __kmalloc+0x120/0x2c0 mm/slub.c:4432 kmalloc include/linux/slab.h:624 [inline] inotify_handle_inode_event+0x176/0x4e0 fs/notify/inotify/inotify_fsnotify.c:96 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 Memory state around the buggy address: ffff88811c341f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88811c341f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff88811c342000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff88811c342080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff88811c342100: 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.23: corrupted xattr entries