syzbot


KCSAN: data-race in sock_alloc_send_pskb / unix_dgram_connect (3)

Status: auto-closed as invalid on 2021/07/18 16:15
Subsystems: net
[Documentation on labels]
First crash: 1106d, last: 1018d
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 net 1 1226d 1202d 0/26 auto-closed as invalid on 2020/12/25 11:44
upstream KCSAN: data-race in sock_alloc_send_pskb / unix_dgram_connect (2) net 1 1164d 1164d 0/26 auto-closed as invalid on 2021/02/22 18:25

Sample crash report:
printk: Suspending console(s) (use no_console_suspend to debug)
ACPI: Preparing to enter system sleep state S3
PM: Saving platform NVS memory
Disabling non-boot CPUs ...
smpboot: CPU 1 is now offline
kvm-clock: cpu 0, msr 4506001, primary cpu clock, resume
ACPI: Low-level resume complete
PM: Restoring platform NVS memory
kvm-guest: stealtime: cpu 0, msr 237c170c0
Enabling non-boot CPUs ...
x86: Booting SMP configuration:
smpboot: Booting Node 0 Processor 1 APIC 0x1
CPU1 is up
ACPI: Waking up from system sleep state S3
OOM killer enabled.
Restarting tasks ... done.
PM: suspend exit
==================================================================
BUG: KCSAN: data-race in sock_alloc_send_pskb / unix_dgram_connect

write to 0xffff888145500e30 of 4 bytes by task 10912 on cpu 0:
 unix_dgram_disconnected net/unix/af_unix.c:486 [inline]
 unix_dgram_connect+0x73d/0x850 net/unix/af_unix.c:1191
 __sys_connect_file net/socket.c:1837 [inline]
 __sys_connect+0x245/0x280 net/socket.c:1854
 __do_sys_connect net/socket.c:1864 [inline]
 __se_sys_connect net/socket.c:1861 [inline]
 __x64_sys_connect+0x3d/0x50 net/socket.c:1861
 do_syscall_64+0x4a/0x90 arch/x86/entry/common.c:47
 entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffff888145500e30 of 4 bytes by task 10925 on cpu 1:
 sock_error include/net/sock.h:2269 [inline]
 sock_alloc_send_pskb+0xe4/0x4e0 net/core/sock.c:2344
 unix_dgram_sendmsg+0x478/0x1610 net/unix/af_unix.c:1671
 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_sendmmsg+0x315/0x4b0 net/socket.c:2490
 __do_sys_sendmmsg net/socket.c:2519 [inline]
 __se_sys_sendmmsg net/socket.c:2516 [inline]
 __x64_sys_sendmmsg+0x53/0x60 net/socket.c:2516
 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: 1 PID: 10925 Comm: syz-executor.3 Not tainted 5.13.0-rc5-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (15):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/06/13 16:09 upstream 8ecfa36cd4db 1ba81399 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in sock_alloc_send_pskb / unix_dgram_connect
2021/06/13 16:03 upstream 8ecfa36cd4db 1ba81399 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in sock_alloc_send_pskb / unix_dgram_connect
2021/06/11 11:58 upstream 06af8679449d 1ba81399 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in sock_alloc_send_pskb / unix_dgram_connect
2021/05/29 16:36 upstream 6799d4f2da49 325a8dab .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in sock_alloc_send_pskb / unix_dgram_connect
2021/05/26 03:06 upstream a050a6d2b7e8 93d3a9f6 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in sock_alloc_send_pskb / unix_dgram_connect
2021/05/20 14:12 upstream c3d0e3fd41b7 c560a65d .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in sock_alloc_send_pskb / unix_dgram_connect
2021/05/14 13:34 upstream 315d99318179 8bdd5343 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in sock_alloc_send_pskb / unix_dgram_connect
2021/05/12 11:19 upstream 88b06399c9c7 86294427 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in sock_alloc_send_pskb / unix_dgram_connect
2021/05/11 08:55 upstream 1140ab592e2e ca873091 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in sock_alloc_send_pskb / unix_dgram_connect
2021/05/10 02:06 upstream 9819f682e48c bc5434be .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in sock_alloc_send_pskb / unix_dgram_connect
2021/05/03 03:44 upstream 17ae69aba89d 77e2b668 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in sock_alloc_send_pskb / unix_dgram_connect
2021/04/29 20:52 upstream d72cd4ad4174 77e2b668 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in sock_alloc_send_pskb / unix_dgram_connect
2021/04/26 11:30 upstream 9f4ad9e425a1 805b5003 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in sock_alloc_send_pskb / unix_dgram_connect
2021/04/17 05:57 upstream 2f7b98d1e55c 7e2b734b .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in sock_alloc_send_pskb / unix_dgram_connect
2021/03/17 17:40 upstream 1df27313f50a fdb2bb2c .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in sock_alloc_send_pskb / unix_dgram_connect
* Struck through repros no longer work on HEAD.