syzbot


KCSAN: data-race in sock_alloc_send_pskb / unix_dgram_connect

Status: auto-closed as invalid on 2020/12/25 11:44
Subsystems: net
[Documentation on labels]
Reported-by: syzbot+05a6bf13abb9fa29b886@syzkaller.appspotmail.com
First crash: 1247d, last: 1247d
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in sock_alloc_send_pskb / unix_dgram_connect (3) net 15 1040d 1128d 0/26 auto-closed as invalid on 2021/07/18 16:15
upstream KCSAN: data-race in sock_alloc_send_pskb / unix_dgram_connect (2) net 1 1186d 1186d 0/26 auto-closed as invalid on 2021/02/22 18:25

Sample crash report:
==================================================================
BUG: KCSAN: data-race in sock_alloc_send_pskb / unix_dgram_connect

write to 0xffff888107848e30 of 4 bytes by task 19878 on cpu 1:
 unix_dgram_disconnected net/unix/af_unix.c:486 [inline]
 unix_dgram_connect+0x792/0x860 net/unix/af_unix.c:1190
 __sys_connect_file net/socket.c:1852 [inline]
 __sys_connect+0x245/0x280 net/socket.c:1869
 __do_sys_connect net/socket.c:1879 [inline]
 __se_sys_connect net/socket.c:1876 [inline]
 __x64_sys_connect+0x3d/0x50 net/socket.c:1876
 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

read to 0xffff888107848e30 of 4 bytes by task 19888 on cpu 0:
 sock_error include/net/sock.h:2217 [inline]
 sock_alloc_send_pskb+0xe0/0x470 net/core/sock.c:2309
 unix_dgram_sendmsg+0x485/0x15f0 net/unix/af_unix.c:1670
 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_sendmmsg+0x335/0x4b0 net/socket.c:2497
 __do_sys_sendmmsg net/socket.c:2526 [inline]
 __se_sys_sendmmsg net/socket.c:2523 [inline]
 __x64_sys_sendmmsg+0x53/0x60 net/socket.c:2523
 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: 19888 Comm: syz-executor.1 Not tainted 5.10.0-rc4-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/18 04:10 upstream 111e91a6df50 09323409 .config console log report info ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.