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: 23h45m, last: 23h45m
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 358d 358d 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 1590d 1590d 0/28 auto-closed as invalid on 2021/01/19 18:58
upstream KCSAN: data-race in pipe_poll / pipe_release (6) fs 1 286d 286d 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 84d 85d 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 1154d 1154d 0/28 auto-closed as invalid on 2022/04/01 01:04
upstream KCSAN: data-race in pipe_poll / pipe_release (4) fs 1 413d 413d 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 1921d 1987d 0/28 auto-closed as invalid on 2020/03/30 06:30
upstream KCSAN: data-race in pipe_poll / pipe_release (7) fs 1 251d 251d 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 180d 206d 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 0xffff8881185f7668 of 4 bytes by task 27279 on cpu 1:
 pipe_release+0xad/0x1c0 fs/pipe.c:732
 __fput+0x2ac/0x640 fs/file_table.c:465
 ____fput+0x1c/0x30 fs/file_table.c:493
 task_work_run+0x13c/0x1b0 kernel/task_work.c:227
 exit_task_work include/linux/task_work.h:40 [inline]
 do_exit+0x5d8/0x17e0 kernel/exit.c:953
 do_group_exit+0x142/0x150 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+0x2e03/0x2e10 arch/x86/include/generated/asm/syscalls_64.h:232
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xc9/0x1a0 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

read to 0xffff8881185f7668 of 4 bytes by task 3292 on cpu 0:
 pipe_poll+0x183/0x270 fs/pipe.c:690
 vfs_poll include/linux/poll.h:82 [inline]
 select_poll_one fs/select.c:480 [inline]
 do_select+0x92b/0xfc0 fs/select.c:536
 core_sys_select+0x4c3/0x6d0 fs/select.c:677
 do_pselect fs/select.c:759 [inline]
 __do_sys_pselect6 fs/select.c:802 [inline]
 __se_sys_pselect6+0x212/0x270 fs/select.c:793
 __x64_sys_pselect6+0x78/0x90 fs/select.c:793
 x64_sys_call+0x1c26/0x2e10 arch/x86/include/generated/asm/syscalls_64.h:271
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xc9/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: 0 UID: 0 PID: 3292 Comm: syz-executor Not tainted 6.15.0-rc3-syzkaller-00032-ga79be02bba5c #0 PREEMPT(voluntary) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
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.