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: 3603 Comm: syz-executor112 Not tainted 6.1.0-rc2-syzkaller-00070-g4dc12f37a8e9 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/11/2022 RIP: 0010:dbAlloc.cold+0x5c/0x5e fs/jfs/jfs_dmap.c:708 Code: fa e9 4d 51 8a f9 e8 b9 84 2a f8 48 c7 c1 80 d3 29 8a ba c4 02 00 00 48 c7 c6 c0 ca 29 8a 48 c7 c7 00 cb 29 8a e8 c6 68 f8 ff <0f> 0b e8 93 84 2a f8 49 63 d6 4c 89 ee 48 c7 c7 80 bf 4c 8c e8 b1 RSP: 0018:ffffc90003dcf6a8 EFLAGS: 00010286 RAX: 0000000000000030 RBX: 0000000000000007 RCX: 0000000000000000 RDX: ffff888020e4ba80 RSI: ffffffff81621b98 RDI: fffff520007b9ec7 RBP: 0000000000000000 R08: 0000000000000030 R09: 0000000000000000 R10: 0000000080000000 R11: 6620746120475542 R12: ffff8880186c2c00 R13: ffffffff8cba282d R14: 0000000000000000 R15: ffff8880245c0000 FS: 0000555556fb6300(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fff60761000 CR3: 000000007dd0e000 CR4: 0000000000350ef0 Call Trace: ea_get+0xb16/0x1270 fs/jfs/xattr.c:514 __jfs_setxattr+0xdb/0xfc0 fs/jfs/xattr.c:671 __jfs_xattr_set+0xc9/0x150 fs/jfs/xattr.c:917 __vfs_setxattr+0x115/0x180 fs/xattr.c:182 __vfs_setxattr_noperm+0x125/0x5f0 fs/xattr.c:216 __vfs_setxattr_locked+0x1cf/0x260 fs/xattr.c:277 vfs_setxattr+0x13f/0x330 fs/xattr.c:309 setxattr+0x146/0x160 fs/xattr.c:617 path_setxattr+0x197/0x1c0 fs/xattr.c:636 __do_sys_setxattr fs/xattr.c:652 [inline] __se_sys_setxattr fs/xattr.c:648 [inline] __x64_sys_setxattr+0xc0/0x160 fs/xattr.c:648 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:0x7f47e531cec9 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:00007fff60760638 EFLAGS: 00000246 ORIG_RAX: 00000000000000bc RAX: ffffffffffffffda RBX: 0030656c69662f2e RCX: 00007f47e531cec9 RDX: 0000000000000000 RSI: 0000000020004e40 RDI: 0000000020004e00 RBP: 00007f47e52dc690 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00083878000000f8 R15: 0000000000000000 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:dbAlloc.cold+0x5c/0x5e fs/jfs/jfs_dmap.c:708 Code: fa e9 4d 51 8a f9 e8 b9 84 2a f8 48 c7 c1 80 d3 29 8a ba c4 02 00 00 48 c7 c6 c0 ca 29 8a 48 c7 c7 00 cb 29 8a e8 c6 68 f8 ff <0f> 0b e8 93 84 2a f8 49 63 d6 4c 89 ee 48 c7 c7 80 bf 4c 8c e8 b1 RSP: 0018:ffffc90003dcf6a8 EFLAGS: 00010286 RAX: 0000000000000030 RBX: 0000000000000007 RCX: 0000000000000000 RDX: ffff888020e4ba80 RSI: ffffffff81621b98 RDI: fffff520007b9ec7 RBP: 0000000000000000 R08: 0000000000000030 R09: 0000000000000000 R10: 0000000080000000 R11: 6620746120475542 R12: ffff8880186c2c00 R13: ffffffff8cba282d R14: 0000000000000000 R15: ffff8880245c0000 FS: 0000555556fb6300(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fff60761000 CR3: 000000007dd0e000 CR4: 0000000000350ef0