syzbot


panic: MountNamespace.FindInode: path is empty

Status: fixed on 2018/07/04 07:42
Fix commit: 062a6f6ec5f4 Handle NUL-only paths in exec
First crash: 2349d, last: 2337d

Sample crash report:
panic: MountNamespace.FindInode: path is empty

goroutine 123 [running]:
gvisor.googlesource.com/gvisor/pkg/sentry/fs.(*MountNamespace).FindLink(0xc420123320, 0xc75e00, 0xc4201aa000, 0xc420236820, 0xc420237540, 0x0, 0x0, 0x28, 0x0, 0x5c, ...)
	pkg/sentry/fs/mounts.go:352 +0x500
gvisor.googlesource.com/gvisor/pkg/sentry/fs.(*MountNamespace).FindInode(0xc420123320, 0xc75e00, 0xc4201aa000, 0xc420236820, 0xc420237540, 0x0, 0x0, 0x28, 0x80, 0x5c, ...)
	pkg/sentry/fs/mounts.go:437 +0x71
gvisor.googlesource.com/gvisor/pkg/sentry/loader.openPath(0xc75e00, 0xc4201aa000, 0xc420123320, 0xc420236820, 0xc420237540, 0x28, 0x0, 0x0, 0x0, 0x0, ...)
	pkg/sentry/loader/loader.go:58 +0xc1
gvisor.googlesource.com/gvisor/pkg/sentry/loader.loadPath(0xc75e00, 0xc4201aa000, 0xc4201b0580, 0xc420123320, 0xc420236820, 0xc420237540, 0x28, 0xc4202989c0, 0x0, 0x0, ...)
	pkg/sentry/loader/loader.go:135 +0x170
gvisor.googlesource.com/gvisor/pkg/sentry/loader.Load(0xc75e00, 0xc4201aa000, 0xc4201b0580, 0xc420123320, 0xc420236820, 0xc420237540, 0x28, 0xc4202989c0, 0x0, 0x0, ...)
	pkg/sentry/loader/loader.go:195 +0x158
gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*Kernel).LoadTaskImage(0xc4202ae7e0, 0xc75e00, 0xc4201aa000, 0xc420123320, 0xc420236820, 0xc420237540, 0x28, 0x0, 0x0, 0xc42025a100, ...)
	pkg/sentry/kernel/task_context.go:157 +0x1b9
gvisor.googlesource.com/gvisor/pkg/sentry/syscalls/linux.Execve(0xc4201aa000, 0x20002580, 0x20002740, 0x20002800, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
	pkg/sentry/syscalls/linux/sys_thread.go:106 +0x2c8
gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*Task).executeSyscall(0xc4201aa000, 0x3b, 0x20002580, 0x20002740, 0x20002800, 0x0, 0x0, 0x0, 0xc42069dca8, 0xbb6320, ...)
	pkg/sentry/kernel/task_syscall.go:162 +0x307
gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*Task).doSyscallInvoke(0xc4201aa000, 0x3b, 0x20002580, 0x20002740, 0x20002800, 0x0, 0x0, 0x0, 0x0, 0x0)
	pkg/sentry/kernel/task_syscall.go:278 +0x62
gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*Task).doSyscallEnter(0xc4201aa000, 0x3b, 0x20002580, 0x20002740, 0x20002800, 0x0, 0x0, 0x0, 0xc4204de400, 0xc42069de00)
	pkg/sentry/kernel/task_syscall.go:241 +0x91
gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*Task).doSyscall(0xc4201aa000, 0x2, 0xc42014e480)
	pkg/sentry/kernel/task_syscall.go:216 +0x10c
gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*runApp).execute(0x0, 0xc4201aa000, 0xc69020, 0x0)
	pkg/sentry/kernel/task_run.go:217 +0xed8
gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*Task).run(0xc4201aa000, 0xa)
	pkg/sentry/kernel/task_run.go:95 +0x174
created by gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*Task).Start
	pkg/sentry/kernel/task_start.go:251 +0x100

Crashes (3443):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2018/06/23 08:54 https://gvisor.googlesource.com/gvisor master 9c0c4fd8d05c 665947c7 .config console log report syz C ci-gvisor-kvm-direct-sandbox
2018/06/23 07:19 https://gvisor.googlesource.com/gvisor master 9c0c4fd8d05c 8e0b1c85 .config console log report syz C ci-gvisor-main
2018/06/22 20:12 https://gvisor.googlesource.com/gvisor master 5d45f88f2c28 b9c7c319 .config console log report syz C ci-gvisor-kvm-proxy-overlay-sandbox
2018/06/22 19:48 https://gvisor.googlesource.com/gvisor master 5d45f88f2c28 b9c7c319 .config console log report syz C ci-gvisor-ptrace-direct-overlay-host
2018/06/22 17:38 https://gvisor.googlesource.com/gvisor master 5d45f88f2c28 67ce8635 .config console log report syz C ci-gvisor-main
2018/06/22 13:30 https://gvisor.googlesource.com/gvisor master 0e434b66a625 78c2562d console log report syz C ci-gvisor-main
2018/07/03 19:56 https://gvisor.googlesource.com/gvisor master 614475196201 b9f93868 .config console log report ci-gvisor-main
2018/07/03 18:48 https://gvisor.googlesource.com/gvisor master 614475196201 b9f93868 .config console log report ci-gvisor-main
2018/07/03 18:06 https://gvisor.googlesource.com/gvisor master 614475196201 b9f93868 .config console log report ci-gvisor-main
2018/07/03 16:13 https://gvisor.googlesource.com/gvisor master 614475196201 b9f93868 .config console log report ci-gvisor-main
2018/07/03 14:20 https://gvisor.googlesource.com/gvisor master 614475196201 b9f93868 .config console log report ci-gvisor-ptrace-direct-overlay-host
2018/07/03 14:08 https://gvisor.googlesource.com/gvisor master 614475196201 b9f93868 .config console log report ci-gvisor-ptrace-direct-overlay-host
2018/07/03 13:02 https://gvisor.googlesource.com/gvisor master 614475196201 b9f93868 .config console log report ci-gvisor-main
2018/07/03 11:58 https://gvisor.googlesource.com/gvisor master 614475196201 b9f93868 .config console log report ci-gvisor-ptrace-direct-overlay-host
2018/07/03 11:47 https://gvisor.googlesource.com/gvisor master 614475196201 b9f93868 .config console log report ci-gvisor-main
2018/07/03 10:46 https://gvisor.googlesource.com/gvisor master 614475196201 b9f93868 .config console log report ci-gvisor-main
2018/07/03 09:28 https://gvisor.googlesource.com/gvisor master 614475196201 b9f93868 .config console log report ci-gvisor-main
2018/07/03 08:24 https://gvisor.googlesource.com/gvisor master 614475196201 b9f93868 .config console log report ci-gvisor-ptrace-direct-overlay-host
2018/07/03 07:05 https://gvisor.googlesource.com/gvisor master 614475196201 b9f93868 .config console log report ci-gvisor-main
2018/07/03 06:28 https://gvisor.googlesource.com/gvisor master 7f9c822f536f b9f93868 .config console log report ci-gvisor-ptrace-direct-overlay-host
2018/07/03 04:16 https://gvisor.googlesource.com/gvisor master 7f9c822f536f b9f93868 .config console log report ci-gvisor-main
2018/07/03 03:46 https://gvisor.googlesource.com/gvisor master 7f9c822f536f b9f93868 .config console log report ci-gvisor-ptrace-direct-overlay-host
2018/07/03 01:12 https://gvisor.googlesource.com/gvisor master 7f9c822f536f b9f93868 .config console log report ci-gvisor-main
2018/07/03 01:08 https://gvisor.googlesource.com/gvisor master 7f9c822f536f b9f93868 .config console log report ci-gvisor-ptrace-direct-overlay-host
2018/07/03 00:01 https://gvisor.googlesource.com/gvisor master 7f9c822f536f b9f93868 .config console log report ci-gvisor-main
2018/07/02 23:01 https://gvisor.googlesource.com/gvisor master 7f9c822f536f b9f93868 .config console log report ci-gvisor-main
2018/07/02 22:47 https://gvisor.googlesource.com/gvisor master 7f9c822f536f b9f93868 .config console log report ci-gvisor-ptrace-direct-overlay-host
2018/06/28 04:30 https://gvisor.googlesource.com/gvisor master c186e408cc61 43e60f7e .config console log report ci-gvisor-kvm-direct-sandbox
2018/06/23 02:42 https://gvisor.googlesource.com/gvisor master 5d45f88f2c28 b9c7c319 .config console log report ci-gvisor-kvm-proxy-overlay-sandbox
2018/06/22 12:22 https://gvisor.googlesource.com/gvisor master 0e434b66a625 78c2562d console log report ci-gvisor-main
2018/07/04 07:08 https://github.com/dvyukov/gvisor.git race 082553a8233a b9f93868 .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2018/07/04 06:20 https://github.com/dvyukov/gvisor.git race 082553a8233a b9f93868 .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2018/07/04 05:13 https://github.com/dvyukov/gvisor.git race 082553a8233a b9f93868 .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2018/07/04 04:04 https://github.com/dvyukov/gvisor.git race 082553a8233a b9f93868 .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2018/07/04 02:35 https://github.com/dvyukov/gvisor.git race 082553a8233a b9f93868 .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2018/07/04 01:31 https://github.com/dvyukov/gvisor.git race 082553a8233a b9f93868 .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2018/07/04 00:14 https://github.com/dvyukov/gvisor.git race 082553a8233a b9f93868 .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2018/07/03 23:20 https://github.com/dvyukov/gvisor.git race 082553a8233a b9f93868 .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2018/07/03 22:19 https://github.com/dvyukov/gvisor.git race 082553a8233a b9f93868 .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2018/07/03 17:00 https://github.com/dvyukov/gvisor.git race 082553a8233a b9f93868 .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2018/07/03 15:21 https://github.com/dvyukov/gvisor.git race 082553a8233a b9f93868 .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2018/07/03 10:46 https://github.com/dvyukov/gvisor.git race 082553a8233a b9f93868 .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2018/07/03 09:45 https://github.com/dvyukov/gvisor.git race 082553a8233a b9f93868 .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2018/07/03 08:23 https://github.com/dvyukov/gvisor.git race 082553a8233a b9f93868 .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2018/07/03 05:17 https://github.com/dvyukov/gvisor.git race 082553a8233a b9f93868 .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2018/07/03 02:39 https://github.com/dvyukov/gvisor.git race 082553a8233a b9f93868 .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2018/07/03 02:21 https://github.com/dvyukov/gvisor.git race 082553a8233a b9f93868 .config console log report ci-gvisor-ptrace-proxy-sandbox-race
* Struck through repros no longer work on HEAD.