syzbot


KCSAN: data-race in fasync_remove_entry / sock_wake_async (10)

Status: auto-obsoleted due to no activity on 2023/04/24 02:17
Subsystems: fs
[Documentation on labels]
First crash: 425d, last: 425d
Similar bugs (10)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in fasync_remove_entry / sock_wake_async (4) fs 1 1344d 1344d 0/26 auto-closed as invalid on 2020/09/26 10:37
upstream KCSAN: data-race in fasync_remove_entry / sock_wake_async fs 1 1501d 1501d 0/26 auto-closed as invalid on 2020/05/26 22:23
upstream KCSAN: data-race in fasync_remove_entry / sock_wake_async (5) fs 3 1070d 1107d 0/26 auto-closed as invalid on 2021/06/26 18:07
upstream KCSAN: data-race in fasync_remove_entry / sock_wake_async (8) fs 1 767d 767d 0/26 auto-closed as invalid on 2022/04/26 03:12
upstream KCSAN: data-race in fasync_remove_entry / sock_wake_async (6) fs 2 867d 894d 0/26 auto-closed as invalid on 2022/01/16 09:31
upstream KCSAN: data-race in fasync_remove_entry / sock_wake_async (2) fs 1 1428d 1428d 0/26 closed as invalid on 2020/06/18 14:13
upstream KCSAN: data-race in fasync_remove_entry / sock_wake_async (9) fs 2 551d 557d 0/26 auto-obsoleted due to no activity on 2022/11/28 02:38
upstream KCSAN: data-race in fasync_remove_entry / sock_wake_async (11) fs 1 331d 331d 0/26 auto-obsoleted due to no activity on 2023/07/06 10:32
upstream KCSAN: data-race in fasync_remove_entry / sock_wake_async (3) fs 1 1396d 1396d 0/26 auto-closed as invalid on 2020/08/05 10:16
upstream KCSAN: data-race in fasync_remove_entry / sock_wake_async (7) fs 1 812d 812d 0/26 auto-closed as invalid on 2022/03/11 19:41

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

write to 0xffff88810a817c58 of 8 bytes by task 15626 on cpu 0:
 fasync_remove_entry+0xd5/0x130 fs/fcntl.c:878
 fasync_helper+0x96/0xc0 fs/fcntl.c:977
 sock_fasync+0x60/0xd0 net/socket.c:1418
 __fput+0x532/0x570 fs/file_table.c:318
 ____fput+0x15/0x20 fs/file_table.c:349
 task_work_run+0x123/0x160 kernel/task_work.c:179
 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline]
 exit_to_user_mode_loop+0xcf/0xe0 kernel/entry/common.c:171
 exit_to_user_mode_prepare+0x6a/0xa0 kernel/entry/common.c:203
 __syscall_exit_to_user_mode_work kernel/entry/common.c:285 [inline]
 syscall_exit_to_user_mode+0x26/0x140 kernel/entry/common.c:296
 do_syscall_64+0x4d/0xc0 arch/x86/entry/common.c:86
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

read to 0xffff88810a817c58 of 8 bytes by task 15623 on cpu 1:
 sock_wake_async+0x2a/0x120 net/socket.c:1433
 sk_wake_async include/net/sock.h:2518 [inline]
 unix_release_sock+0x483/0x780 net/unix/af_unix.c:636
 unix_release+0x52/0x70 net/unix/af_unix.c:1042
 __sock_release net/socket.c:651 [inline]
 sock_close+0x70/0x150 net/socket.c:1393
 __fput+0x245/0x570 fs/file_table.c:321
 ____fput+0x15/0x20 fs/file_table.c:349
 task_work_run+0x123/0x160 kernel/task_work.c:179
 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline]
 exit_to_user_mode_loop+0xcf/0xe0 kernel/entry/common.c:171
 exit_to_user_mode_prepare+0x6a/0xa0 kernel/entry/common.c:203
 __syscall_exit_to_user_mode_work kernel/entry/common.c:285 [inline]
 syscall_exit_to_user_mode+0x26/0x140 kernel/entry/common.c:296
 do_syscall_64+0x4d/0xc0 arch/x86/entry/common.c:86
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

value changed: 0xffff888104e3f9f0 -> 0x0000000000000000

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 15623 Comm: syz-executor.0 Not tainted 6.2.0-syzkaller-12485-gf3a2439f20d9-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/16/2023
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/02/27 02:00 upstream f3a2439f20d9 ee50e71c .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in fasync_remove_entry / sock_wake_async
* Struck through repros no longer work on HEAD.