syzbot


DATA RACE in fs.(*Dirent).fullName

Status: fixed on 2019/04/11 14:34
Reported-by: syzbot+e1babbf756fab380dfff@syzkaller.appspotmail.com
Fix commit: 89cc8eef9ba6 DATA RACE in fs.(*Dirent).fullName
First crash: 2108d, last: 2066d

Sample crash report:
WARNING: DATA RACE
DIAGNOSIS:
I0401 06:48:59.329277   46375 x:0] ***************************
I0401 06:48:59.329447   46375 x:0] Args: [/syzkaller/managers/ptrace-proxy-sandbox-race/current/image -root /syzkaller/managers/ptrace-proxy-sandbox-race/workdir/gvisor_root -watchdog-action=panic -network=none -debug -platform=ptrace -file-access=shared -network=sandbox debug -stacks ci-gvisor-ptrace-proxy-sandbox-race-0]
I0401 06:48:59.329519   46375 x:0] Git Revision: a046054ba35e8d8c4882f9311dc964eaa1497d58
I0401 06:48:59.329548   46375 x:0] PID: 46375
I0401 06:48:59.329566   46375 x:0] UID: 0, GID: 0
I0401 06:48:59.329581   46375 x:0] Configuration:
I0401 06:48:59.329598   46375 x:0] 		RootDir: /syzkaller/managers/ptrace-proxy-sandbox-race/workdir/gvisor_root
I0401 06:48:59.329638   46375 x:0] 		Platform: ptrace
I0401 06:48:59.329687   46375 x:0] 		FileAccess: shared, overlay: false
I0401 06:48:59.329715   46375 x:0] 		Network: sandbox, logging: false
I0401 06:48:59.329748   46375 x:0] 		Strace: false, max size: 1024, syscalls: []
I0401 06:48:59.329769   46375 x:0] ***************************
D0401 06:48:59.329837   46375 x:0] Load container "/syzkaller/managers/ptrace-proxy-sandbox-race/workdir/gvisor_root" "ci-gvisor-ptrace-proxy-sandbox-race-0"
D0401 06:48:59.336328   46375 x:0] Signal container "ci-gvisor-ptrace-proxy-sandbox-race-0": signal 0
D0401 06:48:59.336448   46375 x:0] Signal sandbox "ci-gvisor-ptrace-proxy-sandbox-race-0"
D0401 06:48:59.336486   46375 x:0] Connecting to sandbox "ci-gvisor-ptrace-proxy-sandbox-race-0"
D0401 06:48:59.336994   46375 x:0] urpc: successfully marshalled 117 bytes.
D0401 06:48:59.338992   46375 x:0] urpc: unmarshal success.
I0401 06:48:59.339097   46375 x:0] Found sandbox "ci-gvisor-ptrace-proxy-sandbox-race-0", PID: 23166
I0401 06:48:59.339139   46375 x:0] Retrieving sandbox stacks
D0401 06:48:59.339154   46375 x:0] Stacks sandbox "ci-gvisor-ptrace-proxy-sandbox-race-0"
D0401 06:48:59.339214   46375 x:0] Connecting to sandbox "ci-gvisor-ptrace-proxy-sandbox-race-0"
D0401 06:48:59.339597   46375 x:0] urpc: successfully marshalled 36 bytes.
D0401 06:48:59.563917   46375 x:0] urpc: unmarshal success.
I0401 06:48:59.564814   46375 x:0]      *** Stack dump ***
goroutine 93502 [running]:
gvisor.googlesource.com/gvisor/pkg/log.Stacks(0x45c801, 0xc0002c8de0, 0xc0003624e0, 0xc0000dea80)
	pkg/log/log.go:259 +0xb6
gvisor.googlesource.com/gvisor/runsc/boot.(*debug).Stacks(0x23cfc78, 0x23cfc78, 0xc000540050, 0x0, 0x0)
	runsc/boot/debug.go:26 +0x38
reflect.Value.call(0xc0002c8de0, 0xc0002c61e8, 0x13, 0x112796b, 0x4, 0xc0012c9eb8, 0x3, 0x3, 0x4a864e, 0xfda2e0, ...)
	GOROOT/src/reflect/value.go:447 +0x649
reflect.Value.Call(0xc0002c8de0, 0xc0002c61e8, 0x13, 0xc0012c9eb8, 0x3, 0x3, 0x0, 0x23cfc78, 0x16)
	GOROOT/src/reflect/value.go:308 +0xc1
gvisor.googlesource.com/gvisor/pkg/urpc.(*Server).handleOne(0xc0002dc840, 0xc00149e030, 0x0, 0x0)
	pkg/urpc/urpc.go:325 +0x63f
gvisor.googlesource.com/gvisor/pkg/urpc.(*Server).handleRegistered(0xc0002dc840, 0xc00149e030, 0xc0002dc840, 0xc00149e030)
	pkg/urpc/urpc.go:420 +0x43
gvisor.googlesource.com/gvisor/pkg/urpc.(*Server).StartHandling.func1(0xc0002dc840, 0xc00149e030)
	pkg/urpc/urpc.go:440 +0x77
created by gvisor.googlesource.com/gvisor/pkg/urpc.(*Server).StartHandling
	pkg/urpc/urpc.go:438 +0x6f

goroutine 1 [semacquire]:
sync.runtime_Semacquire(0xc0002ca214)
	GOROOT/src/runtime/sema.go:56 +0x39
sync.(*WaitGroup).Wait(0xc0002ca214)
	GOROOT/src/sync/waitgroup.go:130 +0xb2
gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*Kernel).WaitExited(...)
	pkg/sentry/kernel/kernel.go:817
gvisor.googlesource.com/gvisor/runsc/boot.(*Loader).WaitExit(0xc0002c2140, 0x0, 0x0)
	runsc/boot/loader.go:781 +0x74
gvisor.googlesource.com/gvisor/runsc/cmd.(*Boot).Execute(0xc00026a120, 0x12b88a0, 0xc00013a010, 0xc00011cb40, 0xc0001bf080, 0x2, 0x2, 0x0)
	runsc/cmd/boot.go:252 +0x12e4
github.com/google/subcommands.(*Commander).Execute(0xc000144000, 0x12b88a0, 0xc00013a010, 0xc0001bf080, 0x2, 0x2, 0x203000)
	external/com_github_google_subcommands/subcommands.go:141 +0x522
github.com/google/subcommands.Execute(...)
	external/com_github_google_subcommands/subcommands.go:371
main.main()
	runsc/main.go:231 +0x2438

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/04/01 06:49 https://gvisor.googlesource.com/gvisor master a046054ba35e 0c624d4d .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2019/03/31 20:01 https://gvisor.googlesource.com/gvisor master a046054ba35e 0c624d4d .config console log report ci-gvisor-kvm-direct-overlay-host-race
2019/02/17 18:55 https://gvisor.googlesource.com/gvisor master c611dbc5a739 59f36113 .config console log report ci-gvisor-kvm-direct-overlay-host-race
* Struck through repros no longer work on HEAD.