From 4215e059e24c5ed6298060769444b0eeaa03da8a Mon Sep 17 00:00:00 2001 From: Jamie Liu Date: Wed, 27 Jun 2018 13:41:50 -0700 Subject: Ignore MADV_DONTDUMP and MADV_DODUMP. PiperOrigin-RevId: 202361912 Change-Id: I1d0ee529073954d467b870872f494cebbf8ea61a --- pkg/sentry/syscalls/linux/sys_mmap.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'pkg') diff --git a/pkg/sentry/syscalls/linux/sys_mmap.go b/pkg/sentry/syscalls/linux/sys_mmap.go index bfa23f6a8..1a98328dc 100644 --- a/pkg/sentry/syscalls/linux/sys_mmap.go +++ b/pkg/sentry/syscalls/linux/sys_mmap.go @@ -181,6 +181,10 @@ func Madvise(t *kernel.Task, args arch.SyscallArguments) (uintptr, *kernel.Sysca fallthrough case linux.MADV_MERGEABLE, linux.MADV_UNMERGEABLE: fallthrough + case linux.MADV_DONTDUMP, linux.MADV_DODUMP: + // TODO: Core dumping isn't implemented, so these are + // no-ops. + fallthrough case linux.MADV_NORMAL, linux.MADV_RANDOM, linux.MADV_SEQUENTIAL, linux.MADV_WILLNEED: // Do nothing, we totally ignore the suggestions above. return 0, nil, nil -- cgit v1.2.3