loop0: detected capacity change from 0 to 32768 BUG at fs/jfs/jfs_dmap.c:708 assert(nblocks > 0) ------------[ cut here ]------------ kernel BUG at fs/jfs/jfs_dmap.c:708! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 0 PID: 3610 Comm: syz-executor638 Not tainted 6.0.0-syzkaller-09589-g55be6084c8e0 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/22/2022 RIP: 0010:dbAlloc.cold+0x5c/0x5e fs/jfs/jfs_dmap.c:708 Code: fa e9 bb 0f 94 f9 e8 47 d7 34 f8 48 c7 c1 80 b1 29 8a ba c4 02 00 00 48 c7 c6 c0 a8 29 8a 48 c7 c7 00 a9 29 8a e8 26 79 f8 ff <0f> 0b e8 21 d7 34 f8 49 63 d6 4c 89 ee 48 c7 c7 60 49 4c 8c e8 bf RSP: 0018:ffffc90003caf410 EFLAGS: 00010286 RAX: 0000000000000030 RBX: 0000000000000027 RCX: 0000000000000000 RDX: ffff88807e1ebb00 RSI: ffffffff81612e28 RDI: fffff52000795e74 RBP: 0000000000000000 R08: 0000000000000030 R09: 0000000000000000 R10: 0000000080000000 R11: 6620746120475542 R12: ffff8880126d4a00 R13: ffffffffb08d048a R14: 0000000000000000 R15: ffff88802163a000 FS: 0000555556eeb300(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000056458760bd28 CR3: 000000007130f000 CR4: 0000000000350ef0 Call Trace: ea_get+0xb16/0x1270 fs/jfs/xattr.c:514 __jfs_getxattr+0xc4/0x3d0 fs/jfs/xattr.c:807 jfs_xattr_get+0x39/0x50 fs/jfs/xattr.c:931 vfs_getxattr_alloc+0x1bc/0x350 fs/xattr.c:380 ima_read_xattr+0x31/0x70 security/integrity/ima/ima_appraise.c:228 process_measurement+0xca2/0x18b0 security/integrity/ima/ima_main.c:319 ima_file_check+0xac/0x100 security/integrity/ima/ima_main.c:517 do_open fs/namei.c:3559 [inline] path_openat+0x1611/0x28f0 fs/namei.c:3691 do_filp_open+0x1b6/0x400 fs/namei.c:3718 do_sys_openat2+0x16d/0x4c0 fs/open.c:1310 do_sys_open fs/open.c:1326 [inline] __do_sys_openat fs/open.c:1342 [inline] __se_sys_openat fs/open.c:1337 [inline] __x64_sys_openat+0x13f/0x1f0 fs/open.c:1337 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7fdc423ecef9 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 c0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007ffc88064f18 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 0030656c69662f2e RCX: 00007fdc423ecef9 RDX: 0000000000000300 RSI: 000000002000c380 RDI: 00000000ffffff9c RBP: 00007fdc423ac6c0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000f8008000 R13: 0000000000000000 R14: 0000001200030083 R15: 0000000000000000 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:dbAlloc.cold+0x5c/0x5e fs/jfs/jfs_dmap.c:708 Code: fa e9 bb 0f 94 f9 e8 47 d7 34 f8 48 c7 c1 80 b1 29 8a ba c4 02 00 00 48 c7 c6 c0 a8 29 8a 48 c7 c7 00 a9 29 8a e8 26 79 f8 ff <0f> 0b e8 21 d7 34 f8 49 63 d6 4c 89 ee 48 c7 c7 60 49 4c 8c e8 bf RSP: 0018:ffffc90003caf410 EFLAGS: 00010286 RAX: 0000000000000030 RBX: 0000000000000027 RCX: 0000000000000000 RDX: ffff88807e1ebb00 RSI: ffffffff81612e28 RDI: fffff52000795e74 RBP: 0000000000000000 R08: 0000000000000030 R09: 0000000000000000 R10: 0000000080000000 R11: 6620746120475542 R12: ffff8880126d4a00 R13: ffffffffb08d048a R14: 0000000000000000 R15: ffff88802163a000 FS: 0000555556eeb300(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000056458760bd28 CR3: 000000007130f000 CR4: 0000000000350ef0