syzbot


KCSAN: data-race in pipe_lock / pipe_release

Status: auto-closed as invalid on 2020/08/09 18:16
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 828d, last: 811d
similar bugs (6):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in pipe_lock / pipe_release (5) 1 285d 285d 0/24 auto-closed as invalid on 2022/01/18 04:35
upstream KCSAN: data-race in pipe_lock / pipe_release (4) 1 546d 546d 0/24 auto-closed as invalid on 2021/05/02 03:19
upstream KCSAN: data-race in pipe_lock / pipe_release (6) 2 211d 214d 0/24 auto-closed as invalid on 2022/04/01 19:16
upstream KCSAN: data-race in pipe_lock / pipe_release (3) 1 704d 704d 0/24 auto-closed as invalid on 2020/11/25 12:55
upstream KCSAN: data-race in pipe_lock / pipe_release (7) 2 143d 171d 0/24 auto-closed as invalid on 2022/06/08 19:34
upstream KCSAN: data-race in pipe_lock / pipe_release (2) 1 754d 754d 0/24 auto-closed as invalid on 2020/10/06 00:08

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

write to 0xffff8880b6b467ec of 4 bytes by task 16474 on cpu 0:
 put_pipe_info fs/pipe.c:707 [inline]
 pipe_release+0x186/0x1e0 fs/pipe.c:737
 __fput+0x1df/0x460 fs/file_table.c:281
 ____fput+0x11/0x20 fs/file_table.c:314
 task_work_run+0x8e/0x110 kernel/task_work.c:135
 tracehook_notify_resume include/linux/tracehook.h:188 [inline]
 exit_to_usermode_loop arch/x86/entry/common.c:216 [inline]
 __prepare_exit_to_usermode+0x1c6/0x230 arch/x86/entry/common.c:246
 __syscall_return_slowpath+0x47/0x60 arch/x86/entry/common.c:329
 do_syscall_64+0x5d/0xb0 arch/x86/entry/common.c:368
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

read to 0xffff8880b6b467ec of 4 bytes by task 16484 on cpu 1:
 pipe_lock_nested fs/pipe.c:65 [inline]
 pipe_lock+0x13/0x40 fs/pipe.c:74
 do_splice+0xc95/0x10c0 fs/splice.c:1170
 __do_sys_splice fs/splice.c:1419 [inline]
 __se_sys_splice fs/splice.c:1401 [inline]
 __x64_sys_splice+0xf2/0x190 fs/splice.c:1401
 do_syscall_64+0x51/0xb0 arch/x86/entry/common.c:359
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

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

Crashes (2):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2020/07/05 18:16 upstream 45a5ac7a5cc3 22f87567 .config log report
ci2-upstream-kcsan-gce 2020/06/18 16:31 upstream 1b5044021070 3ea11d3f .config log report
* Struck through repros no longer work on HEAD.