loop0: detected capacity change from 0 to 32768 ------------[ cut here ]------------ UBSAN: array-index-out-of-bounds in fs/ocfs2/alloc.c:1839:11 index 0 is out of range for type 'struct ocfs2_extent_rec[] __counted_by(l_count)' (aka 'struct ocfs2_extent_rec[]') CPU: 0 UID: 0 PID: 5340 Comm: syz.0.0 Not tainted syzkaller #0 PREEMPT(full) Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 Call Trace: dump_stack_lvl+0x189/0x250 lib/dump_stack.c:120 ubsan_epilogue+0xa/0x40 lib/ubsan.c:233 __ubsan_handle_out_of_bounds+0xe9/0xf0 lib/ubsan.c:455 __ocfs2_find_path+0x606/0xa40 fs/ocfs2/alloc.c:1839 ocfs2_find_leaf+0xab/0x1c0 fs/ocfs2/alloc.c:1947 ocfs2_get_clusters_nocache+0x172/0xc60 fs/ocfs2/extent_map.c:418 ocfs2_get_clusters+0x505/0xa70 fs/ocfs2/extent_map.c:631 ocfs2_extent_map_get_blocks+0x202/0x6a0 fs/ocfs2/extent_map.c:678 ocfs2_map_slot_buffers fs/ocfs2/slot_map.c:375 [inline] ocfs2_init_slot_info+0x92d/0x1200 fs/ocfs2/slot_map.c:424 ocfs2_initialize_super fs/ocfs2/super.c:2220 [inline] ocfs2_fill_super+0x2c0c/0x63a0 fs/ocfs2/super.c:993 get_tree_bdev_flags+0x40e/0x4d0 fs/super.c:1691 vfs_get_tree+0x92/0x2a0 fs/super.c:1751 fc_mount fs/namespace.c:1199 [inline] do_new_mount_fc fs/namespace.c:3636 [inline] do_new_mount+0x302/0xa10 fs/namespace.c:3712 do_mount fs/namespace.c:4035 [inline] __do_sys_mount fs/namespace.c:4224 [inline] __se_sys_mount+0x313/0x410 fs/namespace.c:4201 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xfa/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f6d4fd90f6a Code: d8 64 89 02 48 c7 c0 ff ff ff ff eb a6 e8 de 1a 00 00 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f6d50cfde68 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007f6d50cfdef0 RCX: 00007f6d4fd90f6a RDX: 0000200000004440 RSI: 0000200000000040 RDI: 00007f6d50cfdeb0 RBP: 0000200000004440 R08: 00007f6d50cfdef0 R09: 0000000000000800 R10: 0000000000000800 R11: 0000000000000246 R12: 0000200000000040 R13: 00007f6d50cfdeb0 R14: 000000000000442c R15: 00002000000004c0 ---[ end trace ]---