syzbot


panic: tmpfs.inode.decLinksLocked() called with no existing links

Status: fixed on 2023/11/17 08:30
Fix commit: 77b137ffd8ec Fix umount not unmounting all the mounts it is supposed to.
First crash: 376d, last: 376d

Sample crash report:
panic: tmpfs.inode.decLinksLocked() called with no existing links

goroutine 326 [running]:
panic({0x10f8140?, 0x1567490?})
	GOROOT/src/runtime/panic.go:1017 +0x3ac fp=0xc00a3c74c8 sp=0xc00a3c7418 pc=0x43a72c
gvisor.dev/gvisor/pkg/sentry/fsimpl/tmpfs.(*inode).decLinksLocked(0xc004847800?, {0x1587498?, 0xc0005cf500?})
	pkg/sentry/fsimpl/tmpfs/tmpfs.go:583 +0x8e fp=0xc00a3c74f0 sp=0xc00a3c74c8 pc=0x91b36e
gvisor.dev/gvisor/pkg/sentry/fsimpl/tmpfs.(*filesystem).UnlinkAt(0xc000663dd8?, {0x1587498, 0xc0005cf500}, 0xc0004f9200)
	pkg/sentry/fsimpl/tmpfs/filesystem.go:851 +0x5f0 fp=0xc00a3c7718 sp=0xc00a3c74f0 pc=0x910510
gvisor.dev/gvisor/pkg/sentry/vfs.(*VirtualFilesystem).UnlinkAt(0xc00023b340?, {0x1587498, 0xc0005cf500}, 0xc000c83800?, 0xc004693200?)
	pkg/sentry/vfs/vfs.go:730 +0x14d fp=0xc00a3c7778 sp=0xc00a3c7718 pc=0x7b0b4d
gvisor.dev/gvisor/pkg/sentry/syscalls/linux.unlinkat(0xc0005cf500, 0x1?, 0xc000000100?)
	pkg/sentry/syscalls/linux/sys_file.go:1116 +0x1ed fp=0xc00a3c78e8 sp=0xc00a3c7778 pc=0xb8ad6d
gvisor.dev/gvisor/pkg/sentry/syscalls/linux.Unlink(0xc0005cf500?, 0x7ebcfdb37000?, {{0x7ebcfdb36500}, {0x7ebcfdb36500}, {0x7ebcfdb36470}, {0x100}, {0x0}, {0x0}})
	pkg/sentry/syscalls/linux/sys_file.go:1103 +0x31 fp=0xc00a3c7910 sp=0xc00a3c78e8 pc=0xb8ab51
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).executeSyscall(0xc0005cf500, 0x57, {{0x7ebcfdb36500}, {0x7ebcfdb36500}, {0x7ebcfdb36470}, {0x100}, {0x0}, {0x0}})
	pkg/sentry/kernel/task_syscall.go:142 +0x80b fp=0xc00a3c7c50 sp=0xc00a3c7910 pc=0xa25e2b
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallInvoke(0xc0005cf500, 0xc000ba23c0?, {{0x7ebcfdb36500}, {0x7ebcfdb36500}, {0x7ebcfdb36470}, {0x100}, {0x0}, {0x0}})
	pkg/sentry/kernel/task_syscall.go:322 +0x4e fp=0xc00a3c7cb0 sp=0xc00a3c7c50 pc=0xa2742e
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallEnter(0xc00a3c7df8?, 0xddd7a7?, {{0x7ebcfdb36500}, {0x7ebcfdb36500}, {0x7ebcfdb36470}, {0x100}, {0x0}, {0x0}})
	pkg/sentry/kernel/task_syscall.go:282 +0x74 fp=0xc00a3c7d10 sp=0xc00a3c7cb0 pc=0xa26ff4
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscall(0xc000b0c270?)
	pkg/sentry/kernel/task_syscall.go:257 +0x3a8 fp=0xc00a3c7e08 sp=0xc00a3c7d10 pc=0xa26ce8
gvisor.dev/gvisor/pkg/sentry/kernel.(*runApp).execute(0x0?, 0xc0005cf500)
	pkg/sentry/kernel/task_run.go:269 +0x1405 fp=0xc00a3c7f48 sp=0xc00a3c7e08 pc=0xa18de5
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).run(0xc0005cf500, 0x1c)
	pkg/sentry/kernel/task_run.go:98 +0x262 fp=0xc00a3c7fc0 sp=0xc00a3c7f48 pc=0xa17302
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).Start.func1()
	pkg/sentry/kernel/task_start.go:391 +0x25 fp=0xc00a3c7fe0 sp=0xc00a3c7fc0 pc=0xa24325
runtime.goexit()
	src/runtime/asm_amd64.s:1650 +0x1 fp=0xc00a3c7fe8 sp=0xc00a3c7fe0 pc=0x471241
created by gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).Start in goroutine 323
	pkg/sentry/kernel/task_start.go:391 +0xf8

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/11/16 10:20 gvisor 201a046299b7 cb976f63 .config console log report info ci-gvisor-systrap-1-cover panic: tmpfs.inode.decLinksLocked() called with no existing links
* Struck through repros no longer work on HEAD.