syzbot


panic: expected socket to exist at '$N

Status: fixed on 2023/10/19 08:45
Fix commit: 707ac55a05d7 inet: don't reuse names from the abstract socket namespace map
First crash: 409d, last: 408d

Sample crash report:
panic: expected socket to exist at '�$N��������������������������������������������������������������������������������������������������������' in abstract socket namespace

goroutine 485 [running]:
panic({0x297600?, 0xc00067b660?})
	GOROOT/src/runtime/panic.go:1017 +0x3ac fp=0xc0007aedd8 sp=0xc0007aed28 pc=0x12063ac
gvisor.dev/gvisor/pkg/sentry/inet.(*AbstractSocketNamespace).Remove(0xc000ac6038, {0xc000b3fe31, 0x6b}, {0x7111c0?, 0xc000b44000})
	pkg/sentry/inet/abstract_socket_namespace.go:141 +0x2f4 fp=0xc0007aef08 sp=0xc0007aedd8 pc=0x1a99494
gvisor.dev/gvisor/pkg/sentry/socket/unix.(*Socket).DecRef.func1()
	pkg/sentry/socket/unix/unix.go:120 +0x15a fp=0xc0007aef78 sp=0xc0007aef08 pc=0x1d3bf5a
gvisor.dev/gvisor/pkg/sentry/socket/unix.(*socketRefs).DecRef(0xc000b44080, 0xc0007aefe8)
	bazel-out/k8-fastbuild-ST-3dcbe13c9b87/bin/pkg/sentry/socket/unix/socket_refs.go:132 +0xaf fp=0xc0007aefd8 sp=0xc0007aef78 pc=0x1d3b3cf
gvisor.dev/gvisor/pkg/sentry/socket/unix.(*Socket).DecRef(0xc000b44000, {0x71f3f8, 0xc0004b1500})
	pkg/sentry/socket/unix/unix.go:116 +0x94 fp=0xc0007af018 sp=0xc0007aefd8 pc=0x1d3bdb4
gvisor.dev/gvisor/pkg/sentry/socket/unix.(*Socket).Release(0xc000b44000?, {0x71f3f8, 0xc0004b1500})
	pkg/sentry/socket/unix/unix.go:132 +0x4c fp=0xc0007af048 sp=0xc0007af018 pc=0x1d3c02c
gvisor.dev/gvisor/pkg/sentry/vfs.(*FileDescription).DecRef.func1()
	pkg/sentry/vfs/file_description.go:197 +0x48f fp=0xc0007af188 sp=0xc0007af048 pc=0x17b540f
gvisor.dev/gvisor/pkg/sentry/vfs.(*FileDescriptionRefs).DecRef(0xc000b44000, 0xc0007af1f8)
	bazel-out/k8-fastbuild-ST-3dcbe13c9b87/bin/pkg/sentry/vfs/file_description_refs.go:132 +0xaf fp=0xc0007af1e8 sp=0xc0007af188 pc=0x17bf84f
gvisor.dev/gvisor/pkg/sentry/vfs.(*FileDescription).DecRef(0xc000b44000, {0x71f3f8, 0xc0004b1500})
	pkg/sentry/vfs/file_description.go:161 +0x7a fp=0xc0007af228 sp=0xc0007af1e8 pc=0x17b4f3a
gvisor.dev/gvisor/pkg/sentry/kernel.(*FDTable).drop(0xc000a4a240?, {0x71f3f8, 0xc0004b1500}, 0x3?)
	pkg/sentry/kernel/fd_table.go:137 +0x110 fp=0xc0007af2a8 sp=0xc0007af228 pc=0x1ae27d0
gvisor.dev/gvisor/pkg/sentry/kernel.(*FDTable).NewFDAt(0xc000000180?, {0x71f3f8, 0xc0004b1500}, 0x180?, 0x12425e9?, {0x70?})
	pkg/sentry/kernel/fd_table.go:321 +0xc5 fp=0xc0007af318 sp=0xc0007af2a8 pc=0x1ae4125
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).NewFDAt(0xc0004b1500, 0x93afd0?, 0x0?, {0x0?})
	pkg/sentry/kernel/task.go:778 +0x8c fp=0xc0007af380 sp=0xc0007af318 pc=0x1b1faac
gvisor.dev/gvisor/pkg/sentry/syscalls/linux.dup3(0xc0004b1500, 0x1240f4c?, 0x3, 0x0)
	pkg/sentry/syscalls/linux/sys_file.go:572 +0x173 fp=0xc0007af468 sp=0xc0007af380 pc=0x1d79873
gvisor.dev/gvisor/pkg/sentry/syscalls/linux.Dup3(0xc0007af540?, 0x12399ee?, {{0x4}, {0x3}, {0x0}, {0x0}, {0x7f0c22aae9a7}, {0x7fbb7edd76c0}})
	pkg/sentry/syscalls/linux/sys_file.go:558 +0x105 fp=0xc0007af4d0 sp=0xc0007af468 pc=0x1d796a5
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).executeSyscall(0xc0004b1500, 0x124, {{0x4}, {0x3}, {0x0}, {0x0}, {0x7f0c22aae9a7}, {0x7fbb7edd76c0}})
	pkg/sentry/kernel/task_syscall.go:142 +0xaff fp=0xc0007af908 sp=0xc0007af4d0 pc=0x1b624df
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallInvoke(0xc0004b1500, 0x1?, {{0x4}, {0x3}, {0x0}, {0x0}, {0x7f0c22aae9a7}, {0x7fbb7edd76c0}})
	pkg/sentry/kernel/task_syscall.go:322 +0x7d fp=0xc0007af9c0 sp=0xc0007af908 pc=0x1b6459d
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallEnter(0xc000c220f0?, 0x12425e9?, {{0x4}, {0x3}, {0x0}, {0x0}, {0x7f0c22aae9a7}, {0x7fbb7edd76c0}})
	pkg/sentry/kernel/task_syscall.go:282 +0xbd fp=0xc0007afa38 sp=0xc0007af9c0 pc=0x1b63e9d
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscall(0xc0004b1500)
	pkg/sentry/kernel/task_syscall.go:257 +0x55b fp=0xc0007afb70 sp=0xc0007afa38 pc=0x1b639fb
gvisor.dev/gvisor/pkg/sentry/kernel.(*runApp).execute(0xc0004b1500?, 0xc0004b1500)
	pkg/sentry/kernel/task_run.go:269 +0x2387 fp=0xc0007afe60 sp=0xc0007afb70 pc=0x1b4c8e7
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).run(0xc0004b1500, 0x1f)
	pkg/sentry/kernel/task_run.go:98 +0x36a fp=0xc0007affb0 sp=0xc0007afe60 pc=0x1b49c4a
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).Start.func1()
	pkg/sentry/kernel/task_start.go:391 +0x45 fp=0xc0007affe0 sp=0xc0007affb0 pc=0x1b5fd45
runtime.goexit()
	src/runtime/asm_amd64.s:1650 +0x1 fp=0xc0007affe8 sp=0xc0007affe0 pc=0x123f3c1
created by gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).Start in goroutine 416
	pkg/sentry/kernel/task_start.go:391 +0x1ce

Crashes (24):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/10/14 13:22 gvisor 1a5aee553938 f757a323 .config console log report syz C ci-gvisor-ptrace-2-race-cover panic: expected socket to exist at '$N
2023/10/14 13:21 gvisor 1a5aee553938 f757a323 .config console log report syz C ci-gvisor-ptrace-1-race-cover panic: expected socket to exist at '$N
2023/10/14 13:20 gvisor 1a5aee553938 f757a323 .config console log report syz C ci-gvisor-systrap-1-race-cover panic: expected socket to exist at '$N
2023/10/14 13:19 gvisor 1a5aee553938 f757a323 .config console log report syz C ci-gvisor-ptrace-3-race-cover panic: expected socket to exist at '$N
2023/10/14 13:00 gvisor 1a5aee553938 f757a323 .config console log report syz C ci-gvisor-ptrace-2-cover panic: expected socket to exist at '$N
2023/10/14 12:58 gvisor 1a5aee553938 f757a323 console log report syz C ci-gvisor-ptrace-1 panic: expected socket to exist at '$N
2023/10/14 12:58 gvisor 1a5aee553938 f757a323 console log report syz C ci-gvisor-ptrace-3 panic: expected socket to exist at '$N
2023/10/14 12:58 gvisor 1a5aee553938 f757a323 .config console log report syz C ci-gvisor-kvm-cover panic: expected socket to exist at '$N
2023/10/14 12:58 gvisor 1a5aee553938 f757a323 console log report syz C ci-gvisor-ptrace-2 panic: expected socket to exist at '$N
2023/10/14 12:58 gvisor 1a5aee553938 f757a323 .config console log report syz C ci-gvisor-ptrace-1-cover panic: expected socket to exist at '$N
2023/10/14 12:58 gvisor 1a5aee553938 f757a323 console log report syz C ci-gvisor-systrap-1 panic: expected socket to exist at '$N
2023/10/14 12:58 gvisor 1a5aee553938 f757a323 .config console log report syz C ci-gvisor-ptrace-2-race panic: expected socket to exist at '$N
2023/10/14 12:57 gvisor 1a5aee553938 f757a323 .config console log report syz C ci-gvisor-ptrace-1-race panic: expected socket to exist at '$N
2023/10/14 12:57 gvisor 1a5aee553938 f757a323 .config console log report syz C ci-gvisor-systrap-1-race panic: expected socket to exist at '$N
2023/10/14 12:57 gvisor 1a5aee553938 f757a323 .config console log report syz C ci-gvisor-ptrace-3-race panic: expected socket to exist at '$N
2023/10/14 12:55 gvisor 1a5aee553938 f757a323 .config console log report syz C ci-gvisor-ptrace-3-cover panic: expected socket to exist at '$N
2023/10/14 12:31 gvisor 1a5aee553938 f757a323 console log report syz C ci-gvisor-kvm panic: expected socket to exist at '$N
2023/10/14 13:31 gvisor 1a5aee553938 f757a323 .config console log report syz C ci-gvisor-arm64-ptrace-1-cover panic: expected socket to exist at '$N
2023/10/14 13:26 gvisor 1a5aee553938 f757a323 .config console log report syz C ci-gvisor-arm64-systrap-1-cover panic: expected socket to exist at '$N
2023/10/14 12:59 gvisor 1a5aee553938 f757a323 console log report syz C ci-gvisor-arm64-ptrace-1 panic: expected socket to exist at '$N
2023/10/14 12:57 gvisor 1a5aee553938 f757a323 console log report syz C ci-gvisor-arm64-systrap-1 panic: expected socket to exist at '$N
2023/10/14 12:57 gvisor 1a5aee553938 f757a323 .config console log report syz ci-gvisor-systrap-1-cover panic: expected socket to exist at '$N
2023/10/14 12:19 gvisor 1a5aee553938 f757a323 console log report info ci-gvisor-kvm panic: expected socket to exist at '$N
2023/10/15 08:43 gvisor febb0656f347 f757a323 console log report info ci-gvisor-arm64-ptrace-1 panic: expected socket to exist at '$N
* Struck through repros no longer work on HEAD.