Re: [PATCH 00/23] KAISER: unmap most of the kernel from userspace page tables

From: Andy Lutomirski
Date: Thu Nov 02 2017 - 03:55:03 EST


On Thu, Nov 2, 2017 at 12:32 AM, Andy Lutomirski <luto@xxxxxxxxxx> wrote:
> On Wed, Nov 1, 2017 at 1:33 PM, Andy Lutomirski <luto@xxxxxxxxxx> wrote:
>> On Wed, Nov 1, 2017 at 12:05 PM, Linus Torvalds
>> <torvalds@xxxxxxxxxxxxxxxxxxxx> wrote:
>>> On Wed, Nov 1, 2017 at 11:46 AM, Dave Hansen
>>> <dave.hansen@xxxxxxxxxxxxxxx> wrote:
>>>>
>>>> The vmalloc()'d stacks definitely need the page table walk.
>>>
>>> Ugh, yes. Nasty.
>>>
>>> Andy at some point mentioned a per-cpu initial stack trampoline thing
>>> for his exception patches, but I'm not sure he actually ever did that.
>>>
>>> Andy?
>>
>> I'm going to push it to kernel.org very shortly (like twenty minutes
>> maybe). Then the 0day bot can chew on it. With the proposed LDT
>> rework, we don't need to do any of dynamic mapping stuff, I think.
>
> FWIW, I pushed all but the actual stack switching part. Something
> broke in the rebase and it doesn't boot right now :(

Okay, that was embarrassing. The rebase error was, drumroll please, I
forgot one of the patches. Sigh.

It's here:

https://git.kernel.org/pub/scm/linux/kernel/git/luto/linux.git/log/?h=x86/entry_consolidation

The last few patches are terminally ugly. I'll clean them up shortly
and email them out. That being said, unless there's a showstopper
bug, this should be a fine base for Dave's development.