syzbot


DATA RACE in transport.(*connectionedEndpoint).BidirectionalConnect

Status: fixed on 2025/09/19 06:07
Fix commit: 2f7f776a4464 Automated rollback of changelist 798788535
First crash: 21d, last: 13d

Sample crash report:
WARNING: DATA RACE
Read at 0x00c002d09e18 by goroutine 2406:
  gvisor.dev/gvisor/pkg/sentry/socket/unix/transport.(*connectionedEndpoint).BidirectionalConnect()
      pkg/sentry/socket/unix/transport/connectioned.go:348 +0x636
  gvisor.dev/gvisor/pkg/sentry/socket/unix/transport.(*connectionedEndpoint).Connect()
      pkg/sentry/socket/unix/transport/connectioned.go:421 +0xc9
  gvisor.dev/gvisor/pkg/sentry/socket/unix.(*Socket).Connect()
      pkg/sentry/socket/unix/unix.go:621 +0x2c5
  gvisor.dev/gvisor/pkg/sentry/syscalls/linux.Connect()
      pkg/sentry/syscalls/linux/sys_socket.go:279 +0x32e
  gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).executeSyscall()
      pkg/sentry/kernel/task_syscall.go:143 +0x94b
  gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallInvoke()
      pkg/sentry/kernel/task_syscall.go:323 +0x71
  gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallEnter()
      pkg/sentry/kernel/task_syscall.go:283 +0x93
  gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscall()
      pkg/sentry/kernel/task_syscall.go:258 +0x48f
  gvisor.dev/gvisor/pkg/sentry/kernel.(*runApp).execute()
      pkg/sentry/kernel/task_run.go:269 +0x1ec8
  gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).run()
      pkg/sentry/kernel/task_run.go:97 +0x4c9
  gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).Start.gowrap1()
      pkg/sentry/kernel/task_start.go:416 +0x44

Previous write at 0x00c002d09e18 by goroutine 2399:
  gvisor.dev/gvisor/pkg/sentry/socket/unix/transport.(*connectionedEndpoint).SetPeerCreds()
      pkg/sentry/socket/unix/transport/connectioned.go:686 +0x38
  gvisor.dev/gvisor/pkg/sentry/socket/unix.(*Socket).Listen()
      pkg/sentry/socket/unix/unix.go:557 +0xee
  gvisor.dev/gvisor/pkg/sentry/syscalls/linux.Listen()
      pkg/sentry/syscalls/linux/sys_socket.go:406 +0x29a
  gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).executeSyscall()
      pkg/sentry/kernel/task_syscall.go:143 +0x94b
  gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallInvoke()
      pkg/sentry/kernel/task_syscall.go:323 +0x71
  gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallEnter()
      pkg/sentry/kernel/task_syscall.go:283 +0x93
  gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscall()
      pkg/sentry/kernel/task_syscall.go:258 +0x48f
  gvisor.dev/gvisor/pkg/sentry/kernel.(*runApp).execute()
      pkg/sentry/kernel/task_run.go:269 +0x1ec8
  gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).run()
      pkg/sentry/kernel/task_run.go:97 +0x4c9
  gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).Start.gowrap1()
      pkg/sentry/kernel/task_start.go:416 +0x44

Crashes (11531):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/09/01 22:49 gvisor 376319f48048 807a3b61 .config console log report syz / log C ci-gvisor-ptrace-2-race DATA RACE in transport.(*connectionedEndpoint).BidirectionalConnect
2025/09/01 22:47 gvisor 376319f48048 807a3b61 .config console log report syz / log C ci-gvisor-ptrace-1-race DATA RACE in transport.(*connectionedEndpoint).BidirectionalConnect
2025/09/01 22:35 gvisor 376319f48048 807a3b61 .config console log report syz / log C ci-gvisor-ptrace-3-race DATA RACE in transport.(*connectionedEndpoint).BidirectionalConnect
2025/08/28 21:32 gvisor 1826627343ba d401b9d7 .config console log report syz / log C ci-gvisor-systrap-1-race DATA RACE in transport.(*connectionedEndpoint).BidirectionalConnect
2025/08/28 20:01 gvisor 1826627343ba d401b9d7 .config console log report syz / log C ci-gvisor-ptrace-3-race DATA RACE in transport.(*connectionedEndpoint).BidirectionalConnect
2025/08/28 19:55 gvisor 1826627343ba d401b9d7 .config console log report syz / log C ci-gvisor-ptrace-1-race DATA RACE in transport.(*connectionedEndpoint).BidirectionalConnect
2025/08/28 19:48 gvisor 1826627343ba d401b9d7 .config console log report syz / log C ci-gvisor-ptrace-2-race DATA RACE in transport.(*connectionedEndpoint).BidirectionalConnect
2025/08/28 19:04 gvisor 1826627343ba d401b9d7 .config console log report syz / log C ci-gvisor-ptrace-3-race DATA RACE in transport.(*connectionedEndpoint).BidirectionalConnect
2025/08/28 18:57 gvisor 1826627343ba d401b9d7 .config console log report syz / log C ci-gvisor-ptrace-2-race DATA RACE in transport.(*connectionedEndpoint).BidirectionalConnect
2025/09/02 06:59 gvisor 1b291cbddc47 807a3b61 .config console log report syz / log C ci-gvisor-arm64-ptrace-1-race DATA RACE in transport.(*connectionedEndpoint).BidirectionalConnect
2025/08/28 20:03 gvisor 1826627343ba d401b9d7 .config console log report syz / log ci-gvisor-ptrace-1-race DATA RACE in transport.(*connectionedEndpoint).BidirectionalConnect
2025/08/29 00:37 gvisor 1826627343ba d401b9d7 .config console log report syz / log ci-gvisor-arm64-ptrace-1-race DATA RACE in transport.(*connectionedEndpoint).BidirectionalConnect
2025/09/05 16:07 gvisor 16e9064d97c6 d291dd2d .config console log report info ci-gvisor-ptrace-2-race DATA RACE in transport.(*connectionedEndpoint).BidirectionalConnect
2025/09/05 15:52 gvisor 16e9064d97c6 d291dd2d .config console log report info ci-gvisor-systrap-1-race DATA RACE in transport.(*connectionedEndpoint).BidirectionalConnect
2025/09/05 15:36 gvisor 16e9064d97c6 d291dd2d .config console log report info ci-gvisor-ptrace-3-race DATA RACE in transport.(*connectionedEndpoint).BidirectionalConnect
2025/09/05 15:17 gvisor 16e9064d97c6 d291dd2d .config console log report info ci-gvisor-ptrace-1-race DATA RACE in transport.(*connectionedEndpoint).BidirectionalConnect
2025/09/05 14:53 gvisor 16e9064d97c6 d291dd2d .config console log report info ci-gvisor-systrap-1-race DATA RACE in transport.(*connectionedEndpoint).BidirectionalConnect
2025/09/05 14:38 gvisor 16e9064d97c6 d291dd2d .config console log report info ci-gvisor-ptrace-3-race DATA RACE in transport.(*connectionedEndpoint).BidirectionalConnect
2025/09/05 14:13 gvisor 16e9064d97c6 d291dd2d .config console log report info ci-gvisor-ptrace-3-race DATA RACE in transport.(*connectionedEndpoint).BidirectionalConnect
2025/09/05 13:45 gvisor 16e9064d97c6 d291dd2d .config console log report info ci-gvisor-ptrace-3-race DATA RACE in transport.(*connectionedEndpoint).BidirectionalConnect
2025/09/05 13:29 gvisor 16e9064d97c6 d291dd2d .config console log report info ci-gvisor-systrap-1-race DATA RACE in transport.(*connectionedEndpoint).BidirectionalConnect
2025/09/05 13:16 gvisor 16e9064d97c6 d291dd2d .config console log report info ci-gvisor-ptrace-3-race DATA RACE in transport.(*connectionedEndpoint).BidirectionalConnect
2025/09/05 12:57 gvisor 16e9064d97c6 d291dd2d .config console log report info ci-gvisor-ptrace-3-race DATA RACE in transport.(*connectionedEndpoint).BidirectionalConnect
2025/09/05 12:43 gvisor 16e9064d97c6 d291dd2d .config console log report info ci-gvisor-ptrace-3-race DATA RACE in transport.(*connectionedEndpoint).BidirectionalConnect
2025/09/05 12:27 gvisor 16e9064d97c6 d291dd2d .config console log report info ci-gvisor-ptrace-3-race DATA RACE in transport.(*connectionedEndpoint).BidirectionalConnect
2025/09/05 12:03 gvisor 16e9064d97c6 d291dd2d .config console log report info ci-gvisor-systrap-1-race DATA RACE in transport.(*connectionedEndpoint).BidirectionalConnect
2025/09/05 11:44 gvisor 16e9064d97c6 d291dd2d .config console log report info ci-gvisor-systrap-1-race DATA RACE in transport.(*connectionedEndpoint).BidirectionalConnect
2025/09/05 11:26 gvisor 16e9064d97c6 d291dd2d .config console log report info ci-gvisor-ptrace-3-race DATA RACE in transport.(*connectionedEndpoint).BidirectionalConnect
2025/09/05 11:09 gvisor 16e9064d97c6 d291dd2d .config console log report info ci-gvisor-ptrace-3-race DATA RACE in transport.(*connectionedEndpoint).BidirectionalConnect
2025/09/05 10:54 gvisor 16e9064d97c6 d291dd2d .config console log report info ci-gvisor-ptrace-2-race DATA RACE in transport.(*connectionedEndpoint).BidirectionalConnect
2025/09/05 10:30 gvisor 16e9064d97c6 d291dd2d .config console log report info ci-gvisor-ptrace-3-race DATA RACE in transport.(*connectionedEndpoint).BidirectionalConnect
2025/09/05 10:17 gvisor 16e9064d97c6 d291dd2d .config console log report info ci-gvisor-ptrace-1-race DATA RACE in transport.(*connectionedEndpoint).BidirectionalConnect
2025/09/05 10:02 gvisor 16e9064d97c6 d291dd2d .config console log report info ci-gvisor-ptrace-1-race DATA RACE in transport.(*connectionedEndpoint).BidirectionalConnect
2025/09/05 09:41 gvisor 16e9064d97c6 d291dd2d .config console log report info ci-gvisor-systrap-1-race DATA RACE in transport.(*connectionedEndpoint).BidirectionalConnect
2025/09/05 09:21 gvisor 16e9064d97c6 d291dd2d .config console log report info ci-gvisor-systrap-1-race DATA RACE in transport.(*connectionedEndpoint).BidirectionalConnect
2025/09/05 09:06 gvisor 16e9064d97c6 d291dd2d .config console log report info ci-gvisor-ptrace-3-race DATA RACE in transport.(*connectionedEndpoint).BidirectionalConnect
2025/09/05 08:54 gvisor 16e9064d97c6 d291dd2d .config console log report info ci-gvisor-ptrace-3-race DATA RACE in transport.(*connectionedEndpoint).BidirectionalConnect
2025/09/05 08:41 gvisor 16e9064d97c6 d291dd2d .config console log report info ci-gvisor-ptrace-3-race DATA RACE in transport.(*connectionedEndpoint).BidirectionalConnect
2025/09/05 08:23 gvisor 16e9064d97c6 d291dd2d .config console log report info ci-gvisor-ptrace-1-race DATA RACE in transport.(*connectionedEndpoint).BidirectionalConnect
2025/09/05 08:00 gvisor 16e9064d97c6 d291dd2d .config console log report info ci-gvisor-ptrace-3-race DATA RACE in transport.(*connectionedEndpoint).BidirectionalConnect
2025/09/05 07:41 gvisor 16e9064d97c6 d291dd2d .config console log report info ci-gvisor-ptrace-2-race DATA RACE in transport.(*connectionedEndpoint).BidirectionalConnect
2025/09/05 07:28 gvisor 16e9064d97c6 d291dd2d .config console log report info ci-gvisor-ptrace-3-race DATA RACE in transport.(*connectionedEndpoint).BidirectionalConnect
2025/09/05 07:12 gvisor 16e9064d97c6 d291dd2d .config console log report info ci-gvisor-ptrace-2-race DATA RACE in transport.(*connectionedEndpoint).BidirectionalConnect
2025/09/05 06:53 gvisor 16e9064d97c6 d291dd2d .config console log report info ci-gvisor-ptrace-2-race DATA RACE in transport.(*connectionedEndpoint).BidirectionalConnect
2025/09/05 06:33 gvisor 16e9064d97c6 d291dd2d .config console log report info ci-gvisor-ptrace-2-race DATA RACE in transport.(*connectionedEndpoint).BidirectionalConnect
2025/09/05 06:16 gvisor 16e9064d97c6 d291dd2d .config console log report info ci-gvisor-ptrace-3-race DATA RACE in transport.(*connectionedEndpoint).BidirectionalConnect
2025/09/05 05:59 gvisor 16e9064d97c6 d291dd2d .config console log report info ci-gvisor-ptrace-2-race DATA RACE in transport.(*connectionedEndpoint).BidirectionalConnect
2025/09/05 05:42 gvisor 16e9064d97c6 d291dd2d .config console log report info ci-gvisor-ptrace-3-race DATA RACE in transport.(*connectionedEndpoint).BidirectionalConnect
2025/09/05 05:25 gvisor 16e9064d97c6 d291dd2d .config console log report info ci-gvisor-ptrace-3-race DATA RACE in transport.(*connectionedEndpoint).BidirectionalConnect
2025/09/05 05:07 gvisor 16e9064d97c6 d291dd2d .config console log report info ci-gvisor-ptrace-1-race DATA RACE in transport.(*connectionedEndpoint).BidirectionalConnect
2025/09/05 04:49 gvisor 16e9064d97c6 d291dd2d .config console log report info ci-gvisor-ptrace-3-race DATA RACE in transport.(*connectionedEndpoint).BidirectionalConnect
2025/09/05 04:33 gvisor 16e9064d97c6 d291dd2d .config console log report info ci-gvisor-systrap-1-race DATA RACE in transport.(*connectionedEndpoint).BidirectionalConnect
2025/09/05 04:21 gvisor 16e9064d97c6 d291dd2d .config console log report info ci-gvisor-ptrace-3-race DATA RACE in transport.(*connectionedEndpoint).BidirectionalConnect
2025/09/05 03:56 gvisor 16e9064d97c6 d291dd2d .config console log report info ci-gvisor-ptrace-3-race DATA RACE in transport.(*connectionedEndpoint).BidirectionalConnect
2025/09/05 03:40 gvisor 16e9064d97c6 d291dd2d .config console log report info ci-gvisor-ptrace-3-race DATA RACE in transport.(*connectionedEndpoint).BidirectionalConnect
2025/09/05 03:20 gvisor 16e9064d97c6 d291dd2d .config console log report info ci-gvisor-ptrace-3-race DATA RACE in transport.(*connectionedEndpoint).BidirectionalConnect
2025/09/05 02:48 gvisor 16e9064d97c6 d291dd2d .config console log report info ci-gvisor-ptrace-3-race DATA RACE in transport.(*connectionedEndpoint).BidirectionalConnect
* Struck through repros no longer work on HEAD.