syzbot


KCSAN: data-race in pipe_lock / pipe_release (6)

Status: auto-closed as invalid on 2022/04/01 19:16
Subsystems: fs
[Documentation on labels]
First crash: 1251d, last: 1248d
Similar bugs (15)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in pipe_lock / pipe_release (5) fs 6 1 1321d 1321d 0/29 auto-closed as invalid on 2022/01/18 04:35
upstream KCSAN: data-race in pipe_lock / pipe_release (8) fs 6 1 1069d 1069d 0/29 auto-closed as invalid on 2022/09/27 07:59
upstream KCSAN: data-race in pipe_lock / pipe_release (16) fs 6 1 4d07h 4d07h 0/29 moderation: reported on 2025/07/23 19:58
upstream KCSAN: data-race in pipe_lock / pipe_release (13) fs 6 1 524d 524d 0/29 auto-obsoleted due to no activity on 2024/03/25 04:35
upstream KCSAN: data-race in pipe_lock / pipe_release (15) fs 6 3 184d 256d 0/29 auto-obsoleted due to no activity on 2025/03/21 15:25
upstream KCSAN: data-race in pipe_lock / pipe_release (4) fs 6 1 1583d 1583d 0/29 auto-closed as invalid on 2021/05/02 03:19
upstream KCSAN: data-race in pipe_lock / pipe_release (11) fs 6 1 670d 670d 0/29 auto-obsoleted due to no activity on 2023/10/31 07:05
upstream KCSAN: data-race in pipe_lock / pipe_release (14) fs 6 2 414d 416d 0/29 auto-obsoleted due to no activity on 2024/07/14 01:56
upstream KCSAN: data-race in pipe_lock / pipe_release (9) fs 6 6 815d 944d 0/29 auto-obsoleted due to no activity on 2023/06/09 03:35
upstream KCSAN: data-race in pipe_lock / pipe_release fs 6 2 1848d 1865d 0/29 auto-closed as invalid on 2020/08/09 18:16
upstream KCSAN: data-race in pipe_lock / pipe_release (3) fs 6 1 1740d 1740d 0/29 auto-closed as invalid on 2020/11/25 12:55
upstream KCSAN: data-race in pipe_lock / pipe_release (12) fs 6 1 578d 578d 0/29 auto-obsoleted due to no activity on 2024/01/31 07:04
upstream KCSAN: data-race in pipe_lock / pipe_release (7) fs 6 2 1180d 1208d 0/29 auto-closed as invalid on 2022/06/08 19:34
upstream KCSAN: data-race in pipe_lock / pipe_release (10) fs 6 2 752d 773d 0/29 auto-obsoleted due to no activity on 2023/08/10 23:17
upstream KCSAN: data-race in pipe_lock / pipe_release (2) fs 6 1 1791d 1791d 0/29 auto-closed as invalid on 2020/10/06 00:08

Sample crash report:
==================================================================
BUG: KCSAN: data-race in pipe_lock / pipe_release

write to 0xffff888122585aec of 4 bytes by task 14901 on cpu 1:
 put_pipe_info fs/pipe.c:703 [inline]
 pipe_release+0x186/0x1e0 fs/pipe.c:733
 __fput+0x295/0x520 fs/file_table.c:317
 ____fput+0x11/0x20 fs/file_table.c:350
 task_work_run+0x8e/0x110 kernel/task_work.c:164
 tracehook_notify_resume include/linux/tracehook.h:188 [inline]
 exit_to_user_mode_loop kernel/entry/common.c:175 [inline]
 exit_to_user_mode_prepare+0x160/0x190 kernel/entry/common.c:207
 __syscall_exit_to_user_mode_work kernel/entry/common.c:289 [inline]
 syscall_exit_to_user_mode+0x20/0x40 kernel/entry/common.c:300
 do_syscall_64+0x50/0xd0 arch/x86/entry/common.c:86
 entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffff888122585aec of 4 bytes by task 14902 on cpu 0:
 pipe_lock_nested fs/pipe.c:81 [inline]
 pipe_lock+0x13/0x40 fs/pipe.c:90
 splice_file_to_pipe+0x2a/0x360 fs/splice.c:1015
 do_splice+0xc53/0xde0 fs/splice.c:1104
 __do_splice fs/splice.c:1144 [inline]
 __do_sys_splice fs/splice.c:1350 [inline]
 __se_sys_splice+0x2bd/0x3a0 fs/splice.c:1332
 __x64_sys_splice+0x74/0x80 fs/splice.c:1332
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x44/0xd0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

value changed: 0x00000002 -> 0x00000001

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 14902 Comm: syz-executor.1 Not tainted 5.17.0-rc5-syzkaller-00189-g53ab78cd6d5a-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/02/25 19:15 upstream 53ab78cd6d5a 45a13a73 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in pipe_lock / pipe_release
2022/02/23 01:30 upstream 917bbdb107f8 6e821dbf .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in pipe_lock / pipe_release
* Struck through repros no longer work on HEAD.