syzbot


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

Status: moderation: reported on 2024/05/29 04:49
Subsystems: fs
[Documentation on labels]
Reported-by: syzbot+6952cc4f22a1dee3c9bb@syzkaller.appspotmail.com
First crash: 22d, last: 22d
Similar bugs (6)
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 342d 342d 0/27 auto-obsoleted due to no activity on 2023/08/18 19:43
upstream KCSAN: data-race in pipe_release / pipe_wait_readable (6) fs 1 247d 247d 0/27 auto-obsoleted due to no activity on 2023/11/21 12:39
upstream KCSAN: data-race in pipe_release / pipe_wait_readable fs 1 1357d 1357d 0/27 auto-closed as invalid on 2020/11/06 19:13
upstream KCSAN: data-race in pipe_release / pipe_wait_readable (3) fs 1 1197d 1197d 0/27 auto-closed as invalid on 2021/04/15 21:34
upstream KCSAN: data-race in pipe_release / pipe_wait_readable (4) fs 2 947d 954d 0/27 auto-closed as invalid on 2021/12/21 16:44
upstream KCSAN: data-race in pipe_release / pipe_wait_readable (2) fs 1 1245d 1245d 0/27 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 0xffff8881337e136c of 4 bytes by task 12081 on cpu 1:
 put_pipe_info fs/pipe.c:712 [inline]
 pipe_release+0x164/0x1c0 fs/pipe.c:742
 __fput+0x2c2/0x660 fs/file_table.c:422
 __fput_sync+0x44/0x60 fs/file_table.c:507
 __do_sys_close fs/open.c:1555 [inline]
 __se_sys_close+0x101/0x1b0 fs/open.c:1540
 __x64_sys_close+0x1f/0x30 fs/open.c:1540
 x64_sys_call+0x25f1/0x2d70 arch/x86/include/generated/asm/syscalls_64.h:4
 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

read to 0xffff8881337e136c of 4 bytes by task 12082 on cpu 0:
 pipe_lock fs/pipe.c:91 [inline]
 pipe_wait_readable+0x1ec/0x240 fs/pipe.c:1061
 splice_from_pipe_next+0x24f/0x390 fs/splice.c:548
 __splice_from_pipe+0xb0/0x4b0 fs/splice.c:609
 vmsplice_to_user fs/splice.c:1524 [inline]
 __do_sys_vmsplice fs/splice.c:1626 [inline]
 __se_sys_vmsplice+0x265/0xdc0 fs/splice.c:1598
 __x64_sys_vmsplice+0x55/0x70 fs/splice.c:1598
 x64_sys_call+0xb5f/0x2d70 arch/x86/include/generated/asm/syscalls_64.h:279
 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: 12082 Comm: syz-executor.0 Not tainted 6.10.0-rc1-syzkaller-00021-ge0cce98fe279 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/05/29 04:48 upstream e0cce98fe279 34889ee3 .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.