================================================================== BUG: KASAN: slab-out-of-bounds in dx_insert_block fs/ext4/namei.c:1357 [inline] BUG: KASAN: slab-out-of-bounds in do_split+0x1a3e/0x2090 fs/ext4/namei.c:2019 Read of size 157024 at addr ffff888119c5d028 by task syz.8.63/664 CPU: 1 UID: 0 PID: 664 Comm: syz.8.63 Not tainted 6.15.0-rc4-syzkaller-00042-gb6ea1680d0ac #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/19/2025 Call Trace: __dump_stack+0x21/0x30 lib/dump_stack.c:94 dump_stack_lvl+0x10b/0x170 lib/dump_stack.c:120 print_address_description+0x71/0x220 mm/kasan/report.c:408 print_report+0x4a/0x60 mm/kasan/report.c:521 kasan_report+0x135/0x170 mm/kasan/report.c:634 check_region_inline mm/kasan/generic.c:-1 [inline] kasan_check_range+0x2a6/0x2b0 mm/kasan/generic.c:189 __asan_memmove+0x31/0x80 mm/kasan/shadow.c:94 dx_insert_block fs/ext4/namei.c:1357 [inline] do_split+0x1a3e/0x2090 fs/ext4/namei.c:2019 make_indexed_dir+0xc68/0x1240 fs/ext4/namei.c:2330 ext4_add_entry+0xb48/0xd00 fs/ext4/namei.c:2437 __ext4_link+0x49c/0x730 fs/ext4/namei.c:3466 ext4_link+0x1e2/0x280 fs/ext4/namei.c:3507 vfs_link+0x4dd/0x6d0 fs/namei.c:4847 do_linkat+0x1e9/0x470 fs/namei.c:4917 __do_sys_link fs/namei.c:4951 [inline] __se_sys_link fs/namei.c:4949 [inline] __x64_sys_link+0x86/0xa0 fs/namei.c:4949 x64_sys_call+0x2a72/0x2f70 arch/x86/include/generated/asm/syscalls_64.h:87 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x58/0x100 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x76/0x7e RIP: 0033:0x7f6db5d8d169 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 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:00007f6db6b8c038 EFLAGS: 00000246 ORIG_RAX: 0000000000000056 RAX: ffffffffffffffda RBX: 00007f6db5fa5fa0 RCX: 00007f6db5d8d169 RDX: 0000000000000000 RSI: 0000200000000bc0 RDI: 0000200000001240 RBP: 00007f6db5e0e2a0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f6db5fa5fa0 R15: 00007ffdd5a303b8 The buggy address belongs to the physical page: page: refcount:3 mapcount:1 mapping:ffff8881105b77e0 index:0x1 pfn:0x119c5d memcg:ffff888102664000 aops:def_blk_aops ino:700008 dentry name(?):"" flags: 0x400000000014483c(referenced|uptodate|dirty|lru|owner_2|private|unevictable|mlocked|zone=1) raw: 400000000014483c dead000000000100 dead000000000001 ffff8881105b77e0 raw: 0000000000000001 ffff888126f1fd20 0000000300000000 ffff888102664000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0x152c40(GFP_NOFS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_HARDWALL), pid 585, tgid 585 (udevd), ts 70863648200, free_ts 70863424196 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1cf/0x210 mm/page_alloc.c:1718 prep_new_page mm/page_alloc.c:1726 [inline] get_page_from_freelist+0x2050/0x2100 mm/page_alloc.c:3688 __alloc_frozen_pages_noprof+0x2c9/0x510 mm/page_alloc.c:4970 __alloc_pages_noprof mm/page_alloc.c:5004 [inline] __folio_alloc_noprof+0x18/0xc0 mm/page_alloc.c:5014 __folio_alloc_node_noprof include/linux/gfp.h:295 [inline] folio_alloc_noprof include/linux/gfp.h:330 [inline] filemap_alloc_folio_noprof include/linux/pagemap.h:643 [inline] ractl_alloc_folio mm/readahead.c:186 [inline] page_cache_ra_unbounded+0x2dc/0x670 mm/readahead.c:270 do_page_cache_ra mm/readahead.c:327 [inline] force_page_cache_ra mm/readahead.c:356 [inline] page_cache_sync_ra+0x3f8/0xa00 mm/readahead.c:575 filemap_get_pages+0x42b/0x17c0 mm/filemap.c:2591 filemap_read+0x3b5/0xea0 mm/filemap.c:2702 blkdev_read_iter+0x317/0x450 block/fops.c:809 new_sync_read fs/read_write.c:489 [inline] vfs_read+0x520/0xb40 fs/read_write.c:570 ksys_read+0x142/0x250 fs/read_write.c:713 __do_sys_read fs/read_write.c:722 [inline] __se_sys_read fs/read_write.c:720 [inline] __x64_sys_read+0x7f/0x90 fs/read_write.c:720 x64_sys_call+0x2d1e/0x2f70 arch/x86/include/generated/asm/syscalls_64.h:1 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x58/0x100 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x76/0x7e page last free pid 668 tgid 666 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1262 [inline] __free_frozen_pages+0x9f7/0xa80 mm/page_alloc.c:2725 ___free_pages+0x61/0xf0 mm/page_alloc.c:5070 __free_pages mm/page_alloc.c:5080 [inline] free_pages+0x88/0xa0 mm/page_alloc.c:5097 ext4_calculate_overhead+0x1037/0x1220 fs/ext4/super.c:4231 __ext4_fill_super fs/ext4/super.c:5480 [inline] ext4_fill_super+0x425a/0x6060 fs/ext4/super.c:5726 get_tree_bdev_flags+0x3f6/0x4c0 fs/super.c:1636 get_tree_bdev+0x23/0x30 fs/super.c:1659 ext4_get_tree+0x20/0x30 fs/ext4/super.c:5758 vfs_get_tree+0x90/0x280 fs/super.c:1759 do_new_mount+0x24c/0xa10 fs/namespace.c:3884 path_mount+0x686/0xfd0 fs/namespace.c:4211 do_mount fs/namespace.c:4224 [inline] __do_sys_mount fs/namespace.c:4435 [inline] __se_sys_mount+0x366/0x3e0 fs/namespace.c:4412 __x64_sys_mount+0xc3/0xe0 fs/namespace.c:4412 x64_sys_call+0xd52/0x2f70 arch/x86/include/generated/asm/syscalls_64.h:166 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x58/0x100 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x76/0x7e Memory state around the buggy address: ffff888119c5df80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888119c5e000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff888119c5e080: 00 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc ^ ffff888119c5e100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888119c5e180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ================================================================== EXT4-fs error (device loop8): ext4_dx_csum_set:501: inode #2: comm syz.8.63: dir seems corrupt? Run e2fsck -D.