loop0: detected capacity change from 0 to 32768 BUG at fs/jfs/jfs_dmap.c:3045 assert(n < 4) ------------[ cut here ]------------ kernel BUG at fs/jfs/jfs_dmap.c:3045! Internal error: Oops - BUG: 00000000f2000800 [#1] PREEMPT SMP Modules linked in: CPU: 1 PID: 4386 Comm: syz-executor.0 Not tainted 5.15.167-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024 pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : dbFindLeaf+0x47c/0x480 fs/jfs/jfs_dmap.c:3045 lr : dbFindLeaf+0x47c/0x480 fs/jfs/jfs_dmap.c:3045 sp : ffff80001fae6e90 x29: ffff80001fae6ea0 x28: dfff800000000000 x27: 00000000ffffffff x26: 0000000000000014 x25: 0000000000000012 x24: 0000000000000011 x23: 0000000000000003 x22: 0000000000000155 x21: 0000000000000000 x20: ffff0000c4eb1010 x19: ffff80001fae6f20 x18: 0000000000000001 x17: 0000000000000000 x16: ffff800011ac23e0 x15: 00000000ffffffff x14: ffff0000c7911b40 x13: 0000000000000001 x12: 0000000000000001 x11: 0000000000000000 x10: 0000000000000000 x9 : a3bb3608ec2c3700 x8 : a3bb3608ec2c3700 x7 : 0000000000000001 x6 : 0000000000000001 x5 : ffff80001fae65f8 x4 : ffff800014b9fae0 x3 : ffff80000a987d1c x2 : ffff0001b41aed10 x1 : 0000000100000000 x0 : 000000000000002b Call trace: dbFindLeaf+0x47c/0x480 fs/jfs/jfs_dmap.c:3045 dbAllocDmapLev+0xc8/0x414 fs/jfs/jfs_dmap.c:2035 dbAllocCtl+0x104/0x878 fs/jfs/jfs_dmap.c:1891 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: f0043463 91188063 52817ca2 95996ae0 (d4210000) ---[ end trace 1ce3fb3d77418802 ]---