syzbot


KCSAN: data-race in do_sendfile / iterate_dir

Status: auto-obsoleted due to no activity on 2024/01/31 12:31
Subsystems: fs
[Documentation on labels]
Reported-by: syzbot+3bee9e0d8e9f06991b80@syzkaller.appspotmail.com
First crash: 398d, last: 398d

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

write to 0xffff888165ad4740 of 8 bytes by task 15222 on cpu 1:
 iterate_dir+0x140/0x300 fs/readdir.c:107
 __do_sys_getdents fs/readdir.c:322 [inline]
 __se_sys_getdents+0x88/0x1a0 fs/readdir.c:307
 __x64_sys_getdents+0x43/0x50 fs/readdir.c:307
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0x44/0x110 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x63/0x6b

read to 0xffff888165ad4740 of 8 bytes by task 15223 on cpu 0:
 do_sendfile+0x118/0x980 fs/read_write.c:1202
 __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:52 [inline]
 do_syscall_64+0x44/0x110 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x63/0x6b

value changed: 0x0000000000000000 -> 0x7fffffffffffffff

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 15223 Comm: syz-executor.5 Tainted: G        W          6.7.0-rc7-syzkaller-00003-gfbafc3e621c3 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023
==================================================================

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