syzbot


KCSAN: data-race in do_sendfile / generic_file_llseek_size (3)

Status: auto-obsoleted due to no activity on 2024/01/09 18:17
Subsystems: ext4
[Documentation on labels]
Reported-by: syzbot+016396bc5e843e4e563b@syzkaller.appspotmail.com
First crash: 610d, last: 610d
Similar bugs (2)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in do_sendfile / generic_file_llseek_size (2) ext4 6 1 771d 771d 0/29 auto-obsoleted due to no activity on 2023/07/29 04:16
upstream KCSAN: data-race in do_sendfile / generic_file_llseek_size fs 6 1 1297d 1297d 0/29 auto-closed as invalid on 2022/02/18 10:51

Sample crash report:
==================================================================
BUG: KCSAN: data-race in do_sendfile / generic_file_llseek_size

read to 0xffff888160bcfb40 of 8 bytes by task 15986 on cpu 1:
 vfs_setpos fs/read_write.c:61 [inline]
 generic_file_llseek_size+0x17a/0x2a0 fs/read_write.c:130
 ext4_llseek+0x166/0x190 fs/ext4/file.c:908
 vfs_llseek fs/read_write.c:289 [inline]
 ksys_lseek fs/read_write.c:302 [inline]
 __do_sys_lseek fs/read_write.c:313 [inline]
 __se_sys_lseek fs/read_write.c:311 [inline]
 __x64_sys_lseek+0xe9/0x150 fs/read_write.c:311
 do_syscall_x64 arch/x86/entry/common.c:51 [inline]
 do_syscall_64+0x44/0x110 arch/x86/entry/common.c:82
 entry_SYSCALL_64_after_hwframe+0x63/0x6b

write to 0xffff888160bcfb40 of 8 bytes by task 15987 on cpu 0:
 do_sendfile+0x76b/0x980 fs/read_write.c:1269
 __do_sys_sendfile64 fs/read_write.c:1322 [inline]
 __se_sys_sendfile64 fs/read_write.c:1308 [inline]
 __x64_sys_sendfile64+0x110/0x150 fs/read_write.c:1308
 do_syscall_x64 arch/x86/entry/common.c:51 [inline]
 do_syscall_64+0x44/0x110 arch/x86/entry/common.c:82
 entry_SYSCALL_64_after_hwframe+0x63/0x6b

value changed: 0x0000000000000000 -> 0x0000000000020400

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 15987 Comm: syz-executor.5 Tainted: G        W          6.7.0-rc3-syzkaller-00134-g994d5c58e50e #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/10/2023
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/12/01 23:34 upstream 994d5c58e50e f819d6f7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in do_sendfile / generic_file_llseek_size
* Struck through repros no longer work on HEAD.