================================================================== BUG: KASAN: slab-use-after-free in dx_insert_block fs/ext4/namei.c:1387 [inline] BUG: KASAN: slab-use-after-free in do_split+0x1c9f/0x2350 fs/ext4/namei.c:2043 Read of size 157024 at addr ffff88811e388028 by task syz.8.89/777 CPU: 1 UID: 0 PID: 777 Comm: syz.8.89 Not tainted 6.14.0-rc6-syzkaller-00253-gcb82ca153949 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x188/0x200 lib/dump_stack.c:120 print_address_description mm/kasan/report.c:408 [inline] print_report+0x163/0x570 mm/kasan/report.c:521 kasan_report+0x14f/0x190 mm/kasan/report.c:634 kasan_check_range+0x23c/0x2c0 mm/kasan/generic.c:189 __asan_memmove+0x31/0x80 mm/kasan/shadow.c:94 dx_insert_block fs/ext4/namei.c:1387 [inline] do_split+0x1c9f/0x2350 fs/ext4/namei.c:2043 make_indexed_dir+0xc95/0x1340 fs/ext4/namei.c:2355 ext4_add_entry+0xbcd/0xe00 fs/ext4/namei.c:2462 __ext4_link+0x497/0x750 fs/ext4/namei.c:3480 ext4_link+0x1f7/0x290 fs/ext4/namei.c:3521 vfs_link+0x4ec/0x6d0 fs/namei.c:4795 do_linkat+0x2e5/0x6a0 fs/namei.c:4865 __do_sys_link fs/namei.c:4899 [inline] __se_sys_link fs/namei.c:4897 [inline] __x64_sys_link+0x86/0xa0 fs/namei.c:4897 x64_sys_call+0x2d47/0x2e00 arch/x86/include/generated/asm/syscalls_64.h:87 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0x54/0xf0 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x76/0x7e RIP: 0033:0x7f1dcb18cde9 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:00007f1dcbfeb038 EFLAGS: 00000246 ORIG_RAX: 0000000000000056 RAX: ffffffffffffffda RBX: 00007f1dcb3a6080 RCX: 00007f1dcb18cde9 RDX: 0000000000000000 RSI: 0000400000000bc0 RDI: 0000400000001240 RBP: 00007f1dcb20e2a0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000001 R14: 00007f1dcb3a6080 R15: 00007fff60440838 The buggy address belongs to the physical page: page: refcount:3 mapcount:1 mapping:ffff888110540520 index:0x1 pfn:0x11e388 memcg:ffff88810226a000 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 ffff888110540520 raw: 0000000000000001 ffff888133a8d690 0000000300000000 ffff88810226a000 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 433, tgid 433 (udevd), ts 78278310155, free_ts 73345039230 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1eb/0x210 mm/page_alloc.c:1551 prep_new_page mm/page_alloc.c:1559 [inline] get_page_from_freelist+0x482b/0x48c0 mm/page_alloc.c:3477 __alloc_frozen_pages_noprof+0x3e8/0x890 mm/page_alloc.c:4740 __alloc_pages_noprof mm/page_alloc.c:4774 [inline] __folio_alloc_noprof+0x18/0xc0 mm/page_alloc.c:4784 __folio_alloc_node_noprof include/linux/gfp.h:276 [inline] folio_alloc_noprof include/linux/gfp.h:311 [inline] filemap_alloc_folio_noprof include/linux/pagemap.h:668 [inline] ractl_alloc_folio mm/readahead.c:186 [inline] page_cache_ra_unbounded+0x332/0x6a0 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+0x3da/0x9d0 mm/readahead.c:575 filemap_get_pages+0x5e5/0x1d20 mm/filemap.c:2579 filemap_read+0x437/0xf80 mm/filemap.c:2690 blkdev_read_iter+0x31b/0x480 block/fops.c:796 new_sync_read fs/read_write.c:484 [inline] vfs_read+0x9d1/0xd20 fs/read_write.c:565 ksys_read+0x18c/0x2b0 fs/read_write.c:708 __do_sys_read fs/read_write.c:717 [inline] __se_sys_read fs/read_write.c:715 [inline] __x64_sys_read+0x7f/0x90 fs/read_write.c:715 x64_sys_call+0x2835/0x2e00 arch/x86/include/generated/asm/syscalls_64.h:1 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0x54/0xf0 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x76/0x7e page last free pid 12 tgid 12 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1127 [inline] free_frozen_pages+0x9ee/0xa70 mm/page_alloc.c:2660 __free_slab+0xcf/0x110 mm/slub.c:2655 free_slab+0x24/0xe0 mm/slub.c:2678 discard_slab mm/slub.c:2684 [inline] __put_partials+0x115/0x130 mm/slub.c:3153 put_cpu_partial+0xa9/0x100 mm/slub.c:3228 __slab_free+0x24f/0x310 mm/slub.c:4479 do_slab_free mm/slub.c:4561 [inline] ___cache_free+0xd5/0xf0 mm/slub.c:4667 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0xb7/0x130 mm/kasan/quarantine.c:179 kasan_quarantine_reduce+0x154/0x180 mm/kasan/quarantine.c:286 __kasan_slab_alloc+0x28/0x80 mm/kasan/common.c:329 kasan_slab_alloc include/linux/kasan.h:250 [inline] slab_post_alloc_hook mm/slub.c:4115 [inline] slab_alloc_node mm/slub.c:4164 [inline] kmem_cache_alloc_node_noprof+0x12c/0x2f0 mm/slub.c:4216 __alloc_skb+0x1a5/0x430 net/core/skbuff.c:596 alloc_skb include/linux/skbuff.h:1331 [inline] nlmsg_new include/net/netlink.h:1018 [inline] inet_ifmcaddr_notify+0xb7/0x7e0 net/ipv4/igmp.c:1475 __ip_mc_dec_group+0x2f5/0x5b0 net/ipv4/igmp.c:1772 ip_mc_dec_group include/linux/igmp.h:138 [inline] ip_mc_down+0x1a8/0x240 net/ipv4/igmp.c:1834 inetdev_event+0x24a/0x10d0 net/ipv4/devinet.c:1650 Memory state around the buggy address: ffff88811e389f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88811e389f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff88811e38a000: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc ^ ffff88811e38a080: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc ffff88811e38a100: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc ================================================================== EXT4-fs error (device loop8): ext4_dx_csum_set:531: inode #2: comm syz.8.89: dir seems corrupt? Run e2fsck -D.