loop3: 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! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 0 PID: 5790 Comm: syz.3.360 Not tainted 5.15.168-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 RIP: 0010:dbFindBits+0x1a2/0x1d0 fs/jfs/jfs_dmap.c:3084 Code: 01 e9 fe fe ff ff e8 2d cb 9d fe 48 c7 c7 c0 39 c1 8a 48 c7 c6 00 37 c1 8a ba 0c 0c 00 00 48 c7 c1 80 41 c1 8a e8 ae 7a 50 07 <0f> 0b e8 07 cb 9d fe 48 c7 c7 c0 39 c1 8a 48 c7 c6 00 37 c1 8a ba RSP: 0018:ffffc900016ef980 EFLAGS: 00010246 RAX: 0000000000000032 RBX: ffff888066d73800 RCX: 63850d0040cc8100 RDX: ffffc90003669000 RSI: 000000000000b6a6 RDI: 000000000000b6a7 RBP: ffffc900016efa88 R08: ffffffff81669a2c R09: ffffed10172067a8 R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000400 R13: 1ffff920002ddf40 R14: 00000000ffffffff R15: 000000000000000a FS: 00007f827504a6c0(0000) GS:ffff8880b9000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f8276bb5160 CR3: 0000000057ec9000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: dbAllocDmapLev+0x1e5/0x490 fs/jfs/jfs_dmap.c:2051 dbAllocCtl+0x113/0x920 fs/jfs/jfs_dmap.c:1891 dbAllocAG+0x28b/0x10b0 fs/jfs/jfs_dmap.c:1432 dbDiscardAG+0x34e/0xa10 fs/jfs/jfs_dmap.c:1681 jfs_ioc_trim+0x452/0x6a0 fs/jfs/jfs_discard.c:105 jfs_ioctl+0x2ac/0x3a0 fs/jfs/ioctl.c:132 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:874 [inline] __se_sys_ioctl+0xf1/0x160 fs/ioctl.c:860 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 RIP: 0033:0x7f8276bd1ff9 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f827504a038 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f8276d89f80 RCX: 00007f8276bd1ff9 RDX: 0000000020000680 RSI: 00000000c0185879 RDI: 0000000000000005 RBP: 00007f8276c44296 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f8276d89f80 R15: 00007ffd115217f8 Modules linked in: ---[ end trace 4d62eeff00fc3466 ]--- RIP: 0010:dbFindBits+0x1a2/0x1d0 fs/jfs/jfs_dmap.c:3084 Code: 01 e9 fe fe ff ff e8 2d cb 9d fe 48 c7 c7 c0 39 c1 8a 48 c7 c6 00 37 c1 8a ba 0c 0c 00 00 48 c7 c1 80 41 c1 8a e8 ae 7a 50 07 <0f> 0b e8 07 cb 9d fe 48 c7 c7 c0 39 c1 8a 48 c7 c6 00 37 c1 8a ba RSP: 0018:ffffc900016ef980 EFLAGS: 00010246 RAX: 0000000000000032 RBX: ffff888066d73800 RCX: 63850d0040cc8100 RDX: ffffc90003669000 RSI: 000000000000b6a6 RDI: 000000000000b6a7 RBP: ffffc900016efa88 R08: ffffffff81669a2c R09: ffffed10172067a8 R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000400 R13: 1ffff920002ddf40 R14: 00000000ffffffff R15: 000000000000000a FS: 00007f827504a6c0(0000) GS:ffff8880b9100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f8b396da000 CR3: 0000000057ec9000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400