syzbot


DATA RACE in fs.Rename (2)

Status: fixed on 2019/12/06 21:56
Reported-by: syzbot+ea70781ebb14e33eef01@syzkaller.appspotmail.com
Fix commit: 89cc8eef9ba6 DATA RACE in fs.(*Dirent).fullName
First crash: 2336d, last: 2061d
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
gvisor DATA RACE in fs.Rename (3) 1 1775d 1775d 0/26 fixed on 2020/01/18 20:38
gvisor DATA RACE in fs.Rename (4) syz 2 1591d 1584d 0/26 moderation: reported syz repro on 2020/07/25 18:04
gvisor DATA RACE in fs.Rename C 16 2337d 2347d 0/26 fixed on 2018/07/04 07:42

Sample crash report:
WARNING: DATA RACE
Write at 0x00c420c08f50 by goroutine 165:
  gvisor.googlesource.com/gvisor/pkg/sentry/fs.Rename()
      pkg/sentry/fs/dirent.go:1581 +0x46f
  gvisor.googlesource.com/gvisor/pkg/sentry/syscalls/linux.renameAt.func1.1()
      pkg/sentry/syscalls/linux/sys_file.go:1825 +0x18d
  gvisor.googlesource.com/gvisor/pkg/sentry/syscalls/linux.fileOpAt()
      pkg/sentry/syscalls/linux/sys_file.go:51 +0x271
  gvisor.googlesource.com/gvisor/pkg/sentry/syscalls/linux.renameAt.func1()
      pkg/sentry/syscalls/linux/sys_file.go:1814 +0x20a
  gvisor.googlesource.com/gvisor/pkg/sentry/syscalls/linux.fileOpAt()
      pkg/sentry/syscalls/linux/sys_file.go:51 +0x271
  gvisor.googlesource.com/gvisor/pkg/sentry/syscalls/linux.renameAt()
      pkg/sentry/syscalls/linux/sys_file.go:1799 +0x1ef
  gvisor.googlesource.com/gvisor/pkg/sentry/syscalls/linux.Rename()
      pkg/sentry/syscalls/linux/sys_file.go:1834 +0x60
  gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*Task).executeSyscall()
      pkg/sentry/kernel/task_syscall.go:162 +0x14e
  gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*Task).doSyscallInvoke()
      pkg/sentry/kernel/task_syscall.go:278 +0x7d
  gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*Task).doSyscallEnter()
      pkg/sentry/kernel/task_syscall.go:241 +0xc3
  gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*Task).doSyscall()
      pkg/sentry/kernel/task_syscall.go:216 +0x19c
  gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*runApp).execute()
      pkg/sentry/kernel/task_run.go:217 +0x157c
  gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*Task).run()
      pkg/sentry/kernel/task_run.go:95 +0x264

Previous read at 0x00c420c08f50 by goroutine 125:
  gvisor.googlesource.com/gvisor/pkg/sentry/fs.(*Dirent).InotifyEvent()
      pkg/sentry/fs/dirent.go:1344 +0xe4
  gvisor.googlesource.com/gvisor/pkg/sentry/syscalls/linux.createAt.func1()
      pkg/sentry/syscalls/linux/sys_file.go:370 +0x606
  gvisor.googlesource.com/gvisor/pkg/sentry/syscalls/linux.fileOpAt()
      pkg/sentry/syscalls/linux/sys_file.go:51 +0x271
  gvisor.googlesource.com/gvisor/pkg/sentry/syscalls/linux.createAt()
      pkg/sentry/syscalls/linux/sys_file.go:298 +0x1dd
  gvisor.googlesource.com/gvisor/pkg/sentry/syscalls/linux.Creat()
      pkg/sentry/syscalls/linux/sys_file.go:408 +0x61
  gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*Task).executeSyscall()
      pkg/sentry/kernel/task_syscall.go:162 +0x14e
  gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*Task).doSyscallInvoke()
      pkg/sentry/kernel/task_syscall.go:278 +0x7d
  gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*Task).doSyscallEnter()
      pkg/sentry/kernel/task_syscall.go:241 +0xc3
  gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*Task).doSyscall()
      pkg/sentry/kernel/task_syscall.go:216 +0x19c
  gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*runApp).execute()
      pkg/sentry/kernel/task_run.go:217 +0x157c
  gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*Task).run()
      pkg/sentry/kernel/task_run.go:95 +0x264

Crashes (433):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2018/07/09 00:08 https://github.com/dvyukov/gvisor.git race 54dabe736f40 f25e5770 .config console log report syz C ci-gvisor-ptrace-proxy-sandbox-race
2018/07/08 23:34 https://github.com/dvyukov/gvisor.git race 54dabe736f40 f25e5770 .config console log report syz C ci-gvisor-ptrace-proxy-sandbox-race
2018/07/04 22:14 https://github.com/dvyukov/gvisor.git race 54dabe736f40 b9f93868 .config console log report syz C ci-gvisor-ptrace-proxy-sandbox-race
2019/04/01 06:58 https://gvisor.googlesource.com/gvisor master a046054ba35e 0c624d4d .config console log report syz ci-gvisor-ptrace-proxy-sandbox-race
2019/02/17 19:22 https://gvisor.googlesource.com/gvisor master c611dbc5a739 59f36113 .config console log report syz ci-gvisor-ptrace-proxy-sandbox-race
2019/02/17 19:09 https://gvisor.googlesource.com/gvisor master c611dbc5a739 59f36113 .config console log report syz ci-gvisor-kvm-direct-overlay-host-race
2018/08/21 03:12 https://github.com/dvyukov/gvisor.git race d4d5ed1d9def 95b5c82b .config console log report syz ci-gvisor-ptrace-proxy-sandbox-race
2018/08/21 03:06 https://github.com/dvyukov/gvisor.git race d4d5ed1d9def 95b5c82b .config console log report syz ci-gvisor-kvm-direct-overlay-host-race
2019/04/06 14:03 https://gvisor.googlesource.com/gvisor master 124bafc81c72 c34fde03 .config console log report ci-gvisor-kvm-direct-overlay-host-race
2019/04/06 04:03 https://gvisor.googlesource.com/gvisor master ee7e6d33b2a0 fa763482 .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2019/04/04 16:16 https://gvisor.googlesource.com/gvisor master efe4461d74a1 6a475fff .config console log report ci-gvisor-kvm-direct-overlay-host-race
2019/04/04 13:13 https://gvisor.googlesource.com/gvisor master efe4461d74a1 6a475fff .config console log report ci-gvisor-kvm-direct-overlay-host-race
2019/04/03 14:12 https://gvisor.googlesource.com/gvisor master c4caccd54042 dfd3394d .config console log report ci-gvisor-kvm-direct-overlay-host-race
2019/04/02 18:17 https://gvisor.googlesource.com/gvisor master 1df3fa699774 dfd3394d .config console log report ci-gvisor-kvm-direct-overlay-host-race
2019/04/02 17:09 https://gvisor.googlesource.com/gvisor master 1df3fa699774 dfd3394d .config console log report ci-gvisor-kvm-direct-overlay-host-race
2019/03/28 18:59 https://gvisor.googlesource.com/gvisor master cea1dd7d21b9 14c58f8d .config console log report ci-gvisor-kvm-direct-overlay-host-race
2019/03/27 14:09 https://gvisor.googlesource.com/gvisor master cea1dd7d21b9 1174f0c1 .config console log report ci-gvisor-kvm-direct-overlay-host-race
2019/03/27 06:50 https://gvisor.googlesource.com/gvisor master cea1dd7d21b9 55684ce1 .config console log report ci-gvisor-kvm-direct-overlay-host-race
2019/03/26 15:59 https://gvisor.googlesource.com/gvisor master cea1dd7d21b9 55684ce1 .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2019/03/23 18:09 https://gvisor.googlesource.com/gvisor master cea1dd7d21b9 a2cef203 .config console log report ci-gvisor-kvm-direct-overlay-host-race
2019/03/21 21:45 https://gvisor.googlesource.com/gvisor master cea1dd7d21b9 dce6e62f .config console log report ci-gvisor-kvm-direct-overlay-host-race
2019/03/20 23:20 https://gvisor.googlesource.com/gvisor master cea1dd7d21b9 142c38ee .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2019/03/20 16:32 https://gvisor.googlesource.com/gvisor master cea1dd7d21b9 142c38ee .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2019/03/19 19:47 https://gvisor.googlesource.com/gvisor master cea1dd7d21b9 e4549234 .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2019/03/19 16:35 https://gvisor.googlesource.com/gvisor master cea1dd7d21b9 e4549234 .config console log report ci-gvisor-kvm-direct-overlay-host-race
2019/03/18 15:27 https://gvisor.googlesource.com/gvisor master 6bece16b880e 13026d10 .config console log report ci-gvisor-kvm-direct-overlay-host-race
2019/03/15 04:31 https://gvisor.googlesource.com/gvisor master 5496be7c5dde d72db19b .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2019/03/15 02:57 https://gvisor.googlesource.com/gvisor master 5496be7c5dde d72db19b .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2019/03/14 08:26 https://gvisor.googlesource.com/gvisor master 2512cc561778 d09a902e .config console log report ci-gvisor-kvm-direct-overlay-host-race
2019/03/13 17:17 https://gvisor.googlesource.com/gvisor master 8003bd6a5c01 2881fc25 .config console log report ci-gvisor-kvm-direct-overlay-host-race
2019/03/12 15:41 https://gvisor.googlesource.com/gvisor master 6e6dbf0e5662 a71bfb62 .config console log report ci-gvisor-kvm-direct-overlay-host-race
2019/03/09 18:15 https://gvisor.googlesource.com/gvisor master 281092e84244 12365b99 .config console log report ci-gvisor-kvm-direct-overlay-host-race
2019/03/09 16:15 https://gvisor.googlesource.com/gvisor master 281092e84244 12365b99 .config console log report ci-gvisor-kvm-direct-overlay-host-race
2019/03/04 23:00 https://gvisor.googlesource.com/gvisor master bc70897bb45b 1c0e457a .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2019/03/02 02:41 https://gvisor.googlesource.com/gvisor master 3dbd4a16f8ae 68d9e495 .config console log report ci-gvisor-kvm-direct-overlay-host-race
2019/02/26 11:54 https://gvisor.googlesource.com/gvisor master 10426e0f31e4 8022bafd .config console log report ci-gvisor-kvm-direct-overlay-host-race
2019/02/24 07:07 https://gvisor.googlesource.com/gvisor master b75aa5150443 18107ce0 .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2019/02/24 04:49 https://gvisor.googlesource.com/gvisor master b75aa5150443 18107ce0 .config console log report ci-gvisor-kvm-direct-overlay-host-race
2019/02/21 21:22 https://gvisor.googlesource.com/gvisor master b2a5ad047a26 3133098b .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2019/02/19 10:10 https://gvisor.googlesource.com/gvisor master c611dbc5a739 59f36113 .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2019/01/31 15:41 https://gvisor.googlesource.com/gvisor master cedff8d3aef3 aa432daf .config console log report ci-gvisor-kvm-direct-overlay-host-race
2019/01/31 10:50 https://gvisor.googlesource.com/gvisor master cedff8d3aef3 aa432daf .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2019/01/25 06:15 https://gvisor.googlesource.com/gvisor master 79e0451bd116 bfab9cd8 .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2019/01/24 02:13 https://gvisor.googlesource.com/gvisor master 5f08f8fd8162 56558f63 .config console log report ci-gvisor-kvm-direct-overlay-host-race
2019/01/10 14:42 https://gvisor.googlesource.com/gvisor master 9270d940eb1a db9b6579 .config console log report ci-gvisor-kvm-direct-overlay-host-race
2019/01/03 03:09 https://gvisor.googlesource.com/gvisor master 8e586db16274 06a2b89f .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2018/12/31 17:32 https://gvisor.googlesource.com/gvisor master a891afad6d7e 70b2a9e8 .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2018/12/30 01:45 https://gvisor.googlesource.com/gvisor master a891afad6d7e 35e3f847 .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2018/12/22 23:44 https://gvisor.googlesource.com/gvisor master 0df0df35fc4a e3bd7ab8 .config console log report ci-gvisor-kvm-direct-overlay-host-race
2018/12/22 15:17 https://gvisor.googlesource.com/gvisor master 0df0df35fc4a e3bd7ab8 .config console log report ci-gvisor-kvm-direct-overlay-host-race
2018/12/19 12:08 https://gvisor.googlesource.com/gvisor master 898838e34d1b c2c27bd1 .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2018/07/04 19:12 https://github.com/dvyukov/gvisor.git race 54dabe736f40 b9f93868 .config console log report ci-gvisor-ptrace-proxy-sandbox-race
* Struck through repros no longer work on HEAD.