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=24224, nr_sectors = 128 limit=24183 (syz.0.0,5329,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: 5329 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 96 bb d7 fd 48 c7 c7 e0 b7 13 8f 48 8b 74 24 38 4c 89 e2 e8 d2 02 23 01 e9 8e f3 ff ff e8 78 bb d7 fd 90 <0f> 0b e8 70 bb d7 fd 90 0f 0b 65 8b 1d ca a9 7e 0f bf 07 00 00 00 RSP: 0018:ffffc9000e4775c0 EFLAGS: 00010283 RAX: ffffffff83eec658 RBX: 00000000ffffffff RCX: 0000000000100000 RDX: ffffc9000ef7a000 RSI: 00000000000066ad RDI: 00000000000066ae RBP: ffffc9000e477828 R08: 0000000000000020 R09: 000000000000001c R10: dffffc0000000000 R11: fffffbfff20af57f R12: ffff888042bda028 R13: 1ffff1100857b405 R14: 1ffff92001c8eecc R15: ffff8880431cde00 FS: 00007ff5d80816c0(0000) GS:ffff88808c549000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f9ea854f000 CR3: 0000000000b74000 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:0x7ff5d719de99 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:00007ff5d8080fe8 EFLAGS: 00000246 ORIG_RAX: 00000000000001b4 RAX: 0000000000000000 RBX: 00007ff5d7425fa0 RCX: 00007ff5d719de99 RDX: 0000000000000000 RSI: ffffffffffffffff RDI: 0000000000000000 RBP: 00007ff5d7233eaf R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ff5d7426038 R14: 00007ff5d7425fa0 R15: 00007ffdeaec7908 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 96 bb d7 fd 48 c7 c7 e0 b7 13 8f 48 8b 74 24 38 4c 89 e2 e8 d2 02 23 01 e9 8e f3 ff ff e8 78 bb d7 fd 90 <0f> 0b e8 70 bb d7 fd 90 0f 0b 65 8b 1d ca a9 7e 0f bf 07 00 00 00 RSP: 0018:ffffc9000e4775c0 EFLAGS: 00010283 RAX: ffffffff83eec658 RBX: 00000000ffffffff RCX: 0000000000100000 RDX: ffffc9000ef7a000 RSI: 00000000000066ad RDI: 00000000000066ae RBP: ffffc9000e477828 R08: 0000000000000020 R09: 000000000000001c R10: dffffc0000000000 R11: fffffbfff20af57f R12: ffff888042bda028 R13: 1ffff1100857b405 R14: 1ffff92001c8eecc R15: ffff8880431cde00 FS: 00007ff5d80816c0(0000) GS:ffff88808c549000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f9ea854f000 CR3: 0000000000b74000 CR4: 0000000000352ef0