syzbot


KCSAN: data-race in pipe_poll / pipe_release (11)

Status: moderation: reported on 2025/07/10 19:55
Subsystems: fs
[Documentation on labels]
Reported-by: syzbot+1ea93605d0d4fb5df21d@syzkaller.appspotmail.com
First crash: 9d03h, last: 9d03h
Similar bugs (10)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in pipe_poll / pipe_release (5) fs 6 1 444d 444d 0/29 auto-obsoleted due to no activity on 2024/06/05 09:41
upstream KCSAN: data-race in pipe_poll / pipe_release (10) fs 6 4 65d 87d 0/29 auto-obsoleted due to no activity on 2025/07/10 18:23
upstream KCSAN: data-race in pipe_poll / pipe_release (2) fs 6 1 1677d 1677d 0/29 auto-closed as invalid on 2021/01/19 18:58
upstream KCSAN: data-race in pipe_poll / pipe_release (6) fs 6 1 373d 373d 0/29 auto-obsoleted due to no activity on 2024/08/15 20:31
upstream KCSAN: data-race in pipe_poll / pipe_release (9) fs 6 2 170d 171d 0/29 auto-obsoleted due to no activity on 2025/03/27 08:52
upstream KCSAN: data-race in pipe_poll / pipe_release (3) fs 6 1 1240d 1240d 0/29 auto-closed as invalid on 2022/04/01 01:04
upstream KCSAN: data-race in pipe_poll / pipe_release (4) fs 6 1 499d 499d 0/29 auto-obsoleted due to no activity on 2024/04/10 23:01
upstream KCSAN: data-race in pipe_poll / pipe_release fs 6 3 2007d 2073d 0/29 auto-closed as invalid on 2020/03/30 06:30
upstream KCSAN: data-race in pipe_poll / pipe_release (7) fs 6 1 337d 337d 0/29 auto-obsoleted due to no activity on 2024/09/20 00:08
upstream KCSAN: data-race in pipe_poll / pipe_release (8) fs 6 2 266d 293d 0/29 auto-obsoleted due to no activity on 2024/12/21 16:47

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

write to 0xffff88813912fd28 of 4 bytes by task 18517 on cpu 0:
 pipe_release+0xb6/0x1d0 fs/pipe.c:731
 __fput+0x298/0x650 fs/file_table.c:465
 ____fput+0x1c/0x30 fs/file_table.c:493
 task_work_run+0x131/0x1a0 kernel/task_work.c:227
 exit_task_work include/linux/task_work.h:40 [inline]
 do_exit+0x483/0x1590 kernel/exit.c:964
 do_group_exit+0x139/0x140 kernel/exit.c:1105
 __do_sys_exit_group kernel/exit.c:1116 [inline]
 __se_sys_exit_group kernel/exit.c:1114 [inline]
 __x64_sys_exit_group+0x1f/0x20 kernel/exit.c:1114
 x64_sys_call+0x2fa4/0x2fb0 arch/x86/include/generated/asm/syscalls_64.h:232
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xd2/0x200 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

read to 0xffff88813912fd28 of 4 bytes by task 3289 on cpu 1:
 pipe_poll+0x16d/0x250 fs/pipe.c:689
 vfs_poll include/linux/poll.h:82 [inline]
 select_poll_one fs/select.c:480 [inline]
 do_select+0x8ee/0xf50 fs/select.c:536
 core_sys_select+0x3d7/0x6e0 fs/select.c:677
 do_pselect fs/select.c:759 [inline]
 __do_sys_pselect6 fs/select.c:802 [inline]
 __se_sys_pselect6+0x216/0x280 fs/select.c:793
 __x64_sys_pselect6+0x78/0x90 fs/select.c:793
 x64_sys_call+0x1caa/0x2fb0 arch/x86/include/generated/asm/syscalls_64.h:271
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xd2/0x200 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

value changed: 0x00000001 -> 0x00000000

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 UID: 0 PID: 3289 Comm: syz-executor Not tainted 6.16.0-rc5-syzkaller-00121-gbc9ff192a6c9 #0 PREEMPT(voluntary) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/07/10 19:54 upstream bc9ff192a6c9 3cda49cf .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pipe_poll / pipe_release
* Struck through repros no longer work on HEAD.