syzbot


KCSAN: data-race in pipe_lock / put_pipe_info (3)

Status: auto-closed as invalid on 2021/10/28 02:17
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 440d, last: 431d
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) 1 507d 507d 0/24 auto-closed as invalid on 2021/08/12 19:55
upstream KCSAN: data-race in pipe_lock / put_pipe_info 3 580d 580d 0/24 auto-closed as invalid on 2021/06/01 03:04

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

write to 0xffff88813772336c of 4 bytes by task 22292 on cpu 1:
 put_pipe_info+0x3d/0xe0 fs/pipe.c:702
 pipe_release+0x15e/0x170 fs/pipe.c:732
 __fput+0x295/0x520 fs/file_table.c:280
 ____fput+0x11/0x20 fs/file_table.c:313
 task_work_run+0xae/0x130 kernel/task_work.c:164
 tracehook_notify_resume include/linux/tracehook.h:189 [inline]
 exit_to_user_mode_loop kernel/entry/common.c:175 [inline]
 exit_to_user_mode_prepare+0x156/0x190 kernel/entry/common.c:209
 __syscall_exit_to_user_mode_work kernel/entry/common.c:291 [inline]
 syscall_exit_to_user_mode+0x20/0x40 kernel/entry/common.c:302
 do_syscall_64+0x50/0xa0 arch/x86/entry/common.c:86
 entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffff88813772336c of 4 bytes by task 22300 on cpu 0:
 pipe_lock_nested fs/pipe.c:80 [inline]
 pipe_lock+0x13/0x40 fs/pipe.c:89
 vmsplice_to_user fs/splice.c:1228 [inline]
 __do_sys_vmsplice fs/splice.c:1324 [inline]
 __se_sys_vmsplice+0x3a6/0x9a0 fs/splice.c:1296
 __x64_sys_vmsplice+0x51/0x60 fs/splice.c:1296
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x44/0xa0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

value changed: 0x00000002 -> 0x00000001

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

Crashes (3):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2021/09/23 02:09 upstream cf1d2c3e7e2f 8cac236e .config log report info KCSAN: data-race in pipe_lock / put_pipe_info
ci2-upstream-kcsan-gce 2021/09/22 16:05 upstream 92477dd1faa6 8cac236e .config log report info KCSAN: data-race in pipe_lock / put_pipe_info
ci2-upstream-kcsan-gce 2021/09/13 21:16 upstream 316346243be6 58d09404 .config log report info KCSAN: data-race in pipe_lock / put_pipe_info
* Struck through repros no longer work on HEAD.