loop0: detected capacity change from 0 to 32768 JBD2: Ignoring recovery information on journal ocfs2: Mounting device (7,0) on (node local, slot 0) with ordered data mode. (syz.0.0,5320,0):ocfs2_check_set_options:1243 ERROR: Invalid heartbeat mount options syz.0.0: attempt to access beyond end of device loop0: rw=8423425, sector=22664, nr_sectors = 8 limit=730 (syz.0.0,5320,0):ocfs2_dio_end_io:2420 ERROR: Direct IO failed, bytes = -5 OCFS2: ERROR (device loop0): int ocfs2_validate_dx_root(struct super_block *, struct buffer_head *): Dir Index Root # 0 has bad signature On-disk corruption discovered. Please run fsck.ocfs2 once the filesystem is unmounted. (syz.0.0,5320,0):ocfs2_find_entry_dx:1066 ERROR: status = -30 ------------[ cut here ]------------ kernel BUG at fs/ocfs2/suballoc.c:2902! Oops: invalid opcode: 0000 [#1] SMP KASAN NOPTI CPU: 0 UID: 0 PID: 5320 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 04/01/2014 RIP: 0010:_ocfs2_free_suballoc_bits+0x24f9/0x2760 fs/ocfs2/suballoc.c:2902 Code: fe e9 84 f3 ff ff e8 c6 c2 d7 fd 48 c7 c7 e0 a6 13 8f 48 8b 74 24 38 4c 89 e2 e8 22 cd 24 01 e9 8e f3 ff ff e8 a8 c2 d7 fd 90 <0f> 0b e8 a0 c2 d7 fd 90 0f 0b 65 8b 1d 6e 7d 7f 0f bf 07 00 00 00 RSP: 0018:ffffc9000f70f5c0 EFLAGS: 00010283 RAX: ffffffff83ef52b8 RBX: 00000000ffffffff RCX: 0000000000100000 RDX: ffffc9000edc1000 RSI: 000000000000170c RDI: 000000000000170d RBP: ffffc9000f70f828 R08: 0000000000000020 R09: 000000000000001f R10: dffffc0000000000 R11: fffffbfff20afa47 R12: ffff8880441af808 R13: 1ffff11008835f01 R14: 1ffff92001ee1ecc R15: ffff88804460de00 FS: 00007f78171dd6c0(0000) GS:ffff88808c533000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f780a2ff000 CR3: 00000000445a5000 CR4: 0000000000352ef0 Call Trace: _ocfs2_free_clusters+0x5c6/0xa80 fs/ocfs2/suballoc.c:3020 ocfs2_sync_local_to_main+0x522/0xc00 fs/ocfs2/localalloc.c:989 ocfs2_shutdown_local_alloc+0x6e8/0xa50 fs/ocfs2/localalloc.c:447 ocfs2_dismount_volume+0x1e2/0x820 fs/ocfs2/super.c:1824 generic_shutdown_super+0x13d/0x2d0 fs/super.c:769 kill_block_super+0x44/0xa0 fs/super.c:1918 deactivate_locked_super+0xbc/0x110 fs/super.c:603 cleanup_mnt+0x3d3/0x460 fs/namespace.c:1317 task_work_run+0x1d9/0x270 kernel/task_work.c:233 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline] __exit_to_user_mode_loop kernel/entry/common.c:70 [inline] exit_to_user_mode_loop+0x204/0x770 kernel/entry/common.c:101 __exit_to_user_mode_prepare include/linux/irq-entry-common.h:207 [inline] syscall_exit_to_user_mode_prepare include/linux/irq-entry-common.h:230 [inline] syscall_exit_to_user_mode include/linux/entry-common.h:336 [inline] do_syscall_64+0x328/0x520 arch/x86/entry/syscall_64.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f781639e0d9 Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 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:00007f78171dcfe8 EFLAGS: 00000246 ORIG_RAX: 00000000000001b4 RAX: 0000000000000000 RBX: 00007f7816625fa0 RCX: 00007f781639e0d9 RDX: 0000000000000000 RSI: ffffffffffffffff RDI: 0000000000000000 RBP: 00007f7816435024 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f7816626038 R14: 00007f7816625fa0 R15: 00007fffe98d1d48 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:_ocfs2_free_suballoc_bits+0x24f9/0x2760 fs/ocfs2/suballoc.c:2902 Code: fe e9 84 f3 ff ff e8 c6 c2 d7 fd 48 c7 c7 e0 a6 13 8f 48 8b 74 24 38 4c 89 e2 e8 22 cd 24 01 e9 8e f3 ff ff e8 a8 c2 d7 fd 90 <0f> 0b e8 a0 c2 d7 fd 90 0f 0b 65 8b 1d 6e 7d 7f 0f bf 07 00 00 00 RSP: 0018:ffffc9000f70f5c0 EFLAGS: 00010283 RAX: ffffffff83ef52b8 RBX: 00000000ffffffff RCX: 0000000000100000 RDX: ffffc9000edc1000 RSI: 000000000000170c RDI: 000000000000170d RBP: ffffc9000f70f828 R08: 0000000000000020 R09: 000000000000001f R10: dffffc0000000000 R11: fffffbfff20afa47 R12: ffff8880441af808 R13: 1ffff11008835f01 R14: 1ffff92001ee1ecc R15: ffff88804460de00 FS: 00007f78171dd6c0(0000) GS:ffff88808c533000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f780a2ff000 CR3: 00000000445a5000 CR4: 0000000000352ef0