syzbot


KCSAN: data-race in do_sendfile / ksys_write (10)

Status: auto-closed as invalid on 2022/08/27 13:39
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 136d, last: 136d
similar bugs (10):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in do_sendfile / ksys_write (5) 1 686d 686d 0/24 auto-closed as invalid on 2021/02/23 08:15
upstream KCSAN: data-race in do_sendfile / ksys_write (7) 3 317d 341d 0/24 auto-closed as invalid on 2022/02/27 04:59
upstream KCSAN: data-race in do_sendfile / ksys_write (8) 1 276d 276d 0/24 auto-closed as invalid on 2022/04/08 18:00
upstream KCSAN: data-race in do_sendfile / ksys_write 1 1129d 1129d 0/24 closed as invalid on 2019/11/19 13:24
upstream KCSAN: data-race in do_sendfile / ksys_write (2) 2 1012d 1074d 0/24 auto-closed as invalid on 2020/05/08 04:57
upstream KCSAN: data-race in do_sendfile / ksys_write (6) 1 618d 618d 0/24 auto-closed as invalid on 2021/05/17 10:56
upstream KCSAN: data-race in do_sendfile / ksys_write (4) 1 721d 721d 0/24 auto-closed as invalid on 2021/01/18 19:47
upstream KCSAN: data-race in do_sendfile / ksys_write (3) 1 795d 795d 0/24 auto-closed as invalid on 2020/11/06 02:13
upstream KCSAN: data-race in do_sendfile / ksys_write (9) 2 217d 220d 0/24 auto-closed as invalid on 2022/06/06 18:20
upstream KCSAN: data-race in do_sendfile / ksys_write (11) 1 68d 68d 0/24 auto-obsoleted due to no activity on 2022/11/02 18:18

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

write to 0xffff888104acb268 of 8 bytes by task 24493 on cpu 1:
 ksys_write+0x11b/0x1a0 fs/read_write.c:646
 __do_sys_write fs/read_write.c:656 [inline]
 __se_sys_write fs/read_write.c:653 [inline]
 __x64_sys_write+0x3e/0x50 fs/read_write.c:653
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

read to 0xffff888104acb268 of 8 bytes by task 24492 on cpu 0:
 do_sendfile+0x119/0x900 fs/read_write.c:1210
 __do_sys_sendfile64 fs/read_write.c:1327 [inline]
 __se_sys_sendfile64 fs/read_write.c:1313 [inline]
 __x64_sys_sendfile64+0x10c/0x150 fs/read_write.c:1313
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

value changed: 0x0000000000000d6a -> 0x0000000000000f22

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 24492 Comm: syz-executor.3 Not tainted 5.19.0-rc7-syzkaller-00190-g70664fc10c0d-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/29/2022
==================================================================

Crashes (1):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2022/07/23 13:33 upstream 70664fc10c0d 22343af4 .config log report info KCSAN: data-race in do_sendfile / ksys_write
* Struck through repros no longer work on HEAD.