loop0: detected capacity change from 0 to 32768 BUG at fs/jfs/jfs_dmap.c:2972 assert(n < 4) ------------[ cut here ]------------ kernel BUG at fs/jfs/jfs_dmap.c:2972! Internal error: Oops - BUG: 00000000f2000800 [#1] PREEMPT SMP Modules linked in: CPU: 0 PID: 6571 Comm: syz-executor.0 Not tainted 6.7.0-rc6-syzkaller-00090-gaafe7ad77b91 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/10/2023 pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : dbFindLeaf+0x47c/0x480 fs/jfs/jfs_dmap.c:2972 lr : dbFindLeaf+0x47c/0x480 fs/jfs/jfs_dmap.c:2972 sp : ffff800096fe7030 x29: ffff800096fe7040 x28: dfff800000000000 x27: 00000000ffffffff x26: 000000000000001c x25: 000000000000001a x24: 0000000000000019 x23: 00000000001cb702 x22: 0000000000000155 x21: 0000000000000000 x20: ffff0000d8aba010 x19: ffff800096fe70c0 x18: ffff800096fe6660 x17: 0000000000000000 x16: ffff80008a82b138 x15: 0000000000000001 x14: 1ffff00012dfcd5c x13: 0000000000000000 x12: 0000000000000000 x11: 0000000000000001 x10: 0000000000ff0100 x9 : d50513bbd1e4fb00 x8 : d50513bbd1e4fb00 x7 : 0000000000000001 x6 : 0000000000000001 x5 : ffff800096fe6938 x4 : ffff80008e5d20c0 x3 : ffff800082b78914 x2 : 0000000000000001 x1 : 0000000100000000 x0 : 000000000000002b Call trace: dbFindLeaf+0x47c/0x480 fs/jfs/jfs_dmap.c:2972 dbAllocDmapLev+0xc8/0x414 fs/jfs/jfs_dmap.c:1967 dbAlloc+0x914/0xb68 fs/jfs/jfs_dmap.c:855 extBalloc fs/jfs/jfs_extent.c:326 [inline] extAlloc+0x404/0xdec fs/jfs/jfs_extent.c:122 jfs_get_block+0x340/0xb98 fs/jfs/inode.c:248 __block_write_begin_int+0x3f0/0x1504 fs/buffer.c:2119 __block_write_begin fs/buffer.c:2168 [inline] block_write_begin+0x98/0x11c fs/buffer.c:2227 jfs_write_begin+0x44/0x88 fs/jfs/inode.c:299 generic_perform_write+0x28c/0x588 mm/filemap.c:3918 __generic_file_write_iter+0xfc/0x204 mm/filemap.c:4013 generic_file_write_iter+0xb8/0x2b4 mm/filemap.c:4039 do_iter_write+0x654/0xa78 fs/read_write.c:860 vfs_writev fs/read_write.c:933 [inline] do_writev+0x220/0x3ec fs/read_write.c:976 __do_sys_writev fs/read_write.c:1049 [inline] __se_sys_writev fs/read_write.c:1046 [inline] __arm64_sys_writev+0x80/0x94 fs/read_write.c:1046 __invoke_syscall arch/arm64/kernel/syscall.c:37 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:51 el0_svc_common+0x130/0x23c arch/arm64/kernel/syscall.c:136 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:155 el0_svc+0x54/0x158 arch/arm64/kernel/entry-common.c:678 el0t_64_sync_handler+0x84/0xfc arch/arm64/kernel/entry-common.c:696 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:595 Code: b0049583 91088063 52817382 9592f818 (d4210000) ---[ end trace 0000000000000000 ]---