loop0: detected capacity change from 0 to 32768 BUG at fs/jfs/jfs_dmap.c:723 assert(nblocks > 0) ------------[ cut here ]------------ kernel BUG at fs/jfs/jfs_dmap.c:723! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 5234 Comm: syz-executor360 Not tainted 6.1.0-rc3-next-20221104-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 RIP: 0010:dbAlloc.cold+0x5c/0x5e fs/jfs/jfs_dmap.c:723 Code: fa e9 b2 75 7a f9 e8 9e 98 1a f8 48 c7 c1 c0 cf 29 8a ba d3 02 00 00 48 c7 c6 00 c7 29 8a 48 c7 c7 40 c7 29 8a e8 87 67 f8 ff <0f> 0b e8 78 98 1a f8 49 63 d6 4c 89 ee 48 c7 c7 40 93 4c 8c e8 36 RSP: 0018:ffffc90003a8f420 EFLAGS: 00010286 RAX: 0000000000000030 RBX: 0000000000000027 RCX: 0000000000000000 RDX: ffff888078d7ba80 RSI: ffffffff81625318 RDI: fffff52000751e76 RBP: 0000000000000000 R08: 0000000000000030 R09: 0000000000000000 R10: 0000000080000000 R11: 0000000000000000 R12: ffff888149729800 R13: ffffffffb08d048a R14: 0000000000000000 R15: ffff888076c58000 FS: 0000555555db9300(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000002000c380 CR3: 0000000076fee000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 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:394 ima_read_xattr+0x31/0x70 security/integrity/ima/ima_appraise.c:228 process_measurement+0xc79/0x1860 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+0x15f1/0x2a50 fs/namei.c:3713 do_filp_open+0x1b6/0x400 fs/namei.c:3740 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:0x7f3d67dfdef9 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:00007ffe056b0de8 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 0030656c69662f2e RCX: 00007f3d67dfdef9 RDX: 0000000000000300 RSI: 000000002000c380 RDI: 00000000ffffff9c RBP: 00007f3d67dbd6c0 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:723 Code: fa e9 b2 75 7a f9 e8 9e 98 1a f8 48 c7 c1 c0 cf 29 8a ba d3 02 00 00 48 c7 c6 00 c7 29 8a 48 c7 c7 40 c7 29 8a e8 87 67 f8 ff <0f> 0b e8 78 98 1a f8 49 63 d6 4c 89 ee 48 c7 c7 40 93 4c 8c e8 36 RSP: 0018:ffffc90003a8f420 EFLAGS: 00010286 RAX: 0000000000000030 RBX: 0000000000000027 RCX: 0000000000000000 RDX: ffff888078d7ba80 RSI: ffffffff81625318 RDI: fffff52000751e76 RBP: 0000000000000000 R08: 0000000000000030 R09: 0000000000000000 R10: 0000000080000000 R11: 0000000000000000 R12: ffff888149729800 R13: ffffffffb08d048a R14: 0000000000000000 R15: ffff888076c58000 FS: 0000555555db9300(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000002000c380 CR3: 0000000076fee000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400