================================================================== BUG: KASAN: slab-out-of-bounds in ext4_ext_rm_leaf fs/ext4/extents.c:2596 [inline] BUG: KASAN: slab-out-of-bounds in ext4_ext_remove_space+0x374f/0x4570 fs/ext4/extents.c:2934 Read of size 4 at addr ffff8881115ffc18 by task syz-executor/2885 CPU: 1 PID: 2885 Comm: syz-executor Tainted: G W syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2026 Call Trace: __dump_stack+0x21/0x24 lib/dump_stack.c:77 dump_stack_lvl+0x1a7/0x208 lib/dump_stack.c:118 print_address_description+0x7f/0x2c0 mm/kasan/report.c:248 __kasan_report mm/kasan/report.c:435 [inline] kasan_report+0xe2/0x130 mm/kasan/report.c:452 __asan_report_load4_noabort+0x14/0x20 mm/kasan/report_generic.c:308 ext4_ext_rm_leaf fs/ext4/extents.c:2596 [inline] ext4_ext_remove_space+0x374f/0x4570 fs/ext4/extents.c:2934 ext4_ext_truncate+0x169/0x1f0 fs/ext4/extents.c:4473 ext4_truncate+0xb21/0x12d0 fs/ext4/inode.c:4373 ext4_evict_inode+0xf5b/0x1770 fs/ext4/inode.c:290 evict+0x4ae/0x930 fs/inode.c:612 iput_final fs/inode.c:1736 [inline] iput+0x638/0x7c0 fs/inode.c:1762 do_unlinkat+0x347/0x680 fs/namei.c:4050 __do_sys_unlink fs/namei.c:4090 [inline] __se_sys_unlink fs/namei.c:4088 [inline] __x64_sys_unlink+0x49/0x50 fs/namei.c:4088 do_syscall_64+0x31/0x40 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x61/0xcb RIP: 0033:0x7f5ef249b907 Code: 73 01 c3 48 c7 c1 e8 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 57 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 01 c3 48 c7 c2 e8 ff ff ff f7 d8 64 89 02 b8 RSP: 002b:00007ffe77d98228 EFLAGS: 00000206 ORIG_RAX: 0000000000000057 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f5ef249b907 RDX: 00007ffe77d98250 RSI: 00007ffe77d982e0 RDI: 00007ffe77d982e0 RBP: 00007ffe77d982e0 R08: 00007ffe77d992e0 R09: 00000000ffffffff R10: 0000000000000100 R11: 0000000000000206 R12: 00007ffe77d993d0 R13: 00007f5ef2532048 R14: 000000000003dc7a R15: 00007ffe77d9a4a0 Allocated by task 95: 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:430 [inline] __kasan_slab_alloc+0xbd/0xf0 mm/kasan/common.c:463 kasan_slab_alloc include/linux/kasan.h:244 [inline] slab_post_alloc_hook+0x5d/0x2f0 mm/slab.h:580 slab_alloc_node mm/slub.c:2952 [inline] slab_alloc mm/slub.c:2960 [inline] kmem_cache_alloc+0x162/0x2d0 mm/slub.c:2965 getname_flags+0xb9/0x500 fs/namei.c:141 getname fs/namei.c:212 [inline] __do_sys_unlink fs/namei.c:4090 [inline] __se_sys_unlink fs/namei.c:4088 [inline] __x64_sys_unlink+0x3c/0x50 fs/namei.c:4088 do_syscall_64+0x31/0x40 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x61/0xcb Freed by task 95: 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:362 __kasan_slab_free+0x11/0x20 mm/kasan/common.c:370 kasan_slab_free include/linux/kasan.h:220 [inline] slab_free_hook mm/slub.c:1600 [inline] slab_free_freelist_hook+0xc5/0x190 mm/slub.c:1626 slab_free mm/slub.c:3208 [inline] kmem_cache_free+0x100/0x2d0 mm/slub.c:3224 putname fs/namei.c:262 [inline] do_unlinkat+0x5ea/0x680 fs/namei.c:4065 __do_sys_unlink fs/namei.c:4090 [inline] __se_sys_unlink fs/namei.c:4088 [inline] __x64_sys_unlink+0x49/0x50 fs/namei.c:4088 do_syscall_64+0x31/0x40 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x61/0xcb The buggy address belongs to the object at ffff8881115fe600 which belongs to the cache names_cache of size 4096 The buggy address is located 1560 bytes to the right of 4096-byte region [ffff8881115fe600, ffff8881115ff600) The buggy address belongs to the page: page:ffffea0004457e00 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1115f8 head:ffffea0004457e00 order:3 compound_mapcount:0 compound_pincount:0 flags: 0x4000000000010200(slab|head) raw: 4000000000010200 dead000000000100 dead000000000122 ffff88810018b500 raw: 0000000000000000 0000000000070007 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 3, migratetype Unmovable, gfp_mask 0x1d20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC|__GFP_HARDWALL), pid 1713, ts 247406240821, free_ts 247391587451 set_page_owner include/linux/page_owner.h:35 [inline] post_alloc_hook mm/page_alloc.c:2456 [inline] prep_new_page+0x179/0x180 mm/page_alloc.c:2462 get_page_from_freelist+0x223b/0x23d0 mm/page_alloc.c:4254 __alloc_pages_nodemask+0x290/0x620 mm/page_alloc.c:5384 alloc_slab_page mm/slub.c:-1 [inline] allocate_slab mm/slub.c:1813 [inline] new_slab+0x84/0x3f0 mm/slub.c:1874 new_slab_objects mm/slub.c:2632 [inline] ___slab_alloc+0x2a6/0x450 mm/slub.c:2796 __slab_alloc+0x63/0xa0 mm/slub.c:2836 slab_alloc_node mm/slub.c:2918 [inline] slab_alloc mm/slub.c:2960 [inline] kmem_cache_alloc+0x1ac/0x2d0 mm/slub.c:2965 getname_flags+0xb9/0x500 fs/namei.c:141 getname fs/namei.c:212 [inline] user_path_create fs/namei.c:3673 [inline] do_symlinkat+0x7b/0x3b0 fs/namei.c:4127 __do_sys_symlink fs/namei.c:4153 [inline] __se_sys_symlink fs/namei.c:4151 [inline] __x64_sys_symlink+0x60/0x70 fs/namei.c:4151 do_syscall_64+0x31/0x40 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x61/0xcb 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_pages_ok+0x80b/0x830 mm/page_alloc.c:1629 free_the_page mm/page_alloc.c:5445 [inline] __free_pages+0xd8/0x3b0 mm/page_alloc.c:5454 __free_slab+0xcf/0x190 mm/slub.c:1899 free_slab mm/slub.c:1914 [inline] discard_slab mm/slub.c:1920 [inline] unfreeze_partials+0x15f/0x190 mm/slub.c:2415 put_cpu_partial+0xc1/0x180 mm/slub.c:2451 __slab_free+0x2c9/0x3a0 mm/slub.c:3100 do_slab_free mm/slub.c:3196 [inline] ___cache_free+0x10e/0x130 mm/slub.c:3215 qlink_free+0x50/0x90 mm/kasan/quarantine.c:157 qlist_free_all+0x5f/0xb0 mm/kasan/quarantine.c:176 kasan_quarantine_reduce+0x14a/0x160 mm/kasan/quarantine.c:283 __kasan_slab_alloc+0x2f/0xf0 mm/kasan/common.c:440 kasan_slab_alloc include/linux/kasan.h:244 [inline] slab_post_alloc_hook+0x5d/0x2f0 mm/slab.h:580 slab_alloc_node mm/slub.c:2952 [inline] slab_alloc mm/slub.c:2960 [inline] kmem_cache_alloc+0x162/0x2d0 mm/slub.c:2965 getname_flags+0xb9/0x500 fs/namei.c:141 getname fs/namei.c:212 [inline] do_symlinkat+0x48/0x3b0 fs/namei.c:4123 __do_sys_symlink fs/namei.c:4153 [inline] __se_sys_symlink fs/namei.c:4151 [inline] __x64_sys_symlink+0x60/0x70 fs/namei.c:4151 Memory state around the buggy address: ffff8881115ffb00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff8881115ffb80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff8881115ffc00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff8881115ffc80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff8881115ffd00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================