Re: [PATCH RFC] x86: check for and defend against BIOS memory corruption

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Jeremy Fitzhardinge
Date: Monday, September 8, 2008 - 10:16 am

Hugh Dickins wrote:

Hm, yes, I see what you mean.


Might be problematic.


Well, if we never want the direct map to be non-executable (which I
think would be OK, since all the code is either core kernel or modules
which are mapped elsewhere), then we can set NX on the level4 for the
linear mapping which will make everything below non-executable.


Well, the specific reason I made these changes was to make sure that
there was never more than one entry mapping any kernel page, so that you
can update the page permissions on a kernel page with just one update. 
This is pretty much a requirement for Xen, and very convenient at other
times.  Native will use either L2 or L3 mappings for the kernel and
linear space, and Xen uses L1 mappings, so if we break the aliasing at
the L2 level I can still keep the L1s aliased, but it seems simpler to
set NX on the linear mapping's L4.

    J
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH RFC] x86: check for and defend against BIOS memory ..., Jeremy Fitzhardinge, (Thu Aug 28, 12:52 pm)
Re: [PATCH RFC] x86: check for and defend against BIOS mem ..., Jeremy Fitzhardinge, (Thu Aug 28, 8:28 pm)
Re: [PATCH RFC] x86: check for and defend against BIOS mem ..., Jeremy Fitzhardinge, (Fri Aug 29, 12:21 am)
Re: [PATCH RFC] x86: check for and defend against BIOS mem ..., Jeremy Fitzhardinge, (Fri Aug 29, 12:22 am)
Re: [PATCH RFC] x86: check for and defend against BIOS mem ..., Jeremy Fitzhardinge, (Fri Aug 29, 1:02 am)
Re: [PATCH RFC] x86: check for and defend against BIOS mem ..., Jeremy Fitzhardinge, (Fri Aug 29, 7:08 am)
Re: [PATCH RFC] x86: check for and defend against BIOS mem ..., Jeremy Fitzhardinge, (Fri Aug 29, 7:18 am)
Re: [PATCH RFC] x86: check for and defend against BIOS mem ..., Jeremy Fitzhardinge, (Fri Aug 29, 7:48 am)
Re: [PATCH RFC] x86: check for and defend against BIOS mem ..., Jeremy Fitzhardinge, (Fri Aug 29, 6:15 pm)
Re: [PATCH RFC] x86: check for and defend against BIOS mem ..., Jeremy Fitzhardinge, (Thu Sep 4, 4:04 pm)
Re: [PATCH RFC] x86: check for and defend against BIOS mem ..., Jeremy Fitzhardinge, (Mon Sep 8, 10:16 am)
Re: [PATCH RFC] x86: check for and defend against BIOS mem ..., Jeremy Fitzhardinge, (Mon Sep 8, 12:45 pm)