ERROR: (device loop3): dbAdjCtl: the maximum free buddy is not the old root ERROR: (device loop3): remounting filesystem as read-only BUG at fs/jfs/jfs_dmap.c:3036 assert(bitno < 32) ------------[ cut here ]------------ kernel BUG at fs/jfs/jfs_dmap.c:3036! Oops: invalid opcode: 0000 [#1] SMP KASAN PTI CPU: 1 UID: 0 PID: 6719 Comm: syz.3.135 Not tainted syzkaller #0 PREEMPT_{RT,(full)} Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/02/2025 RIP: 0010:dbFindBits+0x19e/0x1a0 fs/jfs/jfs_dmap.c:3036 Code: ed fd 90 0f 0b e8 02 a5 84 fe 48 c7 c7 40 08 24 8b 48 c7 c6 80 05 24 8b ba dc 0b 00 00 48 c7 c1 20 10 24 8b e8 23 21 ed fd 90 <0f> 0b 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 55 41 57 41 RSP: 0018:ffffc9[ 169.356326][ T6719] RSP: 0018:ffffc9000fa6fa98 EFLAGS: 00010246 RAX: 0000000000000030 RBX: 0000000000000003 RCX: 4e77fc185e365300 RDX: ffffc9001285c000 RSI: 0000000000006ccf RDI: 0000000000006cd0 RBP: 00000000ffffffff R08: 0000000000000000 R09: 0000000000000000 R10: dffffc0000000000 R11: fffff52001f4def9 R12: 0000000000000008 R13: 0000000000000000 R14: 0000000000000008 R15: 0000000000000020 FS: 00007f64c3f596c0(0000) GS:ffff888126ef9000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fb2ef881000 CR3: 000000003bb5a000 CR4: 00000000003526f0 Call Trace: dbAllocDmapLev+0x16b/0x3c0 fs/jfs/jfs_dmap.c:1985 dbAllocCtl+0x14a/0x9c0 fs/jfs/jfs_dmap.c:1825 dbAllocAG+0xc2b/0xff0 fs/jfs/jfs_dmap.c:1472 dbDiscardAG+0x2df/0x900 fs/jfs/jfs_dmap.c:1608 jfs_ioc_trim+0x429/0x690 fs/jfs/jfs_discard.c:106 jfs_ioctl+0x2b8/0x3d0 fs/jfs/ioctl.c:131 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:597 [inline] __se_sys_ioctl+0xff/0x170 fs/ioctl.c:583 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xfa/0xfa0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f64c615f6c9 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 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 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f64c3f59038 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f64c63b6270 RCX: 00007f64c615f6c9 RDX: 0000200000000080 RSI: 00000000c0185879 RDI: 0000000000000009 RBP: 00007f64c61e1f91 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f64c63b6308 R14: 00007f64c63b6270 R15: 00007fff97b13468 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:dbFindBits+0x19e/0x1a0 fs/jfs/jfs_dmap.c:3036 Code: ed fd 90 0f 0b e8 02 a5 84 fe 48 c7 c7 40 08 24 8b 48 c7 c6 80 05 24 8b ba dc 0b 00 00 48 c7 c1 20 10 24 8b e8 23 21 ed fd 90 <0f> 0b 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 55 41 57 41 RSP: 0018:ffffc9000fa6fa98 EFLAGS: 00010246 RAX: 0000000000000030 RBX: 0000000000000003 RCX: 4e77fc185e365300 RDX: ffffc9001285c000 RSI: 0000000000006ccf RDI: 0000000000006cd0 RBP: 00000000ffffffff R08: 0000000000000000 R09: 0000000000000000 R10: dffffc0000000000 R11: fffff52001f4def9 R12: 0000000000000008 R13: 0000000000000000 R14: 0000000000000008 R15: 0000000000000020 FS: 00007f64c3f596c0(0000) GS:ffff888126ef9000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b2f709ff8 CR3: 000000003bb5a000 CR4: 00000000003526f0