syzbot


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

Status: moderation: reported on 2025/04/23 18:55
Subsystems: fs
[Documentation on labels]
Reported-by: syzbot+2abb82c72d24b0163531@syzkaller.appspotmail.com
First crash: 23d, last: 1d11h
Similar bugs (9)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in pipe_poll / pipe_release (5) fs 1 380d 380d 0/28 auto-obsoleted due to no activity on 2024/06/05 09:41
upstream KCSAN: data-race in pipe_poll / pipe_release (2) fs 1 1613d 1613d 0/28 auto-closed as invalid on 2021/01/19 18:58
upstream KCSAN: data-race in pipe_poll / pipe_release (6) fs 1 309d 309d 0/28 auto-obsoleted due to no activity on 2024/08/15 20:31
upstream KCSAN: data-race in pipe_poll / pipe_release (9) fs 2 106d 108d 0/28 auto-obsoleted due to no activity on 2025/03/27 08:52
upstream KCSAN: data-race in pipe_poll / pipe_release (3) fs 1 1177d 1177d 0/28 auto-closed as invalid on 2022/04/01 01:04
upstream KCSAN: data-race in pipe_poll / pipe_release (4) fs 1 436d 436d 0/28 auto-obsoleted due to no activity on 2024/04/10 23:01
upstream KCSAN: data-race in pipe_poll / pipe_release fs 3 1943d 2009d 0/28 auto-closed as invalid on 2020/03/30 06:30
upstream KCSAN: data-race in pipe_poll / pipe_release (7) fs 1 274d 273d 0/28 auto-obsoleted due to no activity on 2024/09/20 00:08
upstream KCSAN: data-race in pipe_poll / pipe_release (8) fs 2 202d 229d 0/28 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 0xffff88811aa47ae8 of 4 bytes by task 17903 on cpu 0:
 pipe_release+0xb6/0x1d0 fs/pipe.c:732
 __fput+0x29b/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+0x5dd/0x17c0 kernel/exit.c:953
 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+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+0xd0/0x1a0 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

read to 0xffff88811aa47ae8 of 4 bytes by task 3300 on cpu 1:
 pipe_poll+0x16d/0x250 fs/pipe.c:690
 vfs_poll include/linux/poll.h:82 [inline]
 select_poll_one fs/select.c:480 [inline]
 do_select+0x8ee/0xf40 fs/select.c:536
 core_sys_select+0x3b2/0x600 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+0xd0/0x1a0 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: 3300 Comm: syz-executor Not tainted 6.15.0-rc6-syzkaller-00105-g088d13246a46 #0 PREEMPT(voluntary) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/19/2025
==================================================================

Crashes (4):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/05/15 18:23 upstream 088d13246a46 cfde8269 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pipe_poll / pipe_release
2025/05/13 13:19 upstream e9565e23cd89 f6671af7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pipe_poll / pipe_release
2025/05/12 18:37 upstream 82f2b0b97b36 f6671af7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pipe_poll / pipe_release
2025/04/23 18:54 upstream a79be02bba5c 73a168d0 .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.