ERROR: (device loop3): dbAllocNext: Corrupt dmap page ERROR: (device loop3): remounting filesystem as read-only BUG at fs/jfs/jfs_dmap.c:3021 assert(nb <= DBWORD) ------------[ cut here ]------------ kernel BUG at fs/jfs/jfs_dmap.c:3021! Oops: invalid opcode: 0000 [#1] SMP KASAN PTI CPU: 1 UID: 0 PID: 6684 Comm: syz.3.79 Tainted: G W syzkaller #0 PREEMPT_{RT,(full)} Tainted: [W]=WARN Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2025 RIP: 0010:dbFindBits+0x177/0x1a0 fs/jfs/jfs_dmap.c:3021 Code: e9 20 ff ff ff e8 d9 0e 8a fe 48 c7 c7 40 75 43 8b 48 c7 c6 80 72 43 8b ba cd 0b 00 00 48 c7 c1 00 7d 43 8b e8 1a 03 f3 fd 90 <0f> 0b e8 b2 0e 8a fe 48 c7 c7 40 75 43 8b 48 c7 c6 80 72 43 8b ba RSP: 0018:ffffc900045bfab8 EFLAGS: 00010246 RAX: 0000000000000032 RBX: 000000000000000a RCX: 702e7854d4566900 RDX: ffffc9000db31000 RSI: 000000000000079e RDI: 000000000000079f RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: dffffc0000000000 R11: fffff520008b7efd R12: 000000000008fba0 R13: 000000000000000a R14: 0000000000000400 R15: ffff888028ced000 FS: 00007efc786866c0(0000) GS:ffff8881269c4000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000110c3928c5 CR3: 000000002f144000 CR4: 00000000003526f0 Call Trace: dbAllocDmapLev+0x16b/0x3c0 fs/jfs/jfs_dmap.c:1985 dbAllocCtl+0x14a/0x9c0 fs/jfs/jfs_dmap.c:1825 dbAllocAG+0x1e6/0xff0 fs/jfs/jfs_dmap.c:1353 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:598 [inline] __se_sys_ioctl+0xfc/0x170 fs/ioctl.c:584 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7efc7a41ebe9 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:00007efc78686038 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007efc7a645fa0 RCX: 00007efc7a41ebe9 RDX: 0000200000000000 RSI: 00000000c0185879 RDI: 0000000000000007 RBP: 00007efc7a4a1e19 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007efc7a646038 R14: 00007efc7a645fa0 R15: 00007fff9fef64e8 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:dbFindBits+0x177/0x1a0 fs/jfs/jfs_dmap.c:3021 Code: e9 20 ff ff ff e8 d9 0e 8a fe 48 c7 c7 40 75 43 8b 48 c7 c6 80 72 43 8b ba cd 0b 00 00 48 c7 c1 00 7d 43 8b e8 1a 03 f3 fd 90 <0f> 0b e8 b2 0e 8a fe 48 c7 c7 40 75 43 8b 48 c7 c6 80 72 43 8b ba RSP: 0018:ffffc900045bfab8 EFLAGS: 00010246 RAX: 0000000000000032 RBX: 000000000000000a RCX: 702e7854d4566900 RDX: ffffc9000db31000 RSI: 000000000000079e RDI: 000000000000079f RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: dffffc0000000000 R11: fffff520008b7efd R12: 000000000008fba0 R13: 000000000000000a R14: 0000000000000400 R15: ffff888028ced000 FS: 00007efc786866c0(0000) GS:ffff8881269c4000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000110c3928c5 CR3: 000000002f144000 CR4: 00000000003526f0