================================================================== BUG: KASAN: slab-out-of-bounds in ext4_htree_fill_tree+0x1066/0x10d0 fs/ext4/namei.c:1221 Read of size 1 at addr ffff888119b14d1b by task syz-executor/470 CPU: 0 PID: 470 Comm: syz-executor Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/14/2025 Call Trace: __dump_stack+0x21/0x24 lib/dump_stack.c:77 dump_stack_lvl+0x169/0x1d8 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_load1_noabort+0x14/0x20 mm/kasan/report_generic.c:306 ext4_htree_fill_tree+0x1066/0x10d0 fs/ext4/namei.c:1221 ext4_dx_readdir fs/ext4/dir.c:601 [inline] ext4_readdir+0x2b45/0x39b0 fs/ext4/dir.c:145 iterate_dir+0x260/0x570 fs/readdir.c:-1 __do_sys_getdents64 fs/readdir.c:369 [inline] __se_sys_getdents64+0xe5/0x240 fs/readdir.c:354 __x64_sys_getdents64+0x7b/0x90 fs/readdir.c:354 do_syscall_64+0x31/0x40 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x61/0xcb RIP: 0033:0x7fe3a88308b3 Code: c1 66 0f 1f 44 00 00 48 83 c4 08 48 89 ef 5b 5d e9 62 43 f8 ff 66 90 b8 ff ff ff 7f 48 39 c2 48 0f 47 d0 b8 d9 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 05 c3 0f 1f 40 00 48 c7 c2 a8 ff ff ff f7 d8 RSP: 002b:00007ffca22ea008 EFLAGS: 00000293 ORIG_RAX: 00000000000000d9 RAX: ffffffffffffffda RBX: 0000555590f0d4e0 RCX: 00007fe3a88308b3 RDX: 0000000000008000 RSI: 0000555590f0d4e0 RDI: 0000000000000005 RBP: 0000555590f0d4b4 R08: 0000000000028b61 R09: 0000000000000000 R10: 00007fe3a898cca0 R11: 0000000000000293 R12: ffffffffffffffa8 R13: 0000000000000010 R14: 0000555590f0d4b0 R15: 00007ffca22ec2b0 Allocated by task 0: (stack is not available) Freed by task 24: 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] kfree+0xc0/0x270 mm/slub.c:4196 skb_free_head net/core/skbuff.c:606 [inline] skb_release_data+0x532/0x670 net/core/skbuff.c:626 skb_release_all net/core/skbuff.c:680 [inline] __kfree_skb net/core/skbuff.c:694 [inline] kfree_skb+0xb9/0x2f0 net/core/skbuff.c:713 kauditd_hold_skb+0x116/0x210 kernel/audit.c:614 kauditd_send_queue+0x289/0x2d0 kernel/audit.c:769 kauditd_thread+0x4dc/0x850 kernel/audit.c:893 kthread+0x346/0x3d0 kernel/kthread.c:313 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:298 The buggy address belongs to the object at ffff888119b14000 which belongs to the cache kmalloc-2k of size 2048 The buggy address is located 1307 bytes to the right of 2048-byte region [ffff888119b14000, ffff888119b14800) The buggy address belongs to the page: page:ffffea000466c400 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x119b10 head:ffffea000466c400 order:3 compound_mapcount:0 compound_pincount:0 flags: 0x4000000000010200(slab|head) raw: 4000000000010200 ffffea0004597200 0000000200000002 ffff888100042d80 raw: 0000000000000000 0000000000080008 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 0xd2a20(GFP_ATOMIC|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 121, ts 4038177001, free_ts 0 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+0x2235/0x23d0 mm/page_alloc.c:4254 __alloc_pages_nodemask+0x268/0x5f0 mm/page_alloc.c:5370 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] __kmalloc_track_caller+0x1ef/0x320 mm/slub.c:4541 __kmalloc_reserve net/core/skbuff.c:144 [inline] __alloc_skb+0xdc/0x520 net/core/skbuff.c:212 alloc_skb include/linux/skbuff.h:1126 [inline] nlmsg_new include/net/netlink.h:953 [inline] audit_buffer_alloc kernel/audit.c:1799 [inline] audit_log_start+0x3df/0x860 kernel/audit.c:1917 common_lsm_audit+0xd3/0x17f0 security/lsm_audit.c:457 slow_avc_audit+0x1ac/0x220 security/selinux/avc.c:798 avc_audit security/selinux/include/avc.h:140 [inline] avc_has_perm+0x1ca/0x360 security/selinux/avc.c:1201 inode_has_perm security/selinux/hooks.c:1657 [inline] file_has_perm+0x4a1/0x640 security/selinux/hooks.c:1749 match_file+0xc8/0x130 security/selinux/hooks.c:2419 iterate_fd+0x115/0x1e0 fs/file.c:1331 flush_unauthorized_files security/selinux/hooks.c:2456 [inline] selinux_bprm_committing_creds+0x3dd/0x8c0 security/selinux/hooks.c:2485 page_owner free stack trace missing Memory state around the buggy address: ffff888119b14c00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888119b14c80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff888119b14d00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff888119b14d80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888119b14e00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ================================================================== EXT4-fs error (device loop0): __ext4_get_inode_loc:4438: comm syz-executor: Invalid inode table block 14875662660405297151 in block_group 0 EXT4-fs error (device loop0) in ext4_reserve_inode_write:5933: Corrupt filesystem EXT4-fs error (device loop0): ext4_dirty_inode:6143: inode #2: comm syz-executor: mark_inode_dirty error