syzbot


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

Status: auto-obsoleted due to no activity on 2025/03/21 15:25
Subsystems: fs
[Documentation on labels]
Reported-by: syzbot+90e7acbb2c8800fe6b7f@syzkaller.appspotmail.com
First crash: 135d, last: 62d
Similar bugs (14)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in pipe_lock / pipe_release (5) fs 1 1200d 1200d 0/28 auto-closed as invalid on 2022/01/18 04:35
upstream KCSAN: data-race in pipe_lock / pipe_release (8) fs 1 947d 947d 0/28 auto-closed as invalid on 2022/09/27 07:59
upstream KCSAN: data-race in pipe_lock / pipe_release (13) fs 1 403d 403d 0/28 auto-obsoleted due to no activity on 2024/03/25 04:35
upstream KCSAN: data-race in pipe_lock / pipe_release (4) fs 1 1461d 1461d 0/28 auto-closed as invalid on 2021/05/02 03:19
upstream KCSAN: data-race in pipe_lock / pipe_release (11) fs 1 548d 548d 0/28 auto-obsoleted due to no activity on 2023/10/31 07:05
upstream KCSAN: data-race in pipe_lock / pipe_release (14) fs 2 292d 294d 0/28 auto-obsoleted due to no activity on 2024/07/14 01:56
upstream KCSAN: data-race in pipe_lock / pipe_release (6) fs 2 1126d 1129d 0/28 auto-closed as invalid on 2022/04/01 19:16
upstream KCSAN: data-race in pipe_lock / pipe_release (9) fs 6 693d 823d 0/28 auto-obsoleted due to no activity on 2023/06/09 03:35
upstream KCSAN: data-race in pipe_lock / pipe_release fs 2 1726d 1743d 0/28 auto-closed as invalid on 2020/08/09 18:16
upstream KCSAN: data-race in pipe_lock / pipe_release (3) fs 1 1618d 1618d 0/28 auto-closed as invalid on 2020/11/25 12:55
upstream KCSAN: data-race in pipe_lock / pipe_release (12) fs 1 456d 456d 0/28 auto-obsoleted due to no activity on 2024/01/31 07:04
upstream KCSAN: data-race in pipe_lock / pipe_release (7) fs 2 1058d 1086d 0/28 auto-closed as invalid on 2022/06/08 19:34
upstream KCSAN: data-race in pipe_lock / pipe_release (10) fs 2 630d 651d 0/28 auto-obsoleted due to no activity on 2023/08/10 23:17
upstream KCSAN: data-race in pipe_lock / pipe_release (2) fs 1 1669d 1669d 0/28 auto-closed as invalid on 2020/10/06 00:08

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

read-write to 0xffff88812b37872c of 4 bytes by task 5204 on cpu 0:
 put_pipe_info fs/pipe.c:713 [inline]
 pipe_release+0x15e/0x1c0 fs/pipe.c:743
 __fput+0x2ac/0x640 fs/file_table.c:450
 __fput_sync+0x96/0xc0 fs/file_table.c:536
 __do_sys_close fs/open.c:1579 [inline]
 __se_sys_close+0x109/0x1b0 fs/open.c:1564
 __x64_sys_close+0x1f/0x30 fs/open.c:1564
 x64_sys_call+0x266c/0x2dc0 arch/x86/include/generated/asm/syscalls_64.h:4
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xc9/0x1c0 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

read to 0xffff88812b37872c of 4 bytes by task 5203 on cpu 1:
 pipe_lock+0x17/0x50 fs/pipe.c:91
 ipipe_prep fs/splice.c:1659 [inline]
 splice_pipe_to_pipe fs/splice.c:1734 [inline]
 do_splice+0x200/0x1100 fs/splice.c:1331
 __do_splice fs/splice.c:1436 [inline]
 __do_sys_splice fs/splice.c:1639 [inline]
 __se_sys_splice+0x259/0x3a0 fs/splice.c:1621
 __x64_sys_splice+0x78/0x90 fs/splice.c:1621
 x64_sys_call+0x2ce8/0x2dc0 arch/x86/include/generated/asm/syscalls_64.h:276
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xc9/0x1c0 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

value changed: 0x00000002 -> 0x00000001

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 UID: 0 PID: 5203 Comm: syz.2.613 Not tainted 6.13.0-syzkaller-05474-g113691ce9f32 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 12/27/2024
==================================================================

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/01/24 15:25 upstream 113691ce9f32 1293872d .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pipe_lock / pipe_release
2024/12/19 08:36 upstream eabcdba3ad40 1432fc84 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pipe_lock / pipe_release
2024/11/13 04:27 upstream 3022e9d00ebe 62026c85 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pipe_lock / pipe_release
* Struck through repros no longer work on HEAD.