loop0: detected capacity change from 0 to 32768 BUG at fs/jfs/jfs_dmap.c:3052 assert(n < 4) ------------[ cut here ]------------ kernel BUG at fs/jfs/jfs_dmap.c:3052! Internal error: Oops - BUG: 00000000f2000800 [#1] PREEMPT SMP Modules linked in: CPU: 0 PID: 4417 Comm: syz-executor.0 Not tainted 5.15.178-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : dbFindLeaf+0x4a4/0x4a8 fs/jfs/jfs_dmap.c:3052 lr : dbFindLeaf+0x4a4/0x4a8 fs/jfs/jfs_dmap.c:3052 sp : ffff80001fd66e90 x29: ffff80001fd66ea0 x28: 00000000ffffffff x27: 0000000000000014 x26: dfff800000000000 x25: 0000000000000003 x24: 0000000000000011 x23: 0000000000000155 x22: 0000000000000000 x21: ffff0000ca450010 x20: 0000000000000100 x19: 0000000000000012 x18: ffff80001fd664c0 x17: 1fffe0003682eb8e x16: ffff800011b4e3fc x15: 0000000000017f3e x14: 1ffff0000296e06c x13: dfff800000000000 x12: 0000000000000001 x11: 0000000000000000 x10: 0000000000000000 x9 : b3e71fcc52f71f00 x8 : b3e71fcc52f71f00 x7 : 0000000000000000 x6 : 0000000000000000 x5 : 0000000000000080 x4 : 0000000000000000 x3 : ffff80000aa0f0fc x2 : ffff0001b4175d10 x1 : 0000000100000000 x0 : 000000000000002b Call trace: dbFindLeaf+0x4a4/0x4a8 fs/jfs/jfs_dmap.c:3052 dbAllocDmapLev+0xc8/0x414 fs/jfs/jfs_dmap.c:2038 dbAllocCtl+0x12c/0x8c4 fs/jfs/jfs_dmap.c:1894 dbAllocAG+0x208/0xe4c fs/jfs/jfs_dmap.c:1432 dbAlloc+0x4b0/0xa18 fs/jfs/jfs_dmap.c:888 extBalloc fs/jfs/jfs_extent.c:523 [inline] extAlloc+0x3fc/0xe68 fs/jfs/jfs_extent.c:125 jfs_get_block+0x34c/0xbfc fs/jfs/inode.c:258 nobh_write_begin+0x2d8/0xa28 fs/buffer.c:2650 jfs_write_begin+0x58/0xa0 fs/jfs/inode.c:322 generic_perform_write+0x24c/0x520 mm/filemap.c:3785 __generic_file_write_iter+0x230/0x454 mm/filemap.c:3912 generic_file_write_iter+0xb4/0x1b8 mm/filemap.c:3944 do_iter_readv_writev+0x420/0x5f8 do_iter_write+0x1b8/0x66c fs/read_write.c:855 vfs_writev fs/read_write.c:928 [inline] do_pwritev+0x1ec/0x334 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+0x7c/0x1f0 arch/arm64/kernel/entry-common.c:608 el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:626 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584 Code: d0043523 91000063 52817d82 95970be1 (d4210000) ---[ end trace 32f8803abfd666e0 ]---