syzbot


KCSAN: data-race in unix_release_sock / unix_seqpacket_sendmsg (3)

Status: auto-closed as invalid on 2021/07/23 04:04
Subsystems: net
[Documentation on labels]
First crash: 1083d, last: 1043d
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 1186d 1232d 0/26 auto-closed as invalid on 2021/03/01 18:31
upstream KCSAN: data-race in unix_release_sock / unix_seqpacket_sendmsg net 1 1577d 1577d 0/26 auto-closed as invalid on 2020/03/10 23:35

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

write to 0xffff88812c93e230 of 4 bytes by task 3988 on cpu 1:
 unix_release_sock+0x2e9/0x6e0 net/unix/af_unix.c:550
 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:175 [inline]
 exit_to_user_mode_prepare+0x156/0x190 kernel/entry/common.c:209
 __syscall_exit_to_user_mode_work kernel/entry/common.c:291 [inline]
 syscall_exit_to_user_mode+0x20/0x40 kernel/entry/common.c:302
 do_syscall_64+0x56/0x90 arch/x86/entry/common.c:57
 entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffff88812c93e230 of 4 bytes by task 4005 on cpu 0:
 sock_error include/net/sock.h:2269 [inline]
 unix_seqpacket_sendmsg+0x36/0x100 net/unix/af_unix.c:2045
 sock_sendmsg_nosec net/socket.c:654 [inline]
 sock_sendmsg net/socket.c:674 [inline]
 ____sys_sendmsg+0x360/0x4d0 net/socket.c:2350
 ___sys_sendmsg net/socket.c:2404 [inline]
 __sys_sendmsg+0x1ed/0x270 net/socket.c:2433
 __do_sys_sendmsg net/socket.c:2442 [inline]
 __se_sys_sendmsg net/socket.c:2440 [inline]
 __x64_sys_sendmsg+0x42/0x50 net/socket.c:2440
 do_syscall_64+0x4a/0x90 arch/x86/entry/common.c:47
 entry_SYSCALL_64_after_hwframe+0x44/0xae

value changed: 0x00000000 -> 0x00000068

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

Crashes (7):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/06/18 03:57 upstream fd0aa1a4567d aba2b2fb .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in unix_release_sock / unix_seqpacket_sendmsg
2021/06/16 06:34 upstream 94f0b2d4a1d0 990d3cbe .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in unix_release_sock / unix_seqpacket_sendmsg
2021/06/04 18:36 upstream 16f0596fc1d7 966a236b .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in unix_release_sock / unix_seqpacket_sendmsg
2021/06/02 16:31 upstream 231bc5390667 0740de69 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in unix_release_sock / unix_seqpacket_sendmsg
2021/05/23 19:41 upstream 4d7620341eda 3c7fef33 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in unix_release_sock / unix_seqpacket_sendmsg
2021/05/14 05:29 upstream 315d99318179 8bdd5343 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in unix_release_sock / unix_seqpacket_sendmsg
2021/05/09 14:32 upstream b741596468b0 bc5434be .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in unix_release_sock / unix_seqpacket_sendmsg
* Struck through repros no longer work on HEAD.