[linux-yocto] [kernel-cache][PATCH] features: add Intel Memory Protection Extensions
Mikko Ylinen
mikko.ylinen at linux.intel.com
Thu Mar 9 23:44:28 PST 2017
This commit adds a kernel feature to have the kernel support
for Intel Memory Protection Extensions (MPX).
A quote from kernel arch/x86/Kconfig:
"MPX provides hardware features that can be used in conjuction
with compiler-instrumented code to check memory references. It
is designed to detect buffer overflow or underflow bugs."
Intel MPX is available, e.g., on Skylake and on Goldmont (e.g.,
Intel 570x).
Signed-off-by: Mikko Ylinen <mikko.ylinen at linux.intel.com>
---
features/mpx/mpx.cfg | 1 +
features/mpx/mpx.scc | 4 ++++
2 files changed, 5 insertions(+)
create mode 100644 features/mpx/mpx.cfg
create mode 100644 features/mpx/mpx.scc
diff --git a/features/mpx/mpx.cfg b/features/mpx/mpx.cfg
new file mode 100644
index 00000000..ed1a6dae
--- /dev/null
+++ b/features/mpx/mpx.cfg
@@ -0,0 +1 @@
+CONFIG_X86_INTEL_MPX=y
diff --git a/features/mpx/mpx.scc b/features/mpx/mpx.scc
new file mode 100644
index 00000000..1c9cc2a1
--- /dev/null
+++ b/features/mpx/mpx.scc
@@ -0,0 +1,4 @@
+define KFEATURE_DESCRIPTION "Intel MPX (Memory Protection Extensions)"
+define KFEATURE_COMPATIBILITY arch
+
+kconf hardware mpx.cfg
--
2.11.0
More information about the linux-yocto
mailing list