syzbot


KCSAN: data-race in fasync_remove_entry / kill_fasync (12)

Status: moderation: reported on 2024/11/09 10:04
Subsystems: fs
[Documentation on labels]
Reported-by: syzbot+7d99a59af4579ca231ab@syzkaller.appspotmail.com
First crash: 35d, last: 35d
Similar bugs (11)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in fasync_remove_entry / kill_fasync (2) fs 1 1574d 1574d 0/28 auto-closed as invalid on 2020/09/27 12:17
upstream KCSAN: data-race in fasync_remove_entry / kill_fasync (10) fs 1 536d 536d 0/28 auto-obsoleted due to no activity on 2023/08/01 22:11
upstream KCSAN: data-race in fasync_remove_entry / kill_fasync (4) fs 1 1305d 1305d 0/28 auto-closed as invalid on 2021/06/23 11:06
upstream KCSAN: data-race in fasync_remove_entry / kill_fasync (5) fs 2 1236d 1238d 0/28 auto-closed as invalid on 2021/08/31 22:21
upstream KCSAN: data-race in fasync_remove_entry / kill_fasync (9) fs 1 755d 755d 0/28 auto-obsoleted due to no activity on 2023/01/02 11:50
upstream KCSAN: data-race in fasync_remove_entry / kill_fasync (3) fs 1 1457d 1457d 0/28 auto-closed as invalid on 2021/01/22 14:57
upstream KCSAN: data-race in fasync_remove_entry / kill_fasync (11) fs 3 119d 147d 0/28 auto-obsoleted due to no activity on 2024/09/21 19:37
upstream KCSAN: data-race in fasync_remove_entry / kill_fasync (6) fs 1 1175d 1175d 0/28 auto-closed as invalid on 2021/10/31 16:09
upstream KCSAN: data-race in fasync_remove_entry / kill_fasync (7) fs 4 1096d 1134d 0/28 auto-closed as invalid on 2022/01/18 10:05
upstream KCSAN: data-race in fasync_remove_entry / kill_fasync (8) fs 3 1041d 1050d 0/28 auto-closed as invalid on 2022/03/14 14:59
upstream KCSAN: data-race in fasync_remove_entry / kill_fasync fs 82 1628d 1786d 0/28 auto-closed as invalid on 2020/08/04 12:11

Sample crash report:
==================================================================
BUG: KCSAN: data-race in fasync_remove_entry / kill_fasync

write to 0xffff88811290e748 of 8 bytes by task 4251 on cpu 1:
 fasync_remove_entry+0xd2/0x130 fs/fcntl.c:1008
 fasync_helper+0x96/0xc0 fs/fcntl.c:1107
 pipe_fasync+0x85/0x160 fs/pipe.c:754
 __fput+0x664/0x6d0 fs/file_table.c:428
 __fput_sync+0x43/0x60 fs/file_table.c:516
 __do_sys_close fs/open.c:1567 [inline]
 __se_sys_close+0xf9/0x1a0 fs/open.c:1552
 __x64_sys_close+0x1f/0x30 fs/open.c:1552
 x64_sys_call+0x25cb/0x2d60 arch/x86/include/generated/asm/syscalls_64.h:4
 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 0xffff88811290e748 of 8 bytes by task 4246 on cpu 0:
 kill_fasync+0x24/0x170 fs/fcntl.c:1149
 wakeup_pipe_readers fs/splice.c:183 [inline]
 splice_file_to_pipe+0x311/0x390 fs/splice.c:1298
 do_splice+0xc8b/0x1120 fs/splice.c:1379
 __do_splice fs/splice.c:1436 [inline]
 __do_sys_splice fs/splice.c:1652 [inline]
 __se_sys_splice+0x24c/0x390 fs/splice.c:1634
 __x64_sys_splice+0x78/0x90 fs/splice.c:1634
 x64_sys_call+0x2945/0x2d60 arch/x86/include/generated/asm/syscalls_64.h:276
 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: 0xffff888104bc0630 -> 0x0000000000000000

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 UID: 0 PID: 4246 Comm: syz.1.273 Not tainted 6.12.0-rc6-syzkaller-00272-gda4373fbcf00 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/11/09 10:03 upstream da4373fbcf00 6b856513 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in fasync_remove_entry / kill_fasync
* Struck through repros no longer work on HEAD.