loop0: detected capacity change from 0 to 32768 BUG at fs/jfs/jfs_dmap.c:3043 assert(n < 4) ------------[ cut here ]------------ kernel BUG at fs/jfs/jfs_dmap.c:3043! Internal error: Oops - BUG: 00000000f2000800 [#1] PREEMPT SMP Modules linked in: CPU: 1 PID: 4495 Comm: syz-executor.0 Not tainted 5.15.189-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/30/2025 pstate: 62400005 (nZCv daif +PAN -UAO +TCO -DIT -SSBS BTYPE=--) pc : dbFindLeaf+0x484/0x488 fs/jfs/jfs_dmap.c:3043 lr : dbFindLeaf+0x484/0x488 fs/jfs/jfs_dmap.c:3043 sp : ffff80001f7d7070 x29: ffff80001f7d7080 x28: 0000000000000014 x27: 00000000ffffffff x26: 0000000000000003 x25: 0000000000000011 x24: 0000000000000155 x23: ffff0000c1782021 x22: 0000000000000000 x21: ffff0000c1782010 x20: 0000000000000011 x19: dfff800000000000 x18: 1fffe0003421cd96 x17: ffff800016d04000 x16: ffff8000111bc798 x15: ffff8000167e4500 x14: ffff0000c1100a00 x13: 1ffff0000282e06b x12: 0000000000ff0100 x11: 0000000000000000 x10: 0000000000000000 x9 : bfe960148e1ce900 x8 : bfe960148e1ce900 x7 : 0000000000000000 x6 : 0000000000000000 x5 : 0000000000000080 x4 : 0000000000000000 x3 : ffff80000a723764 x2 : ffff0001a10e6d50 x1 : 0000000100000000 x0 : 000000000000002b Call trace: dbFindLeaf+0x484/0x488 fs/jfs/jfs_dmap.c:3043 dbAllocDmapLev+0x74/0x36c fs/jfs/jfs_dmap.c:2029 dbAllocCtl+0x130/0x910 fs/jfs/jfs_dmap.c:1885 dbAllocAG+0x1c4/0xd20 fs/jfs/jfs_dmap.c:1421 dbAlloc+0x43c/0x978 fs/jfs/jfs_dmap.c:877 extBalloc fs/jfs/jfs_extent.c:523 [inline] extAlloc+0x3f4/0xdc4 fs/jfs/jfs_extent.c:125 jfs_get_block+0x2bc/0x8ec fs/jfs/inode.c:258 nobh_write_begin+0x2d8/0x9d4 fs/buffer.c:2650 jfs_write_begin+0x58/0xa0 fs/jfs/inode.c:322 generic_perform_write+0x204/0x480 mm/filemap.c:3785 __generic_file_write_iter+0x23c/0x454 mm/filemap.c:3912 generic_file_write_iter+0xb0/0x1b4 mm/filemap.c:3944 do_iter_readv_writev+0x3a0/0x4f8 fs/read_write.c:-1 do_iter_write+0x1c4/0x670 fs/read_write.c:855 vfs_writev fs/read_write.c:928 [inline] do_pwritev+0x1c8/0x2fc fs/read_write.c:1025 __do_sys_pwritev2 fs/read_write.c:1084 [inline] __se_sys_pwritev2 fs/read_write.c:1075 [inline] __arm64_sys_pwritev2+0xd4/0x108 fs/read_write.c:1075 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142 do_el0_svc+0x58/0x14c arch/arm64/kernel/syscall.c:181 el0_svc+0x78/0x1e0 arch/arm64/kernel/entry-common.c:608 el0t_64_sync_handler+0xcc/0xe4 arch/arm64/kernel/entry-common.c:626 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584 Code: d003f623 913d0063 52817c62 95e5575c (d4210000) ---[ end trace c9ed5cca85dd88cc ]---