syzbot


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

Status: auto-obsoleted due to no activity on 2024/01/14 07:58
Subsystems: fs
[Documentation on labels]
Reported-by: syzbot+c9a992ffce5fb562f791@syzkaller.appspotmail.com
First crash: 148d, last: 145d
Similar bugs (15)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in do_sendfile / ksys_write (16) fs 1 10d 10d 0/26 moderation: reported on 2024/04/23 12:59
upstream KCSAN: data-race in do_sendfile / ksys_write (5) fs 1 1200d 1200d 0/26 auto-closed as invalid on 2021/02/23 08:15
upstream KCSAN: data-race in do_sendfile / ksys_write (7) fs 3 832d 855d 0/26 auto-closed as invalid on 2022/02/27 04:59
upstream KCSAN: data-race in do_sendfile / ksys_write (8) fs 1 791d 791d 0/26 auto-closed as invalid on 2022/04/08 18:00
upstream KCSAN: data-race in do_sendfile / ksys_write (12) fs 2 320d 334d 0/26 auto-obsoleted due to no activity on 2023/07/23 08:25
upstream KCSAN: data-race in do_sendfile / ksys_write (15) fs 1 70d 70d 0/26 auto-obsoleted due to no activity on 2024/03/29 14:30
upstream KCSAN: data-race in do_sendfile / ksys_write fs 1 1643d 1643d 0/26 closed as invalid on 2019/11/19 13:24
upstream KCSAN: data-race in do_sendfile / ksys_write (13) fs 5 213d 270d 0/26 auto-obsoleted due to no activity on 2023/11/07 08:57
upstream KCSAN: data-race in do_sendfile / ksys_write (2) fs 2 1527d 1589d 0/26 auto-closed as invalid on 2020/05/08 04:57
upstream KCSAN: data-race in do_sendfile / ksys_write (6) fs 1 1133d 1133d 0/26 auto-closed as invalid on 2021/05/17 10:56
upstream KCSAN: data-race in do_sendfile / ksys_write (4) fs 1 1236d 1236d 0/26 auto-closed as invalid on 2021/01/18 19:47
upstream KCSAN: data-race in do_sendfile / ksys_write (10) fs 1 650d 650d 0/26 auto-closed as invalid on 2022/08/27 13:39
upstream KCSAN: data-race in do_sendfile / ksys_write (3) fs 1 1310d 1310d 0/26 auto-closed as invalid on 2020/11/06 02:13
upstream KCSAN: data-race in do_sendfile / ksys_write (9) fs 2 732d 735d 0/26 auto-closed as invalid on 2022/06/06 18:20
upstream KCSAN: data-race in do_sendfile / ksys_write (11) fs 1 583d 583d 0/26 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 0xffff888152df4b40 of 8 bytes by task 4289 on cpu 0:
 do_sendfile+0x76b/0x980 fs/read_write.c:1269
 __do_sys_sendfile64 fs/read_write.c:1316 [inline]
 __se_sys_sendfile64 fs/read_write.c:1308 [inline]
 __x64_sys_sendfile64+0xbd/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

write to 0xffff888152df4b40 of 8 bytes by task 4280 on cpu 1:
 ksys_write+0x11e/0x1a0 fs/read_write.c:639
 __do_sys_write fs/read_write.c:649 [inline]
 __se_sys_write fs/read_write.c:646 [inline]
 __x64_sys_write+0x42/0x50 fs/read_write.c:646
 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 -> 0x00000000000000bf

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 4280 Comm: syz-executor.0 Not tainted 6.7.0-rc4-syzkaller-00384-gb10a3ccaf6e3 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/10/2023
==================================================================

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/12/10 07:58 upstream b10a3ccaf6e3 28b24332 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in do_sendfile / ksys_write
2023/12/07 16:46 upstream bee0e7762ad2 0a02ce36 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in do_sendfile / ksys_write
* Struck through repros no longer work on HEAD.