fix incorrect reporting of whether nx is disabled or not
Thanks to Kees Cook for noticing. Message-ID: <20101121070342.GE4617@outflux.net>
This commit is contained in:
parent
61b68ccc4d
commit
ae441b0e31
@ -384,7 +384,7 @@
|
|||||||
void __init x86_report_nx(void)
|
void __init x86_report_nx(void)
|
||||||
{
|
{
|
||||||
if (!cpu_has_nx) {
|
if (!cpu_has_nx) {
|
||||||
+ if (disable_nx)
|
+ if (!disable_nx)
|
||||||
+ printk(KERN_INFO "Using x86 segment limits to approximate NX protection\n");
|
+ printk(KERN_INFO "Using x86 segment limits to approximate NX protection\n");
|
||||||
+ else
|
+ else
|
||||||
+
|
+
|
||||||
|
Loading…
Reference in New Issue
Block a user