================================================================== BUG: KASAN: slab-out-of-bounds in ext4_htree_fill_tree+0x1066/0x10d0 fs/ext4/namei.c:1246 Read of size 1 at addr ffff88811e38bc67 by task syz-executor/469 CPU: 0 PID: 469 Comm: syz-executor Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/02/2025 Call Trace: __dump_stack+0x21/0x24 lib/dump_stack.c:88 dump_stack_lvl+0xee/0x150 lib/dump_stack.c:106 print_address_description+0x71/0x200 mm/kasan/report.c:316 print_report+0x4a/0x60 mm/kasan/report.c:420 kasan_report+0x122/0x150 mm/kasan/report.c:524 __asan_report_load1_noabort+0x14/0x20 mm/kasan/report_generic.c:348 ext4_htree_fill_tree+0x1066/0x10d0 fs/ext4/namei.c:1246 ext4_dx_readdir fs/ext4/dir.c:608 [inline] ext4_readdir+0x2d8a/0x3c10 fs/ext4/dir.c:145 iterate_dir+0x271/0x610 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 x64_sys_call+0x15c/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:218 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7f40da3bfad3 Code: c1 66 0f 1f 44 00 00 48 83 c4 08 48 89 ef 5b 5d e9 72 3e 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:00007ffdebd7c988 EFLAGS: 00000293 ORIG_RAX: 00000000000000d9 RAX: ffffffffffffffda RBX: 0000555577cf94e0 RCX: 00007f40da3bfad3 RDX: 0000000000008000 RSI: 0000555577cf94e0 RDI: 0000000000000005 RBP: 0000555577cf94b4 R08: 0000000000028b61 R09: 0000000000000000 R10: 00007f40da57cca0 R11: 0000000000000293 R12: ffffffffffffffa8 R13: 0000000000000010 R14: 0000555577cf94b0 R15: 00007ffdebd7ec40 Allocated by task 10: kasan_save_stack mm/kasan/common.c:45 [inline] kasan_set_track+0x4b/0x70 mm/kasan/common.c:52 kasan_save_alloc_info+0x25/0x30 mm/kasan/generic.c:505 ____kasan_kmalloc mm/kasan/common.c:379 [inline] __kasan_kmalloc+0x95/0xb0 mm/kasan/common.c:388 kasan_kmalloc include/linux/kasan.h:212 [inline] __do_kmalloc_node mm/slab_common.c:938 [inline] __kmalloc_node_track_caller+0xb1/0x1e0 mm/slab_common.c:958 kmalloc_reserve net/core/skbuff.c:449 [inline] __alloc_skb+0x236/0x4b0 net/core/skbuff.c:518 alloc_skb include/linux/skbuff.h:1290 [inline] nlmsg_new include/net/netlink.h:991 [inline] rtmsg_ifinfo_build_skb+0x7c/0x190 net/core/rtnetlink.c:3966 rtmsg_ifinfo_event net/core/rtnetlink.c:4002 [inline] rtmsg_ifinfo+0x7a/0x130 net/core/rtnetlink.c:4011 netdev_state_change+0x185/0x210 net/core/dev.c:1400 linkwatch_do_dev+0x115/0x160 net/core/link_watch.c:168 __linkwatch_run_queue+0x408/0x660 net/core/link_watch.c:221 linkwatch_event+0x4c/0x60 net/core/link_watch.c:264 process_one_work+0x71f/0xc40 kernel/workqueue.c:2302 worker_thread+0xa29/0x11f0 kernel/workqueue.c:2449 kthread+0x281/0x320 kernel/kthread.c:386 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 Freed by task 10: kasan_save_stack mm/kasan/common.c:45 [inline] kasan_set_track+0x4b/0x70 mm/kasan/common.c:52 kasan_save_free_info+0x31/0x50 mm/kasan/generic.c:516 ____kasan_slab_free+0x132/0x180 mm/kasan/common.c:241 __kasan_slab_free+0x11/0x20 mm/kasan/common.c:249 kasan_slab_free include/linux/kasan.h:178 [inline] slab_free_hook mm/slub.c:1750 [inline] slab_free_freelist_hook+0xc2/0x190 mm/slub.c:1776 slab_free mm/slub.c:3712 [inline] __kmem_cache_free+0xb7/0x1b0 mm/slub.c:3728 kfree+0x6f/0xf0 mm/slab_common.c:990 skb_free_head net/core/skbuff.c:765 [inline] pskb_expand_head+0x3d3/0x1210 net/core/skbuff.c:1883 netlink_trim+0x193/0x230 net/netlink/af_netlink.c:1300 netlink_broadcast+0x6e/0x1180 net/netlink/af_netlink.c:1501 nlmsg_multicast include/net/netlink.h:1071 [inline] nlmsg_notify+0xe6/0x1a0 net/netlink/af_netlink.c:2564 rtnl_notify net/core/rtnetlink.c:796 [inline] rtmsg_ifinfo_send net/core/rtnetlink.c:3990 [inline] rtmsg_ifinfo_event net/core/rtnetlink.c:4005 [inline] rtmsg_ifinfo+0xea/0x130 net/core/rtnetlink.c:4011 netdev_state_change+0x185/0x210 net/core/dev.c:1400 linkwatch_do_dev+0x115/0x160 net/core/link_watch.c:168 __linkwatch_run_queue+0x408/0x660 net/core/link_watch.c:221 linkwatch_event+0x4c/0x60 net/core/link_watch.c:264 process_one_work+0x71f/0xc40 kernel/workqueue.c:2302 worker_thread+0xa29/0x11f0 kernel/workqueue.c:2449 kthread+0x281/0x320 kernel/kthread.c:386 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 The buggy address belongs to the object at ffff88811e38a000 which belongs to the cache kmalloc-4k of size 4096 The buggy address is located 3175 bytes to the right of 4096-byte region [ffff88811e38a000, ffff88811e38b000) The buggy address belongs to the physical page: page:ffffea000478e200 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x11e388 head:ffffea000478e200 order:3 compound_mapcount:0 compound_pincount:0 flags: 0x4000000000010200(slab|head|zone=1) raw: 4000000000010200 0000000000000000 dead000000000122 ffff888100043380 raw: 0000000000000000 0000000000040004 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 331, tgid 331 (kworker/u4:3), ts 51137125199, free_ts 51018519153 set_page_owner include/linux/page_owner.h:33 [inline] post_alloc_hook+0x1f5/0x210 mm/page_alloc.c:2643 prep_new_page+0x1c/0x110 mm/page_alloc.c:2650 get_page_from_freelist+0x2c7b/0x2cf0 mm/page_alloc.c:4554 __alloc_pages+0x1c3/0x450 mm/page_alloc.c:5868 alloc_slab_page+0x6e/0xf0 include/linux/gfp.h:-1 allocate_slab mm/slub.c:1967 [inline] new_slab+0x98/0x3d0 mm/slub.c:2020 ___slab_alloc+0x6bd/0xb20 mm/slub.c:3177 __slab_alloc+0x5e/0xa0 mm/slub.c:3263 slab_alloc_node mm/slub.c:3348 [inline] __kmem_cache_alloc_node+0x203/0x2c0 mm/slub.c:3423 __do_kmalloc_node mm/slab_common.c:937 [inline] __kmalloc_node_track_caller+0xa0/0x1e0 mm/slab_common.c:958 kmalloc_reserve net/core/skbuff.c:449 [inline] __alloc_skb+0x236/0x4b0 net/core/skbuff.c:518 alloc_skb include/linux/skbuff.h:1290 [inline] nlmsg_new include/net/netlink.h:991 [inline] rtmsg_ifinfo_build_skb+0x7c/0x190 net/core/rtnetlink.c:3966 rtmsg_ifinfo_event net/core/rtnetlink.c:4002 [inline] rtmsg_ifinfo+0x7a/0x130 net/core/rtnetlink.c:4011 dev_close_many+0x279/0x4d0 net/core/dev.c:1608 unregister_netdevice_many+0x439/0x1820 net/core/dev.c:10941 ip6gre_exit_batch_net+0x5a8/0x5f0 net/ipv6/ip6_gre.c:1670 page last free stack trace: reset_page_owner include/linux/page_owner.h:26 [inline] free_pages_prepare mm/page_alloc.c:1551 [inline] free_pcp_prepare mm/page_alloc.c:1625 [inline] free_unref_page_prepare+0x742/0x750 mm/page_alloc.c:3589 free_unref_page+0x8f/0x530 mm/page_alloc.c:3687 free_the_page mm/page_alloc.c:836 [inline] __free_pages+0x67/0x100 mm/page_alloc.c:5957 __free_slab+0xca/0x1a0 mm/slub.c:2044 free_slab mm/slub.c:2059 [inline] discard_slab mm/slub.c:2065 [inline] __unfreeze_partials+0x160/0x190 mm/slub.c:2614 put_cpu_partial+0xa9/0x100 mm/slub.c:2690 __slab_free+0x1c4/0x280 mm/slub.c:3589 do_slab_free mm/slub.c:3666 [inline] ___cache_free+0xbf/0xd0 mm/slub.c:3722 qlink_free mm/kasan/quarantine.c:168 [inline] qlist_free_all+0xc6/0x140 mm/kasan/quarantine.c:187 kasan_quarantine_reduce+0x14a/0x170 mm/kasan/quarantine.c:294 __kasan_slab_alloc+0x24/0x80 mm/kasan/common.c:310 kasan_slab_alloc include/linux/kasan.h:202 [inline] slab_post_alloc_hook+0x4f/0x2d0 mm/slab.h:768 slab_alloc_node mm/slub.c:3382 [inline] __kmem_cache_alloc_node+0x192/0x2c0 mm/slub.c:3423 __do_kmalloc_node mm/slab_common.c:937 [inline] __kmalloc+0xa1/0x1e0 mm/slab_common.c:951 kmalloc include/linux/slab.h:568 [inline] kzalloc include/linux/slab.h:699 [inline] fib_create_info+0x902/0x2030 net/ipv4/fib_semantics.c:1459 fib_table_insert+0xb6/0x1d00 net/ipv4/fib_trie.c:1217 Memory state around the buggy address: ffff88811e38bb00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88811e38bb80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff88811e38bc00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff88811e38bc80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88811e38bd00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ================================================================== EXT4-fs (loop0): unmounting filesystem.