syzbot


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

Status: auto-closed as invalid on 2021/06/26 18:07
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 478d, last: 441d
similar bugs (7):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in fasync_remove_entry / sock_wake_async (4) 1 715d 715d 0/23 auto-closed as invalid on 2020/09/26 10:37
upstream KCSAN: data-race in fasync_remove_entry / sock_wake_async 1 872d 872d 0/23 auto-closed as invalid on 2020/05/26 22:23
upstream KCSAN: data-race in fasync_remove_entry / sock_wake_async (8) 1 138d 138d 0/23 auto-closed as invalid on 2022/04/26 03:12
upstream KCSAN: data-race in fasync_remove_entry / sock_wake_async (6) 2 238d 265d 0/23 auto-closed as invalid on 2022/01/16 09:31
upstream KCSAN: data-race in fasync_remove_entry / sock_wake_async (2) 1 798d 798d 0/23 closed as invalid on 2020/06/18 14:13
upstream KCSAN: data-race in fasync_remove_entry / sock_wake_async (3) 1 767d 767d 0/23 auto-closed as invalid on 2020/08/05 10:16
upstream KCSAN: data-race in fasync_remove_entry / sock_wake_async (7) 1 183d 183d 0/23 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 0xffff888138466218 of 8 bytes by task 1000 on cpu 0:
 fasync_remove_entry+0xd9/0x180 fs/fcntl.c:894
 fasync_helper+0x92/0xc0 fs/fcntl.c:993
 sock_fasync+0x5c/0xc0 net/socket.c:1283
 __fput+0x49f/0x4e0 fs/file_table.c:277
 ____fput+0x11/0x20 fs/file_table.c:313
 task_work_run+0xae/0x130 kernel/task_work.c:164
 tracehook_notify_resume include/linux/tracehook.h:189 [inline]
 exit_to_user_mode_loop kernel/entry/common.c:174 [inline]
 exit_to_user_mode_prepare+0x156/0x190 kernel/entry/common.c:208
 __syscall_exit_to_user_mode_work kernel/entry/common.c:290 [inline]
 syscall_exit_to_user_mode+0x20/0x40 kernel/entry/common.c:301
 do_syscall_64+0x56/0x90 arch/x86/entry/common.c:57
 entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffff888138466218 of 8 bytes by task 999 on cpu 1:
 sock_wake_async+0x26/0x100 net/socket.c:1298
 sk_wake_async include/net/sock.h:2311 [inline]
 unix_release_sock+0x383/0x6e0 net/unix/af_unix.c:553
 unix_release+0x2f/0x50 net/unix/af_unix.c:859
 __sock_release net/socket.c:599 [inline]
 sock_close+0x6c/0x150 net/socket.c:1258
 __fput+0x25b/0x4e0 fs/file_table.c:280
 ____fput+0x11/0x20 fs/file_table.c:313
 task_work_run+0xae/0x130 kernel/task_work.c:164
 tracehook_notify_resume include/linux/tracehook.h:189 [inline]
 exit_to_user_mode_loop kernel/entry/common.c:174 [inline]
 exit_to_user_mode_prepare+0x156/0x190 kernel/entry/common.c:208
 __syscall_exit_to_user_mode_work kernel/entry/common.c:290 [inline]
 syscall_exit_to_user_mode+0x20/0x40 kernel/entry/common.c:301
 do_syscall_64+0x56/0x90 arch/x86/entry/common.c:57
 entry_SYSCALL_64_after_hwframe+0x44/0xae

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 999 Comm: syz-executor.1 Not tainted 5.13.0-rc2-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (3):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2021/05/22 18:07 upstream 45af60e7ced0 3c7fef33 .config log report info KCSAN: data-race in fasync_remove_entry / sock_wake_async
ci2-upstream-kcsan-gce 2021/05/01 16:20 upstream 9f67672a817e 77e2b668 .config log report info KCSAN: data-race in fasync_remove_entry / sock_wake_async
ci2-upstream-kcsan-gce 2021/04/15 20:00 upstream 7f75285ca572 c59079a6 .config log report info KCSAN: data-race in fasync_remove_entry / sock_wake_async