loop2: detected capacity change from 0 to 32768 BUG at fs/jfs/jfs_dmap.c:3084 assert(nb <= DBWORD) ------------[ cut here ]------------ kernel BUG at fs/jfs/jfs_dmap.c:3084! Internal error: Oops - BUG: 00000000f2000800 [#1] PREEMPT SMP Modules linked in: CPU: 1 PID: 4458 Comm: syz.2.86 Not tainted 5.15.173-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : dbFindBits+0x1b8/0x1e4 fs/jfs/jfs_dmap.c:3084 lr : dbFindBits+0x1b8/0x1e4 fs/jfs/jfs_dmap.c:3084 sp : ffff8000207e7730 x29: ffff8000207e7730 x28: 00000000ffffffff x27: 1ffff000040fcef0 x26: dfff800000000000 x25: ffff0000cd029800 x24: 000000000000000a x23: 0000000000000000 x22: ffff0000e6aca000 x21: 00000000ffffffff x20: 0000000000000400 x19: 000000000000000a x18: ffff8000207e6d60 x17: 1fffe0003683318e x16: ffff800011b4c108 x15: 0000000000022870 x14: 1ffff0000296c06c x13: dfff800000000000 x12: 0000000000080000 x11: 000000000000bc24 x10: ffff8000232aa000 x9 : 79a6a6146eda5e00 x8 : 79a6a6146eda5e00 x7 : 0000000000000000 x6 : 0000000000000000 x5 : 0000000000000080 x4 : 0000000000000000 x3 : ffff80000aa0ed5c x2 : ffff0001b4198d10 x1 : 0000000100000000 x0 : 0000000000000032 Call trace: dbFindBits+0x1b8/0x1e4 fs/jfs/jfs_dmap.c:3084 dbAllocDmapLev+0x194/0x414 fs/jfs/jfs_dmap.c:2051 dbAllocCtl+0x104/0x878 fs/jfs/jfs_dmap.c:1891 dbAllocAG+0x208/0xe4c fs/jfs/jfs_dmap.c:1432 dbDiscardAG+0x240/0x728 fs/jfs/jfs_dmap.c:1681 jfs_ioc_trim+0x3f4/0x5f0 fs/jfs/jfs_discard.c:105 jfs_ioctl+0x350/0x574 fs/jfs/ioctl.c:132 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:874 [inline] __se_sys_ioctl fs/ioctl.c:860 [inline] __arm64_sys_ioctl+0x14c/0x1c8 fs/ioctl.c:860 __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: f00434a3 91290063 52818182 959705ee (d4210000) ---[ end trace 080e0a28627bff3c ]---