======================================================= ocfs2: Mounting device (7,0) on (node local, slot 0) with ordered data mode. ================================================================== BUG: KASAN: slab-out-of-bounds in ocfs2_find_smallest_chain fs/ocfs2/suballoc.c:413 [inline] BUG: KASAN: slab-out-of-bounds in ocfs2_block_group_alloc_contig fs/ocfs2/suballoc.c:430 [inline] BUG: KASAN: slab-out-of-bounds in ocfs2_block_group_alloc fs/ocfs2/suballoc.c:699 [inline] BUG: KASAN: slab-out-of-bounds in ocfs2_reserve_suballoc_bits+0xb28/0x3b9c fs/ocfs2/suballoc.c:834 Read of size 4 at addr ffff0000c5ad30b4 by task syz.0.16/7502 CPU: 1 UID: 0 PID: 7502 Comm: syz.0.16 Not tainted 6.16.0-rc2-syzkaller-00009-g9aa9b43d689e #0 PREEMPT Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 Call trace: show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:501 (C) __dump_stack+0x30/0x40 lib/dump_stack.c:94 dump_stack_lvl+0xd8/0x12c lib/dump_stack.c:120 print_address_description+0xa8/0x254 mm/kasan/report.c:408 print_report+0x68/0x84 mm/kasan/report.c:521 kasan_report+0xb0/0x110 mm/kasan/report.c:634 __asan_report_load4_noabort+0x20/0x2c mm/kasan/report_generic.c:380 ocfs2_find_smallest_chain fs/ocfs2/suballoc.c:413 [inline] ocfs2_block_group_alloc_contig fs/ocfs2/suballoc.c:430 [inline] ocfs2_block_group_alloc fs/ocfs2/suballoc.c:699 [inline] ocfs2_reserve_suballoc_bits+0xb28/0x3b9c fs/ocfs2/suballoc.c:834 ocfs2_reserve_new_metadata_blocks+0x368/0x810 fs/ocfs2/suballoc.c:984 ocfs2_mknod+0xbd8/0x1cf0 fs/ocfs2/namei.c:347 ocfs2_create+0x190/0x474 fs/ocfs2/namei.c:673 lookup_open fs/namei.c:3708 [inline] open_last_lookups fs/namei.c:3807 [inline] path_openat+0x12d8/0x2c40 fs/namei.c:4043 do_filp_open+0x18c/0x36c fs/namei.c:4073 do_sys_openat2+0x11c/0x1b4 fs/open.c:1437 do_sys_open fs/open.c:1452 [inline] __do_sys_openat fs/open.c:1468 [inline] __se_sys_openat fs/open.c:1463 [inline] __arm64_sys_openat+0x120/0x158 fs/open.c:1463 __invoke_syscall arch/arm64/kernel/syscall.c:35 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:49 el0_svc_common+0x130/0x23c arch/arm64/kernel/syscall.c:132 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:151 el0_svc+0x58/0x17c arch/arm64/kernel/entry-common.c:767 el0t_64_sync_handler+0x78/0x108 arch/arm64/kernel/entry-common.c:786 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:600 Allocated by task 1: kasan_save_stack mm/kasan/common.c:47 [inline] kasan_save_track+0x40/0x78 mm/kasan/common.c:68 kasan_save_alloc_info+0x44/0x54 mm/kasan/generic.c:562 unpoison_slab_object mm/kasan/common.c:319 [inline] __kasan_slab_alloc+0x70/0x88 mm/kasan/common.c:345 kasan_slab_alloc include/linux/kasan.h:250 [inline] slab_post_alloc_hook mm/slub.c:4148 [inline] slab_alloc_node mm/slub.c:4197 [inline] kmem_cache_alloc_noprof+0x238/0x3e8 mm/slub.c:4204 __kernfs_new_node+0xe4/0x5c4 fs/kernfs/dir.c:637 kernfs_new_node+0xe8/0x1f4 fs/kernfs/dir.c:713 kernfs_create_dir_ns+0x58/0x12c fs/kernfs/dir.c:1083 internal_create_group+0x3b8/0xe28 fs/sysfs/group.c:170 sysfs_create_group+0x2c/0x3c fs/sysfs/group.c:209 dpm_sysfs_add+0x6c/0x260 drivers/base/power/sysfs.c:699 device_add+0x4d8/0xa60 drivers/base/core.c:3652 device_register+0x28/0x38 drivers/base/core.c:3774 tty_register_device_attr+0x368/0x7a0 drivers/tty/tty_io.c:3261 tty_register_device drivers/tty/tty_io.c:3196 [inline] tty_register_driver+0x48c/0x90c drivers/tty/tty_io.c:3460 legacy_pty_init+0x334/0x554 drivers/tty/pty.c:581 pty_init+0x14/0x28 drivers/tty/pty.c:943 do_one_initcall+0x250/0x990 init/main.c:1274 do_initcall_level+0x154/0x214 init/main.c:1336 do_initcalls+0x84/0xf4 init/main.c:1352 do_basic_setup+0x8c/0xa0 init/main.c:1371 kernel_init_freeable+0x2dc/0x444 init/main.c:1584 kernel_init+0x24/0x1dc init/main.c:1474 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:847 The buggy address belongs to the object at ffff0000c5ad3000 which belongs to the cache kernfs_node_cache of size 176 The buggy address is located 4 bytes to the right of allocated 176-byte region [ffff0000c5ad3000, ffff0000c5ad30b0) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x105ad3 flags: 0x5ffc00000000000(node=0|zone=2|lastcpupid=0x7ff) page_type: f5(slab) raw: 05ffc00000000000 ffff0000c18b4000 dead000000000122 0000000000000000 raw: 0000000000000000 0000000000110011 00000000f5000000 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff0000c5ad2f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff0000c5ad3000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff0000c5ad3080: 00 00 00 00 00 00 fc fc fc fc fc fc fc fc 00 00 ^ ffff0000c5ad3100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff0000c5ad3180: 00 00 00 00 fc fc fc fc fc fc fc fc 00 00 00 00 ==================================================================