loop0: detected capacity change from 0 to 32768 ======================================================= WARNING: The mand mount option has been deprecated and and is ignored by this kernel. Remove the mand option from the mount to silence this warning. ======================================================= JBD2: Ignoring recovery information on journal ocfs2: Mounting device (7,0) on (node local, slot 0) with ordered data mode. syz.0.0: attempt to access beyond end of device loop0: rw=34817, sector=19872, nr_sectors = 128 limit=19815 (syz.0.0,5326,0):ocfs2_dio_end_io:2420 ERROR: Direct IO failed, bytes = -5 ------------[ cut here ]------------ kernel BUG at fs/ocfs2/suballoc.c:2902! Oops: invalid opcode: 0000 [#1] SMP KASAN NOPTI CPU: 0 UID: 0 PID: 5326 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 86 ee f1 fd 48 c7 c7 c0 bf ef 8e 48 8b 74 24 38 4c 89 e2 e8 e2 36 22 01 e9 8e f3 ff ff e8 68 ee f1 fd 90 <0f> 0b e8 60 ee f1 fd 90 0f 0b 65 8b 1d 9a bd 6b 0f bf 07 00 00 00 RSP: 0018:ffffc9000e11f5c0 EFLAGS: 00010287 RAX: ffffffff83d45288 RBX: 00000000ffffffff RCX: 0000000000100000 RDX: ffffc9000ece2000 RSI: 000000000001916b RDI: 000000000001916c RBP: ffffc9000e11f828 R08: 0000000000000020 R09: 00000000000000e4 R10: dffffc0000000000 R11: fffffbfff2065c7f R12: ffff888042794b88 R13: 1ffff110084f2971 R14: 1ffff92001c23ecc R15: ffff888043541e00 FS: 00007fc0c4fbb6c0(0000) GS:ffff88808c81f000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f767657f000 CR3: 00000000439b9000 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+0x1ec/0x8d0 fs/ocfs2/super.c:1824 generic_shutdown_super+0x13d/0x2d0 fs/super.c:647 kill_block_super+0x44/0x90 fs/super.c:1665 deactivate_locked_super+0xbc/0x130 fs/super.c:477 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+0x1fa/0x730 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:318 [inline] do_syscall_64+0x353/0x580 arch/x86/entry/syscall_64.c:100 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fc0c419ce59 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:00007fc0c4fbafe8 EFLAGS: 00000246 ORIG_RAX: 0000000000000028 RAX: 0000000000060000 RBX: 00007fc0c4415fa0 RCX: 00007fc0c419ce59 RDX: 0000000000000000 RSI: 0000000000000005 RDI: 0000000000000006 RBP: 00007fc0c4232e6f R08: 0000000000000000 R09: 0000000000000000 R10: 0000000080000002 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fc0c4416038 R14: 00007fc0c4415fa0 R15: 00007ffdba5d8d08 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 86 ee f1 fd 48 c7 c7 c0 bf ef 8e 48 8b 74 24 38 4c 89 e2 e8 e2 36 22 01 e9 8e f3 ff ff e8 68 ee f1 fd 90 <0f> 0b e8 60 ee f1 fd 90 0f 0b 65 8b 1d 9a bd 6b 0f bf 07 00 00 00 RSP: 0018:ffffc9000e11f5c0 EFLAGS: 00010287 RAX: ffffffff83d45288 RBX: 00000000ffffffff RCX: 0000000000100000 RDX: ffffc9000ece2000 RSI: 000000000001916b RDI: 000000000001916c RBP: ffffc9000e11f828 R08: 0000000000000020 R09: 00000000000000e4 R10: dffffc0000000000 R11: fffffbfff2065c7f R12: ffff888042794b88 R13: 1ffff110084f2971 R14: 1ffff92001c23ecc R15: ffff888043541e00 FS: 00007fc0c4fbb6c0(0000) GS:ffff88808c81f000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f767657f000 CR3: 00000000439b9000 CR4: 0000000000352ef0