syzbot


KCSAN: data-race in unix_release_sock / unix_stream_sendmsg

Status: auto-closed as invalid on 2021/01/04 17:08
Subsystems: net
[Documentation on labels]
First crash: 1242d, last: 1242d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in unix_release_sock / unix_stream_sendmsg (2) net 3 940d 990d 0/26 auto-closed as invalid on 2021/11/02 18:48

Sample crash report:
==================================================================
BUG: KCSAN: data-race in unix_release_sock / unix_stream_sendmsg

write to 0xffff888103834a6a of 1 bytes by task 1967 on cpu 1:
 unix_release_sock+0x25e/0x650 net/unix/af_unix.c:548
 unix_release+0x2f/0x50 net/unix/af_unix.c:859
 __sock_release net/socket.c:596 [inline]
 sock_close+0x6c/0x150 net/socket.c:1277
 __fput+0x243/0x4d0 fs/file_table.c:281
 ____fput+0x11/0x20 fs/file_table.c:314
 task_work_run+0x8e/0x110 kernel/task_work.c:151
 tracehook_notify_resume include/linux/tracehook.h:188 [inline]
 exit_to_user_mode_loop kernel/entry/common.c:164 [inline]
 exit_to_user_mode_prepare+0x13c/0x170 kernel/entry/common.c:191
 syscall_exit_to_user_mode+0x16/0x30 kernel/entry/common.c:266
 do_syscall_64+0x45/0x80 arch/x86/entry/common.c:56
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

read to 0xffff888103834a6a of 1 bytes by task 1971 on cpu 0:
 unix_stream_sendmsg+0x288/0xa50 net/unix/af_unix.c:1853
 sock_sendmsg_nosec net/socket.c:651 [inline]
 sock_sendmsg net/socket.c:671 [inline]
 ____sys_sendmsg+0x352/0x4c0 net/socket.c:2353
 ___sys_sendmsg net/socket.c:2407 [inline]
 __sys_sendmsg+0x1e2/0x260 net/socket.c:2440
 __do_sys_sendmsg net/socket.c:2449 [inline]
 __se_sys_sendmsg net/socket.c:2447 [inline]
 __x64_sys_sendmsg+0x42/0x50 net/socket.c:2447
 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 1971 Comm: syz-executor.2 Not tainted 5.10.0-rc6-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/11/30 17:00 upstream b65054597872 76831598 .config console log report info ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.