BUG at fs/jfs/jfs_dmap.c:3036 assert(bitno < 32) ------------[ cut here ]------------ kernel BUG at fs/jfs/jfs_dmap.c:3036! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 0 PID: 6723 Comm: syz.7.641 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/02/2025 RIP: 0010:dbFindBits+0x193/0x1a0 fs/jfs/jfs_dmap.c:3036 Code: 63 02 22 07 0f 0b e8 bc 1f 96 fe 48 c7 c7 e0 f5 c5 8a 48 c7 c6 60 f3 c5 8a ba dc 0b 00 00 48 c7 c1 20 fe c5 8a e8 3d 02 22 07 <0f> 0b 66 2e 0f 1f 84 00 00 00 00 00 90 55 41 57 41 56 41 55 41 54 RSP: 0018:ffffc90004e5ebc8 EFLAGS: 00010246 RAX: 0000000000000030 RBX: 0000000000000000 RCX: 5c8a64ce8fe7eb00 RDX: ffffc90017ea4000 RSI: 000000000007ffff RDI: 0000000000080000 RBP: 00000000ffffffff R08: dffffc0000000000 R09: fffff520009cbd19 R10: fffff520009cbd19 R11: 1ffff920009cbd18 R12: 0000000000000001 R13: 0000000000000000 R14: 0000000000000001 R15: 0000000000000020 FS: 00007f3f715a66c0(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f908ab70368 CR3: 00000000798bc000 CR4: 00000000003506f0 DR0: fffffffffffffff1 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: dbAllocDmapLev+0x169/0x3c0 fs/jfs/jfs_dmap.c:1985 dbAllocCtl+0x148/0x9b0 fs/jfs/jfs_dmap.c:1825 dbAllocAG+0x1e7/0xfe0 fs/jfs/jfs_dmap.c:1353 dbAlloc+0x5a3/0xb90 fs/jfs/jfs_dmap.c:877 xtSplitUp+0x40c/0x1c20 fs/jfs/jfs_xtree.c:745 xtInsert+0x455/0xbb0 fs/jfs/jfs_xtree.c:593 extAlloc+0x9f6/0xf30 fs/jfs/jfs_extent.c:145 jfs_get_block+0x343/0xab0 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+0x16a9/0x3450 fs/direct-io.c:1266 blockdev_direct_IO include/linux/fs.h:3342 [inline] jfs_direct_IO+0x119/0x220 fs/jfs/inode.c:336 generic_file_direct_write+0x3be/0x660 mm/filemap.c:3770 __generic_file_write_iter+0x1db/0x430 mm/filemap.c:3930 generic_file_write_iter+0xab/0x2e0 mm/filemap.c:4006 do_iter_readv_writev fs/read_write.c:-1 [inline] do_iter_write+0x62d/0xaf0 fs/read_write.c:861 vfs_writev fs/read_write.c:934 [inline] do_pwritev+0x201/0x340 fs/read_write.c:1031 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7f3f7078efc9 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:00007f3f715a6038 EFLAGS: 00000246 ORIG_RAX: 0000000000000148 RAX: ffffffffffffffda RBX: 00007f3f709e5fa0 RCX: 00007f3f7078efc9 RDX: 0000000000000001 RSI: 0000200000000240 RDI: 0000000000000004 RBP: 00007f3f70811f91 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000007800 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f3f709e6038 R14: 00007f3f709e5fa0 R15: 00007ffe2af81d28 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:dbFindBits+0x193/0x1a0 fs/jfs/jfs_dmap.c:3036 Code: 63 02 22 07 0f 0b e8 bc 1f 96 fe 48 c7 c7 e0 f5 c5 8a 48 c7 c6 60 f3 c5 8a ba dc 0b 00 00 48 c7 c1 20 fe c5 8a e8 3d 02 22 07 <0f> 0b 66 2e 0f 1f 84 00 00 00 00 00 90 55 41 57 41 56 41 55 41 54 RSP: 0018:ffffc90004e5ebc8 EFLAGS: 00010246 RAX: 0000000000000030 RBX: 0000000000000000 RCX: 5c8a64ce8fe7eb00 RDX: ffffc90017ea4000 RSI: 000000000007ffff RDI: 0000000000080000 RBP: 00000000ffffffff R08: dffffc0000000000 R09: fffff520009cbd19 R10: fffff520009cbd19 R11: 1ffff920009cbd18 R12: 0000000000000001 R13: 0000000000000000 R14: 0000000000000001 R15: 0000000000000020 FS: 00007f3f715a66c0(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fa3f2a9ceb8 CR3: 00000000798bc000 CR4: 00000000003506f0 DR0: fffffffffffffff1 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400