Re: "bad pmd" errors + oops with KPTI on 4.14.11 after loading X.509 certs

From: Benjamin Gilbert
Date: Thu Jan 04 2018 - 14:38:22 EST


On Thu, Jan 04, 2018 at 01:28:59PM +0100, Thomas Gleixner wrote:
> On Wed, 3 Jan 2018, Andy Lutomirski wrote:
> > Our memory map code is utter shite. This kind of bug should not be
> > possible without a giant warning at boot that something is screwed up.
>
> You're right it's utter shite and the KASLR folks who added this insanity
> of making vaddr_end depend on a gazillion of config options and not
> documenting it in mm.txt or elsewhere where it's obvious to find should
> really sit back and think hard about their half baken 'security' features.
>
> Just look at the insanity of comment above the vaddr_end ifdef maze.
>
> Benjamin, can you test the patch below please?

Seems to work!

Thanks,
--Benjamin Gilbert