syzbot


KCSAN: data-race in pipe_lock / put_pipe_info

Status: auto-closed as invalid on 2021/06/01 03:04
Subsystems: fs
[Documentation on labels]
First crash: 1093d, last: 1089d
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in pipe_lock / put_pipe_info (2) fs 1 1016d 1016d 0/26 auto-closed as invalid on 2021/08/12 19:55
upstream KCSAN: data-race in pipe_lock / put_pipe_info (3) fs 3 940d 949d 0/26 auto-closed as invalid on 2021/10/28 02:17

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

write to 0xffff88812bfdf66c of 4 bytes by task 32405 on cpu 1:
 put_pipe_info+0x3d/0xe0 fs/pipe.c:688
 pipe_release+0x15e/0x170 fs/pipe.c:718
 __fput+0x25b/0x4e0 fs/file_table.c:280
 ____fput+0x11/0x20 fs/file_table.c:313
 task_work_run+0xae/0x130 kernel/task_work.c:140
 tracehook_notify_resume include/linux/tracehook.h:189 [inline]
 exit_to_user_mode_loop kernel/entry/common.c:174 [inline]
 exit_to_user_mode_prepare+0x151/0x170 kernel/entry/common.c:208
 __syscall_exit_to_user_mode_work kernel/entry/common.c:290 [inline]
 syscall_exit_to_user_mode+0x20/0x40 kernel/entry/common.c:301
 do_syscall_64+0x40/0x50 arch/x86/entry/common.c:56
 entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffff88812bfdf66c of 4 bytes by task 32409 on cpu 0:
 pipe_lock_nested fs/pipe.c:65 [inline]
 pipe_lock+0x13/0x40 fs/pipe.c:74
 vmsplice_to_pipe fs/splice.c:1255 [inline]
 __do_sys_vmsplice fs/splice.c:1322 [inline]
 __se_sys_vmsplice+0x264/0x940 fs/splice.c:1296
 __x64_sys_vmsplice+0x51/0x60 fs/splice.c:1296
 do_syscall_64+0x34/0x50 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xae

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

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/04/27 03:04 upstream 9f4ad9e425a1 8ee2dea6 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in pipe_lock / put_pipe_info
2021/04/23 09:08 upstream 90c911ad7445 590921a5 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in pipe_lock / put_pipe_info
2021/04/22 13:57 upstream 16fc44d6387e 33c28d03 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in pipe_lock / put_pipe_info
* Struck through repros no longer work on HEAD.