syzbot


panic: interface conversion: vfs.DentryImpl is *tmpfs.dentry, not *kernfs.Dentry (2)

Status: fixed on 2023/02/11 13:12
Fix commit: 1beb3e2b251d Check hard link target's mount compatibility before kernfs.Dentry cast. Again.
First crash: 655d, last: 654d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
gvisor panic: interface conversion: vfs.DentryImpl is *tmpfs.dentry, not *kernfs.Dentry C 390 655d 661d 18/26 fixed on 2023/02/10 02:24

Sample crash report:
panic: interface conversion: vfs.DentryImpl is *tmpfs.dentry, not *kernfs.Dentry

goroutine 120 [running]:
panic({0x31f3e0, 0xc000930ab0})
	GOROOT/src/runtime/panic.go:987 +0x3ba fp=0xc000ab2ea8 sp=0xc000ab2de8 pc=0x118f03a
runtime.panicdottypeE(...)
	GOROOT/src/runtime/iface.go:262
runtime.panicdottypeI(0xc0003648d8?, 0x474280, 0x36c7e0)
	GOROOT/src/runtime/iface.go:272 +0x7c fp=0xc000ab2ed0 sp=0xc000ab2ea8 pc=0x116251c
gvisor.dev/gvisor/pkg/sentry/fsimpl/kernfs.(*Filesystem).LinkAt(0xc000730280, {0x751938, 0xc000668a80}, 0xc00049c900, {0xc0006bdc00?, 0xc0004182d0?})
	pkg/sentry/fsimpl/kernfs/filesystem.go:367 +0xce5 fp=0xc000ab3178 sp=0xc000ab2ed0 pc=0x17cae45
gvisor.dev/gvisor/pkg/sentry/fsimpl/sys.(*filesystem).LinkAt(0xc000730280, {0x751938, 0xc000668a80}, 0x1c8d487?, {0xc0006bdc00?, 0xc0004182d0?})
	<autogenerated>:1 +0x8a fp=0xc000ab31e0 sp=0xc000ab3178 pc=0x217ba4a
gvisor.dev/gvisor/pkg/sentry/vfs.(*VirtualFilesystem).LinkAt(0xc000668a80?, {0x751938, 0xc000668a80}, 0xc000364870?, 0xc000011300?, 0xc000ab3490)
	pkg/sentry/vfs/vfs.go:296 +0x402 fp=0xc000ab3298 sp=0xc000ab31e0 pc=0x17192c2
gvisor.dev/gvisor/pkg/sentry/syscalls/linux.linkat(0xc000668a80, 0x11c91f7?, 0x265f2e4?, 0x1?, 0x11c7d2c?, 0x1400)
	pkg/sentry/syscalls/linux/sys_file.go:1029 +0x4aa fp=0xc000ab3540 sp=0xc000ab3298 pc=0x1cad42a
gvisor.dev/gvisor/pkg/sentry/syscalls/linux.Linkat(0x0?, {{0x7}, {0x200000c0}, {0x8}, {0x20000100}, {0x1400}, {0x7f301e729e78}})
	pkg/sentry/syscalls/linux/sys_file.go:998 +0xf1 fp=0xc000ab35c0 sp=0xc000ab3540 pc=0x1cacf31
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).executeSyscall(0xc000668a80, 0x109, {{0x7}, {0x200000c0}, {0x8}, {0x20000100}, {0x1400}, {0x7f301e729e78}})
	pkg/sentry/kernel/task_syscall.go:142 +0xab8 fp=0xc000ab39d8 sp=0xc000ab35c0 pc=0x1a98eb8
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallInvoke(0xc000668a80, 0x1?, {{0x7}, {0x200000c0}, {0x8}, {0x20000100}, {0x1400}, {0x7f301e729e78}})
	pkg/sentry/kernel/task_syscall.go:322 +0x8e fp=0xc000ab3a78 sp=0xc000ab39d8 pc=0x1a9b00e
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallEnter(0xc0006300f0?, 0x115e2dd?, {{0x7}, {0x200000c0}, {0x8}, {0x20000100}, {0x1400}, {0x7f301e729e78}})
	pkg/sentry/kernel/task_syscall.go:282 +0xc5 fp=0xc000ab3af0 sp=0xc000ab3a78 pc=0x1a9a8e5
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscall(0xc000668a80)
	pkg/sentry/kernel/task_syscall.go:257 +0x53b fp=0xc000ab3c18 sp=0xc000ab3af0 pc=0x1a9a3db
gvisor.dev/gvisor/pkg/sentry/kernel.(*runApp).execute(0xc000668a80?, 0xc000668a80)
	pkg/sentry/kernel/task_run.go:259 +0x2094 fp=0xc000ab3ec0 sp=0xc000ab3c18 pc=0x1a83214
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).run(0xc000668a80, 0xe)
	pkg/sentry/kernel/task_run.go:94 +0x2cc fp=0xc000ab3fb0 sp=0xc000ab3ec0 pc=0x1a807ac
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).Start.func1()
	pkg/sentry/kernel/task_start.go:377 +0x48 fp=0xc000ab3fe0 sp=0xc000ab3fb0 pc=0x1a965a8
runtime.goexit()
	src/runtime/asm_amd64.s:1594 +0x1 fp=0xc000ab3fe8 sp=0xc000ab3fe0 pc=0x11c60c1
created by gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).Start
	pkg/sentry/kernel/task_start.go:377 +0x1da

Crashes (65):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/02/10 06:08 gvisor 13448f9e8761 07980f9d .config console log report syz C ci-gvisor-ptrace-3-race-cover panic: interface conversion: vfs.DentryImpl is *tmpfs.dentry, not *kernfs.Dentry
2023/02/10 06:03 gvisor 13448f9e8761 07980f9d console log report syz C ci-gvisor-kvm panic: interface conversion: vfs.DentryImpl is *tmpfs.dentry, not *kernfs.Dentry
2023/02/10 05:28 gvisor 13448f9e8761 07980f9d .config console log report syz C ci-gvisor-kvm-cover panic: interface conversion: vfs.DentryImpl is *tmpfs.dentry, not *kernfs.Dentry
2023/02/10 04:25 gvisor 13448f9e8761 07980f9d console log report syz C ci-gvisor-ptrace-1 panic: interface conversion: vfs.DentryImpl is *tmpfs.dentry, not *kernfs.Dentry
2023/02/10 04:10 gvisor 13448f9e8761 07980f9d .config console log report syz C ci-gvisor-ptrace-1-race panic: interface conversion: vfs.DentryImpl is *tmpfs.dentry, not *kernfs.Dentry
2023/02/10 04:09 gvisor 13448f9e8761 07980f9d .config console log report syz C ci-gvisor-ptrace-2-race panic: interface conversion: vfs.DentryImpl is *tmpfs.dentry, not *kernfs.Dentry
2023/02/10 04:07 gvisor 13448f9e8761 07980f9d console log report syz C ci-gvisor-ptrace-2 panic: interface conversion: vfs.DentryImpl is *tmpfs.dentry, not *kernfs.Dentry
2023/02/10 04:06 gvisor 13448f9e8761 07980f9d .config console log report syz C ci-gvisor-ptrace-2-cover panic: interface conversion: vfs.DentryImpl is *tmpfs.dentry, not *kernfs.Dentry
2023/02/10 04:03 gvisor 13448f9e8761 07980f9d .config console log report syz C ci-gvisor-ptrace-3-cover panic: interface conversion: vfs.DentryImpl is *tmpfs.dentry, not *kernfs.Dentry
2023/02/10 04:03 gvisor 13448f9e8761 07980f9d .config console log report syz C ci-gvisor-ptrace-1-cover panic: interface conversion: vfs.DentryImpl is *tmpfs.dentry, not *kernfs.Dentry
2023/02/10 04:02 gvisor 13448f9e8761 07980f9d console log report syz C ci-gvisor-ptrace-3 panic: interface conversion: vfs.DentryImpl is *tmpfs.dentry, not *kernfs.Dentry
2023/02/10 03:39 gvisor 13448f9e8761 07980f9d .config console log report syz C ci-gvisor-ptrace-3-race panic: interface conversion: vfs.DentryImpl is *tmpfs.dentry, not *kernfs.Dentry
2023/02/11 11:13 gvisor be42cbb51a57 93e26d60 console log report info ci-gvisor-ptrace-3 panic: interface conversion: vfs.DentryImpl is *tmpfs.dentry, not *kernfs.Dentry
2023/02/11 08:57 gvisor be42cbb51a57 93e26d60 console log report info ci-gvisor-ptrace-2 panic: interface conversion: vfs.DentryImpl is *tmpfs.dentry, not *kernfs.Dentry
2023/02/11 06:14 gvisor be42cbb51a57 93e26d60 .config console log report info ci-gvisor-ptrace-3-cover panic: interface conversion: vfs.DentryImpl is *tmpfs.dentry, not *kernfs.Dentry
2023/02/11 05:14 gvisor be42cbb51a57 93e26d60 .config console log report info ci-gvisor-ptrace-3-race panic: interface conversion: vfs.DentryImpl is *tmpfs.dentry, not *kernfs.Dentry
2023/02/11 02:31 gvisor be42cbb51a57 93e26d60 .config console log report info ci-gvisor-ptrace-2-race panic: interface conversion: vfs.DentryImpl is *tmpfs.dentry, not *kernfs.Dentry
2023/02/11 00:54 gvisor be42cbb51a57 93e26d60 .config console log report info ci-gvisor-ptrace-3-cover panic: interface conversion: vfs.DentryImpl is *tmpfs.dentry, not *kernfs.Dentry
2023/02/10 22:55 gvisor be42cbb51a57 e29a17f5 .config console log report info ci-gvisor-ptrace-3-race panic: interface conversion: vfs.DentryImpl is *tmpfs.dentry, not *kernfs.Dentry
2023/02/10 20:32 gvisor be42cbb51a57 e29a17f5 .config console log report info ci-gvisor-ptrace-1-cover panic: interface conversion: vfs.DentryImpl is *tmpfs.dentry, not *kernfs.Dentry
2023/02/10 19:15 gvisor 13448f9e8761 e29a17f5 .config console log report info ci-gvisor-ptrace-3-race panic: interface conversion: vfs.DentryImpl is *tmpfs.dentry, not *kernfs.Dentry
2023/02/10 18:01 gvisor 13448f9e8761 e29a17f5 .config console log report info ci-gvisor-ptrace-3-cover panic: interface conversion: vfs.DentryImpl is *tmpfs.dentry, not *kernfs.Dentry
2023/02/10 16:27 gvisor 13448f9e8761 e29a17f5 console log report info ci-gvisor-ptrace-1 panic: interface conversion: vfs.DentryImpl is *tmpfs.dentry, not *kernfs.Dentry
2023/02/10 16:27 gvisor 13448f9e8761 e29a17f5 .config console log report info ci-gvisor-ptrace-2-race-cover panic: interface conversion: vfs.DentryImpl is *tmpfs.dentry, not *kernfs.Dentry
2023/02/10 16:27 gvisor 13448f9e8761 e29a17f5 .config console log report info ci-gvisor-ptrace-3-race-cover panic: interface conversion: vfs.DentryImpl is *tmpfs.dentry, not *kernfs.Dentry
2023/02/10 16:27 gvisor 13448f9e8761 e29a17f5 .config console log report info ci-gvisor-ptrace-3-cover panic: interface conversion: vfs.DentryImpl is *tmpfs.dentry, not *kernfs.Dentry
2023/02/10 16:26 gvisor 13448f9e8761 e29a17f5 .config console log report info ci-gvisor-ptrace-2-race panic: interface conversion: vfs.DentryImpl is *tmpfs.dentry, not *kernfs.Dentry
2023/02/10 16:25 gvisor 13448f9e8761 e29a17f5 .config console log report info ci-gvisor-ptrace-3-race panic: interface conversion: vfs.DentryImpl is *tmpfs.dentry, not *kernfs.Dentry
2023/02/10 16:24 gvisor 13448f9e8761 e29a17f5 console log report info ci-gvisor-ptrace-2 panic: interface conversion: vfs.DentryImpl is *tmpfs.dentry, not *kernfs.Dentry
2023/02/10 16:22 gvisor 13448f9e8761 e29a17f5 .config console log report info ci-gvisor-kvm-cover panic: interface conversion: vfs.DentryImpl is *tmpfs.dentry, not *kernfs.Dentry
2023/02/10 16:04 gvisor 13448f9e8761 e29a17f5 .config console log report info ci-gvisor-ptrace-1-cover panic: interface conversion: vfs.DentryImpl is *tmpfs.dentry, not *kernfs.Dentry
2023/02/10 13:27 gvisor 13448f9e8761 e29a17f5 .config console log report info ci-gvisor-ptrace-3-cover panic: interface conversion: vfs.DentryImpl is *tmpfs.dentry, not *kernfs.Dentry
2023/02/10 13:25 gvisor 13448f9e8761 e29a17f5 console log report info ci-gvisor-ptrace-3 panic: interface conversion: vfs.DentryImpl is *tmpfs.dentry, not *kernfs.Dentry
2023/02/10 12:52 gvisor 13448f9e8761 e29a17f5 .config console log report info ci-gvisor-kvm-cover panic: interface conversion: vfs.DentryImpl is *tmpfs.dentry, not *kernfs.Dentry
2023/02/10 10:45 gvisor 13448f9e8761 07980f9d .config console log report info ci-gvisor-kvm-cover panic: interface conversion: vfs.DentryImpl is *tmpfs.dentry, not *kernfs.Dentry
2023/02/10 08:45 gvisor 13448f9e8761 07980f9d .config console log report info ci-gvisor-ptrace-3-cover panic: interface conversion: vfs.DentryImpl is *tmpfs.dentry, not *kernfs.Dentry
2023/02/10 08:41 gvisor 13448f9e8761 07980f9d .config console log report info ci-gvisor-ptrace-3-race panic: interface conversion: vfs.DentryImpl is *tmpfs.dentry, not *kernfs.Dentry
2023/02/10 08:14 gvisor 13448f9e8761 07980f9d .config console log report info ci-gvisor-kvm-cover panic: interface conversion: vfs.DentryImpl is *tmpfs.dentry, not *kernfs.Dentry
2023/02/10 08:13 gvisor 13448f9e8761 07980f9d .config console log report info ci-gvisor-kvm-cover panic: interface conversion: vfs.DentryImpl is *tmpfs.dentry, not *kernfs.Dentry
2023/02/10 08:09 gvisor 13448f9e8761 07980f9d .config console log report info ci-gvisor-ptrace-2-cover panic: interface conversion: vfs.DentryImpl is *tmpfs.dentry, not *kernfs.Dentry
2023/02/10 07:54 gvisor 13448f9e8761 07980f9d .config console log report info ci-gvisor-ptrace-2-cover panic: interface conversion: vfs.DentryImpl is *tmpfs.dentry, not *kernfs.Dentry
2023/02/10 06:47 gvisor 13448f9e8761 07980f9d console log report info ci-gvisor-ptrace-2 panic: interface conversion: vfs.DentryImpl is *tmpfs.dentry, not *kernfs.Dentry
2023/02/10 05:31 gvisor 13448f9e8761 07980f9d .config console log report info ci-gvisor-ptrace-3-cover panic: interface conversion: vfs.DentryImpl is *tmpfs.dentry, not *kernfs.Dentry
2023/02/10 05:23 gvisor 13448f9e8761 07980f9d console log report info ci-gvisor-kvm panic: interface conversion: vfs.DentryImpl is *tmpfs.dentry, not *kernfs.Dentry
2023/02/10 04:54 gvisor 13448f9e8761 07980f9d .config console log report info ci-gvisor-ptrace-2-cover panic: interface conversion: vfs.DentryImpl is *tmpfs.dentry, not *kernfs.Dentry
2023/02/10 04:23 gvisor 13448f9e8761 07980f9d .config console log report info ci-gvisor-ptrace-2-cover panic: interface conversion: vfs.DentryImpl is *tmpfs.dentry, not *kernfs.Dentry
2023/02/10 04:04 gvisor 13448f9e8761 07980f9d .config console log report info ci-gvisor-kvm-cover panic: interface conversion: vfs.DentryImpl is *tmpfs.dentry, not *kernfs.Dentry
2023/02/10 03:23 gvisor 13448f9e8761 07980f9d .config console log report info ci-gvisor-ptrace-3-race panic: interface conversion: vfs.DentryImpl is *tmpfs.dentry, not *kernfs.Dentry
2023/02/10 10:55 gvisor 13448f9e8761 07980f9d console log report info ci-gvisor-arm64-ptrace-1 panic: interface conversion: vfs.DentryImpl is *tmpfs.dentry, not *kernfs.Dentry
2023/02/10 08:30 gvisor 13448f9e8761 07980f9d console log report info ci-gvisor-arm64-ptrace-1 panic: interface conversion: vfs.DentryImpl is *tmpfs.dentry, not *kernfs.Dentry
2023/02/10 06:50 gvisor 13448f9e8761 07980f9d .config console log report info ci-gvisor-arm64-ptrace-1-race panic: interface conversion: vfs.DentryImpl is *tmpfs.dentry, not *kernfs.Dentry
* Struck through repros no longer work on HEAD.