loop0: detected capacity change from 0 to 32768 ------------[ cut here ]------------ lp >= size || lp < 0 WARNING: fs/jfs/jfs_dmap.c:2962 at dbAdjTree+0x3ac/0x430 fs/jfs/jfs_dmap.c:2962, CPU#0: syz.0.0/5325 Modules linked in: CPU: 0 UID: 0 PID: 5325 Comm: syz.0.0 Not tainted syzkaller #0 PREEMPT(full) Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 RIP: 0010:dbAdjTree+0x3ac/0x430 fs/jfs/jfs_dmap.c:2962 Code: 5f fe eb 0c e8 75 24 5f fe eb 05 e8 6e 24 5f fe 48 83 c4 20 5b 41 5c 41 5d 41 5e 41 5f 5d c3 cc cc cc cc cc e8 55 24 5f fe 90 <0f> 0b 90 eb e1 44 89 e1 80 e1 07 80 c1 03 38 c1 0f 8c 8c fc ff ff RSP: 0018:ffffc9000d63f3c8 EFLAGS: 00010287 RAX: ffffffff83674dbb RBX: 0000000000002057 RCX: 0000000000100000 RDX: ffffc9000f55a000 RSI: 0000000000000708 RDI: 0000000000000709 RBP: 0000000000000005 R08: 0000000000000000 R09: ffffc9000d63f6c0 R10: dffffc0000000000 R11: ffffed100255629c R12: ffff888012442018 R13: dffffc0000000000 R14: ffff888012442010 R15: 0000000000000155 FS: 00007f3c332f86c0(0000) GS:ffff88808c815000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000020000000e000 CR3: 0000000012477000 CR4: 0000000000352ef0 Call Trace: dbSplit+0x132/0x200 fs/jfs/jfs_dmap.c:2735 dbAllocBits+0x4c4/0xa00 fs/jfs/jfs_dmap.c:2280 dbAllocDmap fs/jfs/jfs_dmap.c:2121 [inline] dbAllocNear+0x29b/0x3c0 fs/jfs/jfs_dmap.c:1334 dbAlloc+0x937/0xba0 fs/jfs/jfs_dmap.c:919 ea_write+0x385/0xe20 fs/jfs/xattr.c:232 ea_put fs/jfs/xattr.c:619 [inline] __jfs_setxattr+0xca6/0x1190 fs/jfs/xattr.c:792 __jfs_xattr_set+0xda/0x170 fs/jfs/xattr.c:941 __vfs_setxattr+0x442/0x480 fs/xattr.c:223 __vfs_setxattr_noperm+0x12a/0x660 fs/xattr.c:257 vfs_setxattr+0x163/0x360 fs/xattr.c:344 do_setxattr fs/xattr.c:662 [inline] filename_setxattr+0x296/0x630 fs/xattr.c:690 path_setxattrat+0x408/0x450 fs/xattr.c:734 __do_sys_setxattr fs/xattr.c:768 [inline] __se_sys_setxattr fs/xattr.c:764 [inline] __x64_sys_setxattr+0xbc/0xe0 fs/xattr.c:764 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x174/0x580 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f3c3239ce59 Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 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 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f3c332f7fe8 EFLAGS: 00000246 ORIG_RAX: 00000000000000bc RAX: ffffffffffffffda RBX: 00007f3c32615fa0 RCX: 00007f3c3239ce59 RDX: 0000200000000200 RSI: 00002000000001c0 RDI: 0000200000000000 RBP: 00007f3c32432e6f R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000841 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f3c32616038 R14: 00007f3c32615fa0 R15: 00007fff8bc00d18