BUG at fs/jfs/jfs_dmap.c:721 assert(nblocks > 0) ------------[ cut here ]------------ kernel BUG at fs/jfs/jfs_dmap.c:721! invalid opcode: 0000 [#1] PREEMPT SMP KASAN Modules linked in: CPU: 1 PID: 7982 Comm: syz-executor282 Not tainted 4.14.295-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/22/2022 task: ffff8880b31f0680 task.stack: ffff888092b40000 RIP: 0010:dbAlloc.cold+0x33/0x44 fs/jfs/jfs_dmap.c:721 RSP: 0018:ffff888092b47650 EFLAGS: 00010286 RAX: 0000000000000030 RBX: ffff888094aae5a8 RCX: 0000000000000000 RDX: 0000000000000000 RSI: ffffffff878bc9e0 RDI: ffffed1012568ec0 RBP: ffff888094aae5a8 R08: 0000000000000030 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 R13: ffff888096fc1300 R14: ffff8880b3394cc0 R15: ffff8880a4b924a8 FS: 0000555555c14300(0000) GS:ffff8880ba500000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000562e51d5c6ec CR3: 00000000ab30a000 CR4: 00000000003406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: ea_get+0x931/0x1040 fs/jfs/xattr.c:527 __jfs_getxattr+0xae/0x340 fs/jfs/xattr.c:820 jfs_xattr_get+0x39/0x50 fs/jfs/xattr.c:944 vfs_getxattr_alloc+0x163/0x2d0 fs/xattr.c:322 ima_read_xattr+0x2c/0x50 security/integrity/ima/ima_appraise.c:185 process_measurement+0x75a/0xb20 security/integrity/ima/ima_main.c:260 do_last fs/namei.c:3435 [inline] path_openat+0x10ad/0x2970 fs/namei.c:3571 do_filp_open+0x179/0x3c0 fs/namei.c:3605 do_sys_open+0x296/0x410 fs/open.c:1081 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x46/0xbb RIP: 0033:0x7f0a31fe6ee9 RSP: 002b:00007ffdb1031af8 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 0030656c69662f2e RCX: 00007f0a31fe6ee9 RDX: 0000000000000300 RSI: 000000002000c380 RDI: 00000000ffffff9c RBP: 00007f0a31fa6750 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000f8008000 R13: 0000000000000000 R14: 0000001200030083 R15: 0000000000000000 Code: 76 fa e8 a0 fe ff ff e8 62 34 4d fa 48 c7 c1 20 a9 b6 87 ba d1 02 00 00 48 c7 c6 c0 a1 b6 87 48 c7 c7 00 a2 b6 87 e8 c8 bd fa ff <0f> 0b e8 3c 34 4d fa e8 97 d7 76 fa e8 45 fe ff ff e8 2d 34 4d RIP: dbAlloc.cold+0x33/0x44 fs/jfs/jfs_dmap.c:721 RSP: ffff888092b47650 ---[ end trace c9e19e369b2ebcf2 ]---