lkml.org 
[lkml]   [2018]   [Jan]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [RFC PATCH v2 6/6] x86/entry/pti: don't switch PGD on when pti_disable is set
From
Date
On 01/11/2018 07:44 AM, Willy Tarreau wrote:
>> I think we also need to be able to dump the actual
>> CR3 value that we entered the kernel with before we start doing too much
>> other funky stuff with the entry code.
> When you say dump, you mean save it somewhere in a per_cpu variable ?

Yeah, I think a per-cpu variable is fine for now. But, that only gives
you a dump from a single entry to the kernel. Ideally, it would be nice
to have a stack of them so you could do things like debug
syscall->fault->oops. Was it the syscall entry or the fault entry that
lead to the oops?

But, the stack gets really fun because of NMIs.

I'm sure Andy Lutomirski has some ideas too.

\
 
 \ /
  Last update: 2018-01-14 23:23    [W:0.217 / U:0.012 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site