[PATCH 09/23] x86, kaiser: allow NX to be set in p4d/pgd

2017-10-31 Thread Dave Hansen
We protect user portion of the kernel page tables with the NX bit to cripple it. But, that trips the p4d/pgd_bad() checks. Make sure it does not do that. Signed-off-by: Dave Hansen Cc: Moritz Lipp Cc: Daniel Gruss

[PATCH 09/23] x86, kaiser: allow NX to be set in p4d/pgd

2017-10-31 Thread Dave Hansen
We protect user portion of the kernel page tables with the NX bit to cripple it. But, that trips the p4d/pgd_bad() checks. Make sure it does not do that. Signed-off-by: Dave Hansen Cc: Moritz Lipp Cc: Daniel Gruss Cc: Michael Schwarz Cc: Andy Lutomirski Cc: Linus Torvalds Cc: Kees Cook