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: 53d, last: 19d
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 488d 488d 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 109d 131d 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 1721d 1721d 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 417d 417d 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 214d 215d 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 1284d 1284d 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 543d 543d 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 2051d 2117d 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 381d 381d 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 310d 337d 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 0xffff88810371ff68 of 4 bytes by task 3302 on cpu 1:
 pipe_release+0xb6/0x1d0 fs/pipe.c:731
 __fput+0x298/0x650 fs/file_table.c:468
 ____fput+0x1c/0x30 fs/file_table.c:496
 task_work_run+0x12e/0x1a0 kernel/task_work.c:227
 exit_task_work include/linux/task_work.h:40 [inline]
 do_exit+0x483/0x15c0 kernel/exit.c:961
 do_group_exit+0x139/0x140 kernel/exit.c:1102
 __do_sys_exit_group kernel/exit.c:1113 [inline]
 __se_sys_exit_group kernel/exit.c:1111 [inline]
 __x64_sys_exit_group+0x1f/0x20 kernel/exit.c:1111
 x64_sys_call+0x2fe2/0x2ff0 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 0xffff88810371ff68 of 4 bytes by task 3288 on cpu 0:
 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+0x8f1/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+0x28b9/0x2ff0 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: 0 UID: 0 PID: 3288 Comm: syz-executor Not tainted 6.17.0-rc1-syzkaller-00016-g8742b2d8935f #0 PREEMPT(voluntary) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2025
==================================================================

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/08/13 08:09 upstream 8742b2d8935f 22ec1469 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pipe_poll / pipe_release
2025/08/01 19:04 upstream f2d282e1dfb3 40127d41 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pipe_poll / pipe_release
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.