syzbot


KCSAN: data-race in pipe_release / pipe_wait_readable (8)

Status: auto-obsoleted due to no activity on 2024/08/26 01:03
Subsystems: fs
[Documentation on labels]
Reported-by: syzbot+1e4b797063608be77cbd@syzkaller.appspotmail.com
First crash: 88d, last: 88d
Similar bugs (7)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in pipe_release / pipe_wait_readable (5) fs 1 461d 461d 0/28 auto-obsoleted due to no activity on 2023/08/18 19:43
upstream KCSAN: data-race in pipe_release / pipe_wait_readable (7) fs 1 141d 141d 0/28 auto-obsoleted due to no activity on 2024/07/03 04:49
upstream KCSAN: data-race in pipe_release / pipe_wait_readable (6) fs 1 366d 366d 0/28 auto-obsoleted due to no activity on 2023/11/21 12:39
upstream KCSAN: data-race in pipe_release / pipe_wait_readable fs 1 1476d 1476d 0/28 auto-closed as invalid on 2020/11/06 19:13
upstream KCSAN: data-race in pipe_release / pipe_wait_readable (3) fs 1 1316d 1316d 0/28 auto-closed as invalid on 2021/04/15 21:34
upstream KCSAN: data-race in pipe_release / pipe_wait_readable (4) fs 2 1066d 1073d 0/28 auto-closed as invalid on 2021/12/21 16:44
upstream KCSAN: data-race in pipe_release / pipe_wait_readable (2) fs 1 1364d 1364d 0/28 auto-closed as invalid on 2021/02/26 20:27

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

read-write to 0xffff8881114465ac of 4 bytes by task 10393 on cpu 1:
 put_pipe_info fs/pipe.c:712 [inline]
 pipe_release+0x164/0x1c0 fs/pipe.c:742
 __fput+0x192/0x6f0 fs/file_table.c:422
 ____fput+0x15/0x20 fs/file_table.c:450
 task_work_run+0x13a/0x1a0 kernel/task_work.c:222
 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 0xffff8881114465ac of 4 bytes by task 10397 on cpu 0:
 pipe_lock fs/pipe.c:91 [inline]
 pipe_wait_readable+0x1ec/0x240 fs/pipe.c:1061
 ipipe_prep fs/splice.c:1690 [inline]
 splice_pipe_to_pipe fs/splice.c:1752 [inline]
 do_splice+0x2aa/0x1150 fs/splice.c:1331
 __do_splice fs/splice.c:1436 [inline]
 __do_sys_splice fs/splice.c:1652 [inline]
 __se_sys_splice+0x24c/0x390 fs/splice.c:1634
 __x64_sys_splice+0x78/0x90 fs/splice.c:1634
 x64_sys_call+0xf5b/0x2e00 arch/x86/include/generated/asm/syscalls_64.h:276
 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 PID: 10397 Comm: syz.4.1353 Not tainted 6.10.0-syzkaller-11323-g7846b618e0a4 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/2024
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/07/22 01:02 upstream 7846b618e0a4 b88348e9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pipe_release / pipe_wait_readable
* Struck through repros no longer work on HEAD.