syzbot


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

Status: closed as invalid on 2020/06/18 14:13
Subsystems: fs
[Documentation on labels]
First crash: 1704d, last: 1704d
Similar bugs (11)
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 1620d 1620d 0/28 auto-closed as invalid on 2020/09/26 10:37
upstream KCSAN: data-race in fasync_remove_entry / sock_wake_async (10) fs 1 701d 701d 0/28 auto-obsoleted due to no activity on 2023/04/24 02:17
upstream KCSAN: data-race in fasync_remove_entry / sock_wake_async fs 1 1778d 1778d 0/28 auto-closed as invalid on 2020/05/26 22:23
upstream KCSAN: data-race in fasync_remove_entry / sock_wake_async (5) fs 3 1347d 1384d 0/28 auto-closed as invalid on 2021/06/26 18:07
upstream KCSAN: data-race in fasync_remove_entry / sock_wake_async (8) fs 1 1043d 1043d 0/28 auto-closed as invalid on 2022/04/26 03:12
upstream KCSAN: data-race in fasync_remove_entry / sock_wake_async (6) fs 2 1143d 1171d 0/28 auto-closed as invalid on 2022/01/16 09:31
upstream KCSAN: data-race in fasync_remove_entry / sock_wake_async (9) fs 2 827d 833d 0/28 auto-obsoleted due to no activity on 2022/11/28 02:38
upstream KCSAN: data-race in fasync_remove_entry / sock_wake_async (12) fs 22 2d02h 224d 0/28 moderation: reported on 2024/06/18 10:08
upstream KCSAN: data-race in fasync_remove_entry / sock_wake_async (11) fs 1 607d 607d 0/28 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 1672d 1672d 0/28 auto-closed as invalid on 2020/08/05 10:16
upstream KCSAN: data-race in fasync_remove_entry / sock_wake_async (7) fs 1 1089d 1089d 0/28 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 0xffff8880bb2cf398 of 8 bytes by task 28343 on cpu 0:
 fasync_remove_entry+0xb7/0x120 fs/fcntl.c:884
 fasync_helper+0xc9/0xd6 fs/fcntl.c:983
 sock_fasync+0x74/0x100 net/socket.c:1308
 __fput+0x455/0x500 fs/file_table.c:277
 ____fput+0x1b/0x30 fs/file_table.c:313
 task_work_run+0xba/0x120 kernel/task_work.c:123
 tracehook_notify_resume include/linux/tracehook.h:188 [inline]
 exit_to_usermode_loop+0x2ae/0x2c0 arch/x86/entry/common.c:165
 prepare_exit_to_usermode arch/x86/entry/common.c:196 [inline]
 syscall_return_slowpath arch/x86/entry/common.c:279 [inline]
 do_syscall_64+0x38b/0x3b0 arch/x86/entry/common.c:305
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

read to 0xffff8880bb2cf398 of 8 bytes by task 28341 on cpu 1:
 sock_wake_async+0x37/0x100 net/socket.c:1323
 sk_wake_async include/net/sock.h:2259 [inline]
 sk_wake_async include/net/sock.h:2255 [inline]
 unix_write_space+0x166/0x180 net/unix/af_unix.c:466
 sock_wfree+0x13e/0x1b0 net/core/sock.c:1969
 unix_destruct_scm+0xd2/0x100 net/unix/scm.c:149
 skb_release_head_state+0xb0/0x180 net/core/skbuff.c:651
 skb_release_all+0x1b/0x50 net/core/skbuff.c:662
 __kfree_skb net/core/skbuff.c:678 [inline]
 kfree_skb net/core/skbuff.c:696 [inline]
 kfree_skb+0x93/0x200 net/core/skbuff.c:690
 unix_release_sock+0x304/0x670 net/unix/af_unix.c:568
 unix_release+0x3a/0x60 net/unix/af_unix.c:867
 __sock_release+0x85/0x160 net/socket.c:605
 sock_close+0x1f/0x30 net/socket.c:1283
 __fput+0x1e9/0x500 fs/file_table.c:280
 ____fput+0x1b/0x30 fs/file_table.c:313
 task_work_run+0xba/0x120 kernel/task_work.c:123
 tracehook_notify_resume include/linux/tracehook.h:188 [inline]
 exit_to_usermode_loop+0x2ae/0x2c0 arch/x86/entry/common.c:165
 prepare_exit_to_usermode arch/x86/entry/common.c:196 [inline]
 syscall_return_slowpath arch/x86/entry/common.c:279 [inline]
 do_syscall_64+0x38b/0x3b0 arch/x86/entry/common.c:305
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

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

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/05/30 17:10 https://github.com/google/ktsan.git kcsan 7c3cd68e5d38 6f3e1c7c .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.