ERROR: (device loop0): dbAdjCtl: the maximum free buddy is not the old root ERROR: (device loop0): remounting filesystem as read-only ------------[ cut here ]------------ UBSAN: shift-out-of-bounds in fs/jfs/jfs_dmap.c:2641:11 shift exponent 32 is too large for 32-bit type 'int' CPU: 0 UID: 0 PID: 5330 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 Call Trace: dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120 ubsan_epilogue+0xa/0x30 lib/ubsan.c:233 __ubsan_handle_shift_out_of_bounds+0x385/0x410 lib/ubsan.c:494 dbSplit+0x1f8/0x200 fs/jfs/jfs_dmap.c:2641 dbAdjCtl+0x34c/0xa20 fs/jfs/jfs_dmap.c:2533 dbAllocDmap+0xc6/0x150 fs/jfs/jfs_dmap.c:2044 dbAlloc+0x46c/0xba0 fs/jfs/jfs_dmap.c:805 extBalloc fs/jfs/jfs_extent.c:336 [inline] extAlloc+0x57d/0x1020 fs/jfs/jfs_extent.c:127 jfs_get_block+0x358/0xad0 fs/jfs/inode.c:254 __block_write_begin_int+0x6c6/0x1910 fs/buffer.c:2142 block_write_begin+0x8d/0x120 fs/buffer.c:2253 jfs_write_begin+0x35/0x80 fs/jfs/inode.c:306 generic_perform_write+0x2e2/0x8f0 mm/filemap.c:4319 generic_file_write_iter+0x14a/0x680 mm/filemap.c:4462 new_sync_write fs/read_write.c:595 [inline] vfs_write+0x61d/0xb90 fs/read_write.c:688 ksys_write+0x150/0x270 fs/read_write.c:740 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x14d/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f9d3579c799 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:00007f9d366f0fe8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f9d35a16090 RCX: 00007f9d3579c799 RDX: 000000000208e24b RSI: 0000200000000000 RDI: 000000000000000d RBP: 00007f9d35832c99 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f9d35a16128 R14: 00007f9d35a16090 R15: 00007ffde4679398 ---[ end trace ]---