[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1916262186.58280.1593066248850.JavaMail.zimbra@nod.at>
Date: Thu, 25 Jun 2020 08:24:08 +0200 (CEST)
From: Richard Weinberger <richard@....at>
To: Kees Cook <keescook@...omium.org>
Cc: Randy Dunlap <rdunlap@...radead.org>,
Richard Weinberger <richard.weinberger@...il.com>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Prasad Sodagudi <psodagud@...eaurora.org>,
Sami Tolvanen <samitolvanen@...gle.com>,
Amit Daniel Kachhap <amit.kachhap@....com>,
linux-kselftest <linux-kselftest@...r.kernel.org>,
clang-built-linux <clang-built-linux@...glegroups.com>,
linux-kernel <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH drivers/misc 0/4] lkdtm: Various clean ups
----- Ursprüngliche Mail -----
> Von: "Kees Cook" <keescook@...omium.org>
> An: "Randy Dunlap" <rdunlap@...radead.org>
> CC: "Richard Weinberger" <richard.weinberger@...il.com>, "richard" <richard@....at>, "Greg Kroah-Hartman"
> <gregkh@...uxfoundation.org>, "Prasad Sodagudi" <psodagud@...eaurora.org>, "Sami Tolvanen" <samitolvanen@...gle.com>,
> "Amit Daniel Kachhap" <amit.kachhap@....com>, "linux-kselftest" <linux-kselftest@...r.kernel.org>, "clang-built-linux"
> <clang-built-linux@...glegroups.com>, "linux-kernel" <linux-kernel@...r.kernel.org>
> Gesendet: Donnerstag, 25. Juni 2020 08:06:18
> Betreff: Re: [PATCH drivers/misc 0/4] lkdtm: Various clean ups
> On Wed, Jun 24, 2020 at 06:45:47PM -0700, Randy Dunlap wrote:
>> Looks like lkdtm/bugs.c needs to get/use arch/x86/include/asm/processor.h
>> but it actually uses arch/x86/um/asm/processor*.h, which does not have the
>> needed structs etc.
>
> Should I just test for !UML in bugs.c? (This is all for the
> lkdtm_DOUBLE_FAULT() test.) I already do those kinds of checks for the
> lkdtm_UNSET_SMEP() test. e.g.:
Just had a look. Yes, this sounds good to me. UML has CONFIG_X86_32=y but no GDT. :-)
Thanks,
//richard
Powered by blists - more mailing lists