================================================================== BUG: KASAN: slab-out-of-bounds in ocfs2_replay_truncate_records fs/ocfs2/alloc.c:5959 [inline] BUG: KASAN: slab-out-of-bounds in __ocfs2_flush_truncate_log+0x670/0x10a4 fs/ocfs2/alloc.c:6054 Read of size 4 at addr ffff0000d0b5e2c0 by task syz-executor/4437 CPU: 0 PID: 4437 Comm: syz-executor Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/02/2026 Call trace: dump_backtrace+0x1c4/0x1f0 arch/arm64/kernel/stacktrace.c:158 show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:165 __dump_stack+0x30/0x40 lib/dump_stack.c:88 dump_stack_lvl+0xf4/0x15c lib/dump_stack.c:106 print_address_description+0x88/0x218 mm/kasan/report.c:316 print_report+0x50/0x68 mm/kasan/report.c:420 kasan_report+0xa8/0xfc mm/kasan/report.c:524 __asan_report_load4_noabort+0x2c/0x38 mm/kasan/report_generic.c:350 ocfs2_replay_truncate_records fs/ocfs2/alloc.c:5959 [inline] __ocfs2_flush_truncate_log+0x670/0x10a4 fs/ocfs2/alloc.c:6054 ocfs2_flush_truncate_log+0x4c/0x6c fs/ocfs2/alloc.c:6076 ocfs2_sync_fs+0x100/0x2c0 fs/ocfs2/super.c:402 sync_filesystem+0x1a0/0x218 fs/sync.c:66 generic_shutdown_super+0x74/0x32c fs/super.c:474 kill_block_super+0x78/0xe0 fs/super.c:1470 deactivate_locked_super+0xb4/0x128 fs/super.c:332 deactivate_super+0xe4/0x104 fs/super.c:363 cleanup_mnt+0x3a8/0x430 fs/namespace.c:1191 __cleanup_mnt+0x20/0x30 fs/namespace.c:1198 task_work_run+0x1f4/0x280 kernel/task_work.c:203 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline] do_notify_resume+0x20f8/0x2c84 arch/arm64/kernel/signal.c:1151 prepare_exit_to_user_mode arch/arm64/kernel/entry-common.c:137 [inline] exit_to_user_mode arch/arm64/kernel/entry-common.c:142 [inline] el0_svc+0x98/0x128 arch/arm64/kernel/entry-common.c:638 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:585 Allocated by task 1: kasan_save_stack mm/kasan/common.c:46 [inline] kasan_set_track+0x4c/0x80 mm/kasan/common.c:53 kasan_save_alloc_info+0x24/0x30 mm/kasan/generic.c:505 ____kasan_kmalloc mm/kasan/common.c:375 [inline] __kasan_kmalloc+0xa0/0xb8 mm/kasan/common.c:384 kasan_kmalloc include/linux/kasan.h:211 [inline] kmalloc_trace+0x7c/0x94 mm/slab_common.c:1031 kmalloc include/linux/slab.h:563 [inline] kzalloc include/linux/slab.h:699 [inline] kset_create lib/kobject.c:950 [inline] kset_create_and_add+0x64/0x16c lib/kobject.c:993 register_queue_kobjects net/core/net-sysfs.c:1764 [inline] netdev_register_kobject+0x1a0/0x2f4 net/core/net-sysfs.c:2017 register_netdevice+0xf28/0x1650 net/core/dev.c:10243 cfg80211_register_netdevice+0x12c/0x298 net/wireless/core.c:1454 ieee80211_if_add+0xb18/0x1730 net/mac80211/iface.c:2308 ieee80211_register_hw+0x247c/0x2fb4 net/mac80211/main.c:1407 mac80211_hwsim_new_radio+0x1f2c/0x409c drivers/net/wireless/mac80211_hwsim.c:4586 init_mac80211_hwsim+0x618/0x744 drivers/net/wireless/mac80211_hwsim.c:5841 do_one_initcall+0x278/0x9f0 init/main.c:1309 do_initcall_level+0x158/0x214 init/main.c:1382 do_initcalls+0x58/0xac init/main.c:1398 do_basic_setup+0x8c/0xa0 init/main.c:1417 kernel_init_freeable+0x35c/0x4f0 init/main.c:1637 kernel_init+0x24/0x1d8 init/main.c:1525 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:850 The buggy address belongs to the object at ffff0000d0b5e200 which belongs to the cache kmalloc-256 of size 256 The buggy address is located 192 bytes inside of 256-byte region [ffff0000d0b5e200, ffff0000d0b5e300) The buggy address belongs to the physical page: page:000000003a9394a2 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x110b5e head:000000003a9394a2 order:1 compound_mapcount:0 compound_pincount:0 flags: 0x5ffc00000010200(slab|head|node=0|zone=2|lastcpupid=0x7ff) raw: 05ffc00000010200 fffffc000342d800 dead000000000003 ffff0000c0002480 raw: 0000000000000000 0000000000100010 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff0000d0b5e180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff0000d0b5e200: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff0000d0b5e280: 00 00 00 fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff0000d0b5e300: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff0000d0b5e380: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ================================================================== ------------[ cut here ]------------ kernel BUG at fs/ocfs2/suballoc.c:2501! Internal error: Oops - BUG: 00000000f2000800 [#1] PREEMPT SMP Modules linked in: CPU: 1 PID: 4437 Comm: syz-executor Tainted: G B syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/02/2026 pstate: 82400005 (Nzcv daif +PAN -UAO +TCO -DIT -SSBS BTYPE=--) pc : _ocfs2_free_suballoc_bits+0xd84/0x1124 fs/ocfs2/suballoc.c:2501 lr : _ocfs2_free_suballoc_bits+0xd84/0x1124 fs/ocfs2/suballoc.c:2501 sp : ffff800020b97380 x29: ffff800020b974c0 x28: ffff0000c77a9ae0 x27: 00000000000005f8 x26: 0000001a21da8000 x25: ffff800009e669e4 x24: 00000000ffff0000 x23: ffff700004172e7c x22: ffff0000eacdde00 x21: 0000000000000e00 x20: 0000000000000e00 x19: dfff800000000000 x18: 1fffe00033e7697e x17: ffff80001537d000 x16: ffff800011b8ee98 x15: 0000000000000000 x14: 00000000fffffffc x13: 0000000000ff0100 x12: 0000000000000000 x11: ff00800009e6c6d4 x10: 0000000000000000 x9 : ffff800009e6c6d4 x8 : ffff0000dba69c00 x7 : 0000000000000000 x6 : ffff800009e669e4 x5 : 00000000ffff0000 x4 : 0000001a21da8000 x3 : 00000000000005f8 x2 : ffff0000c77a9ae0 x1 : 0000000000000e00 x0 : 00000000ffff05f8 Call trace: _ocfs2_free_suballoc_bits+0xd84/0x1124 fs/ocfs2/suballoc.c:2501 _ocfs2_free_clusters+0x534/0xa4c fs/ocfs2/suballoc.c:2601 ocfs2_free_clusters+0x50/0x68 fs/ocfs2/suballoc.c:2622 ocfs2_replay_truncate_records fs/ocfs2/alloc.c:5971 [inline] __ocfs2_flush_truncate_log+0x5e0/0x10a4 fs/ocfs2/alloc.c:6054 ocfs2_flush_truncate_log+0x4c/0x6c fs/ocfs2/alloc.c:6076 ocfs2_sync_fs+0x100/0x2c0 fs/ocfs2/super.c:402 sync_filesystem+0x1a0/0x218 fs/sync.c:66 generic_shutdown_super+0x74/0x32c fs/super.c:474 kill_block_super+0x78/0xe0 fs/super.c:1470 deactivate_locked_super+0xb4/0x128 fs/super.c:332 deactivate_super+0xe4/0x104 fs/super.c:363 cleanup_mnt+0x3a8/0x430 fs/namespace.c:1191 __cleanup_mnt+0x20/0x30 fs/namespace.c:1198 task_work_run+0x1f4/0x280 kernel/task_work.c:203 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline] do_notify_resume+0x20f8/0x2c84 arch/arm64/kernel/signal.c:1151 prepare_exit_to_user_mode arch/arm64/kernel/entry-common.c:137 [inline] exit_to_user_mode arch/arm64/kernel/entry-common.c:142 [inline] el0_svc+0x98/0x128 arch/arm64/kernel/entry-common.c:638 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:585 Code: 17fffe98 979917e0 d4210000 979917de (d4210000) ---[ end trace 0000000000000000 ]---