loop3: detected capacity change from 0 to 32768 BUG at fs/jfs/jfs_dmap.c:3013 assert(nb <= DBWORD) ------------[ cut here ]------------ kernel BUG at fs/jfs/jfs_dmap.c:3013! Internal error: Oops - BUG: 00000000f2000800 [#1] PREEMPT SMP Modules linked in: CPU: 0 PID: 11365 Comm: syz-executor.3 Not tainted 6.1.86-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : dbFindBits+0x1b8/0x1e4 fs/jfs/jfs_dmap.c:3013 lr : dbFindBits+0x1b8/0x1e4 fs/jfs/jfs_dmap.c:3013 sp : ffff800020b97750 x29: ffff800020b97750 x28: 00000000ffffffff x27: 1ffff00004172ef4 x26: dfff800000000000 x25: ffff0000d2ba4800 x24: 000000000000000a x23: 0000000000000000 x22: ffff0000c3939000 x21: 00000000ffffffff x20: 0000000000000400 x19: 000000000000000a x18: 1fffe0003686b376 x17: ffff80001583d000 x16: ffff800012156b1c x15: ffff0001b4359bbc x14: 1ffff00002b080b0 x13: dfff800000000000 x12: 0000000000040000 x11: 000000000000fed0 x10: ffff80001ef99000 x9 : 4bd0c698171a3b00 x8 : 4bd0c698171a3b00 x7 : ffff80000827c8d4 x6 : 0000000000000000 x5 : 0000000000000080 x4 : 0000000000000001 x3 : ffff80000aa9130c x2 : ffff0001b4359cd0 x1 : 0000000100000000 x0 : 0000000000000032 Call trace: dbFindBits+0x1b8/0x1e4 fs/jfs/jfs_dmap.c:3013 dbAllocDmapLev+0x194/0x414 fs/jfs/jfs_dmap.c:1983 dbAllocCtl+0x104/0x844 fs/jfs/jfs_dmap.c:1823 dbAllocAG+0x208/0xe4c fs/jfs/jfs_dmap.c:1364 dbDiscardAG+0x240/0x728 fs/jfs/jfs_dmap.c:1613 jfs_ioc_trim+0x3cc/0x5d8 fs/jfs/jfs_discard.c:100 jfs_ioctl+0x338/0x550 fs/jfs/ioctl.c:131 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:870 [inline] __se_sys_ioctl fs/ioctl.c:856 [inline] __arm64_sys_ioctl+0x14c/0x1c8 fs/ioctl.c:856 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2c0 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142 do_el0_svc+0x64/0x218 arch/arm64/kernel/syscall.c:206 el0_svc+0x58/0x168 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: b00463a3 91058063 528178a2 9596125a (d4210000) ---[ end trace 0000000000000000 ]---