mirror of
https://github.com/torvalds/linux.git
synced 2026-10-07 05:31:08 -04:00
x86/mm: Do verify W^X at boot up
Straight up revert of commit:
a970174d7a ("x86/mm: Do not verify W^X at boot up")
now that the root cause has been fixed.
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Link: https://lkml.kernel.org/r/[email protected]
This commit is contained in:
1 parent
eb7d389d5b
commit
414ebf148c
1 file changed
-4
@@ -587,10 +587,6 @@ static inline pgprot_t verify_rwx(pgprot_t old, pgprot_t new, unsigned long star
|
||||
{
|
||||
unsigned long end;
|
||||
|
||||
/* Kernel text is rw at boot up */
|
||||
if (system_state == SYSTEM_BOOTING)
|
||||
return new;
|
||||
|
||||
/*
|
||||
* 32-bit has some unfixable W+X issues, like EFI code
|
||||
* and writeable data being in the same page. Disable
|
||||
|
||||
Reference in new issue
Block a user