Re: [PATCH 00/11] x86: Supervisor Mode Access Prevention

From: H. Peter Anvin
Date: Mon Sep 24 2012 - 16:51:46 EST


On 09/24/2012 01:43 PM, Kees Cook wrote:
>
> How about this...
>
> mem protection : nx smap smep
>
> Maybe the "why" of a cpu feature being missing from the "mem
> protection" line can stay in printk?
>

Come to think about it, since we use setup_set/clear_cpu_cap we aready
don't list the feature in /proc/cpuinfo already if it isn't enabled.

I would therefore suggest that we simply printk a message if the feature
is disabled.

-hpa
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/