================================================================== BUG: KASAN: slab-out-of-bounds in ext4_xattr_delete_inode+0xc67/0xc80 fs/ext4/xattr.c:2894 Read of size 4 at addr ffff888112cbc000 by task syz-executor/496 CPU: 0 PID: 496 Comm: syz-executor Not tainted 5.10.222-syzkaller-1003210-gfd58936f3c1f #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/2024 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack_lvl+0x1e2/0x24b lib/dump_stack.c:118 print_address_description+0x81/0x3b0 mm/kasan/report.c:248 __kasan_report mm/kasan/report.c:435 [inline] kasan_report+0x179/0x1c0 mm/kasan/report.c:452 __asan_report_load4_noabort+0x14/0x20 mm/kasan/report_generic.c:308 ext4_xattr_delete_inode+0xc67/0xc80 fs/ext4/xattr.c:2894 ext4_evict_inode+0x1095/0x1730 fs/ext4/inode.c:300 evict+0x2a3/0x6c0 fs/inode.c:577 iput_final fs/inode.c:1697 [inline] iput+0x632/0x7e0 fs/inode.c:1723 d_delete_notify include/linux/fsnotify.h:267 [inline] vfs_rmdir+0x271/0x3f0 fs/namei.c:3865 do_rmdir+0x2cf/0x5c0 fs/namei.c:3912 __do_sys_unlinkat fs/namei.c:4076 [inline] __se_sys_unlinkat fs/namei.c:4070 [inline] __x64_sys_unlinkat+0xdf/0xf0 fs/namei.c:4070 do_syscall_64+0x34/0x70 entry_SYSCALL_64_after_hwframe+0x61/0xcb RIP: 0033:0x7faa59c9b887 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:00007ffc41678bb8 EFLAGS: 00000207 ORIG_RAX: 0000000000000107 RAX: ffffffffffffffda RBX: 0000000000000065 RCX: 00007faa59c9b887 RDX: 0000000000000200 RSI: 00007ffc41679d60 RDI: 00000000ffffff9c RBP: 00007faa59cf86c6 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000100 R11: 0000000000000207 R12: 00007ffc41679d60 R13: 00007faa59cf86c6 R14: 000000000000c2f0 R15: 0000000000000007 Allocated by task 0: (stack is not available) The buggy address belongs to the object at ffff888112cbc000 which belongs to the cache task_delay_info of size 80 The buggy address is located 0 bytes inside of 80-byte region [ffff888112cbc000, ffff888112cbc050) The buggy address belongs to the page: page:ffffea00044b2f00 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x112cbc flags: 0x4000000000000200(slab) raw: 4000000000000200 dead000000000100 dead000000000122 ffff888100193c80 raw: 0000000000000000 0000000080240024 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 0x112cc0(GFP_USER|__GFP_NOWARN|__GFP_NORETRY), pid 2, ts 49840051855, free_ts 49718265732 set_page_owner include/linux/page_owner.h:35 [inline] post_alloc_hook mm/page_alloc.c:2456 [inline] prep_new_page+0x166/0x180 mm/page_alloc.c:2462 get_page_from_freelist+0x2d8c/0x2f30 mm/page_alloc.c:4254 __alloc_pages_nodemask+0x435/0xaf0 mm/page_alloc.c:5348 allocate_slab mm/slub.c:1808 [inline] new_slab+0x80/0x400 mm/slub.c:1869 new_slab_objects mm/slub.c:2627 [inline] ___slab_alloc+0x302/0x4b0 mm/slub.c:2791 __slab_alloc+0x63/0xa0 mm/slub.c:2831 slab_alloc_node mm/slub.c:2913 [inline] slab_alloc mm/slub.c:2955 [inline] kmem_cache_alloc+0x1b9/0x2e0 mm/slub.c:2960 kmem_cache_zalloc include/linux/slab.h:654 [inline] __delayacct_tsk_init+0x2c/0xa0 kernel/delayacct.c:36 delayacct_tsk_init include/linux/delayacct.h:102 [inline] copy_process+0x9e8/0x3340 kernel/fork.c:2072 kernel_clone+0x21e/0x9e0 kernel/fork.c:2574 kernel_thread+0x168/0x1e0 kernel/fork.c:2635 create_kthread kernel/kthread.c:336 [inline] kthreadd+0x3ce/0x500 kernel/kthread.c:682 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:298 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_pcp_prepare mm/page_alloc.c:1421 [inline] free_unref_page_prepare+0x2ae/0x2d0 mm/page_alloc.c:3336 free_unref_page_list+0x122/0xb20 mm/page_alloc.c:3443 release_pages+0xea0/0xef0 mm/swap.c:1103 __pagevec_release+0x84/0x100 mm/swap.c:1123 pagevec_release include/linux/pagevec.h:88 [inline] __invalidate_mapping_pages+0xa67/0xb50 mm/truncate.c:607 invalidate_mapping_pages+0x27/0x30 mm/truncate.c:632 invalidate_bdev+0xa3/0x140 fs/block_dev.c:97 ext4_put_super+0x67d/0xc70 fs/ext4/super.c:1237 generic_shutdown_super+0x14f/0x2d0 fs/super.c:465 kill_block_super+0x7e/0xe0 fs/super.c:1456 deactivate_locked_super+0xad/0x110 fs/super.c:335 deactivate_super+0xbe/0xf0 fs/super.c:366 cleanup_mnt+0x45c/0x510 fs/namespace.c:1118 __cleanup_mnt+0x19/0x20 fs/namespace.c:1125 task_work_run+0x129/0x190 kernel/task_work.c:165 tracehook_notify_resume include/linux/tracehook.h:188 [inline] exit_to_user_mode_loop+0xbf/0xd0 kernel/entry/common.c:172 Memory state around the buggy address: ffff888112cbbf00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888112cbbf80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff888112cbc000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff888112cbc080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888112cbc100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================