syzbot


KCSAN: data-race in pipe_double_lock / pipe_release

Status: auto-closed as invalid on 2020/07/23 17:42
Subsystems: fs
[Documentation on labels]
First crash: 1408d, last: 1408d
Similar bugs (3)
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 193d 193d 0/26 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 100d 100d 0/26 auto-obsoleted due to no activity on 2024/02/21 21:32
upstream KCSAN: data-race in pipe_double_lock / pipe_release (2) fs 1 298d 298d 0/26 auto-obsoleted due to no activity on 2023/08/07 23:55

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

write to 0xffff8880a247e42c of 4 bytes by task 7539 on cpu 1:
 put_pipe_info fs/pipe.c:707 [inline]
 pipe_release+0x186/0x1e0 fs/pipe.c:737
 __fput+0x1df/0x460 fs/file_table.c:281
 ____fput+0x11/0x20 fs/file_table.c:314
 task_work_run+0x8e/0x110 kernel/task_work.c:123
 tracehook_notify_resume include/linux/tracehook.h:188 [inline]
 exit_to_usermode_loop arch/x86/entry/common.c:216 [inline]
 __prepare_exit_to_usermode+0x1c8/0x230 arch/x86/entry/common.c:246
 __syscall_return_slowpath arch/x86/entry/common.c:329 [inline]
 do_syscall_64+0xb9/0x120 arch/x86/entry/common.c:368
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

read to 0xffff8880a247e42c of 4 bytes by task 7559 on cpu 0:
 pipe_lock_nested fs/pipe.c:65 [inline]
 pipe_double_lock+0x79/0xe0 fs/pipe.c:102
 splice_pipe_to_pipe fs/splice.c:1532 [inline]
 do_splice+0x2e2/0x1060 fs/splice.c:1118
 __do_sys_splice fs/splice.c:1419 [inline]
 __se_sys_splice fs/splice.c:1401 [inline]
 __x64_sys_splice+0xf2/0x190 fs/splice.c:1401
 do_syscall_64+0x71/0x120 arch/x86/entry/common.c:359
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 7559 Comm: syz-executor.4 Not tainted 5.8.0-rc1-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/06/18 17:41 upstream 1b5044021070 3ea11d3f .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.