Re: [PATCH, RFC 47/62] mm: Restrict MKTME memory encryption to anonymous VMAs

2019-06-14 Thread Alison Schofield
On Fri, Jun 14, 2019 at 01:55:20PM +0200, Peter Zijlstra wrote: > On Wed, May 08, 2019 at 05:44:07PM +0300, Kirill A. Shutemov wrote: > > From: Alison Schofield > > > > Memory encryption is only supported for mappings that are ANONYMOUS. > > Test the VMA's in an encrypt_mprotect() request to

Re: [PATCH, RFC 47/62] mm: Restrict MKTME memory encryption to anonymous VMAs

2019-06-14 Thread Peter Zijlstra
On Wed, May 08, 2019 at 05:44:07PM +0300, Kirill A. Shutemov wrote: > From: Alison Schofield > > Memory encryption is only supported for mappings that are ANONYMOUS. > Test the VMA's in an encrypt_mprotect() request to make sure they all > meet that requirement before encrypting any. > > The

[PATCH, RFC 47/62] mm: Restrict MKTME memory encryption to anonymous VMAs

2019-05-08 Thread Kirill A. Shutemov
From: Alison Schofield Memory encryption is only supported for mappings that are ANONYMOUS. Test the VMA's in an encrypt_mprotect() request to make sure they all meet that requirement before encrypting any. The encrypt_mprotect syscall will return -EINVAL and will not encrypt any VMA's if this