Re: [RFC 21/43] x86/KASLR: PKRAM: support physical kaslr

2020-05-07 Thread Anthony Yznaga
On 5/7/20 10:51 AM, Kees Cook wrote: > On Wed, May 06, 2020 at 05:41:47PM -0700, Anthony Yznaga wrote: >> Avoid regions of memory that contain preserved pages when computing >> slots used to select where to put the decompressed kernel. > This is changing the slot-walking code instead of

Re: [RFC 21/43] x86/KASLR: PKRAM: support physical kaslr

2020-05-07 Thread Kees Cook
On Wed, May 06, 2020 at 05:41:47PM -0700, Anthony Yznaga wrote: > Avoid regions of memory that contain preserved pages when computing > slots used to select where to put the decompressed kernel. This is changing the slot-walking code instead of updating mem_avoid_overlap() -- that's where the

[RFC 21/43] x86/KASLR: PKRAM: support physical kaslr

2020-05-06 Thread Anthony Yznaga
Avoid regions of memory that contain preserved pages when computing slots used to select where to put the decompressed kernel. Signed-off-by: Anthony Yznaga --- arch/x86/boot/compressed/Makefile | 3 + arch/x86/boot/compressed/kaslr.c | 67 ++ arch/x86/boot/compressed/misc.h | 19