================================================================== 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_convert_inline_data_nolock+0x313/0xcc0 fs/ext4/inline.c:1242 Read of size 68 at addr ffff88810dc41c80 by task syz.1.18/425 CPU: 0 PID: 425 Comm: syz.1.18 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/09/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+0x100/0x140 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_convert_inline_data_nolock+0x313/0xcc0 fs/ext4/inline.c:1242 ext4_try_add_inline_entry+0x73d/0xa70 fs/ext4/inline.c:1367 ext4_add_entry+0x674/0xf90 fs/ext4/namei.c:2414 ext4_mkdir+0x509/0xc60 fs/ext4/namei.c:3019 vfs_mkdir+0x42c/0x600 fs/namei.c:3798 do_mkdirat+0x14c/0x340 fs/namei.c:3820 __do_sys_mkdirat fs/namei.c:3831 [inline] __se_sys_mkdirat fs/namei.c:3829 [inline] __x64_sys_mkdirat+0x7b/0x90 fs/namei.c:3829 do_syscall_64+0x31/0x40 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x61/0xcb RIP: 0033:0x7f0e674c4cc7 Code: 00 66 90 48 89 f2 b9 00 01 00 00 48 89 fe bf 9c ff ff ff e9 db f7 ff ff 66 2e 0f 1f 84 00 00 00 00 00 90 b8 02 01 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fffbedd39d8 EFLAGS: 00000246 ORIG_RAX: 0000000000000102 RAX: ffffffffffffffda RBX: 00007fffbedd3a60 RCX: 00007f0e674c4cc7 RDX: 00000000000001ff RSI: 0000200000000080 RDI: 00000000ffffff9c RBP: 0000200000000140 R08: 0000200000000080 R09: 0000000000000000 R10: 0000200000000140 R11: 0000000000000246 R12: 0000200000000080 R13: 00007fffbedd3a20 R14: 0000000000000000 R15: 0000000000000000 Allocated by task 342: 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_slab_alloc+0xb7/0xe0 mm/kasan/common.c:463 kasan_slab_alloc include/linux/kasan.h:244 [inline] slab_post_alloc_hook+0x5d/0x2f0 mm/slab.h:580 slab_alloc_node mm/slub.c:2952 [inline] slab_alloc mm/slub.c:2960 [inline] kmem_cache_alloc+0x15a/0x2d0 mm/slub.c:2965 kmem_cache_zalloc include/linux/slab.h:657 [inline] __kernfs_new_node+0xe1/0x670 fs/kernfs/dir.c:662 kernfs_new_node+0x150/0x260 fs/kernfs/dir.c:739 __kernfs_create_file+0x4e/0x270 fs/kernfs/file.c:987 sysfs_add_file_mode_ns+0x29a/0x350 fs/sysfs/file.c:306 sysfs_create_file_ns+0x12a/0x1b0 fs/sysfs/file.c:332 sysfs_create_file include/linux/sysfs.h:599 [inline] device_create_file+0x10e/0x1c0 drivers/base/core.c:2644 device_add+0x4a5/0xc00 drivers/base/core.c:3217 netdev_register_kobject+0x18e/0x330 net/core/net-sysfs.c:1997 register_netdevice+0xdae/0x13a0 net/core/dev.c:10069 __ip_tunnel_create+0x2c7/0x390 net/ipv4/ip_tunnel.c:267 ip_tunnel_init_net+0x2be/0x730 net/ipv4/ip_tunnel.c:1069 ipgre_init_net+0x24/0x30 net/ipv4/ip_gre.c:1036 ops_init+0x2c0/0x470 net/core/net_namespace.c:144 setup_net+0x34f/0xae0 net/core/net_namespace.c:345 copy_net_ns+0x314/0x520 net/core/net_namespace.c:486 create_new_namespaces+0x3a8/0x650 kernel/nsproxy.c:110 unshare_nsproxy_namespaces+0x120/0x170 kernel/nsproxy.c:231 ksys_unshare+0x4fa/0x820 kernel/fork.c:3156 __do_sys_unshare kernel/fork.c:3224 [inline] __se_sys_unshare kernel/fork.c:3222 [inline] __x64_sys_unshare+0x38/0x40 kernel/fork.c:3222 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 ffff88810dc41c30 which belongs to the cache kernfs_node_cache of size 144 The buggy address is located 80 bytes inside of 144-byte region [ffff88810dc41c30, ffff88810dc41cc0) The buggy address belongs to the page: page:ffffea0004371040 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10dc41 flags: 0x4000000000000200(slab) raw: 4000000000000200 dead000000000100 dead000000000122 ffff88810018aa80 raw: 0000000000000000 0000000000130013 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0x112cc0(GFP_USER|__GFP_NOWARN|__GFP_NORETRY), pid 342, ts 27480003136, free_ts 27477946334 set_page_owner include/linux/page_owner.h:35 [inline] post_alloc_hook mm/page_alloc.c:2456 [inline] prep_new_page+0x176/0x190 mm/page_alloc.c:2462 get_page_from_freelist+0x225f/0x23f0 mm/page_alloc.c:4254 __alloc_pages_nodemask+0x29a/0x640 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+0x2f8/0x4c0 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] kmem_cache_alloc+0x1a4/0x2d0 mm/slub.c:2965 kmem_cache_zalloc include/linux/slab.h:657 [inline] __kernfs_new_node+0xe1/0x670 fs/kernfs/dir.c:662 kernfs_new_node+0x150/0x260 fs/kernfs/dir.c:739 __kernfs_create_file+0x4e/0x270 fs/kernfs/file.c:987 sysfs_add_file_mode_ns+0x29a/0x350 fs/sysfs/file.c:306 create_files fs/sysfs/group.c:64 [inline] internal_create_group+0x492/0xd00 fs/sysfs/group.c:149 sysfs_create_group+0x1f/0x30 fs/sysfs/group.c:175 netdev_queue_add_kobject net/core/net-sysfs.c:1655 [inline] netdev_queue_update_kobjects+0x18c/0x390 net/core/net-sysfs.c:1694 register_queue_kobjects net/core/net-sysfs.c:1755 [inline] netdev_register_kobject+0x281/0x330 net/core/net-sysfs.c:2001 register_netdevice+0xdae/0x13a0 net/core/dev.c:10069 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/0x390 mm/page_alloc.c:5454 __free_slab+0xcf/0x190 mm/slub.c:1899 free_slab mm/slub.c:1914 [inline] discard_slab mm/slub.c:1920 [inline] unfreeze_partials+0x150/0x180 mm/slub.c:2415 put_cpu_partial+0xc1/0x180 mm/slub.c:2451 __slab_free+0x2c9/0x3a0 mm/slub.c:3100 do_slab_free mm/slub.c:3196 [inline] ___cache_free+0x10e/0x130 mm/slub.c:3215 qlink_free+0x50/0x90 mm/kasan/quarantine.c:157 qlist_free_all+0x5f/0xb0 mm/kasan/quarantine.c:176 kasan_quarantine_reduce+0x14a/0x160 mm/kasan/quarantine.c:283 __kasan_slab_alloc+0x2f/0xe0 mm/kasan/common.c:440 kasan_slab_alloc include/linux/kasan.h:244 [inline] slab_post_alloc_hook+0x5d/0x2f0 mm/slab.h:580 slab_alloc_node mm/slub.c:2952 [inline] slab_alloc mm/slub.c:2960 [inline] kmem_cache_alloc_trace+0x155/0x2e0 mm/slub.c:2977 kmalloc include/linux/slab.h:555 [inline] netdev_name_node_alloc net/core/dev.c:241 [inline] netdev_name_node_head_alloc net/core/dev.c:255 [inline] register_netdevice+0x209/0x13a0 net/core/dev.c:9993 register_netdev+0x3e/0x50 net/core/dev.c:10193 loopback_net_init+0x74/0x150 drivers/net/loopback.c:216 Memory state around the buggy address: ffff88810dc41b80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc fc ffff88810dc41c00: fc fc fc fc fc fc 00 00 00 00 00 00 00 00 00 00 >ffff88810dc41c80: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc ^ ffff88810dc41d00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88810dc41d80: 00 00 fc fc fc fc fc fc fc fc 00 00 00 00 00 00 ================================================================== EXT4-fs error (device loop1): ext4_check_all_de:659: inode #12: block 7: comm syz.1.18: bad entry in directory: directory entry overrun - offset=0, inode=901261600, rec_len=7976, size=124 fake=0