================================================================== BUG: KASAN: slab-out-of-bounds in ext4_read_inline_data fs/ext4/inline.c:209 [inline] BUG: KASAN: slab-out-of-bounds in ext4_read_inline_dir+0x448/0xdb0 fs/ext4/inline.c:1533 Read of size 68 at addr ffff88812a9b46d3 by task syz-executor/478 CPU: 1 PID: 478 Comm: syz-executor 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:77 dump_stack_lvl+0x1a7/0x208 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 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:209 [inline] ext4_read_inline_dir+0x448/0xdb0 fs/ext4/inline.c:1533 ext4_readdir+0x39b/0x3ab0 fs/ext4/dir.c:161 iterate_dir+0x260/0x570 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 do_syscall_64+0x31/0x40 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x61/0xcb RIP: 0033:0x7fc456756ab3 Code: c7 c0 e8 ff ff ff 64 c7 00 16 00 00 00 31 c0 eb 9e e8 81 9b fd ff 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 e8 ff ff ff f7 d8 RSP: 002b:00007fffee239148 EFLAGS: 00000293 ORIG_RAX: 00000000000000d9 RAX: ffffffffffffffda RBX: 00005555635c9950 RCX: 00007fc456756ab3 RDX: 0000000000008000 RSI: 00005555635c9980 RDI: 0000000000000006 RBP: 00005555635c9980 R08: 00007fc456933ca0 R09: 0000000000000001 R10: 0000000000000000 R11: 0000000000000293 R12: 00005555635c9954 R13: ffffffffffffffe8 R14: 0000000000000016 R15: 00007fffee23c4e0 Allocated by task 481: kasan_save_stack mm/kasan/common.c:38 [inline] kasan_set_track mm/kasan/common.c:45 [inline] set_alloc_info mm/kasan/common.c:430 [inline] ____kasan_kmalloc mm/kasan/common.c:509 [inline] __kasan_kmalloc+0xda/0x110 mm/kasan/common.c:518 kasan_kmalloc include/linux/kasan.h:254 [inline] __kmalloc+0x1a4/0x330 mm/slub.c:4038 kmalloc include/linux/slab.h:560 [inline] kzalloc include/linux/slab.h:667 [inline] fib6_info_alloc+0x34/0xe0 net/ipv6/ip6_fib.c:154 ip6_route_info_create+0x4d2/0x1490 net/ipv6/route.c:3673 ip6_route_add+0x27/0x130 net/ipv6/route.c:3769 addrconf_prefix_route net/ipv6/addrconf.c:2463 [inline] fixup_permanent_addr net/ipv6/addrconf.c:3519 [inline] addrconf_permanent_addr+0x630/0x940 net/ipv6/addrconf.c:3543 addrconf_notify+0x752/0xe90 net/ipv6/addrconf.c:3611 notifier_call_chain kernel/notifier.c:83 [inline] raw_notifier_call_chain+0x90/0x100 kernel/notifier.c:410 call_netdevice_notifiers_info net/core/dev.c:2054 [inline] call_netdevice_notifiers_extack net/core/dev.c:2066 [inline] call_netdevice_notifiers net/core/dev.c:2080 [inline] __dev_notify_flags+0x2c1/0x560 net/core/dev.c:8585 dev_change_flags+0xe8/0x1a0 net/core/dev.c:8623 do_setlink+0xc06/0x3e10 net/core/rtnetlink.c:2732 __rtnl_newlink net/core/rtnetlink.c:3410 [inline] rtnl_newlink+0x1534/0x18f0 net/core/rtnetlink.c:3530 rtnetlink_rcv_msg+0xa31/0xcc0 net/core/rtnetlink.c:5610 netlink_rcv_skb+0x1f5/0x440 net/netlink/af_netlink.c:2503 rtnetlink_rcv+0x1c/0x20 net/core/rtnetlink.c:5628 netlink_unicast_kernel net/netlink/af_netlink.c:1314 [inline] netlink_unicast+0x876/0xa40 net/netlink/af_netlink.c:1340 netlink_sendmsg+0x89c/0xb50 net/netlink/af_netlink.c:1914 sock_sendmsg_nosec net/socket.c:652 [inline] __sock_sendmsg net/socket.c:664 [inline] __sys_sendto+0x467/0x620 net/socket.c:2006 __do_sys_sendto net/socket.c:2018 [inline] __se_sys_sendto net/socket.c:2014 [inline] __x64_sys_sendto+0xe5/0x100 net/socket.c:2014 do_syscall_64+0x31/0x40 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x61/0xcb The buggy address belongs to the object at ffff88812a9b4400 which belongs to the cache kmalloc-512 of size 512 The buggy address is located 211 bytes to the right of 512-byte region [ffff88812a9b4400, ffff88812a9b4600) The buggy address belongs to the page: page:ffffea0004aa6d00 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x12a9b4 head:ffffea0004aa6d00 order:2 compound_mapcount:0 compound_pincount:0 flags: 0x4000000000010200(slab|head) raw: 4000000000010200 dead000000000100 dead000000000122 ffff888100043080 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 0x1d20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC|__GFP_HARDWALL), pid 481, ts 46097245266, free_ts 44338804247 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+0x223b/0x23d0 mm/page_alloc.c:4254 __alloc_pages_nodemask+0x290/0x620 mm/page_alloc.c:5384 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+0x1ec/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] netlink_ack+0x372/0xb70 net/netlink/af_netlink.c:2438 netlink_rcv_skb+0x27a/0x440 net/netlink/af_netlink.c:2509 rtnetlink_rcv+0x1c/0x20 net/core/rtnetlink.c:5628 netlink_unicast_kernel net/netlink/af_netlink.c:1314 [inline] netlink_unicast+0x876/0xa40 net/netlink/af_netlink.c:1340 netlink_sendmsg+0x89c/0xb50 net/netlink/af_netlink.c:1914 sock_sendmsg_nosec net/socket.c:652 [inline] __sock_sendmsg net/socket.c:664 [inline] __sys_sendto+0x467/0x620 net/socket.c:2006 __do_sys_sendto net/socket.c:2018 [inline] __se_sys_sendto net/socket.c:2014 [inline] __x64_sys_sendto+0xe5/0x100 net/socket.c:2014 do_syscall_64+0x31/0x40 arch/x86/entry/common.c:46 page last free stack trace: reset_page_owner include/linux/page_owner.h:28 [inline] free_pages_prepare mm/page_alloc.c:1349 [inline] free_pcp_prepare mm/page_alloc.c:1421 [inline] free_unref_page_prepare+0x2b7/0x2d0 mm/page_alloc.c:3336 free_unref_page mm/page_alloc.c:3391 [inline] free_the_page mm/page_alloc.c:5443 [inline] __free_pages+0x146/0x3b0 mm/page_alloc.c:5454 __vunmap+0x86d/0x9f0 mm/vmalloc.c:2307 __vfree mm/vmalloc.c:2356 [inline] vfree+0x61/0x90 mm/vmalloc.c:2387 kcov_put kernel/kcov.c:408 [inline] kcov_close+0x2b/0x50 kernel/kcov.c:510 __fput+0x2fb/0x770 fs/file_table.c:281 ____fput+0x15/0x20 fs/file_table.c:314 task_work_run+0x127/0x190 kernel/task_work.c:189 exit_task_work include/linux/task_work.h:33 [inline] do_exit+0xa90/0x2500 kernel/exit.c:872 do_group_exit+0x141/0x310 kernel/exit.c:986 get_signal+0xf7d/0x12e0 kernel/signal.c:2793 arch_do_signal_or_restart+0xe2/0x11d0 arch/x86/kernel/signal.c:805 handle_signal_work kernel/entry/common.c:145 [inline] exit_to_user_mode_loop+0xa2/0xe0 kernel/entry/common.c:169 exit_to_user_mode_prepare+0x76/0xa0 kernel/entry/common.c:199 syscall_exit_to_user_mode+0x1d/0x40 kernel/entry/common.c:274 do_syscall_64+0x3d/0x40 arch/x86/entry/common.c:56 Memory state around the buggy address: ffff88812a9b4580: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88812a9b4600: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff88812a9b4680: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff88812a9b4700: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88812a9b4780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ================================================================== EXT4-fs error (device loop0): ext4_read_inline_dir:1614: inode #12: block 7: comm syz-executor: path /0/file1/file0: bad entry in directory: rec_len % 4 != 0 - offset=24, inode=2239623941, rec_len=29527, size=148 fake=0 EXT4-fs error (device loop0): ext4_read_inline_dir:1614: inode #12: block 7: comm syz-executor: path /0/file1/file0: bad entry in directory: rec_len % 4 != 0 - offset=24, inode=2239623941, rec_len=29527, size=148 fake=0 EXT4-fs error (device loop0): empty_inline_dir:1868: inode #12: block 7: comm syz-executor: bad entry in directory: rec_len % 4 != 0 - offset=4, inode=2239623941, rec_len=29527, size=60 fake=0 EXT4-fs warning (device loop0): empty_inline_dir:1875: bad inline directory (dir #12) - inode 2239623941, rec_len 29527, name_len 58inline size 60 EXT4-fs error (device loop0): ext4_read_inline_dir:1614: inode #12: block 7: comm syz-executor: path /0/file1/file0: bad entry in directory: rec_len % 4 != 0 - offset=24, inode=2239623941, rec_len=29527, size=148 fake=0 EXT4-fs error (device loop0): ext4_read_inline_dir:1614: inode #12: block 7: comm syz-executor: path /0/file1/file0: bad entry in directory: rec_len % 4 != 0 - offset=24, inode=2239623941, rec_len=29527, size=148 fake=0 EXT4-fs error (device loop0): empty_inline_dir:1868: inode #12: block 7: comm syz-executor: bad entry in directory: rec_len % 4 != 0 - offset=4, inode=2239623941, rec_len=29527, size=60 fake=0 EXT4-fs warning (device loop0): empty_inline_dir:1875: bad inline directory (dir #12) - inode 2239623941, rec_len 29527, name_len 58inline size 60 EXT4-fs error (device loop0): ext4_read_inline_dir:1614: inode #12: block 7: comm syz-executor: path /0/file1/file0: bad entry in directory: rec_len % 4 != 0 - offset=24, inode=2239623941, rec_len=29527, size=148 fake=0 EXT4-fs error (device loop0): ext4_read_inline_dir:1614: inode #12: block 7: comm syz-executor: path /0/file1/file0: bad entry in directory: rec_len % 4 != 0 - offset=24, inode=2239623941, rec_len=29527, size=148 fake=0 EXT4-fs warning (device loop0): empty_inline_dir:1875: bad inline directory (dir #12) - inode 2239623941, rec_len 29527, name_len 58inline size 60 EXT4-fs warning (device loop0): empty_inline_dir:1875: bad inline directory (dir #12) - inode 2239623941, rec_len 29527, name_len 58inline size 60 EXT4-fs warning (device loop0): empty_inline_dir:1875: bad inline directory (dir #12) - inode 2239623941, rec_len 29527, name_len 58inline size 60 EXT4-fs warning (device loop0): empty_inline_dir:1875: bad inline directory (dir #12) - inode 2239623941, rec_len 29527, name_len 58inline size 60 EXT4-fs warning (device loop0): empty_inline_dir:1875: bad inline directory (dir #12) - inode 2239623941, rec_len 29527, name_len 58inline size 60 EXT4-fs warning (device loop0): empty_inline_dir:1875: bad inline directory (dir #12) - inode 2239623941, rec_len 29527, name_len 58inline size 60 EXT4-fs warning (device loop0): empty_inline_dir:1875: bad inline directory (dir #12) - inode 2239623941, rec_len 29527, name_len 58inline size 60 EXT4-fs warning (device loop0): empty_inline_dir:1875: bad inline directory (dir #12) - inode 2239623941, rec_len 29527, name_len 58inline size 60