BUG at fs/jfs/jfs_dmap.c:2984 assert(bitno < 32) ------------[ cut here ]------------ kernel BUG at fs/jfs/jfs_dmap.c:2984! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 0 PID: 3603 Comm: syz-executor203 Not tainted 6.0.0-syzkaller-07994-ge8bc52cb8df8 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/22/2022 RIP: 0010:dbFindBits.cold+0xa1/0xa3 fs/jfs/jfs_dmap.c:2984 Code: fa e9 f8 99 93 f9 e8 37 18 35 f8 48 c7 c1 80 9b 29 8a ba a8 0b 00 00 48 c7 c6 00 9a 29 8a 48 c7 c7 40 9a 29 8a e8 62 7e f8 ff <0f> 0b e8 11 18 35 f8 49 63 d4 48 89 ee 48 c7 c7 e0 23 4c 8c e8 ff RSP: 0018:ffffc90003f0f5c8 EFLAGS: 00010282 RAX: 0000000000000030 RBX: 0000000000000000 RCX: 0000000000000000 RDX: ffff8880209e8000 RSI: ffffffff8160f738 RDI: fffff520007e1eab RBP: 0000000000009afb R08: 0000000000000030 R09: 0000000000000000 R10: 0000000080000000 R11: 6620746120475542 R12: 0000000000000010 R13: 0000000000000020 R14: 000000000fff9afb R15: 0000000000000010 FS: 0000555555e6b300(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007faee73b4a70 CR3: 000000007173d000 CR4: 0000000000350ef0 Call Trace: dbAllocNear fs/jfs/jfs_dmap.c:1224 [inline] dbAlloc+0x8e5/0xa70 fs/jfs/jfs_dmap.c:813 extBalloc fs/jfs/jfs_extent.c:321 [inline] extAlloc+0x4e7/0xeb0 fs/jfs/jfs_extent.c:122 jfs_get_block+0x661/0xa90 fs/jfs/inode.c:248 get_more_blocks fs/direct-io.c:665 [inline] do_direct_IO fs/direct-io.c:953 [inline] __blockdev_direct_IO+0x16ca/0x3880 fs/direct-io.c:1266 blockdev_direct_IO include/linux/fs.h:3204 [inline] jfs_direct_IO+0x10a/0x2c0 fs/jfs/inode.c:336 generic_file_direct_write+0x1e8/0x540 mm/filemap.c:3669 __generic_file_write_iter+0x1a2/0x4d0 mm/filemap.c:3829 generic_file_write_iter+0xdf/0x350 mm/filemap.c:3905 call_write_iter include/linux/fs.h:2190 [inline] new_sync_write fs/read_write.c:491 [inline] vfs_write+0x9e9/0xdd0 fs/read_write.c:584 ksys_write+0x127/0x250 fs/read_write.c:637 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7faa047a5f29 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 c0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007ffe22796e98 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007faa047a5f29 RDX: 00000000ffffffa7 RSI: 0000000020000000 RDI: 0000000000000003 RBP: 00007faa047656f0 R08: 0000000000000000 R09: 00007faa047656f0 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000f8008000 R13: 0000000000000000 R14: 00080000000000f8 R15: 0000000000000000 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:dbFindBits.cold+0xa1/0xa3 fs/jfs/jfs_dmap.c:2984 Code: fa e9 f8 99 93 f9 e8 37 18 35 f8 48 c7 c1 80 9b 29 8a ba a8 0b 00 00 48 c7 c6 00 9a 29 8a 48 c7 c7 40 9a 29 8a e8 62 7e f8 ff <0f> 0b e8 11 18 35 f8 49 63 d4 48 89 ee 48 c7 c7 e0 23 4c 8c e8 ff RSP: 0018:ffffc90003f0f5c8 EFLAGS: 00010282 RAX: 0000000000000030 RBX: 0000000000000000 RCX: 0000000000000000 RDX: ffff8880209e8000 RSI: ffffffff8160f738 RDI: fffff520007e1eab RBP: 0000000000009afb R08: 0000000000000030 R09: 0000000000000000 R10: 0000000080000000 R11: 6620746120475542 R12: 0000000000000010 R13: 0000000000000020 R14: 000000000fff9afb R15: 0000000000000010 FS: 0000555555e6b300(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007faee73b4a70 CR3: 000000007173d000 CR4: 0000000000350ef0