================================================================== BUG: KASAN: use-after-free in ext4_xattr_delete_inode+0xba6/0xbb0 fs/ext4/xattr.c:2921 Read of size 4 at addr ffff888111f63000 by task syz-executor/478 CPU: 0 PID: 478 Comm: syz-executor Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/25/2025 Call Trace: __dump_stack+0x21/0x30 lib/dump_stack.c:88 dump_stack_lvl+0xee/0x150 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+0xf1/0x140 mm/kasan/report.c:444 __asan_report_load4_noabort+0x14/0x20 mm/kasan/report_generic.c:308 ext4_xattr_delete_inode+0xba6/0xbb0 fs/ext4/xattr.c:2921 ext4_evict_inode+0xe44/0x1450 fs/ext4/inode.c:300 evict+0x485/0x870 fs/inode.c:650 iput_final fs/inode.c:1779 [inline] iput+0x635/0x7c0 fs/inode.c:1805 d_delete_notify include/linux/fsnotify.h:278 [inline] vfs_rmdir+0x33f/0x460 fs/namei.c:4170 do_rmdir+0x259/0x6a0 fs/namei.c:4218 __do_sys_unlinkat fs/namei.c:4398 [inline] __se_sys_unlinkat fs/namei.c:4392 [inline] __x64_sys_unlinkat+0xc7/0xf0 fs/namei.c:4392 x64_sys_call+0x4c0/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:264 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:0x7f0f829296c7 Code: 73 01 c3 48 c7 c1 b0 ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 b8 07 01 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fff99378f28 EFLAGS: 00000207 ORIG_RAX: 0000000000000107 RAX: ffffffffffffffda RBX: 0000000000000065 RCX: 00007f0f829296c7 RDX: 0000000000000200 RSI: 00007fff9937a0d0 RDI: 00000000ffffff9c RBP: 00007f0f82975336 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000100 R11: 0000000000000207 R12: 00007fff9937a0d0 R13: 00007f0f82975336 R14: 000000000000b2e2 R15: 0000000000000007 Allocated by task 432: 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+0xbd/0xf0 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 kmem_cache_zalloc include/linux/slab.h:740 [inline] lsm_file_alloc security/security.c:574 [inline] security_file_alloc+0x33/0x120 security/security.c:1531 __alloc_file+0xb5/0x2a0 fs/file_table.c:137 alloc_empty_file+0x97/0x180 fs/file_table.c:181 alloc_file+0x59/0x540 fs/file_table.c:223 alloc_file_pseudo+0x17a/0x1f0 fs/file_table.c:263 sock_alloc_file+0xba/0x260 net/socket.c:462 sock_map_fd net/socket.c:486 [inline] __sys_socket+0x12b/0x190 net/socket.c:1588 __do_sys_socket net/socket.c:1593 [inline] __se_sys_socket net/socket.c:1591 [inline] __x64_sys_socket+0x7a/0x90 net/socket.c:1591 x64_sys_call+0x8c5/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:42 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 432: 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 security_file_free+0xc7/0xe0 security/security.c:1550 file_free fs/file_table.c:55 [inline] __fput+0x5b7/0x8b0 fs/file_table.c:324 ____fput+0x15/0x20 fs/file_table.c:339 task_work_run+0x127/0x190 kernel/task_work.c:188 tracehook_notify_resume include/linux/tracehook.h:189 [inline] exit_to_user_mode_loop+0xd0/0xe0 kernel/entry/common.c:181 exit_to_user_mode_prepare+0x87/0xd0 kernel/entry/common.c:214 __syscall_exit_to_user_mode_work kernel/entry/common.c:296 [inline] syscall_exit_to_user_mode+0x1a/0x30 kernel/entry/common.c:307 do_syscall_64+0x58/0xa0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x66/0xd0 The buggy address belongs to the object at ffff888111f63000 which belongs to the cache lsm_file_cache of size 16 The buggy address is located 0 bytes inside of 16-byte region [ffff888111f63000, ffff888111f63010) The buggy address belongs to the page: page:ffffea000447d8c0 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x111f63 flags: 0x4000000000000200(slab|zone=1) raw: 4000000000000200 ffffea0004402140 0000000d0000000d ffff888100187e00 raw: 0000000000000000 0000000000800080 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0x12cc0(GFP_KERNEL|__GFP_NOWARN|__GFP_NORETRY), pid 111, ts 4639013426, free_ts 0 set_page_owner include/linux/page_owner.h:33 [inline] post_alloc_hook+0x192/0x1b0 mm/page_alloc.c:2605 prep_new_page+0x1c/0x110 mm/page_alloc.c:2611 get_page_from_freelist+0x2cc5/0x2d50 mm/page_alloc.c:4485 __alloc_pages+0x18f/0x440 mm/page_alloc.c:5808 alloc_slab_page mm/slub.c:-1 [inline] allocate_slab mm/slub.c:1937 [inline] new_slab+0xa1/0x4d0 mm/slub.c:2000 ___slab_alloc+0x381/0x810 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 kmem_cache_zalloc include/linux/slab.h:740 [inline] lsm_file_alloc security/security.c:574 [inline] security_file_alloc+0x33/0x120 security/security.c:1531 __alloc_file+0xb5/0x2a0 fs/file_table.c:137 alloc_empty_file+0x97/0x180 fs/file_table.c:181 path_openat+0xf3/0x2f10 fs/namei.c:3736 do_filp_open+0x1b3/0x3e0 fs/namei.c:3777 do_sys_openat2+0x14c/0x7b0 fs/open.c:1236 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 page_owner free stack trace missing Memory state around the buggy address: ffff888111f62f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888111f62f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff888111f63000: fa fb fc fc fa fb fc fc fa fb fc fc fa fb fc fc ^ ffff888111f63080: fa fb fc fc fa fb fc fc fa fb fc fc fa fb fc fc ffff888111f63100: fa fb fc fc fa fb fc fc 00 00 fc fc fa fb fc fc ==================================================================