syzbot


panic: runtime error: index out of range [NUM] with length NUM (3)

Status: fixed on 2023/01/23 05:20
Fix commit: fe562179fea1 Handle absolute symlink target '/' correctly in VFS layer.
First crash: 676d, last: 673d
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
gvisor panic: runtime error: index out of range [NUM] with length NUM C 12 1127d 1129d 14/26 fixed on 2021/10/27 00:49
gvisor panic: runtime error: index out of range [NUM] with length NUM (2) C 21 1034d 1041d 14/26 fixed on 2022/01/26 19:49

Sample crash report:
panic: runtime error: index out of range [0] with length 0

goroutine 88 [running]:
panic({0xfa1160, 0xc00046e588})
	GOROOT/src/runtime/panic.go:987 +0x3ba fp=0xc000b330f0 sp=0xc000b33030 pc=0x4377fa
runtime.goPanicIndex(0x0, 0x0)
	GOROOT/src/runtime/panic.go:113 +0x7f fp=0xc000b33130 sp=0xc000b330f0 pc=0x4356bf
gvisor.dev/gvisor/pkg/sentry/fsimpl/gofer.(*lisafsDentry).getRemoteChildAndWalkPathLocked(0xc000360900, {0x125a598, 0xc000721500}, 0xc000b33260?, 0xc000b33558)
	pkg/sentry/fsimpl/gofer/lisafs_dentry.go:265 +0x24d fp=0xc000b33208 sp=0xc000b33130 pc=0xc85c8d
gvisor.dev/gvisor/pkg/sentry/fsimpl/gofer.(*dentry).getRemoteChildAndWalkPathLocked(0xed5160?, {0x125a598?, 0xc000721500?}, 0x0?, 0xc7fad2?)
	pkg/sentry/fsimpl/gofer/dentry_impl.go:211 +0x4b fp=0xc000b33240 sp=0xc000b33208 pc=0xc6ca0b
gvisor.dev/gvisor/pkg/sentry/fsimpl/gofer.(*filesystem).getChildAndWalkPathLocked(0x702eadf?, {0x125a598?, 0xc000721500?}, 0xc000360900?, 0xc0002e5200?, 0x8c20ba?)
	pkg/sentry/fsimpl/gofer/filesystem.go:265 +0x1ad fp=0xc000b33290 sp=0xc000b33240 pc=0xc710ad
gvisor.dev/gvisor/pkg/sentry/fsimpl/gofer.(*filesystem).stepLocked(0x3f425e468040?, {0x125a598, 0xc000721500}, 0xc0002e5200, 0xc000360900, 0x1, 0x8c1ccf?)
	pkg/sentry/fsimpl/gofer/filesystem.go:205 +0x1b0 fp=0xc000b332e8 sp=0xc000b33290 pc=0xc70950
gvisor.dev/gvisor/pkg/sentry/fsimpl/gofer.(*filesystem).walkParentDirLocked(0x0?, {0x125a598, 0xc000721500}, 0xc0002e5200, 0xc000360900, 0xffffffffffffffff?)
	pkg/sentry/fsimpl/gofer/filesystem.go:313 +0xdb fp=0xc000b33370 sp=0xc000b332e8 pc=0xc711fb
gvisor.dev/gvisor/pkg/sentry/fsimpl/gofer.(*filesystem).unlinkAt(0xc0003dcd80, {0x125a598, 0xc000721500}, 0xc0002e5200, 0x1)
	pkg/sentry/fsimpl/gofer/filesystem.go:495 +0x165 fp=0xc000b33668 sp=0xc000b33370 pc=0xc726a5
gvisor.dev/gvisor/pkg/sentry/fsimpl/gofer.(*filesystem).RmdirAt(0xc0002e5200?, {0x125a598?, 0xc000721500?}, 0x1243da0?)
	pkg/sentry/fsimpl/gofer/filesystem.go:1400 +0x28 fp=0xc000b336a0 sp=0xc000b33668 pc=0xc793e8
gvisor.dev/gvisor/pkg/sentry/vfs.(*VirtualFilesystem).RmdirAt(0xc0000e6700?, {0x125a598, 0xc000721500}, 0xc000616800?, 0xc00051c500?)
	pkg/sentry/vfs/vfs.go:565 +0xe7 fp=0xc000b336f8 sp=0xc000b336a0 pc=0x741527
gvisor.dev/gvisor/pkg/sentry/syscalls/linux.rmdirat(0xc000721500, 0x1000?, 0x1?)
	pkg/sentry/syscalls/linux/sys_file.go:946 +0x1b4 fp=0xc000b33868 sp=0xc000b336f8 pc=0xa29434
gvisor.dev/gvisor/pkg/sentry/syscalls/linux.Rmdir(0x1b2c958?, {{0x20000040}, {0x30}, {0x5648950bffe9}, {0x0}, {0x0}, {0x0}})
	pkg/sentry/syscalls/linux/sys_file.go:933 +0x25 fp=0xc000b33890 sp=0xc000b33868 pc=0xa29245
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).executeSyscall(0xc000721500, 0x54, {{0x20000040}, {0x30}, {0x5648950bffe9}, {0x0}, {0x0}, {0x0}})
	pkg/sentry/kernel/task_syscall.go:142 +0x755 fp=0xc000b33c80 sp=0xc000b33890 pc=0x909375
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallInvoke(0xc000721500, 0x0?, {{0x20000040}, {0x30}, {0x5648950bffe9}, {0x0}, {0x0}, {0x0}})
	pkg/sentry/kernel/task_syscall.go:322 +0x4a fp=0xc000b33ce0 sp=0xc000b33c80 pc=0x90a5aa
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallEnter(0xc00028f200?, 0xc000b33e28?, {{0x20000040}, {0x30}, {0x5648950bffe9}, {0x0}, {0x0}, {0x0}})
	pkg/sentry/kernel/task_syscall.go:282 +0x65 fp=0xc000b33d40 sp=0xc000b33ce0 pc=0x90a285
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscall(0xc0008a02c0?)
	pkg/sentry/kernel/task_syscall.go:257 +0x2f0 fp=0xc000b33e38 sp=0xc000b33d40 pc=0x909ff0
gvisor.dev/gvisor/pkg/sentry/kernel.(*runApp).execute(0xc000698000?, 0xc000721500)
	pkg/sentry/kernel/task_run.go:256 +0xeaa fp=0xc000b33f60 sp=0xc000b33e38 pc=0x8fe48a
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).run(0xc000721500, 0x1c)
	pkg/sentry/kernel/task_run.go:94 +0x1c3 fp=0xc000b33fc0 sp=0xc000b33f60 pc=0x8fcfa3
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).Start.func1()
	pkg/sentry/kernel/task_start.go:377 +0x2a fp=0xc000b33fe0 sp=0xc000b33fc0 pc=0x907b6a
runtime.goexit()
	src/runtime/asm_amd64.s:1594 +0x1 fp=0xc000b33fe8 sp=0xc000b33fe0 pc=0x46c6e1
created by gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).Start
	pkg/sentry/kernel/task_start.go:377 +0xef

Crashes (372):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/01/19 21:27 gvisor 239be78fbbf1 62267f14 .config console log report syz C ci-gvisor-kvm panic: runtime error: index out of range [NUM] with length NUM
2023/01/19 20:06 gvisor 239be78fbbf1 62267f14 .config console log report syz C ci-gvisor-kvm-cover panic: runtime error: index out of range [NUM] with length NUM
2023/01/23 04:43 gvisor 8a63501720f9 cc0f9968 .config console log report info ci-gvisor-kvm-cover panic: runtime error: index out of range [NUM] with length NUM
2023/01/23 02:17 gvisor 212fecc105a4 cc0f9968 .config console log report info ci-gvisor-ptrace-1-cover panic: runtime error: index out of range [NUM] with length NUM
2023/01/23 00:19 gvisor 212fecc105a4 cc0f9968 .config console log report info ci-gvisor-ptrace-2-cover panic: runtime error: index out of range [NUM] with length NUM
2023/01/22 23:11 gvisor 8a63501720f9 cc0f9968 .config console log report info ci-gvisor-kvm-cover panic: runtime error: index out of range [NUM] with length NUM
2023/01/22 22:09 gvisor 212fecc105a4 cc0f9968 .config console log report info ci-gvisor-ptrace-1-cover panic: runtime error: index out of range [NUM] with length NUM
2023/01/22 21:05 gvisor 212fecc105a4 cc0f9968 .config console log report info ci-gvisor-ptrace-3-cover panic: runtime error: index out of range [NUM] with length NUM
2023/01/22 19:48 gvisor 212fecc105a4 cc0f9968 .config console log report info ci-gvisor-ptrace-3-cover panic: runtime error: index out of range [NUM] with length NUM
2023/01/22 19:42 gvisor 212fecc105a4 cc0f9968 .config console log report info ci-gvisor-ptrace-1-cover panic: runtime error: index out of range [NUM] with length NUM
2023/01/22 18:10 gvisor 212fecc105a4 cc0f9968 .config console log report info ci-gvisor-ptrace-1-cover panic: runtime error: index out of range [NUM] with length NUM
2023/01/22 16:43 gvisor 212fecc105a4 cc0f9968 .config console log report info ci-gvisor-ptrace-2-cover panic: runtime error: index out of range [NUM] with length NUM
2023/01/22 15:40 gvisor 212fecc105a4 cc0f9968 .config console log report info ci-gvisor-ptrace-2-cover panic: runtime error: index out of range [NUM] with length NUM
2023/01/22 14:29 gvisor 212fecc105a4 cc0f9968 .config console log report info ci-gvisor-ptrace-3-cover panic: runtime error: index out of range [NUM] with length NUM
2023/01/22 13:27 gvisor 212fecc105a4 cc0f9968 .config console log report info ci-gvisor-ptrace-2-cover panic: runtime error: index out of range [NUM] with length NUM
2023/01/22 13:06 gvisor 212fecc105a4 cc0f9968 .config console log report info ci-gvisor-ptrace-1-cover panic: runtime error: index out of range [NUM] with length NUM
2023/01/22 12:01 gvisor 212fecc105a4 cc0f9968 .config console log report info ci-gvisor-ptrace-3-cover panic: runtime error: index out of range [NUM] with length NUM
2023/01/22 10:54 gvisor 212fecc105a4 cc0f9968 .config console log report info ci-gvisor-ptrace-3-cover panic: runtime error: index out of range [NUM] with length NUM
2023/01/22 09:21 gvisor 212fecc105a4 cc0f9968 .config console log report info ci-gvisor-ptrace-2-cover panic: runtime error: index out of range [NUM] with length NUM
2023/01/22 07:49 gvisor 212fecc105a4 cc0f9968 .config console log report info ci-gvisor-ptrace-1-cover panic: runtime error: index out of range [NUM] with length NUM
2023/01/22 05:56 gvisor 8a63501720f9 cc0f9968 .config console log report info ci-gvisor-kvm-cover panic: runtime error: index out of range [NUM] with length NUM
2023/01/22 05:53 gvisor 8a63501720f9 cc0f9968 .config console log report info ci-gvisor-kvm-cover panic: runtime error: index out of range [NUM] with length NUM
2023/01/22 04:38 gvisor 212fecc105a4 cc0f9968 .config console log report info ci-gvisor-ptrace-3-cover panic: runtime error: index out of range [NUM] with length NUM
2023/01/22 03:22 gvisor 212fecc105a4 cc0f9968 .config console log report info ci-gvisor-ptrace-1-cover panic: runtime error: index out of range [NUM] with length NUM
2023/01/22 01:49 gvisor 212fecc105a4 cc0f9968 .config console log report info ci-gvisor-ptrace-1-cover panic: runtime error: index out of range [NUM] with length NUM
2023/01/22 00:48 gvisor 212fecc105a4 cc0f9968 .config console log report info ci-gvisor-ptrace-1-cover panic: runtime error: index out of range [NUM] with length NUM
2023/01/21 23:46 gvisor 8a63501720f9 cc0f9968 .config console log report info ci-gvisor-kvm-cover panic: runtime error: index out of range [NUM] with length NUM
2023/01/21 22:29 gvisor 212fecc105a4 cc0f9968 .config console log report info ci-gvisor-ptrace-3-cover panic: runtime error: index out of range [NUM] with length NUM
2023/01/21 20:44 gvisor 212fecc105a4 cc0f9968 .config console log report info ci-gvisor-ptrace-1-cover panic: runtime error: index out of range [NUM] with length NUM
2023/01/21 19:29 gvisor 212fecc105a4 cc0f9968 .config console log report info ci-gvisor-ptrace-3-cover panic: runtime error: index out of range [NUM] with length NUM
2023/01/21 18:18 gvisor 212fecc105a4 cc0f9968 .config console log report info ci-gvisor-ptrace-2-cover panic: runtime error: index out of range [NUM] with length NUM
2023/01/21 17:36 gvisor 212fecc105a4 cc0f9968 .config console log report info ci-gvisor-ptrace-2-cover panic: runtime error: index out of range [NUM] with length NUM
2023/01/21 15:56 gvisor 212fecc105a4 cc0f9968 .config console log report info ci-gvisor-ptrace-2-cover panic: runtime error: index out of range [NUM] with length NUM
2023/01/21 14:35 gvisor 212fecc105a4 cc0f9968 .config console log report info ci-gvisor-ptrace-1-cover panic: runtime error: index out of range [NUM] with length NUM
2023/01/21 13:23 gvisor 212fecc105a4 cc0f9968 .config console log report info ci-gvisor-ptrace-2-race panic: runtime error: index out of range [NUM] with length NUM
2023/01/21 13:08 gvisor 212fecc105a4 cc0f9968 .config console log report info ci-gvisor-ptrace-1-cover panic: runtime error: index out of range [NUM] with length NUM
2023/01/21 12:01 gvisor 212fecc105a4 cc0f9968 .config console log report info ci-gvisor-ptrace-2-cover panic: runtime error: index out of range [NUM] with length NUM
2023/01/21 10:18 gvisor 492d7a98116b cc0f9968 .config console log report info ci-gvisor-ptrace-1-cover panic: runtime error: index out of range [NUM] with length NUM
2023/01/21 08:33 gvisor 492d7a98116b cc0f9968 .config console log report info ci-gvisor-ptrace-3-race panic: runtime error: index out of range [NUM] with length NUM
2023/01/21 07:47 gvisor 492d7a98116b cc0f9968 .config console log report info ci-gvisor-ptrace-3-cover panic: runtime error: index out of range [NUM] with length NUM
2023/01/21 06:43 gvisor 492d7a98116b cc0f9968 .config console log report info ci-gvisor-ptrace-3-cover panic: runtime error: index out of range [NUM] with length NUM
2023/01/21 05:27 gvisor 492d7a98116b cc0f9968 .config console log report info ci-gvisor-ptrace-2-cover panic: runtime error: index out of range [NUM] with length NUM
2023/01/21 04:21 gvisor 8a63501720f9 cc0f9968 console log report info ci-gvisor-kvm panic: runtime error: index out of range [NUM] with length NUM
2023/01/21 04:15 gvisor 492d7a98116b cc0f9968 .config console log report info ci-gvisor-ptrace-1-cover panic: runtime error: index out of range [NUM] with length NUM
2023/01/21 03:12 gvisor 492d7a98116b cc0f9968 .config console log report info ci-gvisor-ptrace-1-cover panic: runtime error: index out of range [NUM] with length NUM
2023/01/21 01:57 gvisor 8a63501720f9 cc0f9968 .config console log report info ci-gvisor-kvm-cover panic: runtime error: index out of range [NUM] with length NUM
2023/01/21 01:08 gvisor 492d7a98116b cc0f9968 .config console log report info ci-gvisor-ptrace-3-cover panic: runtime error: index out of range [NUM] with length NUM
2023/01/20 23:59 gvisor 492d7a98116b cc0f9968 console log report info ci-gvisor-ptrace-1 panic: runtime error: index out of range [NUM] with length NUM
2023/01/20 22:17 gvisor cc0dc87fa27d cc0f9968 .config console log report info ci-gvisor-ptrace-2-race-cover panic: runtime error: index out of range [NUM] with length NUM
2023/01/20 21:52 gvisor cc0dc87fa27d cc0f9968 .config console log report info ci-gvisor-ptrace-2-cover panic: runtime error: index out of range [NUM] with length NUM
2023/01/20 19:53 gvisor cc0dc87fa27d 34bb5f72 .config console log report info ci-gvisor-ptrace-2-cover panic: runtime error: index out of range [NUM] with length NUM
2023/01/20 18:38 gvisor cc0dc87fa27d 34bb5f72 .config console log report info ci-gvisor-ptrace-3-cover panic: runtime error: index out of range [NUM] with length NUM
2023/01/20 16:32 gvisor cc0dc87fa27d 34bb5f72 .config console log report info ci-gvisor-ptrace-3-cover panic: runtime error: index out of range [NUM] with length NUM
2023/01/20 15:30 gvisor cc0dc87fa27d 34bb5f72 .config console log report info ci-gvisor-kvm-cover panic: runtime error: index out of range [NUM] with length NUM
2023/01/20 10:09 gvisor cc0dc87fa27d 34bb5f72 console log report info ci-gvisor-ptrace-3 panic: runtime error: index out of range [NUM] with length NUM
2023/01/20 09:41 gvisor cc0dc87fa27d 34bb5f72 console log report info ci-gvisor-ptrace-2 panic: runtime error: index out of range [NUM] with length NUM
* Struck through repros no longer work on HEAD.