gvisor/pkg/abi
Jamie Liu 2421006426 Implement mlock(), kind of.
Currently mlock() and friends do nothing whatsoever. However, mlocking
is directly application-visible in a number of ways; for example,
madvise(MADV_DONTNEED) and msync(MS_INVALIDATE) both fail on mlocked
regions. We handle this inconsistently: MADV_DONTNEED is too important
to not work, but MS_INVALIDATE is rejected.

Change MM to track mlocked regions in a manner consistent with Linux.
It still will not actually pin pages into host physical memory, but:

- mlock() will now cause sentry memory management to precommit mlocked
pages.

- MADV_DONTNEED and MS_INVALIDATE will interact with mlocked pages as
described above.

PiperOrigin-RevId: 225861605
Change-Id: Iee187204979ac9a4d15d0e037c152c0902c8d0ee
2018-12-17 11:38:59 -08:00
..
linux Implement mlock(), kind of. 2018-12-17 11:38:59 -08:00
BUILD Add seccomp filter configuration to ptrace stubs. 2018-10-10 22:40:28 -07:00
abi.go Use correct company name in copyright header 2018-10-19 16:35:11 -07:00
abi_linux.go Use correct company name in copyright header 2018-10-19 16:35:11 -07:00
flag.go Format sigaction in strace 2018-12-07 16:28:54 -08:00