On 2017-03-10 02:44 AM, Mikko Ylinen wrote:
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).
Looks good to me.
Which branches (kernel versions) are the target for this ? 4.8/4.9/4.10 ?
Bruce
Signed-off-by: Mikko Ylinen <[email protected]>
---
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
--
_______________________________________________
linux-yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/linux-yocto