syzbot


KCSAN: data-race in pipe_unlock / put_pipe_info

Status: closed as invalid on 2019/11/19 14:44
Subsystems: fs
[Documentation on labels]
First crash: 1636d, last: 1631d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in pipe_unlock / put_pipe_info (2) fs 1 1549d 1549d 0/26 auto-closed as invalid on 2020/04/08 11:27

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

read to 0xffff8880a6c77f4c of 4 bytes by task 12317 on cpu 0:
 pipe_unlock+0x22/0x60 fs/pipe.c:77
 vmsplice_to_user fs/splice.c:1273 [inline]
 do_vmsplice.part.0+0x1d0/0x210 fs/splice.c:1350
 do_vmsplice fs/splice.c:1344 [inline]
 __do_sys_vmsplice+0x15f/0x1c0 fs/splice.c:1371
 __se_sys_vmsplice fs/splice.c:1353 [inline]
 __x64_sys_vmsplice+0x5e/0x80 fs/splice.c:1353
 do_syscall_64+0xcc/0x370 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

write to 0xffff8880a6c77f4c of 4 bytes by task 12300 on cpu 1:
 put_pipe_info+0x4d/0xb0 fs/pipe.c:575
 pipe_release+0x152/0x1b0 fs/pipe.c:603
 __fput+0x1e1/0x520 fs/file_table.c:280
 ____fput+0x1f/0x30 fs/file_table.c:313
 task_work_run+0xf6/0x130 kernel/task_work.c:113
 tracehook_notify_resume include/linux/tracehook.h:188 [inline]
 exit_to_usermode_loop+0x2b4/0x2c0 arch/x86/entry/common.c:163
 prepare_exit_to_usermode arch/x86/entry/common.c:194 [inline]
 syscall_return_slowpath arch/x86/entry/common.c:274 [inline]
 do_syscall_64+0x353/0x370 arch/x86/entry/common.c:300
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 12300 Comm: syz-executor.2 Not tainted 5.4.0-rc6+ #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
2019/11/08 17:36 https://github.com/google/ktsan.git kcsan 94c006602e13 1e35461e .config console log report ci2-upstream-kcsan-gce
2019/11/03 02:45 https://github.com/google/ktsan.git kcsan 05f2236801fe d603afc9 .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.