BUG at fs/jfs/jfs_dmap.c:3123 assert(bitno < 32) ------------[ cut here ]------------ kernel BUG at fs/jfs/jfs_dmap.c:3123! Oops: invalid opcode: 0000 [#1] SMP KASAN PTI CPU: 0 UID: 0 PID: 6173 Comm: syz.2.46 Not tainted syzkaller #0 PREEMPT_{RT,(full)} Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026 RIP: 0010:dbFindBits+0x19e/0x1a0 fs/jfs/jfs_dmap.c:3123 Code: b3 fd 90 0f 0b e8 02 ce 53 fe 48 c7 c7 20 e5 cd 8b 48 c7 c6 60 e2 cd 8b ba 33 0c 00 00 48 c7 c1 60 ed cd 8b e8 23 4a b3 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: 0000:ffffc90006d87550 EFLAGS: 00010246 RAX: 0000000000000030 RBX: 0000000000000000 RCX: 2fa8c5b90499d400 RDX: ffffc9001088c000 RSI: 0000000000000600 RDI: 0000000000000601 RBP: 00000000ffffffff R08: 0000000000000000 R09: 0000000000000000 R10: dffffc0000000000 R11: fffff52000db0e59 R12: 0000000000000001 R13: 0000000000000000 R14: 0000000000000001 R15: 0000000000000020 FS: 00007fe2842256c0(0000) GS:ffff888124709000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fe27b5e1000 CR3: 0000000034680000 CR4: 00000000003526f0 Call Trace: dbAllocNear+0x23f/0x3c0 fs/jfs/jfs_dmap.c:1330 dbAlloc+0x937/0xba0 fs/jfs/jfs_dmap.c:919 extBalloc fs/jfs/jfs_extent.c:336 [inline] extAlloc+0x57d/0x1010 fs/jfs/jfs_extent.c:127 jfs_get_block+0x351/0xad0 fs/jfs/inode.c:254 __block_write_begin_int+0x6c1/0x1930 fs/buffer.c:2043 block_write_begin+0x8d/0x120 fs/buffer.c:2157 jfs_write_begin+0x35/0x80 fs/jfs/inode.c:306 generic_perform_write+0x2ad/0x8a0 mm/filemap.c:4392 generic_file_write_iter+0xaf/0x330 mm/filemap.c:4535 new_sync_write fs/read_write.c:575 [inline] vfs_write+0x61e/0xbb0 fs/read_write.c:667 ksys_pwrite64 fs/read_write.c:774 [inline] __do_sys_pwrite64 fs/read_write.c:782 [inline] __se_sys_pwrite64 fs/read_write.c:779 [inline] __x64_sys_pwrite64+0x216/0x2d0 fs/read_write.c:779 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x16a/0x530 arch/x86/entry/syscall_64.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fe285ff94d9 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:00007fe284225028 EFLAGS: 00000246 ORIG_RAX: 0000000000000012 RAX: ffffffffffffffda RBX: 00007fe286276090 RCX: 00007fe285ff94d9 RDX: 0000000000000001 RSI: 0000200000002040 RDI: 0000000000000007 RBP: 00007fe28608804e R08: 0000000000000000 R09: 0000000000000000 R10: 000000000004fed3 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fe286276128 R14: 00007fe286276090 R15: 00007fff6b169f38 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:dbFindBits+0x19e/0x1a0 fs/jfs/jfs_dmap.c:3123 Code: b3 fd 90 0f 0b e8 02 ce 53 fe 48 c7 c7 20 e5 cd 8b 48 c7 c6 60 e2 cd 8b ba 33 0c 00 00 48 c7 c1 60 ed cd 8b e8 23 4a b3 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: 0000:ffffc90006d87550 EFLAGS: 00010246 RAX: 0000000000000030 RBX: 0000000000000000 RCX: 2fa8c5b90499d400 RDX: ffffc9001088c000 RSI: 0000000000000600 RDI: 0000000000000601 RBP: 00000000ffffffff R08: 0000000000000000 R09: 0000000000000000 R10: dffffc0000000000 R11: fffff52000db0e59 R12: 0000000000000001 R13: 0000000000000000 R14: 0000000000000001 R15: 0000000000000020 FS: 00007fe2842256c0(0000) GS:ffff888124709000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fe27ba9b000 CR3: 0000000034680000 CR4: 00000000003526f0