syzbot


panic: munmap(ADDR, 1000)) failed: function not implemented (3)

Status: fixed on 2020/01/08 08:41
Fix commit: 17c18241cdeb platform/syscall: use syscall + int3 to execute a system call in a stub process
First crash: 1822d, last: 1821d

Sample crash report:
panic: munmap(2b9f9b297000, 1000)) failed: function not implemented

goroutine 573819 [running]:
gvisor.dev/gvisor/pkg/sentry/platform/ptrace.(*subprocess).Unmap(0xc00036e100, 0x2b9f9b297000, 0x1000)
	pkg/sentry/platform/ptrace/subprocess.go:658 +0x3ff
gvisor.dev/gvisor/pkg/sentry/mm.(*MemoryManager).unmapASLocked(0xc000609000, 0x2b9f9b297000, 0x2b9f9b298000)
	pkg/sentry/mm/address_space.go:215 +0x73
gvisor.dev/gvisor/pkg/sentry/mm.(*MemoryManager).MProtect(0xc000609000, 0x2b9f9b297000, 0x1000, 0x0, 0x0, 0x0)
	pkg/sentry/mm/syscalls.go:681 +0x4f0
gvisor.dev/gvisor/pkg/sentry/syscalls/linux.Mprotect(0xc000ce1500, 0x2b9f9b297000, 0x1000, 0x0, 0x20022, 0x1, 0x1, 0x202, 0x0, 0xdd60d8, ...)
	pkg/sentry/syscalls/linux/sys_mmap.go:150 +0x73
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).executeSyscall(0xc000ce1500, 0xa, 0x2b9f9b297000, 0x1000, 0x0, 0x20022, 0x1, 0x1, 0x0, 0x0, ...)
	pkg/sentry/kernel/task_syscall.go:165 +0x106
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallInvoke(0xc000ce1500, 0xa, 0x2b9f9b297000, 0x1000, 0x0, 0x20022, 0x1, 0x1, 0x1, 0x1)
	pkg/sentry/kernel/task_syscall.go:283 +0x66
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallEnter(0xc000ce1500, 0xa, 0x2b9f9b297000, 0x1000, 0x0, 0x20022, 0x1, 0x1, 0xc0002b57a0, 0x1)
	pkg/sentry/kernel/task_syscall.go:244 +0x96
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscall(0xc000ce1500, 0x2, 0xc00036e100)
	pkg/sentry/kernel/task_syscall.go:219 +0x139
gvisor.dev/gvisor/pkg/sentry/kernel.(*runApp).execute(0x0, 0xc000ce1500, 0xec2a00, 0x0)
	pkg/sentry/kernel/task_run.go:219 +0xd8e
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).run(0xc000ce1500, 0x359e)
	pkg/sentry/kernel/task_run.go:91 +0x1bb
created by gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).Start
	pkg/sentry/kernel/task_start.go:300 +0xfe

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/12/02 03:39 https://gvisor.googlesource.com/gvisor master 10bbcf97d25b f879db37 .config console log report ci-gvisor-main
2019/12/01 06:47 https://gvisor.googlesource.com/gvisor master 10bbcf97d25b a76bf83f .config console log report ci-gvisor-ptrace-direct-overlay-host
* Struck through repros no longer work on HEAD.