BUG at fs/jfs/jfs_dmap.c:3036 assert(bitno < 32) ------------[ cut here ]------------ kernel BUG at fs/jfs/jfs_dmap.c:3036! Internal error: Oops - BUG: 00000000f2000800 [#1] PREEMPT SMP Modules linked in: CPU: 0 PID: 6729 Comm: syz.6.483 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/03/2025 pstate: 62400005 (nZCv daif +PAN -UAO +TCO -DIT -SSBS BTYPE=--) pc : dbFindBits+0x1ac/0x1b0 fs/jfs/jfs_dmap.c:3036 lr : dbFindBits+0x1ac/0x1b0 fs/jfs/jfs_dmap.c:3036 sp : ffff800021f47350 x29: ffff800021f47350 x28: ffff000109a46008 x27: 0000000000000000 x26: ffff000109a46804 x25: 0000000000000001 x24: 0000000000000000 x23: ffff8000157bbed0 x22: 0000000000000020 x21: 0000000000000001 x20: 00000000ffffffff x19: 0000000000000000 x18: ffff800011b7bf60 x17: 1fffe00033eaab7e x16: ffff8000082d9364 x15: ffff8000151fd000 x14: 0000000000000001 x13: 1ffff000043e8dd0 x12: 0000000000080000 x11: 0000000000004a95 x10: ffff8000298c0000 x9 : cb97432124303d00 x8 : cb97432124303d00 x7 : ffff80000825796c x6 : 0000000000000000 x5 : 0000000000000080 x4 : 0000000000000001 x3 : ffff80000a88a6b0 x2 : ffff00019f555d10 x1 : 0000000100000000 x0 : 0000000000000030 Call trace: dbFindBits+0x1ac/0x1b0 fs/jfs/jfs_dmap.c:3036 dbAllocNear+0x1f4/0x350 fs/jfs/jfs_dmap.c:1243 dbAlloc+0x72c/0x9d0 fs/jfs/jfs_dmap.c:832 extBalloc fs/jfs/jfs_extent.c:326 [inline] extAlloc+0x414/0xdb8 fs/jfs/jfs_extent.c:122 jfs_get_block+0x2c4/0x8c0 fs/jfs/inode.c:254 __block_write_begin_int+0x350/0x1388 fs/buffer.c:1991 __block_write_begin fs/buffer.c:2041 [inline] block_write_begin+0x98/0x11c fs/buffer.c:2102 jfs_write_begin+0x44/0x88 fs/jfs/inode.c:310 generic_perform_write+0x234/0x4f4 mm/filemap.c:3862 __generic_file_write_iter+0x130/0x250 mm/filemap.c:3960 generic_file_write_iter+0xb4/0x2b0 mm/filemap.c:3989 call_write_iter include/linux/fs.h:2265 [inline] new_sync_write fs/read_write.c:491 [inline] vfs_write+0x3ec/0x7f0 fs/read_write.c:584 ksys_pwrite64 fs/read_write.c:699 [inline] __do_sys_pwrite64 fs/read_write.c:709 [inline] __se_sys_pwrite64 fs/read_write.c:706 [inline] __arm64_sys_pwrite64+0x174/0x20c fs/read_write.c:706 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2b4 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:140 do_el0_svc+0x58/0x130 arch/arm64/kernel/syscall.c:204 el0_svc+0x58/0x128 arch/arm64/kernel/entry-common.c:637 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:585 Code: 900432c3 910d8063 52817b82 959d5db4 (d4210000) ---[ end trace 0000000000000000 ]---