syzbot


KCSAN: data-race in fifo_open / wait_for_partner (5)

Status: moderation: reported on 2024/04/01 04:07
Subsystems: fs
[Documentation on labels]
Reported-by: syzbot+6f8fb953e2a2f8a0a8ff@syzkaller.appspotmail.com
First crash: 35d, last: 4d11h
Similar bugs (4)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in fifo_open / wait_for_partner (3) fs 3 256d 301d 0/26 auto-obsoleted due to no activity on 2023/09/28 09:43
upstream KCSAN: data-race in fifo_open / wait_for_partner (4) fs 8 89d 148d 0/26 auto-obsoleted due to no activity on 2024/03/13 09:11
upstream KCSAN: data-race in fifo_open / wait_for_partner (2) fs 54 340d 737d 0/26 auto-obsoleted due to no activity on 2023/07/06 11:38
upstream KCSAN: data-race in fifo_open / wait_for_partner fs 66 784d 1246d 0/26 auto-closed as invalid on 2022/04/18 09:31

Sample crash report:
==================================================================
BUG: KCSAN: data-race in fifo_open / wait_for_partner

read-write to 0xffff88813263ec6c of 4 bytes by task 25476 on cpu 1:
 fifo_open+0xa0/0x5e0 fs/pipe.c:1116
 do_dentry_open+0x63c/0xbe0 fs/open.c:955
 vfs_open+0x4a/0x60 fs/open.c:1089
 do_open fs/namei.c:3642 [inline]
 path_openat+0x18ba/0x1d80 fs/namei.c:3799
 do_filp_open+0xf7/0x200 fs/namei.c:3826
 do_sys_openat2+0xab/0x120 fs/open.c:1406
 do_sys_open fs/open.c:1421 [inline]
 __do_sys_open fs/open.c:1429 [inline]
 __se_sys_open fs/open.c:1425 [inline]
 __x64_sys_open+0xe6/0x110 fs/open.c:1425
 x64_sys_call+0x12ae/0x2d30 arch/x86/include/generated/asm/syscalls_64.h:3
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xcd/0x1d0 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

read to 0xffff88813263ec6c of 4 bytes by task 25475 on cpu 0:
 pipe_unlock fs/pipe.c:98 [inline]
 wait_for_partner+0xc7/0x1e0 fs/pipe.c:1090
 fifo_open+0x483/0x5e0 fs/pipe.c:1160
 do_dentry_open+0x63c/0xbe0 fs/open.c:955
 vfs_open+0x4a/0x60 fs/open.c:1089
 do_open fs/namei.c:3642 [inline]
 path_openat+0x18ba/0x1d80 fs/namei.c:3799
 do_filp_open+0xf7/0x200 fs/namei.c:3826
 do_sys_openat2+0xab/0x120 fs/open.c:1406
 do_sys_open fs/open.c:1421 [inline]
 __do_sys_open fs/open.c:1429 [inline]
 __se_sys_open fs/open.c:1425 [inline]
 __x64_sys_open+0xe6/0x110 fs/open.c:1425
 x64_sys_call+0x12ae/0x2d30 arch/x86/include/generated/asm/syscalls_64.h:3
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xcd/0x1d0 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

value changed: 0x00000001 -> 0x00000002

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 25475 Comm: syz-executor.4 Tainted: G        W          6.9.0-rc6-syzkaller-00053-g0106679839f7 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024
==================================================================

Crashes (4):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/05/02 08:07 upstream 0106679839f7 3ba885bc .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in fifo_open / wait_for_partner
2024/04/12 11:16 upstream 586b5dfb51b9 27de0a5c .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in fifo_open / wait_for_partner
2024/04/03 09:15 upstream b1e6ec0a0fd0 7925100d .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in fifo_open / wait_for_partner
2024/04/01 04:06 upstream 18737353cca0 6baf5069 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in fifo_open / wait_for_partner
* Struck through repros no longer work on HEAD.