------------[ cut here ]------------ kernel BUG at fs/ocfs2/suballoc.c:922! Oops: invalid opcode: 0000 [#1] SMP KASAN NOPTI CPU: 0 UID: 0 PID: 5319 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_reserve_suballoc_bits+0x40c6/0x4850 fs/ocfs2/suballoc.c:922 Code: 00 00 e9 2b f1 ff ff 89 d9 80 e1 07 80 c1 03 38 c1 0f 8c cc da ff ff 48 89 df e8 e5 86 42 fe e9 bf da ff ff e8 6b d2 d0 fd 90 <0f> 0b 44 89 f1 80 e1 07 80 c1 03 38 c1 0f 8c 62 dc ff ff 4c 89 f7 RSP: 0018:ffffc9000f2763c0 EFLAGS: 00010283 RAX: ffffffff83f74b75 RBX: 00000000ffffffff RCX: 0000000000100000 RDX: ffffc9000f739000 RSI: 00000000000a915d RDI: 00000000000a915e RBP: ffffc9000f276890 R08: ffffffff907a897f R09: 1ffffffff20f512f R10: dffffc0000000000 R11: fffffbfff20f5130 R12: ffff88804443dc60 R13: ffff888042687e00 R14: dffffc0000000000 R15: fffff52001e4eca4 FS: 00007fdaac1f56c0(0000) GS:ffff88808c2bb000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f91c6b6d490 CR3: 000000001f796000 CR4: 0000000000352ef0 Call Trace: ocfs2_reserve_cluster_bitmap_bits+0xc4/0x1d0 fs/ocfs2/suballoc.c:1250 ocfs2_local_alloc_reserve_for_window fs/ocfs2/localalloc.c:1106 [inline] ocfs2_local_alloc_slide_window fs/ocfs2/localalloc.c:1242 [inline] ocfs2_reserve_local_alloc_bits+0x8d0/0x2680 fs/ocfs2/localalloc.c:669 ocfs2_reserve_clusters_with_limit+0x1b9/0xc20 fs/ocfs2/suballoc.c:1284 ocfs2_reserve_clusters fs/ocfs2/suballoc.c:1345 [inline] ocfs2_lock_allocators+0x2d1/0x5f0 fs/ocfs2/suballoc.c:3120 ocfs2_write_begin_nolock+0x1b7b/0x41f0 fs/ocfs2/aops.c:1720 ocfs2_write_begin+0x1ba/0x310 fs/ocfs2/aops.c:1885 generic_perform_write+0x2d5/0x8f0 mm/filemap.c:4374 ocfs2_file_write_iter+0x1706/0x1f10 fs/ocfs2/file.c:2481 aio_write+0x5d0/0x870 fs/aio.c:1687 __io_submit_one fs/aio.c:-1 [inline] io_submit_one+0x798/0x13d0 fs/aio.c:2106 __do_sys_io_submit fs/aio.c:2165 [inline] __se_sys_io_submit+0x195/0x340 fs/aio.c:2135 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fdaafd9e159 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:00007fdaac1f4fe8 EFLAGS: 00000246 ORIG_RAX: 00000000000000d1 RAX: ffffffffffffffda RBX: 00007fdab0025fa0 RCX: 00007fdaafd9e159 RDX: 0000200000000540 RSI: 000000000000003b RDI: 00007fdab0b67000 RBP: 00007fdaafe3506b R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fdab0026038 R14: 00007fdab0025fa0 R15: 00007ffd444a7178 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:ocfs2_reserve_suballoc_bits+0x40c6/0x4850 fs/ocfs2/suballoc.c:922 Code: 00 00 e9 2b f1 ff ff 89 d9 80 e1 07 80 c1 03 38 c1 0f 8c cc da ff ff 48 89 df e8 e5 86 42 fe e9 bf da ff ff e8 6b d2 d0 fd 90 <0f> 0b 44 89 f1 80 e1 07 80 c1 03 38 c1 0f 8c 62 dc ff ff 4c 89 f7 RSP: 0018:ffffc9000f2763c0 EFLAGS: 00010283 RAX: ffffffff83f74b75 RBX: 00000000ffffffff RCX: 0000000000100000 RDX: ffffc9000f739000 RSI: 00000000000a915d RDI: 00000000000a915e RBP: ffffc9000f276890 R08: ffffffff907a897f R09: 1ffffffff20f512f R10: dffffc0000000000 R11: fffffbfff20f5130 R12: ffff88804443dc60 R13: ffff888042687e00 R14: dffffc0000000000 R15: fffff52001e4eca4 FS: 00007fdaac1f56c0(0000) GS:ffff88808c2bb000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f3f25db8120 CR3: 000000001f796000 CR4: 0000000000352ef0