syzbot


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

Status: auto-obsoleted due to no activity on 2024/02/21 21:32
Subsystems: fs
[Documentation on labels]
Reported-by: syzbot+fe81dd243bcdb2963c9b@syzkaller.appspotmail.com
First crash: 112d, last: 112d
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 (2) fs 1 309d 309d 0/26 auto-obsoleted due to no activity on 2023/08/07 23:55
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 0xffff8881295b74ec of 4 bytes by task 804 on cpu 0:
 put_pipe_info fs/pipe.c:722 [inline]
 pipe_release+0x164/0x1c0 fs/pipe.c:752
 __fput+0x299/0x630 fs/file_table.c:376
 __fput_sync+0x44/0x50 fs/file_table.c:461
 __do_sys_close fs/open.c:1554 [inline]
 __se_sys_close+0xfa/0x1a0 fs/open.c:1539
 __x64_sys_close+0x1f/0x30 fs/open.c:1539
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0x59/0x120 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x63/0x6b

read to 0xffff8881295b74ec of 4 bytes by task 834 on cpu 1:
 pipe_lock_nested fs/pipe.c:81 [inline]
 pipe_double_lock+0x4f/0xe0 fs/pipe.c:120
 splice_pipe_to_pipe fs/splice.c:1765 [inline]
 do_splice+0x32d/0x10d0 fs/splice.c:1331
 __do_splice fs/splice.c:1436 [inline]
 __do_sys_splice fs/splice.c:1652 [inline]
 __se_sys_splice+0x24c/0x380 fs/splice.c:1634
 __x64_sys_splice+0x78/0x90 fs/splice.c:1634
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0x59/0x120 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x63/0x6b

value changed: 0x00000002 -> 0x00000001

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 834 Comm: syz-executor.0 Not tainted 6.7.0-syzkaller-10085-g1b1934dbbdcf #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/01/17 21:31 upstream 1b1934dbbdcf c9a1c95b .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.