Re: [PATCH 2/4] x86: clear XD_DISABLED flag on Intel to regain NX

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Andi Kleen
Date: Wednesday, November 10, 2010 - 9:11 am

Kees Cook <kees.cook@canonical.com> writes:

Strictly it's still a bit dangerous to read this MSR without knowing
about the CPU for sure. If you guess wrong you'll die here.

I would rather move this code later into the early init code (before the
second mapping is set up, which is still in time). There the exception
handlers are up and you could handle a #GP if it happens.

-Andi

-- 
ak@linux.intel.com -- Speaking for myself only.
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH 2/4] x86: clear XD_DISABLED flag on Intel to re ..., Andi Kleen, (Wed Nov 10, 9:11 am)