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/5317 Modules linked in: CPU: 0 UID: 0 PID: 5317 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: 57 fe eb 0c e8 65 f5 57 fe eb 05 e8 5e f5 57 fe 48 83 c4 20 5b 41 5c 41 5d 41 5e 41 5f 5d c3 cc cc cc cc cc e8 45 f5 57 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:ffffc9000f5973c8 EFLAGS: 00010287 RAX: ffffffff836fcf2b RBX: 0000000000002057 RCX: 0000000000100000 RDX: ffffc9000ec19000 RSI: 00000000000007ea RDI: 00000000000007eb RBP: 0000000000000005 R08: 0000000000000000 R09: ffffc9000f5976c0 R10: dffffc0000000000 R11: ffffed10017fce9c R12: ffff8880442e1018 R13: dffffc0000000000 R14: ffff8880442e1010 R15: 0000000000000155 FS: 00007f384d5e96c0(0000) GS:ffff88808c2d1000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000020000000e000 CR3: 0000000044131000 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:61 [inline] do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f384c79e159 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:00007f384d5e8fe8 EFLAGS: 00000246 ORIG_RAX: 00000000000000bc RAX: ffffffffffffffda RBX: 00007f384ca25fa0 RCX: 00007f384c79e159 RDX: 0000200000000180 RSI: 0000200000000140 RDI: 0000200000000100 RBP: 00007f384c835024 R08: 0000000000000000 R09: 0000000000000000 R10: 000000000000e00f R11: 0000000000000246 R12: 0000000000000000 R13: 00007f384ca26038 R14: 00007f384ca25fa0 R15: 00007ffd0fa7d788