================================================================== BUG: KASAN: slab-out-of-bounds in ext4_xattr_delete_inode+0xba6/0xbb0 fs/ext4/xattr.c:2920 Read of size 4 at addr ffff88812d0e2000 by task syz-executor/432 CPU: 1 PID: 432 Comm: syz-executor Not tainted 5.15.185-syzkaller-1080615-g0d918fa8e88d #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/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:2920 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:4162 do_rmdir+0x259/0x6a0 fs/namei.c:4210 __do_sys_unlinkat fs/namei.c:4390 [inline] __se_sys_unlinkat fs/namei.c:4384 [inline] __x64_sys_unlinkat+0xc7/0xf0 fs/namei.c:4384 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:0x7fc829bb1cf7 Code: 73 01 c3 48 c7 c1 a8 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 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007ffff66a5828 EFLAGS: 00000207 ORIG_RAX: 0000000000000107 RAX: ffffffffffffffda RBX: 0000000000000065 RCX: 00007fc829bb1cf7 RDX: 0000000000000200 RSI: 00007ffff66a69d0 RDI: 00000000ffffff9c RBP: 00007fc829c251cc R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000100 R11: 0000000000000207 R12: 00007ffff66a69d0 R13: 00007fc829c251cc R14: 000000000000cbca R15: 00007ffff66a8b80 Allocated by task 0: (stack is not available) The buggy address belongs to the object at ffff88812d0e2000 which belongs to the cache avc_node of size 72 The buggy address is located 0 bytes inside of 72-byte region [ffff88812d0e2000, ffff88812d0e2048) The buggy address belongs to the page: page:ffffea0004b43880 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x12d0e2 flags: 0x4000000000000200(slab|zone=1) raw: 4000000000000200 0000000000000000 dead000000000122 ffff888100186300 raw: 0000000000000000 0000000080270027 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 0x112800(GFP_NOWAIT|__GFP_NOWARN|__GFP_NORETRY|__GFP_HARDWALL), pid 10, ts 52252906217, free_ts 51639901040 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:5795 alloc_slab_page mm/slub.c:-1 [inline] allocate_slab mm/slub.c:1932 [inline] new_slab+0xa1/0x4d0 mm/slub.c:1995 ___slab_alloc+0x381/0x810 mm/slub.c:3028 __slab_alloc+0x49/0x90 mm/slub.c:3115 slab_alloc_node mm/slub.c:3206 [inline] slab_alloc mm/slub.c:3250 [inline] kmem_cache_alloc+0x138/0x260 mm/slub.c:3255 kmem_cache_zalloc include/linux/slab.h:737 [inline] avc_alloc_node+0x8f/0x4c0 security/selinux/avc.c:509 avc_insert security/selinux/avc.c:637 [inline] avc_compute_av+0x142/0x830 security/selinux/avc.c:1009 avc_has_perm_noaudit+0x2ae/0x460 security/selinux/avc.c:1152 avc_has_perm+0xd2/0x240 security/selinux/avc.c:1187 inode_has_perm security/selinux/hooks.c:1704 [inline] file_has_perm+0x4a1/0x640 security/selinux/hooks.c:1796 selinux_revalidate_file_permission security/selinux/hooks.c:3692 [inline] selinux_file_permission+0x3f4/0x510 security/selinux/hooks.c:3713 security_file_permission+0x69/0xa0 security/security.c:1522 rw_verify_area fs/read_write.c:389 [inline] do_iter_read+0x16b/0x790 fs/read_write.c:785 page last free stack trace: reset_page_owner include/linux/page_owner.h:26 [inline] free_pages_prepare mm/page_alloc.c:1472 [inline] free_pcp_prepare mm/page_alloc.c:1544 [inline] free_unref_page_prepare+0x542/0x550 mm/page_alloc.c:3534 free_unref_page+0xa2/0x550 mm/page_alloc.c:3616 free_the_page mm/page_alloc.c:805 [inline] __free_pages+0x6c/0x100 mm/page_alloc.c:5871 __vunmap+0x84d/0x9e0 mm/vmalloc.c:2652 __vfree mm/vmalloc.c:2701 [inline] vfree+0x8b/0xc0 mm/vmalloc.c:2732 kcov_put kernel/kcov.c:417 [inline] kcov_close+0x2b/0x50 kernel/kcov.c:519 __fput+0x20b/0x8b0 fs/file_table.c:311 ____fput+0x15/0x20 fs/file_table.c:339 task_work_run+0x127/0x190 kernel/task_work.c:188 exit_task_work include/linux/task_work.h:33 [inline] do_exit+0xa76/0x27a0 kernel/exit.c:880 do_group_exit+0x141/0x310 kernel/exit.c:1002 get_signal+0x66a/0x1480 kernel/signal.c:2907 arch_do_signal_or_restart+0xc1/0x10f0 arch/x86/kernel/signal.c:867 handle_signal_work kernel/entry/common.c:154 [inline] exit_to_user_mode_loop+0xa7/0xe0 kernel/entry/common.c:178 exit_to_user_mode_prepare+0x5a/0xa0 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 Memory state around the buggy address: ffff88812d0e1f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88812d0e1f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff88812d0e2000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff88812d0e2080: fc fc fc fc fc fc fc fc fc fc fa fb fb fb fb fb ffff88812d0e2100: fb fb fb fc fc fc fc 00 00 00 00 00 00 00 00 00 ==================================================================