syzbot


panic: invalid field value or did not reuse the same FieldValue pointer as passed in NewField

Status: fixed on 2025/04/24 21:44
Fix commit: 3f22efe2ac35 Return ENOPROTOOPT from setsockopt syscalls as default.
First crash: 137d, last: 137d

Sample crash report:
panic: invalid field value or did not reuse the same FieldValue pointer as passed in NewField

goroutine 141 gp=0xc0009f0000 m=20 mp=0xc000182a08 [running]:
panic({0x1b7b460?, 0x20122e0?})
	bazel-out/k8-fastbuild/bin/external/io_bazel_rules_go/stdlib_/src/runtime/panic.go:804 +0x168 fp=0xc000a2b1a8 sp=0xc000a2b0f8 pc=0x478708
gvisor.dev/gvisor/pkg/metric.fieldMapper.lookupSingle({{0xc0003fc240?, 0x1?, 0x2c88740?}, 0xa00a2b2d0?}, 0x0, 0xc000a2b400, 0x0, 0x258)
	pkg/metric/metric.go:402 +0x21f fp=0xc000a2b248 sp=0xc000a2b1a8 pc=0x97aa7f
gvisor.dev/gvisor/pkg/metric.fieldMapper.lookupConcat({{0xc0003fc240?, 0x484d31?, 0x484d69?}, 0xc000a2b368?}, {0xc000a2b410, 0x2, 0x484d31?}, {0x0, 0x0, 0x0})
	pkg/metric/metric.go:432 +0xcb fp=0xc000a2b2d8 sp=0xc000a2b248 pc=0x97ab6b
gvisor.dev/gvisor/pkg/metric.(*Uint64Metric).IncrementBy(0xc00029b950, 0x1, {0xc000a2b410, 0x2, 0x2})
	pkg/metric/metric.go:683 +0x89 fp=0xc000a2b340 sp=0xc000a2b2d8 pc=0x97cf69
gvisor.dev/gvisor/pkg/metric.(*Uint64Metric).Increment(0xc00029b950, {0xc000a2b410, 0x2, 0x2})
	pkg/metric/metric.go:665 +0x45 fp=0xc000a2b378 sp=0xc000a2b340 pc=0x97cec5
gvisor.dev/gvisor/pkg/sentry/socket/netstack.setSockOptICMPv6(0xffffffffffffffff?, {0x204d218, 0xc0003f8dc0}, {0x7fca84245140, 0xc0009ff508}, 0x9, {0xc00059841c, 0x0, 0x484d31?})
	pkg/sentry/socket/netstack/netstack.go:2333 +0x285 fp=0xc000a2b430 sp=0xc000a2b378 pc=0x1152865
gvisor.dev/gvisor/pkg/sentry/socket/netstack.SetSockOpt(0xc000597908, {0x204d218, 0xc0003f8dc0}, {0x7fca84245140, 0xc0009ff508}, 0x3a, 0x9, {0xc00059841c, 0x0, 0x90})
	pkg/sentry/socket/netstack/netstack.go:1935 +0x211 fp=0xc000a2b490 sp=0xc000a2b430 pc=0x114ea11
gvisor.dev/gvisor/pkg/sentry/socket/netstack.(*sock).SetSockOpt(0xc0003f8dc0, 0xc000597908, 0x3a, 0x9, {0xc00059841c, 0x0, 0x90})
	pkg/sentry/socket/netstack/netstack.go:672 +0x608 fp=0xc000a2b5b0 sp=0xc000a2b490 pc=0x11458a8
gvisor.dev/gvisor/pkg/sentry/syscalls/linux.SetSockOpt(0xc000597908, 0x0?, {{0x3}, {0x3a}, {0x9}, {0x0}, {0x0}, {0x7f8e7741be58}})
	pkg/sentry/syscalls/linux/sys_socket.go:551 +0x3b5 fp=0xc000a2b6c8 sp=0xc000a2b5b0 pc=0x121cdb5
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).executeSyscall(0xc000597908, 0x36, {{0x3}, {0x3a}, {0x9}, {0x0}, {0x0}, {0x7f8e7741be58}})
	pkg/sentry/kernel/task_syscall.go:143 +0x995 fp=0xc000a2b960 sp=0xc000a2b6c8 pc=0xf595d5
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallInvoke(0xc000597908, 0x36, {{0x3}, {0x3a}, {0x9}, {0x0}, {0x0}, {0x7f8e7741be58}})
	pkg/sentry/kernel/task_syscall.go:323 +0x72 fp=0xc000a2ba08 sp=0xc000a2b960 pc=0xf5b432
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallEnter(0xc000597908, 0x36, {{0x3}, {0x3a}, {0x9}, {0x0}, {0x0}, {0x7f8e7741be58}})
	pkg/sentry/kernel/task_syscall.go:283 +0x94 fp=0xc000a2ba78 sp=0xc000a2ba08 pc=0xf5ae34
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscall(0xc000597908)
	pkg/sentry/kernel/task_syscall.go:258 +0x4b0 fp=0xc000a2bb98 sp=0xc000a2ba78 pc=0xf5a9d0
gvisor.dev/gvisor/pkg/sentry/kernel.(*runApp).execute(0xc000597908?, 0xc000597908)
	pkg/sentry/kernel/task_run.go:269 +0x1fa8 fp=0xc000a2be70 sp=0xc000a2bb98 pc=0xf46908
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).run(0xc000597908, 0xb)
	pkg/sentry/kernel/task_run.go:97 +0x4fb fp=0xc000a2bfb0 sp=0xc000a2be70 pc=0xf43f7b
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).Start.gowrap1()
	pkg/sentry/kernel/task_start.go:412 +0x45 fp=0xc000a2bfe0 sp=0xc000a2bfb0 pc=0xf573a5
runtime.goexit({})
	src/runtime/asm_amd64.s:1700 +0x1 fp=0xc000a2bfe8 sp=0xc000a2bfe0 pc=0x481a61
created by gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).Start in goroutine 292
	pkg/sentry/kernel/task_start.go:412 +0x165

Crashes (56):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/04/17 01:26 gvisor bc9c16529425 a95239b1 .config console log report syz / log C ci-gvisor-ptrace-1-race panic: invalid field value or did not reuse the same FieldValue pointer as passed in NewField
2025/04/17 00:51 gvisor bc9c16529425 a95239b1 .config console log report syz / log C ci-gvisor-systrap-1-race panic: invalid field value or did not reuse the same FieldValue pointer as passed in NewField
2025/04/17 00:46 gvisor bc9c16529425 a95239b1 console log report syz / log C ci-gvisor-ptrace-2 panic: invalid field value or did not reuse the same FieldValue pointer as passed in NewField
2025/04/17 00:29 gvisor bc9c16529425 a95239b1 console log report syz / log C ci-gvisor-systrap-1 panic: invalid field value or did not reuse the same FieldValue pointer as passed in NewField
2025/04/16 23:52 gvisor bc9c16529425 a95239b1 .config console log report syz / log C ci-gvisor-ptrace-1-race-cover panic: invalid field value or did not reuse the same FieldValue pointer as passed in NewField
2025/04/16 23:49 gvisor bc9c16529425 a95239b1 .config console log report syz / log C ci-gvisor-ptrace-2-race-cover panic: invalid field value or did not reuse the same FieldValue pointer as passed in NewField
2025/04/16 23:37 gvisor bc9c16529425 a95239b1 .config console log report syz / log C ci-gvisor-systrap-1-cover panic: invalid field value or did not reuse the same FieldValue pointer as passed in NewField
2025/04/16 23:37 gvisor bc9c16529425 a95239b1 .config console log report syz / log C ci-gvisor-ptrace-2-cover panic: invalid field value or did not reuse the same FieldValue pointer as passed in NewField
2025/04/16 23:35 gvisor bc9c16529425 a95239b1 .config console log report syz / log C ci-gvisor-systrap-1-race-cover panic: invalid field value or did not reuse the same FieldValue pointer as passed in NewField
2025/04/16 23:35 gvisor bc9c16529425 a95239b1 .config console log report syz / log C ci-gvisor-ptrace-1-cover panic: invalid field value or did not reuse the same FieldValue pointer as passed in NewField
2025/04/17 01:39 gvisor bc9c16529425 a95239b1 .config console log report syz / log C ci-gvisor-arm64-ptrace-1-race-cover panic: invalid field value or did not reuse the same FieldValue pointer as passed in NewField
2025/04/17 00:00 gvisor bc9c16529425 a95239b1 console log report syz / log C ci-gvisor-arm64-ptrace-1 panic: invalid field value or did not reuse the same FieldValue pointer as passed in NewField
2025/04/16 23:23 gvisor bc9c16529425 a95239b1 .config console log report syz / log C ci-gvisor-arm64-systrap-1-cover panic: invalid field value or did not reuse the same FieldValue pointer as passed in NewField
2025/04/17 00:43 gvisor bc9c16529425 a95239b1 .config console log report info ci-gvisor-systrap-1-race panic: invalid field value or did not reuse the same FieldValue pointer as passed in NewField
2025/04/17 00:36 gvisor bc9c16529425 a95239b1 .config console log report info ci-gvisor-systrap-1-race panic: invalid field value or did not reuse the same FieldValue pointer as passed in NewField
2025/04/16 23:40 gvisor bc9c16529425 a95239b1 .config console log report info ci-gvisor-systrap-1-race panic: invalid field value or did not reuse the same FieldValue pointer as passed in NewField
2025/04/16 23:40 gvisor bc9c16529425 a95239b1 .config console log report info ci-gvisor-systrap-1-race panic: invalid field value or did not reuse the same FieldValue pointer as passed in NewField
2025/04/17 07:02 gvisor bc9c16529425 a95239b1 .config console log report info ci-gvisor-arm64-systrap-1-cover panic: invalid field value or did not reuse the same FieldValue pointer as passed in NewField
2025/04/17 05:52 gvisor bc9c16529425 a95239b1 .config console log report info ci-gvisor-arm64-systrap-1-cover panic: invalid field value or did not reuse the same FieldValue pointer as passed in NewField
2025/04/17 04:26 gvisor bc9c16529425 a95239b1 .config console log report info ci-gvisor-arm64-systrap-1-cover panic: invalid field value or did not reuse the same FieldValue pointer as passed in NewField
2025/04/17 04:01 gvisor bc9c16529425 a95239b1 .config console log report info ci-gvisor-arm64-systrap-1-cover panic: invalid field value or did not reuse the same FieldValue pointer as passed in NewField
2025/04/17 03:43 gvisor bc9c16529425 a95239b1 .config console log report info ci-gvisor-arm64-systrap-1-cover panic: invalid field value or did not reuse the same FieldValue pointer as passed in NewField
2025/04/17 02:52 gvisor bc9c16529425 a95239b1 .config console log report info ci-gvisor-arm64-systrap-1-cover panic: invalid field value or did not reuse the same FieldValue pointer as passed in NewField
2025/04/17 02:06 gvisor bc9c16529425 a95239b1 .config console log report info ci-gvisor-arm64-systrap-1-cover panic: invalid field value or did not reuse the same FieldValue pointer as passed in NewField
2025/04/17 01:53 gvisor bc9c16529425 a95239b1 .config console log report info ci-gvisor-arm64-systrap-1-cover panic: invalid field value or did not reuse the same FieldValue pointer as passed in NewField
2025/04/17 01:48 gvisor bc9c16529425 a95239b1 .config console log report info ci-gvisor-arm64-systrap-1-cover panic: invalid field value or did not reuse the same FieldValue pointer as passed in NewField
2025/04/17 01:45 gvisor bc9c16529425 a95239b1 .config console log report info ci-gvisor-arm64-systrap-1-cover panic: invalid field value or did not reuse the same FieldValue pointer as passed in NewField
2025/04/17 01:42 gvisor bc9c16529425 a95239b1 .config console log report info ci-gvisor-arm64-systrap-1-cover panic: invalid field value or did not reuse the same FieldValue pointer as passed in NewField
2025/04/17 01:40 gvisor bc9c16529425 a95239b1 .config console log report info ci-gvisor-arm64-systrap-1-cover panic: invalid field value or did not reuse the same FieldValue pointer as passed in NewField
2025/04/17 01:32 gvisor bc9c16529425 a95239b1 .config console log report info ci-gvisor-arm64-systrap-1-cover panic: invalid field value or did not reuse the same FieldValue pointer as passed in NewField
2025/04/17 01:15 gvisor bc9c16529425 a95239b1 .config console log report info ci-gvisor-arm64-systrap-1-cover panic: invalid field value or did not reuse the same FieldValue pointer as passed in NewField
2025/04/17 01:10 gvisor bc9c16529425 a95239b1 .config console log report info ci-gvisor-arm64-systrap-1-cover panic: invalid field value or did not reuse the same FieldValue pointer as passed in NewField
2025/04/17 01:06 gvisor bc9c16529425 a95239b1 .config console log report info ci-gvisor-arm64-systrap-1-cover panic: invalid field value or did not reuse the same FieldValue pointer as passed in NewField
2025/04/17 01:04 gvisor bc9c16529425 a95239b1 .config console log report info ci-gvisor-arm64-systrap-1-cover panic: invalid field value or did not reuse the same FieldValue pointer as passed in NewField
2025/04/17 01:03 gvisor bc9c16529425 a95239b1 .config console log report info ci-gvisor-arm64-systrap-1-cover panic: invalid field value or did not reuse the same FieldValue pointer as passed in NewField
2025/04/17 01:01 gvisor bc9c16529425 a95239b1 .config console log report info ci-gvisor-arm64-systrap-1-cover panic: invalid field value or did not reuse the same FieldValue pointer as passed in NewField
2025/04/17 00:27 gvisor bc9c16529425 a95239b1 .config console log report info ci-gvisor-arm64-systrap-1-cover panic: invalid field value or did not reuse the same FieldValue pointer as passed in NewField
2025/04/17 00:25 gvisor bc9c16529425 a95239b1 .config console log report info ci-gvisor-arm64-systrap-1-cover panic: invalid field value or did not reuse the same FieldValue pointer as passed in NewField
2025/04/17 00:24 gvisor bc9c16529425 a95239b1 .config console log report info ci-gvisor-arm64-systrap-1-cover panic: invalid field value or did not reuse the same FieldValue pointer as passed in NewField
2025/04/17 00:15 gvisor bc9c16529425 a95239b1 .config console log report info ci-gvisor-arm64-systrap-1-cover panic: invalid field value or did not reuse the same FieldValue pointer as passed in NewField
2025/04/17 00:02 gvisor bc9c16529425 a95239b1 .config console log report info ci-gvisor-arm64-systrap-1-cover panic: invalid field value or did not reuse the same FieldValue pointer as passed in NewField
2025/04/16 23:55 gvisor bc9c16529425 a95239b1 .config console log report info ci-gvisor-arm64-systrap-1-cover panic: invalid field value or did not reuse the same FieldValue pointer as passed in NewField
2025/04/16 23:18 gvisor bc9c16529425 a95239b1 .config console log report info ci-gvisor-arm64-systrap-1-cover panic: invalid field value or did not reuse the same FieldValue pointer as passed in NewField
* Struck through repros no longer work on HEAD.