syzbot


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

Status: auto-closed as invalid on 2022/01/16 09:31
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 383d, last: 355d
similar bugs (8):
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 832d 832d 0/24 auto-closed as invalid on 2020/09/26 10:37
upstream KCSAN: data-race in fasync_remove_entry / sock_wake_async 1 990d 990d 0/24 auto-closed as invalid on 2020/05/26 22:23
upstream KCSAN: data-race in fasync_remove_entry / sock_wake_async (5) 3 559d 596d 0/24 auto-closed as invalid on 2021/06/26 18:07
upstream KCSAN: data-race in fasync_remove_entry / sock_wake_async (8) 1 256d 256d 0/24 auto-closed as invalid on 2022/04/26 03:12
upstream KCSAN: data-race in fasync_remove_entry / sock_wake_async (2) 1 916d 916d 0/24 closed as invalid on 2020/06/18 14:13
upstream KCSAN: data-race in fasync_remove_entry / sock_wake_async (9) 2 40d 45d 0/24 auto-obsoleted due to no activity on 2022/11/28 02:38
upstream KCSAN: data-race in fasync_remove_entry / sock_wake_async (3) 1 884d 884d 0/24 auto-closed as invalid on 2020/08/05 10:16
upstream KCSAN: data-race in fasync_remove_entry / sock_wake_async (7) 1 301d 301d 0/24 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 0xffff888105b729d8 of 8 bytes by task 31768 on cpu 1:
 fasync_remove_entry+0xd5/0x140 fs/fcntl.c:895
 fasync_helper+0x92/0xc0 fs/fcntl.c:994
 sock_fasync+0x5c/0xc0 net/socket.c:1339
 __fput+0x4dd/0x520 fs/file_table.c:277
 ____fput+0x11/0x20 fs/file_table.c:313
 task_work_run+0x8e/0x110 kernel/task_work.c:164
 tracehook_notify_resume include/linux/tracehook.h:189 [inline]
 exit_to_user_mode_loop kernel/entry/common.c:175 [inline]
 exit_to_user_mode_prepare+0x160/0x190 kernel/entry/common.c:207
 __syscall_exit_to_user_mode_work kernel/entry/common.c:289 [inline]
 syscall_exit_to_user_mode+0x20/0x40 kernel/entry/common.c:300
 do_syscall_64+0x50/0xd0 arch/x86/entry/common.c:86
 entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffff888105b729d8 of 8 bytes by task 31767 on cpu 0:
 sock_wake_async+0x26/0x100 net/socket.c:1354
 sk_wake_async include/net/sock.h:2413 [inline]
 unix_release_sock+0x36c/0x680 net/unix/af_unix.c:570
 unix_release+0x4e/0x70 net/unix/af_unix.c:949
 __sock_release net/socket.c:649 [inline]
 sock_close+0x6c/0x150 net/socket.c:1314
 __fput+0x295/0x520 fs/file_table.c:280
 ____fput+0x11/0x20 fs/file_table.c:313
 task_work_run+0x8e/0x110 kernel/task_work.c:164
 tracehook_notify_resume include/linux/tracehook.h:189 [inline]
 exit_to_user_mode_loop kernel/entry/common.c:175 [inline]
 exit_to_user_mode_prepare+0x160/0x190 kernel/entry/common.c:207
 __syscall_exit_to_user_mode_work kernel/entry/common.c:289 [inline]
 syscall_exit_to_user_mode+0x20/0x40 kernel/entry/common.c:300
 do_syscall_64+0x50/0xd0 arch/x86/entry/common.c:86
 entry_SYSCALL_64_after_hwframe+0x44/0xae

value changed: 0xffff8881364e1240 -> 0x0000000000000000

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

Crashes (2):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2021/12/12 09:22 upstream a763d5a5abd6 49ca1f59 .config log report info KCSAN: data-race in fasync_remove_entry / sock_wake_async
ci2-upstream-kcsan-gce 2021/11/14 21:00 upstream c8c109546a19 75b04091 .config log report info KCSAN: data-race in fasync_remove_entry / sock_wake_async
* Struck through repros no longer work on HEAD.