syzbot


WARNING in file_seek_cur_needs_f_lock

Status: moderation: reported on 2025/04/03 14:29
Subsystems: fs
[Documentation on labels]
Reported-by: syzbot+b415b0d7312b2ab38043@syzkaller.appspotmail.com
First crash: 4d23h, last: 4d23h

Sample crash report:
loop0: detected capacity change from 0 to 8
SQUASHFS error: Unable to read inode 0xa7
------------[ cut here ]------------
WARNING: CPU: 0 PID: 5323 at fs/file.c:1202 file_seek_cur_needs_f_lock+0x11f/0x150 fs/file.c:1201
Modules linked in:
CPU: 0 UID: 0 PID: 5323 Comm: syz.0.0 Not tainted 6.14.0-syzkaller-10167-g93d52288679e #0 PREEMPT(full) 
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014
RIP: 0010:file_seek_cur_needs_f_lock+0x11f/0x150 fs/file.c:1201
Code: 74 22 e8 04 46 7d ff eb 05 e8 fd 45 7d ff b0 01 5b 41 5e 41 5f 5d c3 cc cc cc cc e8 eb 45 7d ff 31 c0 eb ec e8 e2 45 7d ff 90 <0f> 0b 90 eb df 89 d9 80 e1 07 80 c1 03 38 c1 0f 8c 00 ff ff ff 48
RSP: 0018:ffffc9000d407e78 EFLAGS: 00010283
RAX: ffffffff8246250e RBX: 0000000000000000 RCX: 0000000000100000
RDX: ffffc9000e3e2000 RSI: 000000000000000d RDI: 000000000000000e
RBP: 0000000000000000 R08: ffff888040691417 R09: 1ffff110080d2282
R10: dffffc0000000000 R11: ffffed10080d2283 R12: 0000000000000001
R13: fffffffffffffffc R14: ffff888040691410 R15: bfffffffffffffff
FS:  00007f5a5dff56c0(0000) GS:ffff88808c5b7000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000200000004280 CR3: 000000003c650000 CR4: 0000000000352ef0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 generic_file_llseek_size+0xa7/0x4b0 fs/read_write.c:178
 vfs_llseek fs/read_write.c:387 [inline]
 ksys_lseek fs/read_write.c:400 [inline]
 __do_sys_lseek fs/read_write.c:410 [inline]
 __se_sys_lseek fs/read_write.c:408 [inline]
 __x64_sys_lseek+0x14c/0x1e0 fs/read_write.c:408
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xf3/0x230 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f5a61b8d169
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 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f5a5dff5038 EFLAGS: 00000246 ORIG_RAX: 0000000000000008
RAX: ffffffffffffffda RBX: 00007f5a61da5fa0 RCX: 00007f5a61b8d169
RDX: 0000000000000001 RSI: fffffffffffffffc RDI: 0000000000000006
RBP: 00007f5a61c0e2a0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007f5a61da5fa0 R15: 00007ffd8caef768
 </TASK>

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/03/30 14:23 upstream 93d52288679e d3999433 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in file_seek_cur_needs_f_lock
* Struck through repros no longer work on HEAD.