syzbot


KCSAN: data-race in unix_release_sock / unix_seqpacket_sendmsg

Status: auto-closed as invalid on 2020/03/10 23:35
Subsystems: net
[Documentation on labels]
First crash: 1578d, last: 1578d
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in unix_release_sock / unix_seqpacket_sendmsg (2) net 13 1187d 1232d 0/26 auto-closed as invalid on 2021/03/01 18:31
upstream KCSAN: data-race in unix_release_sock / unix_seqpacket_sendmsg (3) net 7 1043d 1083d 0/26 auto-closed as invalid on 2021/07/23 04:04

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

write to 0xffff88811efaae30 of 4 bytes by task 11994 on cpu 1:
 unix_release_sock+0x52c/0x660 net/unix/af_unix.c:544
 unix_release+0x3e/0x70 net/unix/af_unix.c:842
 __sock_release+0x85/0x160 net/socket.c:592
 sock_close+0x24/0x30 net/socket.c:1270
 __fput+0x1e1/0x520 fs/file_table.c:280
 ____fput+0x1f/0x30 fs/file_table.c:313
 task_work_run+0xf6/0x130 kernel/task_work.c:113
 tracehook_notify_resume include/linux/tracehook.h:188 [inline]
 exit_to_usermode_loop+0x2b4/0x2c0 arch/x86/entry/common.c:164
 prepare_exit_to_usermode arch/x86/entry/common.c:195 [inline]
 syscall_return_slowpath arch/x86/entry/common.c:278 [inline]
 do_syscall_64+0x384/0x3a0 arch/x86/entry/common.c:304
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

read to 0xffff88811efaae30 of 4 bytes by task 11999 on cpu 0:
 sock_error include/net/sock.h:2166 [inline]
 unix_seqpacket_sendmsg+0x3d/0x120 net/unix/af_unix.c:2006
 sock_sendmsg_nosec net/socket.c:639 [inline]
 sock_sendmsg+0x9f/0xc0 net/socket.c:659
 ____sys_sendmsg+0x212/0x4d0 net/socket.c:2330
 ___sys_sendmsg+0xb5/0x100 net/socket.c:2384
 __sys_sendmmsg+0x123/0x350 net/socket.c:2474
 __do_sys_sendmmsg net/socket.c:2503 [inline]
 __se_sys_sendmmsg net/socket.c:2500 [inline]
 __x64_sys_sendmmsg+0x64/0x80 net/socket.c:2500
 do_syscall_64+0xcc/0x3a0 arch/x86/entry/common.c:294
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 11999 Comm: syz-executor.2 Not tainted 5.5.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
2019/12/31 23:34 https://github.com/google/ktsan.git kcsan 245a43005292 25a0186e .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.