mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
Ignore MADV_DONTDUMP and MADV_DODUMP.
PiperOrigin-RevId: 202361912 Change-Id: I1d0ee529073954d467b870872f494cebbf8ea61a
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user