syzbot


panic: runtime error: index out of range [-NUM] (2)

Status: fixed on 2025/04/24 21:45
Fix commit: 49b9d83fc867 Consolidate helper functions around unimplemented socket option metrics
First crash: 130d, last: 130d
Similar bugs (1)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
gvisor panic: runtime error: index out of range [-NUM] 2 C 13 1210d 1210d 14/26 fixed on 2022/05/12 03:26

Sample crash report:
panic: runtime error: index out of range [-146]

goroutine 309 gp=0xc000981500 m=19 mp=0xc000b80708 [running]:
panic({0x1dd63e0?, 0xc0006ee0a8?})
	bazel-out/k8-fastbuild/bin/external/io_bazel_rules_go/stdlib_/src/runtime/panic.go:804 +0x168 fp=0xc000c35358 sp=0xc000c352a8 pc=0x478708
runtime.goPanicIndex(0xffffffffffffff6e, 0x65)
	bazel-out/k8-fastbuild/bin/external/io_bazel_rules_go/stdlib_/src/runtime/panic.go:115 +0x74 fp=0xc000c35398 sp=0xc000c35358 pc=0x43a814
gvisor.dev/gvisor/pkg/sentry/socket/netstack.setSockOptICMPv6(0x484d69?, {0x210d558, 0xc0002aa140}, {0x7fec50422110, 0xc000a9c008}, 0xffffffffffffff6e, {0xc000aad09c, 0x0, 0x90})
	pkg/sentry/socket/netstack/netstack.go:2431 +0x458 fp=0xc000c35430 sp=0xc000c35398 pc=0x1215398
gvisor.dev/gvisor/pkg/sentry/socket/netstack.SetSockOpt(0xc000aac588, {0x210d558, 0xc0002aa140}, {0x7fec50422110, 0xc000a9c008}, 0x3a, 0xffffffffffffff6e, {0xc000aad09c, 0x0, 0x90})
	pkg/sentry/socket/netstack/netstack.go:1935 +0x250 fp=0xc000c35490 sp=0xc000c35430 pc=0x12116d0
gvisor.dev/gvisor/pkg/sentry/socket/netstack.(*sock).SetSockOpt(0xc0002aa140, 0xc000aac588, 0x3a, 0xffffffffffffff6e, {0xc000aad09c, 0x0, 0x90})
	pkg/sentry/socket/netstack/netstack.go:672 +0x6aa fp=0xc000c355b0 sp=0xc000c35490 pc=0x120670a
gvisor.dev/gvisor/pkg/sentry/syscalls/linux.SetSockOpt(0xc000aac588, 0x0?, {{0x3}, {0x3a}, {0xffffff6e}, {0x0}, {0x0}, {0x6}})
	pkg/sentry/syscalls/linux/sys_socket.go:551 +0x46c fp=0xc000c356e8 sp=0xc000c355b0 pc=0x12d780c
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).executeSyscall(0xc000aac588, 0x36, {{0x3}, {0x3a}, {0xffffff6e}, {0x0}, {0x0}, {0x6}})
	pkg/sentry/kernel/task_syscall.go:143 +0xb9f fp=0xc000c35998 sp=0xc000c356e8 pc=0xffde9f
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallInvoke(0xc000aac588, 0x36, {{0x3}, {0x3a}, {0xffffff6e}, {0x0}, {0x0}, {0x6}})
	pkg/sentry/kernel/task_syscall.go:323 +0x85 fp=0xc000c35a40 sp=0xc000c35998 pc=0xffffc5
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallEnter(0xc000aac588, 0x36, {{0x3}, {0x3a}, {0xffffff6e}, {0x0}, {0x0}, {0x6}})
	pkg/sentry/kernel/task_syscall.go:283 +0xc7 fp=0xc000c35ab0 sp=0xc000c35a40 pc=0xfff8e7
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscall(0xc000aac588)
	pkg/sentry/kernel/task_syscall.go:258 +0x54a fp=0xc000c35bd0 sp=0xc000c35ab0 pc=0xfff44a
gvisor.dev/gvisor/pkg/sentry/kernel.(*runApp).execute(0xc000aac588?, 0xc000aac588)
	pkg/sentry/kernel/task_run.go:269 +0x2275 fp=0xc000c35e78 sp=0xc000c35bd0 pc=0xfe9cb5
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).run(0xc000aac588, 0xa)
	pkg/sentry/kernel/task_run.go:97 +0x41b fp=0xc000c35fb0 sp=0xc000c35e78 pc=0xfe6ffb
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).Start.gowrap1()
	pkg/sentry/kernel/task_start.go:412 +0x45 fp=0xc000c35fe0 sp=0xc000c35fb0 pc=0xffb7a5
runtime.goexit({})
	src/runtime/asm_amd64.s:1700 +0x1 fp=0xc000c35fe8 sp=0xc000c35fe0 pc=0x481a61
created by gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).Start in goroutine 307
	pkg/sentry/kernel/task_start.go:412 +0x185

Crashes (19):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/04/22 07:21 gvisor bc724d81d2f7 2a20f901 .config console log report syz / log C ci-gvisor-ptrace-2-race-cover panic: runtime error: index out of range [-NUM]
2025/04/22 07:20 gvisor bc724d81d2f7 2a20f901 .config console log report syz / log C ci-gvisor-ptrace-1-race panic: runtime error: index out of range [-NUM]
2025/04/22 07:20 gvisor bc724d81d2f7 2a20f901 console log report syz / log C ci-gvisor-systrap-1 panic: runtime error: index out of range [-NUM]
2025/04/22 07:19 gvisor bc724d81d2f7 2a20f901 console log report syz / log C ci-gvisor-ptrace-1 panic: runtime error: index out of range [-NUM]
2025/04/22 07:16 gvisor bc724d81d2f7 2a20f901 console log report syz / log C ci-gvisor-ptrace-2 panic: runtime error: index out of range [-NUM]
2025/04/22 07:16 gvisor bc724d81d2f7 2a20f901 .config console log report syz / log C ci-gvisor-ptrace-1-race-cover panic: runtime error: index out of range [-NUM]
2025/04/22 07:14 gvisor bc724d81d2f7 2a20f901 .config console log report syz / log C ci-gvisor-systrap-1-race panic: runtime error: index out of range [-NUM]
2025/04/22 07:13 gvisor bc724d81d2f7 2a20f901 .config console log report syz / log C ci-gvisor-ptrace-2-cover panic: runtime error: index out of range [-NUM]
2025/04/22 07:13 gvisor bc724d81d2f7 2a20f901 .config console log report syz / log C ci-gvisor-systrap-1-cover panic: runtime error: index out of range [-NUM]
2025/04/22 07:13 gvisor bc724d81d2f7 2a20f901 .config console log report syz / log C ci-gvisor-ptrace-2-race panic: runtime error: index out of range [-NUM]
2025/04/22 07:11 gvisor bc724d81d2f7 2a20f901 .config console log report syz / log C ci-gvisor-ptrace-1-cover panic: runtime error: index out of range [-NUM]
2025/04/22 07:07 gvisor bc724d81d2f7 2a20f901 .config console log report syz / log C ci-gvisor-systrap-1-race-cover panic: runtime error: index out of range [-NUM]
2025/04/22 12:01 gvisor bc724d81d2f7 2a20f901 .config console log report syz / log C ci-gvisor-arm64-ptrace-1-race panic: runtime error: index out of range [-NUM]
2025/04/22 07:32 gvisor f45c79e15a27 2a20f901 .config console log report syz / log C ci-gvisor-arm64-ptrace-1-race-cover panic: runtime error: index out of range [-NUM]
2025/04/22 07:17 gvisor bc724d81d2f7 2a20f901 console log report syz / log C ci-gvisor-arm64-ptrace-1 panic: runtime error: index out of range [-NUM]
2025/04/22 07:16 gvisor bc724d81d2f7 2a20f901 .config console log report syz / log C ci-gvisor-arm64-systrap-1-cover panic: runtime error: index out of range [-NUM]
2025/04/22 07:12 gvisor bc724d81d2f7 2a20f901 console log report syz / log C ci-gvisor-arm64-systrap-1 panic: runtime error: index out of range [-NUM]
2025/04/22 07:11 gvisor bc724d81d2f7 2a20f901 .config console log report syz / log C ci-gvisor-arm64-ptrace-1-cover panic: runtime error: index out of range [-NUM]
2025/04/22 06:48 gvisor bc724d81d2f7 2a20f901 .config console log report info ci-gvisor-systrap-1-race-cover panic: runtime error: index out of range [-NUM]
* Struck through repros no longer work on HEAD.