================================================================== BUG: KASAN: slab-out-of-bounds in ext4_xattr_delete_inode+0xba6/0xbb0 fs/ext4/xattr.c:2911 Read of size 4 at addr ffff888122035000 by task syz-executor/419 CPU: 1 PID: 419 Comm: syz-executor Not tainted 5.15.180-syzkaller-1080043-g88c4075c39ed #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/19/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:2911 ext4_evict_inode+0xe44/0x1450 fs/ext4/inode.c:300 evict+0x485/0x870 fs/inode.c:647 iput_final fs/inode.c:1769 [inline] iput+0x635/0x7c0 fs/inode.c:1795 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:0x7f245f7465d7 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:00007fffc9b93f28 EFLAGS: 00000207 ORIG_RAX: 0000000000000107 RAX: ffffffffffffffda RBX: 0000000000000065 RCX: 00007f245f7465d7 RDX: 0000000000000200 RSI: 00007fffc9b950d0 RDI: 00000000ffffff9c RBP: 00007f245f7b9134 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000100 R11: 0000000000000207 R12: 00007fffc9b950d0 R13: 00007f245f7b9134 R14: 000000000000d5ec R15: 00007fffc9b97280 Allocated by task 0: (stack is not available) The buggy address belongs to the object at ffff888122035000 which belongs to the cache kmalloc-96 of size 96 The buggy address is located 0 bytes inside of 96-byte region [ffff888122035000, ffff888122035060) The buggy address belongs to the page: page:ffffea0004880d40 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x122035 flags: 0x4000000000000200(slab|zone=1) raw: 4000000000000200 0000000000000000 dead000000000122 ffff888100042900 raw: 0000000000000000 0000000080200020 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 0x112a20(GFP_ATOMIC|__GFP_NOWARN|__GFP_NORETRY|__GFP_HARDWALL), pid 20, ts 54867003062, free_ts 54604119008 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:5781 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_trace+0x146/0x270 mm/slub.c:3267 kmalloc include/linux/slab.h:616 [inline] dst_cow_metrics_generic+0x55/0x1c0 net/core/dst.c:206 dst_metrics_write_ptr include/net/dst.h:118 [inline] dst_metric_set include/net/dst.h:179 [inline] icmp6_dst_alloc+0x36a/0x560 net/ipv6/route.c:3293 ndisc_send_skb+0x258/0xc70 net/ipv6/ndisc.c:493 ndisc_send_ns+0x842/0xaf0 net/ipv6/ndisc.c:655 addrconf_dad_work+0xa2b/0x1540 net/ipv6/addrconf.c:4221 process_one_work+0x6be/0xba0 kernel/workqueue.c:2325 worker_thread+0xa59/0x1200 kernel/workqueue.c:2472 kthread+0x411/0x500 kernel/kthread.c:337 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_list+0x134/0x9d0 mm/page_alloc.c:3671 release_pages+0x1076/0x10d0 mm/swap.c:1009 __pagevec_release+0x71/0xe0 mm/swap.c:1029 pagevec_release include/linux/pagevec.h:81 [inline] __invalidate_mapping_pages+0x422/0x4e0 mm/truncate.c:509 invalidate_mapping_pages+0x27/0x30 mm/truncate.c:533 invalidate_bdev+0xa6/0x150 block/bdev.c:88 ext4_put_super+0x6cb/0xa70 fs/ext4/super.c:1247 generic_shutdown_super+0x151/0x330 fs/super.c:475 kill_block_super+0x7f/0xf0 fs/super.c:1427 deactivate_locked_super+0xa0/0x100 fs/super.c:335 deactivate_super+0xaf/0xe0 fs/super.c:366 cleanup_mnt+0x446/0x500 fs/namespace.c:1143 __cleanup_mnt+0x19/0x20 fs/namespace.c:1150 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 Memory state around the buggy address: ffff888122034f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888122034f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff888122035000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff888122035080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888122035100: 00 00 00 00 00 00 00 00 00 00 00 fc fc fc fc fc ==================================================================