syzbot


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

Status: upstream: reported on 2024/08/16 09:46
Subsystems: fs
[Documentation on labels]
Reported-by: syzbot+1f49e6ed8370198296d4@syzkaller.appspotmail.com
First crash: 27d, last: 27d
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [fs?] KCSAN: data-race in pipe_poll / pipe_release (7) 0 (1) 2024/08/16 09:46
Similar bugs (6)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in pipe_poll / pipe_release (5) fs 1 134d 134d 0/27 auto-obsoleted due to no activity on 2024/06/05 09:41
upstream KCSAN: data-race in pipe_poll / pipe_release (2) fs 1 1366d 1366d 0/27 auto-closed as invalid on 2021/01/19 18:58
upstream KCSAN: data-race in pipe_poll / pipe_release (6) fs 1 62d 62d 0/27 auto-obsoleted due to no activity on 2024/08/15 20:31
upstream KCSAN: data-race in pipe_poll / pipe_release (3) fs 1 930d 930d 0/27 auto-closed as invalid on 2022/04/01 01:04
upstream KCSAN: data-race in pipe_poll / pipe_release (4) fs 1 189d 189d 0/27 auto-obsoleted due to no activity on 2024/04/10 23:01
upstream KCSAN: data-race in pipe_poll / pipe_release fs 3 1697d 1763d 0/27 auto-closed as invalid on 2020/03/30 06:30

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

write to 0xffff888111d4fc68 of 4 bytes by task 12262 on cpu 1:
 pipe_release+0xb3/0x1c0 fs/pipe.c:731
 __fput+0x192/0x6f0 fs/file_table.c:422
 ____fput+0x15/0x20 fs/file_table.c:450
 task_work_run+0x13a/0x1a0 kernel/task_work.c:228
 exit_task_work include/linux/task_work.h:40 [inline]
 do_exit+0x5dd/0x1720 kernel/exit.c:882
 do_group_exit+0x142/0x150 kernel/exit.c:1031
 __do_sys_exit_group kernel/exit.c:1042 [inline]
 __se_sys_exit_group kernel/exit.c:1040 [inline]
 __x64_sys_exit_group+0x1f/0x20 kernel/exit.c:1040
 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 0xffff888111d4fc68 of 4 bytes by task 3249 on cpu 0:
 pipe_poll+0x17d/0x260 fs/pipe.c:689
 vfs_poll include/linux/poll.h:84 [inline]
 do_select+0x959/0xfa0 fs/select.c:538
 core_sys_select+0x362/0x530 fs/select.c:681
 do_pselect fs/select.c:763 [inline]
 __do_sys_pselect6 fs/select.c:804 [inline]
 __se_sys_pselect6+0x213/0x280 fs/select.c:795
 __x64_sys_pselect6+0x78/0x90 fs/select.c:795
 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: 0 UID: 0 PID: 3249 Comm: syz-executor Not tainted 6.11.0-rc3-syzkaller-00066-g1fb918967b56 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/2024
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/08/16 00:07 upstream 1fb918967b56 e4bacdaf .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.