loop0: detected capacity change from 0 to 32768 ERROR: (device loop0): diAllocBit: iag inconsistent ialloc: diAlloc returned -5! ERROR: (device loop0): dbAllocNext: Corrupt dmap page BUG at fs/jfs/jfs_dmap.c:3108 assert(nb <= DBWORD) ------------[ cut here ]------------ kernel BUG at fs/jfs/jfs_dmap.c:3108! Oops: invalid opcode: 0000 [#1] SMP KASAN NOPTI CPU: 0 UID: 0 PID: 5325 Comm: syz.0.0 Not tainted syzkaller #0 PREEMPT(full) Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 RIP: 0010:dbFindBits+0x177/0x1a0 fs/jfs/jfs_dmap.c:3108 Code: e9 20 ff ff ff e8 69 80 5f fe 48 c7 c7 20 44 0c 8c 48 c7 c6 60 41 0c 8c ba 24 0c 00 00 48 c7 c1 40 4c 0c 8c e8 1a ef c0 fd 90 <0f> 0b e8 42 80 5f fe 48 c7 c7 20 44 0c 8c 48 c7 c6 60 41 0c 8c ba RSP: 0018:ffffc90007a37ad0 EFLAGS: 00010246 RAX: 0000000000000032 RBX: 000000000000000a RCX: e8824083b087f200 RDX: ffffc9000f11a000 RSI: 00000000000009c4 RDI: 00000000000009c5 RBP: 00000000ffffffff R08: ffffc90007a37847 R09: 1ffff92000f46f08 R10: dffffc0000000000 R11: fffff52000f46f09 R12: 0000000000000000 R13: 000000000000000a R14: 0000000000000400 R15: ffff88803f63c000 FS: 00007fed549d86c0(0000) GS:ffff88808c81e000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00005570badfc168 CR3: 000000003faba000 CR4: 0000000000352ef0 Call Trace: dbAllocDmapLev+0x161/0x3b0 fs/jfs/jfs_dmap.c:2072 dbAllocCtl+0x145/0x990 fs/jfs/jfs_dmap.c:1912 dbAllocAG+0x1f4/0xf80 fs/jfs/jfs_dmap.c:1440 dbDiscardAG+0x2d6/0x8f0 fs/jfs/jfs_dmap.c:1695 jfs_ioc_trim+0x433/0x670 fs/jfs/jfs_discard.c:106 jfs_ioctl+0x28e/0x3b0 fs/jfs/ioctl.c:131 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:597 [inline] __se_sys_ioctl+0xfc/0x170 fs/ioctl.c:583 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x174/0x580 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fed53b9ce59 Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 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 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fed549d7fe8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007fed53e15fa0 RCX: 00007fed53b9ce59 RDX: 0000200000000080 RSI: 00000000c0185879 RDI: 0000000000000004 RBP: 00007fed53c32e6f R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fed53e16038 R14: 00007fed53e15fa0 R15: 00007ffc152797c8 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:dbFindBits+0x177/0x1a0 fs/jfs/jfs_dmap.c:3108 Code: e9 20 ff ff ff e8 69 80 5f fe 48 c7 c7 20 44 0c 8c 48 c7 c6 60 41 0c 8c ba 24 0c 00 00 48 c7 c1 40 4c 0c 8c e8 1a ef c0 fd 90 <0f> 0b e8 42 80 5f fe 48 c7 c7 20 44 0c 8c 48 c7 c6 60 41 0c 8c ba RSP: 0018:ffffc90007a37ad0 EFLAGS: 00010246 RAX: 0000000000000032 RBX: 000000000000000a RCX: e8824083b087f200 RDX: ffffc9000f11a000 RSI: 00000000000009c4 RDI: 00000000000009c5 RBP: 00000000ffffffff R08: ffffc90007a37847 R09: 1ffff92000f46f08 R10: dffffc0000000000 R11: fffff52000f46f09 R12: 0000000000000000 R13: 000000000000000a R14: 0000000000000400 R15: ffff88803f63c000 FS: 00007fed549d86c0(0000) GS:ffff88808c81e000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00005570badfc168 CR3: 000000003faba000 CR4: 0000000000352ef0