syzbot


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

Status: moderation: reported on 2024/09/29 18:48
Subsystems: fs
[Documentation on labels]
Reported-by: syzbot+5332f9e20e4c7d1f2523@syzkaller.appspotmail.com
First crash: 52d, last: 25d
Similar bugs (7)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in pipe_poll / pipe_release (5) fs 1 203d 203d 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 1436d 1436d 0/28 auto-closed as invalid on 2021/01/19 18:58
upstream KCSAN: data-race in pipe_poll / pipe_release (6) fs 1 132d 132d 0/28 auto-obsoleted due to no activity on 2024/08/15 20:31
upstream KCSAN: data-race in pipe_poll / pipe_release (3) fs 1 1000d 1000d 0/28 auto-closed as invalid on 2022/04/01 01:04
upstream KCSAN: data-race in pipe_poll / pipe_release (4) fs 1 259d 259d 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 1767d 1832d 0/28 auto-closed as invalid on 2020/03/30 06:30
upstream KCSAN: data-race in pipe_poll / pipe_release (7) fs 1 97d 96d 0/28 auto-obsoleted due to no activity on 2024/09/20 00:08

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

write to 0xffff888103616968 of 4 bytes by task 11083 on cpu 0:
 pipe_release+0xad/0x1c0 fs/pipe.c:731
 __fput+0x17a/0x6d0 fs/file_table.c:431
 ____fput+0x1c/0x30 fs/file_table.c:459
 task_work_run+0x13a/0x1a0 kernel/task_work.c:239
 exit_task_work include/linux/task_work.h:43 [inline]
 do_exit+0x5dd/0x17f0 kernel/exit.c:939
 do_group_exit+0x142/0x150 kernel/exit.c:1088
 __do_sys_exit_group kernel/exit.c:1099 [inline]
 __se_sys_exit_group kernel/exit.c:1097 [inline]
 __x64_sys_exit_group+0x1f/0x20 kernel/exit.c:1097
 x64_sys_call+0x2d5d/0x2d60 arch/x86/include/generated/asm/syscalls_64.h:232
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xc9/0x1c0 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

read to 0xffff888103616968 of 4 bytes by task 3304 on cpu 1:
 pipe_poll+0x177/0x250 fs/pipe.c:689
 vfs_poll include/linux/poll.h:84 [inline]
 do_select+0x8d2/0xf70 fs/select.c:535
 core_sys_select+0x362/0x530 fs/select.c:678
 do_pselect fs/select.c:760 [inline]
 __do_sys_pselect6 fs/select.c:803 [inline]
 __se_sys_pselect6+0x20d/0x270 fs/select.c:794
 __x64_sys_pselect6+0x78/0x90 fs/select.c:794
 x64_sys_call+0x26f7/0x2d60 arch/x86/include/generated/asm/syscalls_64.h:271
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xc9/0x1c0 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

value changed: 0x00000001 -> 0x00000000

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 UID: 0 PID: 3304 Comm: syz-executor Not tainted 6.12.0-rc4-syzkaller-00261-g850925a8133c #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
==================================================================

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/10/26 16:47 upstream 850925a8133c 65e8686b .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pipe_poll / pipe_release
2024/09/29 18:48 upstream e7ed34365879 ba29ff75 .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.