syzbot


KCSAN: data-race in pipe_double_lock / pipe_release (2)

Status: auto-obsoleted due to no activity on 2023/08/07 23:55
Subsystems: fs
[Documentation on labels]
First crash: 309d, last: 309d
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in pipe_double_lock / pipe_release (3) fs 1 204d 204d 0/26 auto-obsoleted due to no activity on 2023/11/21 02:37
upstream KCSAN: data-race in pipe_double_lock / pipe_release (4) fs 1 112d 112d 0/26 auto-obsoleted due to no activity on 2024/02/21 21:32
upstream KCSAN: data-race in pipe_double_lock / pipe_release fs 1 1420d 1420d 0/26 auto-closed as invalid on 2020/07/23 17:42

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

read-write to 0xffff888158701dec of 4 bytes by task 12538 on cpu 0:
 put_pipe_info fs/pipe.c:706 [inline]
 pipe_release+0x164/0x1c0 fs/pipe.c:736
 __fput+0x303/0x600 fs/file_table.c:384
 ____fput+0x15/0x20 fs/file_table.c:412
 task_work_run+0x135/0x1a0 kernel/task_work.c:179
 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline]
 exit_to_user_mode_loop+0xd1/0xe0 kernel/entry/common.c:171
 exit_to_user_mode_prepare+0x6c/0xb0 kernel/entry/common.c:204
 __syscall_exit_to_user_mode_work kernel/entry/common.c:286 [inline]
 syscall_exit_to_user_mode+0x26/0x140 kernel/entry/common.c:297
 do_syscall_64+0x4d/0xc0 arch/x86/entry/common.c:86
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

read to 0xffff888158701dec of 4 bytes by task 12533 on cpu 1:
 pipe_lock_nested fs/pipe.c:81 [inline]
 pipe_double_lock+0xa6/0xe0 fs/pipe.c:121
 splice_pipe_to_pipe fs/splice.c:1697 [inline]
 do_splice+0x319/0xf70 fs/splice.c:1270
 __do_splice fs/splice.c:1373 [inline]
 __do_sys_splice fs/splice.c:1584 [inline]
 __se_sys_splice+0x24c/0x380 fs/splice.c:1566
 __x64_sys_splice+0x78/0x90 fs/splice.c:1566
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

value changed: 0x00000002 -> 0x00000001

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 12533 Comm: syz-executor.4 Not tainted 6.4.0-syzkaller-10207-g99bdeae21d25 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/27/2023
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/07/03 23:44 upstream 99bdeae21d25 6e553898 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pipe_double_lock / pipe_release
* Struck through repros no longer work on HEAD.