syzbot


panic: unknown host errno "errno NUM" (NUM) (2)

Status: fixed on 2024/09/30 10:41
Reported-by: syzbot+180b8537798c091bf9fd@syzkaller.appspotmail.com
Fix commit: 3971ecbc6ccd Remove linuxerr.IsValid and use syserr.IsValid instead.
First crash: 90d, last: 58d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
gvisor panic: unknown host errno "errno NUM" (NUM) C 397 91d 127d 26/26 fixed on 2024/08/27 14:22

Sample crash report:
panic: unknown host errno "errno 58" (58)

goroutine 107 gp=0xc000600fc0 m=4 mp=0xc000180008 [running]:
panic({0x10df940?, 0xc00064a3b0?})
	GOROOT/src/runtime/panic.go:779 +0x158 fp=0xc0003fedd0 sp=0xc0003fed20 pc=0x43ca98
gvisor.dev/gvisor/pkg/syserr.FromHost(0x3a)
	pkg/syserr/host_linux.go:34 +0xb9 fp=0xc0003fee28 sp=0xc0003fedd0 pc=0x795f19
gvisor.dev/gvisor/pkg/syserr.FromError({0x156dba0?, 0x20338d0?})
	pkg/syserr/syserr.go:237 +0x57 fp=0xc0003fee80 sp=0xc0003fee28 pc=0x796af7
gvisor.dev/gvisor/pkg/sentry/loader.Load({0x1590378, 0xc0004e3508}, {0xc000997008, 0xc00040a040, 0x1, {0xc0003f6000, 0x7}, 0x0, {0xc0001e1130, 0xc0006ab200}, ...}, ...)
	pkg/sentry/loader/loader.go:268 +0x21e fp=0xc0003ff3b0 sp=0xc0003fee80 pc=0x9fbdfe
gvisor.dev/gvisor/pkg/sentry/kernel.(*Kernel).LoadTaskImage(0xc00020d008, {0x1590378, 0xc0004e3508}, {0xc000997008, 0xc00040a040, 0x1, {0xc0003f6000, 0x7}, 0x0, {0xc0001e1130, ...}, ...})
	pkg/sentry/kernel/task_image.go:153 +0x145 fp=0xc0003ff560 sp=0xc0003ff3b0 pc=0xa435c5
gvisor.dev/gvisor/pkg/sentry/syscalls/linux.execveat(0xc0004e3508, 0xffffff9c, 0x20000080, 0x0, 0x0, 0x0)
	pkg/sentry/syscalls/linux/sys_thread.go:182 +0xa5f fp=0xc0003ff910 sp=0xc0003ff560 pc=0xc0a2bf
gvisor.dev/gvisor/pkg/sentry/syscalls/linux.Execve(0xc0004e3508?, 0x3c?, {{0x20000080}, {0x0}, {0x0}, {0x0}, {0x0}, {0x0}})
	pkg/sentry/syscalls/linux/sys_thread.go:70 +0x2a fp=0xc0003ff950 sp=0xc0003ff910 pc=0xc097ca
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).executeSyscall(0xc0004e3508, 0x3b, {{0x20000080}, {0x0}, {0x0}, {0x0}, {0x0}, {0x0}})
	pkg/sentry/kernel/task_syscall.go:143 +0x673 fp=0xc0003ffc90 sp=0xc0003ff950 pc=0xa53e33
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallInvoke(0xc0004e3508, 0x3b, {{0x20000080}, {0x0}, {0x0}, {0x0}, {0x0}, {0x0}})
	pkg/sentry/kernel/task_syscall.go:323 +0x45 fp=0xc0003ffce8 sp=0xc0003ffc90 pc=0xa54fa5
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallEnter(0xc0004e3508, 0x3b, {{0x20000080}, {0x0}, {0x0}, {0x0}, {0x0}, {0x0}})
	pkg/sentry/kernel/task_syscall.go:283 +0x65 fp=0xc0003ffd38 sp=0xc0003ffce8 pc=0xa54ca5
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscall(0xc0004105b0?)
	pkg/sentry/kernel/task_syscall.go:258 +0x2a5 fp=0xc0003ffe20 sp=0xc0003ffd38 pc=0xa54a25
gvisor.dev/gvisor/pkg/sentry/kernel.(*runApp).execute(0xc0006ab0e0?, 0xc0004e3508)
	pkg/sentry/kernel/task_run.go:270 +0xef7 fp=0xc0003fff38 sp=0xc0003ffe20 pc=0xa48d77
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).run(0xc0004e3508, 0x8)
	pkg/sentry/kernel/task_run.go:98 +0x1ff fp=0xc0003fffc0 sp=0xc0003fff38 pc=0xa477bf
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).Start.gowrap1()
	pkg/sentry/kernel/task_start.go:400 +0x25 fp=0xc0003fffe0 sp=0xc0003fffc0 pc=0xa52605
runtime.goexit({})
	src/runtime/asm_amd64.s:1695 +0x1 fp=0xc0003fffe8 sp=0xc0003fffe0 pc=0x478ac1
created by gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).Start in goroutine 244
	pkg/sentry/kernel/task_start.go:400 +0xc5

Crashes (286):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/09/28 07:59 gvisor ffea87484599 440b26ec console log report syz / log C ci-gvisor-ptrace-2 panic: unknown host errno "errno NUM" (NUM)
2024/09/28 05:15 gvisor ffea87484599 440b26ec console log report syz / log C ci-gvisor-systrap-1 panic: unknown host errno "errno NUM" (NUM)
2024/09/28 04:19 gvisor ffea87484599 440b26ec .config console log report syz / log C ci-gvisor-ptrace-3-race panic: unknown host errno "errno NUM" (NUM)
2024/09/28 00:29 gvisor ffea87484599 440b26ec .config console log report syz / log C ci-gvisor-ptrace-3-race-cover panic: unknown host errno "errno NUM" (NUM)
2024/09/28 00:20 gvisor ffea87484599 440b26ec .config console log report syz / log C ci-gvisor-systrap-1-race-cover panic: unknown host errno "errno NUM" (NUM)
2024/09/28 00:20 gvisor ffea87484599 440b26ec .config console log report syz / log C ci-gvisor-ptrace-2-race-cover panic: unknown host errno "errno NUM" (NUM)
2024/09/28 00:04 gvisor ffea87484599 440b26ec .config console log report syz / log C ci-gvisor-ptrace-1-race-cover panic: unknown host errno "errno NUM" (NUM)
2024/09/27 22:39 gvisor 86ceb5c26ae9 2b1784d6 console log report syz / log C ci-gvisor-ptrace-3 panic: unknown host errno "errno NUM" (NUM)
2024/09/28 19:14 gvisor 0760a3df5921 ba29ff75 console log report info ci-gvisor-ptrace-1 panic: unknown host errno "errno NUM" (NUM)
2024/09/27 22:21 gvisor 86ceb5c26ae9 2b1784d6 console log report info ci-gvisor-ptrace-3 panic: unknown host errno "errno NUM" (NUM)
2024/09/26 02:02 gvisor 90faaeb34f23 0d19f247 console log report info ci-gvisor-kvm panic: unknown host errno "errno NUM" (NUM)
2024/09/25 19:14 gvisor 2d0a6f7865a5 0b45cac3 console log report info ci-gvisor-systrap-1 panic: unknown host errno "errno NUM" (NUM)
2024/09/25 17:28 gvisor 2d0a6f7865a5 0b45cac3 .config console log report info ci-gvisor-ptrace-3-race panic: unknown host errno "errno NUM" (NUM)
2024/09/25 04:51 gvisor 9488cfcf0ba2 349a68c4 .config console log report info ci-gvisor-ptrace-3-race panic: unknown host errno "errno NUM" (NUM)
2024/09/25 04:51 gvisor 9488cfcf0ba2 349a68c4 .config console log report info ci-gvisor-ptrace-3-race panic: unknown host errno "errno NUM" (NUM)
2024/09/23 17:49 gvisor ffb3b11dcf40 49f9c2d2 console log report info ci-gvisor-kvm panic: unknown host errno "errno NUM" (NUM)
2024/09/23 15:33 gvisor ffb3b11dcf40 49f9c2d2 console log report info ci-gvisor-ptrace-3 panic: unknown host errno "errno NUM" (NUM)
2024/09/23 08:07 gvisor ffb3b11dcf40 6f888b75 .config console log report info ci-gvisor-ptrace-1-race panic: unknown host errno "errno NUM" (NUM)
2024/09/23 05:08 gvisor ffb3b11dcf40 6f888b75 console log report info ci-gvisor-ptrace-3 panic: unknown host errno "errno NUM" (NUM)
2024/09/23 01:59 gvisor ffb3b11dcf40 6f888b75 console log report info ci-gvisor-kvm panic: unknown host errno "errno NUM" (NUM)
2024/09/22 12:48 gvisor ffb3b11dcf40 6f888b75 console log report info ci-gvisor-kvm panic: unknown host errno "errno NUM" (NUM)
2024/09/22 06:29 gvisor 020dd7a40069 6f888b75 console log report info ci-gvisor-kvm panic: unknown host errno "errno NUM" (NUM)
2024/09/22 02:52 gvisor 020dd7a40069 6f888b75 console log report info ci-gvisor-ptrace-3 panic: unknown host errno "errno NUM" (NUM)
2024/09/22 00:54 gvisor 020dd7a40069 6f888b75 console log report info ci-gvisor-systrap-1 panic: unknown host errno "errno NUM" (NUM)
2024/09/21 15:19 gvisor a7dcce93851c 6f888b75 .config console log report info ci-gvisor-ptrace-3-race panic: unknown host errno "errno NUM" (NUM)
2024/09/20 17:50 gvisor 49310d92b103 6f888b75 console log report info ci-gvisor-ptrace-1 panic: unknown host errno "errno NUM" (NUM)
2024/09/20 01:41 gvisor 49310d92b103 6f888b75 console log report info ci-gvisor-kvm panic: unknown host errno "errno NUM" (NUM)
2024/09/19 21:17 gvisor ab64b5eb5486 6f888b75 console log report info ci-gvisor-kvm panic: unknown host errno "errno NUM" (NUM)
2024/09/19 12:38 gvisor ab64b5eb5486 6f888b75 console log report info ci-gvisor-kvm panic: unknown host errno "errno NUM" (NUM)
2024/09/19 08:13 gvisor ab64b5eb5486 c673ca06 console log report info ci-gvisor-ptrace-2 panic: unknown host errno "errno NUM" (NUM)
2024/09/18 17:44 gvisor 8425e278c51e c673ca06 .config console log report info ci-gvisor-ptrace-2-race panic: unknown host errno "errno NUM" (NUM)
2024/09/18 05:46 gvisor ed5a61a24bcd c673ca06 console log report info ci-gvisor-kvm panic: unknown host errno "errno NUM" (NUM)
2024/09/17 14:53 gvisor 4bcbb55fcba5 c673ca06 console log report info ci-gvisor-ptrace-2 panic: unknown host errno "errno NUM" (NUM)
2024/09/17 07:26 gvisor 4bcbb55fcba5 c673ca06 .config console log report info ci-gvisor-ptrace-3-race panic: unknown host errno "errno NUM" (NUM)
2024/09/09 04:18 gvisor 3c4b246cf294 9750182a .config console log report info ci-gvisor-systrap-1-race panic: unknown host errno "errno NUM" (NUM)
2024/09/03 02:59 gvisor fa49677e141d 0dd55198 console log report info ci-gvisor-kvm panic: unknown host errno "errno NUM" (NUM)
2024/08/27 23:14 gvisor 9ecb627726cf a1a7b2f0 console log report info ci-gvisor-ptrace-3 panic: unknown host errno "errno NUM" (NUM)
2024/09/28 17:55 gvisor 0760a3df5921 ba29ff75 console log report info ci-gvisor-arm64-systrap-1 panic: unknown host errno "errno NUM" (NUM)
2024/09/28 16:39 gvisor 0760a3df5921 ba29ff75 console log report info ci-gvisor-arm64-ptrace-1 panic: unknown host errno "errno NUM" (NUM)
2024/09/27 13:03 gvisor 86ceb5c26ae9 2b1784d6 console log report info ci-gvisor-arm64-ptrace-1 panic: unknown host errno "errno NUM" (NUM)
2024/09/26 22:05 gvisor e6e645c6f577 9314348a console log report info ci-gvisor-arm64-ptrace-1 panic: unknown host errno "errno NUM" (NUM)
2024/09/26 16:23 gvisor e6e645c6f577 9314348a console log report info ci-gvisor-arm64-ptrace-1 panic: unknown host errno "errno NUM" (NUM)
2024/09/26 14:05 gvisor e6e645c6f577 9314348a console log report info ci-gvisor-arm64-systrap-1 panic: unknown host errno "errno NUM" (NUM)
2024/09/26 09:49 gvisor 90faaeb34f23 0d19f247 console log report info ci-gvisor-arm64-systrap-1 panic: unknown host errno "errno NUM" (NUM)
2024/09/25 14:10 gvisor 2d0a6f7865a5 0b45cac3 console log report info ci-gvisor-arm64-ptrace-1 panic: unknown host errno "errno NUM" (NUM)
2024/09/25 10:06 gvisor 9488cfcf0ba2 349a68c4 console log report info ci-gvisor-arm64-systrap-1 panic: unknown host errno "errno NUM" (NUM)
2024/09/25 06:02 gvisor 9488cfcf0ba2 349a68c4 console log report info ci-gvisor-arm64-ptrace-1 panic: unknown host errno "errno NUM" (NUM)
2024/09/25 01:49 gvisor 9488cfcf0ba2 349a68c4 console log report info ci-gvisor-arm64-ptrace-1 panic: unknown host errno "errno NUM" (NUM)
2024/09/24 14:35 gvisor 5216c2f1c359 5643e0e9 console log report info ci-gvisor-arm64-systrap-1 panic: unknown host errno "errno NUM" (NUM)
2024/09/23 11:53 gvisor ffb3b11dcf40 49f9c2d2 console log report info ci-gvisor-arm64-ptrace-1 panic: unknown host errno "errno NUM" (NUM)
2024/09/22 20:46 gvisor ffb3b11dcf40 6f888b75 console log report info ci-gvisor-arm64-ptrace-1 panic: unknown host errno "errno NUM" (NUM)
2024/09/22 13:58 gvisor ffb3b11dcf40 6f888b75 console log report info ci-gvisor-arm64-systrap-1 panic: unknown host errno "errno NUM" (NUM)
2024/09/21 17:30 gvisor a7dcce93851c 6f888b75 console log report info ci-gvisor-arm64-systrap-1 panic: unknown host errno "errno NUM" (NUM)
2024/09/20 21:08 gvisor 49310d92b103 6f888b75 console log report info ci-gvisor-arm64-ptrace-1 panic: unknown host errno "errno NUM" (NUM)
2024/09/20 15:48 gvisor 49310d92b103 6f888b75 console log report info ci-gvisor-arm64-ptrace-1 panic: unknown host errno "errno NUM" (NUM)
2024/09/19 14:06 gvisor ab64b5eb5486 6f888b75 console log report info ci-gvisor-arm64-ptrace-1 panic: unknown host errno "errno NUM" (NUM)
2024/09/19 02:06 gvisor 8425e278c51e c673ca06 console log report info ci-gvisor-arm64-ptrace-1 panic: unknown host errno "errno NUM" (NUM)
2024/09/18 21:00 gvisor 8425e278c51e c673ca06 console log report info ci-gvisor-arm64-systrap-1 panic: unknown host errno "errno NUM" (NUM)
2024/09/18 06:46 gvisor ed5a61a24bcd c673ca06 console log report info ci-gvisor-arm64-systrap-1 panic: unknown host errno "errno NUM" (NUM)
2024/09/18 01:25 gvisor 4bcbb55fcba5 c673ca06 console log report info ci-gvisor-arm64-ptrace-1 panic: unknown host errno "errno NUM" (NUM)
2024/09/17 23:16 gvisor 4bcbb55fcba5 c673ca06 console log report info ci-gvisor-arm64-systrap-1 panic: unknown host errno "errno NUM" (NUM)
2024/09/17 13:20 gvisor dd011f2e9f10 c673ca06 console log report info ci-gvisor-arm64-systrap-1 panic: unknown host errno "errno NUM" (NUM)
2024/09/17 08:54 gvisor dd011f2e9f10 c673ca06 console log report info ci-gvisor-arm64-ptrace-1 panic: unknown host errno "errno NUM" (NUM)
* Struck through repros no longer work on HEAD.