================================================================== BUG: KASAN: slab-out-of-bounds in ext4_read_inline_data fs/ext4/inline.c:210 [inline] BUG: KASAN: slab-out-of-bounds in ext4_inlinedir_to_tree+0x50c/0xff0 fs/ext4/inline.c:1412 Read of size 68 at addr ffff888110752ec9 by task syz-executor.0/336 CPU: 1 PID: 336 Comm: syz-executor.0 Not tainted 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:88 dump_stack_lvl+0x110/0x170 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 check_region_inline mm/kasan/generic.c:-1 [inline] kasan_check_range+0x249/0x2a0 mm/kasan/generic.c:189 memcpy+0x2d/0x70 mm/kasan/shadow.c:65 ext4_read_inline_data fs/ext4/inline.c:210 [inline] ext4_inlinedir_to_tree+0x50c/0xff0 fs/ext4/inline.c:1412 ext4_htree_fill_tree+0x508/0x1160 fs/ext4/namei.c:1211 ext4_dx_readdir fs/ext4/dir.c:608 [inline] ext4_readdir+0x2f80/0x3e10 fs/ext4/dir.c:145 iterate_dir+0x271/0x610 fs/readdir.c:-1 __do_sys_getdents64 fs/readdir.c:369 [inline] __se_sys_getdents64+0xf2/0x250 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:46 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7fce6f09acf3 Code: 48 0f 45 c2 48 83 c4 08 5b 5d c3 66 2e 0f 1f 84 00 00 00 00 00 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 d0 ff ff ff f7 d8 RSP: 002b:00007ffd7960f378 EFLAGS: 00000293 ORIG_RAX: 00000000000000d9 RAX: ffffffffffffffda RBX: 0000555565c538c0 RCX: 00007fce6f09acf3 RDX: 0000000000008000 RSI: 0000555565c538f0 RDI: 0000000000000006 RBP: 0000555565c538f0 R08: 00007fce6f187640 R09: 0000000000000001 R10: 0000000000000000 R11: 0000000000000293 R12: 0000555565c538c4 R13: ffffffffffffffd0 R14: 0000000000000016 R15: 0000000000000008 Allocated by task 336: kasan_save_stack mm/kasan/common.c:46 [inline] kasan_set_track+0x4b/0x70 mm/kasan/common.c:53 kasan_save_alloc_info+0x25/0x30 mm/kasan/generic.c:505 ____kasan_kmalloc mm/kasan/common.c:380 [inline] __kasan_kmalloc+0x95/0xb0 mm/kasan/common.c:389 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] inet6_ifa_notify net/ipv6/addrconf.c:5569 [inline] __ipv6_ifa_notify+0x200/0xe80 net/ipv6/addrconf.c:6227 ipv6_ifa_notify net/ipv6/addrconf.c:6279 [inline] inet6_addr_add+0x649/0x9e0 net/ipv6/addrconf.c:3051 inet6_rtm_newaddr+0x74a/0xa10 net/ipv6/addrconf.c:4999 rtnetlink_rcv_msg+0xb3b/0xe00 net/core/rtnetlink.c:6150 netlink_rcv_skb+0x20f/0x460 net/netlink/af_netlink.c:2521 rtnetlink_rcv+0x1c/0x20 net/core/rtnetlink.c:6168 netlink_unicast_kernel net/netlink/af_netlink.c:1319 [inline] netlink_unicast+0x8ab/0xa30 net/netlink/af_netlink.c:1345 netlink_sendmsg+0x8b9/0xbd0 net/netlink/af_netlink.c:1873 sock_sendmsg_nosec net/socket.c:716 [inline] __sock_sendmsg net/socket.c:728 [inline] __sys_sendto+0x4ac/0x660 net/socket.c:2142 __do_sys_sendto net/socket.c:2154 [inline] __se_sys_sendto net/socket.c:2150 [inline] __x64_sys_sendto+0xe5/0x100 net/socket.c:2150 x64_sys_call+0x83/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:45 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 Freed by task 336: kasan_save_stack mm/kasan/common.c:46 [inline] kasan_set_track+0x4b/0x70 mm/kasan/common.c:53 kasan_save_free_info+0x31/0x50 mm/kasan/generic.c:516 ____kasan_slab_free+0x132/0x180 mm/kasan/common.c:242 __kasan_slab_free+0x11/0x20 mm/kasan/common.c:250 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] skb_release_data+0x63f/0x890 net/core/skbuff.c:794 skb_release_all net/core/skbuff.c:859 [inline] __kfree_skb net/core/skbuff.c:873 [inline] consume_skb+0xab/0x1f0 net/core/skbuff.c:1038 netlink_broadcast+0x1084/0x1180 net/netlink/af_netlink.c:1522 nlmsg_multicast include/net/netlink.h:1071 [inline] nlmsg_notify+0xe6/0x1a0 net/netlink/af_netlink.c:2564 rtnl_notify+0x9a/0xc0 net/core/rtnetlink.c:796 inet6_ifa_notify net/ipv6/addrconf.c:5580 [inline] __ipv6_ifa_notify+0x24b/0xe80 net/ipv6/addrconf.c:6227 ipv6_ifa_notify net/ipv6/addrconf.c:6279 [inline] inet6_addr_add+0x649/0x9e0 net/ipv6/addrconf.c:3051 inet6_rtm_newaddr+0x74a/0xa10 net/ipv6/addrconf.c:4999 rtnetlink_rcv_msg+0xb3b/0xe00 net/core/rtnetlink.c:6150 netlink_rcv_skb+0x20f/0x460 net/netlink/af_netlink.c:2521 rtnetlink_rcv+0x1c/0x20 net/core/rtnetlink.c:6168 netlink_unicast_kernel net/netlink/af_netlink.c:1319 [inline] netlink_unicast+0x8ab/0xa30 net/netlink/af_netlink.c:1345 netlink_sendmsg+0x8b9/0xbd0 net/netlink/af_netlink.c:1873 sock_sendmsg_nosec net/socket.c:716 [inline] __sock_sendmsg net/socket.c:728 [inline] __sys_sendto+0x4ac/0x660 net/socket.c:2142 __do_sys_sendto net/socket.c:2154 [inline] __se_sys_sendto net/socket.c:2150 [inline] __x64_sys_sendto+0xe5/0x100 net/socket.c:2150 x64_sys_call+0x83/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:45 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 The buggy address belongs to the object at ffff888110752c00 which belongs to the cache kmalloc-512 of size 512 The buggy address is located 201 bytes to the right of 512-byte region [ffff888110752c00, ffff888110752e00) The buggy address belongs to the physical page: page:ffffea000441d400 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x110750 head:ffffea000441d400 order:2 compound_mapcount:0 compound_pincount:0 flags: 0x4000000000010200(slab|head|zone=1) raw: 4000000000010200 0000000000000000 dead000000000122 ffff888100042f00 raw: 0000000000000000 0000000000100010 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 2, migratetype Unmovable, gfp_mask 0x152a20(GFP_ATOMIC|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_HARDWALL), pid 336, tgid 336 (syz-executor.0), ts 28045118490, free_ts 21645255511 set_page_owner include/linux/page_owner.h:33 [inline] post_alloc_hook+0x1f5/0x210 mm/page_alloc.c:2670 prep_new_page+0x1c/0x110 mm/page_alloc.c:2677 get_page_from_freelist+0x2d12/0x2d80 mm/page_alloc.c:4583 __alloc_pages+0x1d9/0x480 mm/page_alloc.c:5897 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+0xa1/0x1e0 mm/slab_common.c:951 kmalloc include/linux/slab.h:568 [inline] kzalloc include/linux/slab.h:699 [inline] fib6_info_alloc+0x34/0xe0 net/ipv6/ip6_fib.c:156 ip6_route_info_create+0x526/0x1510 net/ipv6/route.c:3797 addrconf_f6i_alloc+0x19c/0x3f0 net/ipv6/route.c:4601 fixup_permanent_addr net/ipv6/addrconf.c:3554 [inline] addrconf_permanent_addr+0x239/0x940 net/ipv6/addrconf.c:3593 addrconf_notify+0x7cf/0xe40 net/ipv6/addrconf.c:3665 notifier_call_chain kernel/notifier.c:87 [inline] raw_notifier_call_chain+0xa1/0x110 kernel/notifier.c:455 page last free stack trace: reset_page_owner include/linux/page_owner.h:26 [inline] free_pages_prepare mm/page_alloc.c:1578 [inline] free_pcp_prepare mm/page_alloc.c:1652 [inline] free_unref_page_prepare+0x742/0x750 mm/page_alloc.c:3618 free_unref_page+0x95/0x540 mm/page_alloc.c:3716 __folio_put_small mm/swap.c:100 [inline] __folio_put+0xac/0xe0 mm/swap.c:123 folio_put include/linux/mm.h:1442 [inline] put_page include/linux/mm.h:1494 [inline] anon_pipe_buf_release+0x183/0x200 fs/pipe.c:138 pipe_buf_release include/linux/pipe_fs_i.h:199 [inline] pipe_read+0x55b/0x1030 fs/pipe.c:324 call_read_iter include/linux/fs.h:2276 [inline] new_sync_read fs/read_write.c:389 [inline] vfs_read+0x454/0x910 fs/read_write.c:470 ksys_read+0x149/0x250 fs/read_write.c:613 __do_sys_read fs/read_write.c:623 [inline] __se_sys_read fs/read_write.c:621 [inline] __x64_sys_read+0x7b/0x90 fs/read_write.c:621 x64_sys_call+0x2f/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:1 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 Memory state around the buggy address: ffff888110752d80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888110752e00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff888110752e80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff888110752f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888110752f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ================================================================== EXT4-fs error (device loop0): ext4_inlinedir_to_tree:1450: inode #12: block 7: comm syz-executor.0: path /root/syzkaller-testdir4137019928/syzkaller.LsLOyp/0/file0/file0: bad entry in directory: directory entry overrun - offset=34816, inode=2538880996, rec_len=34812, size=128 fake=0 EXT4-fs error (device loop0): empty_inline_dir:1895: inode #12: block 7: comm syz-executor.0: bad entry in directory: directory entry overrun - offset=4, inode=2538880996, rec_len=34812, size=60 fake=0 EXT4-fs warning (device loop0): empty_inline_dir:1902: bad inline directory (dir #12) - inode 2538880996, rec_len 34812, name_len 234inline size 60 EXT4-fs error (device loop0): ext4_inlinedir_to_tree:1450: inode #12: block 7: comm syz-executor.0: path /root/syzkaller-testdir4137019928/syzkaller.LsLOyp/0/file0/file0: bad entry in directory: directory entry overrun - offset=34816, inode=2538880996, rec_len=34812, size=128 fake=0 EXT4-fs error (device loop0): empty_inline_dir:1895: inode #12: block 7: comm syz-executor.0: bad entry in directory: directory entry overrun - offset=4, inode=2538880996, rec_len=34812, size=60 fake=0 EXT4-fs warning (device loop0): empty_inline_dir:1902: bad inline directory (dir #12) - inode 2538880996, rec_len 34812, name_len 234inline size 60 EXT4-fs error (device loop0): ext4_inlinedir_to_tree:1450: inode #12: block 7: comm syz-executor.0: path /root/syzkaller-testdir4137019928/syzkaller.LsLOyp/0/file0/file0: bad entry in directory: directory entry overrun - offset=34816, inode=2538880996, rec_len=34812, size=128 fake=0 EXT4-fs error (device loop0): empty_inline_dir:1895: inode #12: block 7: comm syz-executor.0: bad entry in directory: directory entry overrun - offset=4, inode=2538880996, rec_len=34812, size=60 fake=0 EXT4-fs warning (device loop0): empty_inline_dir:1902: bad inline directory (dir #12) - inode 2538880996, rec_len 34812, name_len 234inline size 60 EXT4-fs error (device loop0): ext4_inlinedir_to_tree:1450: inode #12: block 7: comm syz-executor.0: path /root/syzkaller-testdir4137019928/syzkaller.LsLOyp/0/file0/file0: bad entry in directory: directory entry overrun - offset=34816, inode=2538880996, rec_len=34812, size=128 fake=0 EXT4-fs error (device loop0): empty_inline_dir:1895: inode #12: block 7: comm syz-executor.0: bad entry in directory: directory entry overrun - offset=4, inode=2538880996, rec_len=34812, size=60 fake=0 EXT4-fs warning (device loop0): empty_inline_dir:1902: bad inline directory (dir #12) - inode 2538880996, rec_len 34812, name_len 234inline size 60 EXT4-fs error (device loop0): ext4_inlinedir_to_tree:1450: inode #12: block 7: comm syz-executor.0: path /root/syzkaller-testdir4137019928/syzkaller.LsLOyp/0/file0/file0: bad entry in directory: directory entry overrun - offset=34816, inode=2538880996, rec_len=34812, size=128 fake=0 EXT4-fs error (device loop0): empty_inline_dir:1895: inode #12: block 7: comm syz-executor.0: bad entry in directory: directory entry overrun - offset=4, inode=2538880996, rec_len=34812, size=60 fake=0 EXT4-fs warning (device loop0): empty_inline_dir:1902: bad inline directory (dir #12) - inode 2538880996, rec_len 34812, name_len 234inline size 60 EXT4-fs warning (device loop0): empty_inline_dir:1902: bad inline directory (dir #12) - inode 2538880996, rec_len 34812, name_len 234inline size 60 EXT4-fs warning (device loop0): empty_inline_dir:1902: bad inline directory (dir #12) - inode 2538880996, rec_len 34812, name_len 234inline size 60 EXT4-fs warning (device loop0): empty_inline_dir:1902: bad inline directory (dir #12) - inode 2538880996, rec_len 34812, name_len 234inline size 60 EXT4-fs warning (device loop0): empty_inline_dir:1902: bad inline directory (dir #12) - inode 2538880996, rec_len 34812, name_len 234inline size 60 EXT4-fs warning (device loop0): empty_inline_dir:1902: bad inline directory (dir #12) - inode 2538880996, rec_len 34812, name_len 234inline size 60 EXT4-fs (loop0): unmounting filesystem.