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-executor406 Not tainted 6.0.0-syzkaller-03015-g2bca25eaeba6 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/22/2022 RIP: 0010:dbAlloc+0xc7d/0xc90 fs/jfs/jfs_dmap.c:708 Code: 29 07 0f 0b e8 44 97 89 fe 48 c7 c7 40 91 cd 8a 48 c7 c6 00 9f cd 8a ba c4 02 00 00 48 c7 c1 80 91 cd 8a 31 c0 e8 d4 3b 29 07 <0f> 0b e8 3c 35 2b 07 66 2e 0f 1f 84 00 00 00 00 00 66 90 55 41 57 RSP: 0018:ffffc90003d2f0e0 EFLAGS: 00010246 RAX: 0000000000000030 RBX: ffff88807f2f7210 RCX: b1fa7b23e4f40b00 RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000000000000000 RBP: ffffc90003d2f1f0 R08: ffffffff816af5fd R09: ffffed10173467f1 R10: ffffed10173467f1 R11: 1ffff110173467f0 R12: 0000000000000027 R13: 0000000000000000 R14: 0000000000000000 R15: 1ffff920007a5e28 FS: 000055555746b300(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000002000c380 CR3: 00000000722fb000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: ea_get+0x916/0x1290 fs/jfs/xattr.c:514 __jfs_getxattr+0xc4/0x400 fs/jfs/xattr.c:807 vfs_getxattr_alloc+0x47f/0x5d0 fs/xattr.c:380 ima_read_xattr+0x35/0x60 security/integrity/ima/ima_appraise.c:228 process_measurement+0xd5d/0x1bd0 security/integrity/ima/ima_main.c:319 ima_file_check+0xd8/0x130 security/integrity/ima/ima_main.c:517 do_open fs/namei.c:3559 [inline] path_openat+0x2642/0x2df0 fs/namei.c:3691 do_filp_open+0x264/0x4f0 fs/namei.c:3718 do_sys_openat2+0x124/0x4e0 fs/open.c:1313 do_sys_open fs/open.c:1329 [inline] __do_sys_openat fs/open.c:1345 [inline] __se_sys_openat fs/open.c:1340 [inline] __x64_sys_openat+0x243/0x290 fs/open.c:1340 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f1d7aee1d99 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:00007fff2cc67f88 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 0030656c69662f2e RCX: 00007f1d7aee1d99 RDX: 0000000000000300 RSI: 000000002000c380 RDI: 00000000ffffff9c RBP: 00007f1d7af2a5b0 R08: 0000000000000001 R09: 0000000000000001 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000020051c20 R13: 0000000020050ca0 R14: 00000000200326a0 R15: 0000000000000000 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:dbAlloc+0xc7d/0xc90 fs/jfs/jfs_dmap.c:708 Code: 29 07 0f 0b e8 44 97 89 fe 48 c7 c7 40 91 cd 8a 48 c7 c6 00 9f cd 8a ba c4 02 00 00 48 c7 c1 80 91 cd 8a 31 c0 e8 d4 3b 29 07 <0f> 0b e8 3c 35 2b 07 66 2e 0f 1f 84 00 00 00 00 00 66 90 55 41 57 RSP: 0018:ffffc90003d2f0e0 EFLAGS: 00010246 RAX: 0000000000000030 RBX: ffff88807f2f7210 RCX: b1fa7b23e4f40b00 RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000000000000000 RBP: ffffc90003d2f1f0 R08: ffffffff816af5fd R09: ffffed10173467f1 R10: ffffed10173467f1 R11: 1ffff110173467f0 R12: 0000000000000027 R13: 0000000000000000 R14: 0000000000000000 R15: 1ffff920007a5e28 FS: 000055555746b300(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00005627113dc400 CR3: 00000000722fb000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400