syzbot


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

Status: moderation: reported on 2024/11/06 13:02
Subsystems: fs
[Documentation on labels]
Reported-by: syzbot+df6955318ab0bcec41f9@syzkaller.appspotmail.com
First crash: 12h36m, last: 12h36m
Similar bugs (5)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in pipe_double_lock / pipe_release (3) fs 1 386d 386d 0/28 auto-obsoleted due to no activity on 2023/11/21 02:37
upstream KCSAN: data-race in pipe_double_lock / pipe_release (4) fs 1 294d 294d 0/28 auto-obsoleted due to no activity on 2024/02/21 21:32
upstream KCSAN: data-race in pipe_double_lock / pipe_release (5) fs 1 148d 148d 0/28 auto-obsoleted due to no activity on 2024/07/16 19:28
upstream KCSAN: data-race in pipe_double_lock / pipe_release (2) fs 1 492d 492d 0/28 auto-obsoleted due to no activity on 2023/08/07 23:55
upstream KCSAN: data-race in pipe_double_lock / pipe_release fs 1 1602d 1602d 0/28 auto-closed as invalid on 2020/07/23 17:42

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

read-write to 0xffff888116cf7c6c of 4 bytes by task 15359 on cpu 1:
 put_pipe_info fs/pipe.c:712 [inline]
 pipe_release+0x15e/0x1c0 fs/pipe.c:742
 __fput+0x17a/0x6d0 fs/file_table.c:431
 ____fput+0x1c/0x30 fs/file_table.c:459
 task_work_run+0x13a/0x1a0 kernel/task_work.c:239
 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline]
 exit_to_user_mode_loop kernel/entry/common.c:114 [inline]
 exit_to_user_mode_prepare include/linux/entry-common.h:328 [inline]
 __syscall_exit_to_user_mode_work kernel/entry/common.c:207 [inline]
 syscall_exit_to_user_mode+0xbe/0x130 kernel/entry/common.c:218
 do_syscall_64+0xd6/0x1c0 arch/x86/entry/common.c:89
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

read to 0xffff888116cf7c6c of 4 bytes by task 15360 on cpu 0:
 pipe_lock fs/pipe.c:91 [inline]
 pipe_double_lock+0x5b/0xa0 fs/pipe.c:112
 link_pipe fs/splice.c:1891 [inline]
 do_tee+0x2e9/0x960 fs/splice.c:1994
 __do_sys_tee fs/splice.c:2022 [inline]
 __se_sys_tee fs/splice.c:2006 [inline]
 __x64_sys_tee+0xc5/0x160 fs/splice.c:2006
 x64_sys_call+0x16d3/0x2d60 arch/x86/include/generated/asm/syscalls_64.h:277
 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: 0 UID: 0 PID: 15360 Comm: syz.6.11624 Tainted: G        W          6.12.0-rc6-syzkaller-00077-g2e1b3cc9d7f7 #0
Tainted: [W]=WARN
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/11/06 13:01 upstream 2e1b3cc9d7f7 3a465482 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pipe_double_lock / pipe_release
* Struck through repros no longer work on HEAD.