Commit-ID: 3c1d32300920a446c67d697cd6b80f012ad06028
Gitweb: http://git.kernel.org/tip/3c1d32300920a446c67d697cd6b80f012ad06028
Author: Qiaowei Ren
AuthorDate: Sun, 7 Jun 2015 11:37:02 -0700
Committer: Ingo Molnar
CommitDate: Tue, 9 Jun 2015 12:24:30 +0200
x86/mpx: Remove redundant
Commit-ID: 3c1d32300920a446c67d697cd6b80f012ad06028
Gitweb: http://git.kernel.org/tip/3c1d32300920a446c67d697cd6b80f012ad06028
Author: Qiaowei Ren qiaowei@intel.com
AuthorDate: Sun, 7 Jun 2015 11:37:02 -0700
Committer: Ingo Molnar mi...@kernel.org
CommitDate: Tue, 9 Jun 2015 12:24:30
Commit-ID: 5776563648f6437ede91c91cbad85862ca682b0b
Gitweb: http://git.kernel.org/tip/5776563648f6437ede91c91cbad85862ca682b0b
Author: Qiaowei Ren
AuthorDate: Fri, 14 Nov 2014 07:18:32 -0800
Committer: Thomas Gleixner
CommitDate: Tue, 18 Nov 2014 00:58:54 +0100
x86, mpx: Add
Commit-ID: 57319d80e1d328e34cb24868a4f4405661485e30
Gitweb: http://git.kernel.org/tip/57319d80e1d328e34cb24868a4f4405661485e30
Author: Qiaowei Ren
AuthorDate: Fri, 14 Nov 2014 07:18:27 -0800
Committer: Thomas Gleixner
CommitDate: Tue, 18 Nov 2014 00:58:53 +0100
x86, mpx: Add MPX
Commit-ID: 4aae7e436fa51faf4bf5d11b175aea82cfe8224a
Gitweb: http://git.kernel.org/tip/4aae7e436fa51faf4bf5d11b175aea82cfe8224a
Author: Qiaowei Ren
AuthorDate: Fri, 14 Nov 2014 07:18:25 -0800
Committer: Thomas Gleixner
CommitDate: Tue, 18 Nov 2014 00:58:53 +0100
x86, mpx: Introduce
Commit-ID: 232b5fff5bad78ad00b94153fa90ca53bef6a444
Gitweb: http://git.kernel.org/tip/232b5fff5bad78ad00b94153fa90ca53bef6a444
Author: Qiaowei Ren
AuthorDate: Fri, 14 Nov 2014 07:18:20 -0800
Committer: Thomas Gleixner
CommitDate: Tue, 18 Nov 2014 00:58:53 +0100
mips: Sync struct
Commit-ID: 53f037b08b5bebf47aa2b574a984e2f9fc7926f2
Gitweb: http://git.kernel.org/tip/53f037b08b5bebf47aa2b574a984e2f9fc7926f2
Author: Qiaowei Ren
AuthorDate: Fri, 14 Nov 2014 07:18:22 -0800
Committer: Thomas Gleixner
CommitDate: Tue, 18 Nov 2014 00:58:53 +0100
ia64: Sync struct
Commit-ID: ee1b58d36aa1b5a79eaba11f5c3633c88231da83
Gitweb: http://git.kernel.org/tip/ee1b58d36aa1b5a79eaba11f5c3633c88231da83
Author: Qiaowei Ren
AuthorDate: Fri, 14 Nov 2014 07:18:19 -0800
Committer: Thomas Gleixner
CommitDate: Tue, 18 Nov 2014 00:58:53 +0100
mpx: Extend siginfo
Commit-ID: ee1b58d36aa1b5a79eaba11f5c3633c88231da83
Gitweb: http://git.kernel.org/tip/ee1b58d36aa1b5a79eaba11f5c3633c88231da83
Author: Qiaowei Ren qiaowei@intel.com
AuthorDate: Fri, 14 Nov 2014 07:18:19 -0800
Committer: Thomas Gleixner t...@linutronix.de
CommitDate: Tue, 18 Nov 2014
Commit-ID: 53f037b08b5bebf47aa2b574a984e2f9fc7926f2
Gitweb: http://git.kernel.org/tip/53f037b08b5bebf47aa2b574a984e2f9fc7926f2
Author: Qiaowei Ren qiaowei@intel.com
AuthorDate: Fri, 14 Nov 2014 07:18:22 -0800
Committer: Thomas Gleixner t...@linutronix.de
CommitDate: Tue, 18 Nov 2014
Commit-ID: 232b5fff5bad78ad00b94153fa90ca53bef6a444
Gitweb: http://git.kernel.org/tip/232b5fff5bad78ad00b94153fa90ca53bef6a444
Author: Qiaowei Ren qiaowei@intel.com
AuthorDate: Fri, 14 Nov 2014 07:18:20 -0800
Committer: Thomas Gleixner t...@linutronix.de
CommitDate: Tue, 18 Nov 2014
Commit-ID: 4aae7e436fa51faf4bf5d11b175aea82cfe8224a
Gitweb: http://git.kernel.org/tip/4aae7e436fa51faf4bf5d11b175aea82cfe8224a
Author: Qiaowei Ren qiaowei@intel.com
AuthorDate: Fri, 14 Nov 2014 07:18:25 -0800
Committer: Thomas Gleixner t...@linutronix.de
CommitDate: Tue, 18 Nov 2014
Commit-ID: 57319d80e1d328e34cb24868a4f4405661485e30
Gitweb: http://git.kernel.org/tip/57319d80e1d328e34cb24868a4f4405661485e30
Author: Qiaowei Ren qiaowei@intel.com
AuthorDate: Fri, 14 Nov 2014 07:18:27 -0800
Committer: Thomas Gleixner t...@linutronix.de
CommitDate: Tue, 18 Nov 2014
Commit-ID: 5776563648f6437ede91c91cbad85862ca682b0b
Gitweb: http://git.kernel.org/tip/5776563648f6437ede91c91cbad85862ca682b0b
Author: Qiaowei Ren qiaowei@intel.com
AuthorDate: Fri, 14 Nov 2014 07:18:32 -0800
Committer: Thomas Gleixner t...@linutronix.de
CommitDate: Tue, 18 Nov 2014
This patch adds new fields about bound violation into siginfo
structure. si_lower and si_upper are respectively lower bound
and upper bound when bound violation is caused.
Signed-off-by: Qiaowei Ren
---
include/uapi/asm-generic/siginfo.h |9 -
kernel/signal.c
.
This patch must be applied after another Dave's commit:
381aa07a9b4e1f82969203e9e4863da2a157781d
Signed-off-by: Dave Hansen
Signed-off-by: Qiaowei Ren
---
arch/x86/include/asm/disabled-features.h |8 +++-
1 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/arch/x86/include/asm
New fields about bound violation are added into general struct
siginfo. This will impact MIPS and IA64, which extend general
struct siginfo. This patch syncs this struct for MIPS with
general version.
Signed-off-by: Qiaowei Ren
---
arch/mips/include/uapi/asm/siginfo.h |4
1 files
es that we could think of, we create them on demand in
the kernel.
Signed-off-by: Qiaowei Ren
---
arch/x86/include/asm/mpx.h | 20 +
arch/x86/kernel/Makefile |1 +
arch/x86/kernel/mpx.c | 101
arch/x86/kernel/traps.c
interfaces to do this in current kernel.
Existing interfaces, like do_mmap_pgoff(), could not stick specific
->vm_ops in the vma_area_struct when a VMA is created. So, this patch
adds MPX specific mmap interface to do the allocation of bounds tables.
Signed-off-by: Qiaowei Ren
---
arc
from merging. We
understand that VM_ flags are scarce and are open to other options.
Signed-off-by: Qiaowei Ren
---
fs/proc/task_mmu.c |1 +
include/linux/mm.h |6 ++
2 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/fs/proc/task_mmu.c b/fs/proc/task_mmu.c
index dfc791c
New fields about bound violation are added into general struct
siginfo. This will impact MIPS and IA64, which extend general
struct siginfo. This patch syncs this struct for IA64 with
general version.
Signed-off-by: Qiaowei Ren
---
arch/ia64/include/uapi/asm/siginfo.h |8 ++--
1 files
This patch adds the Documentation/x86/intel_mpx.txt file with some
information about Intel MPX.
Signed-off-by: Qiaowei Ren
---
Documentation/x86/intel_mpx.txt | 245 +++
1 files changed, 245 insertions(+), 0 deletions(-)
create mode 100644 Documentation/x86
the
generic decoder is very heavyweight not just in terms of performance
but in terms of interface -- because it has to.
Signed-off-by: Qiaowei Ren
---
arch/x86/include/asm/mpx.h | 23
arch/x86/kernel/mpx.c | 299
arch/x86/kernel/traps.c|6
faults while touching the bounds directory
entry. This keeps us from being able to free the tables in this case.
This deficiency will be addressed in later patches.
Signed-off-by: Qiaowei Ren
---
arch/x86/include/asm/mmu_context.h | 16 ++
arch/x86/include/asm/mpx.h |9 +
arch
will still check whether it is changed by users at #BR fault
time.
Signed-off-by: Qiaowei Ren
---
arch/x86/include/asm/mmu_context.h |9
arch/x86/include/asm/mpx.h | 11 +
arch/x86/include/asm/processor.h | 18 +++
arch/x86/kernel/mpx.c | 88 +
tables in kernel is enabled at #BR fault time, and add locking to
protect the access to 'bd_addr'.
* update the documentation file to add more content about on-demand
allocation of bounds tables, etc..
Qiaowei Ren (12):
mm: distinguish VMAs with different vm_ops
x86, mpx: rename cf
According to Intel SDM extension, MPX configuration and status registers
should be BNDCFGU and BNDSTATUS. This patch renames cfg_reg_u and
status_reg to bndcfgu and bndstatus.
Signed-off-by: Qiaowei Ren
---
arch/x86/include/asm/processor.h |4 ++--
1 files changed, 2 insertions(+), 2
According to Intel SDM extension, MPX configuration and status registers
should be BNDCFGU and BNDSTATUS. This patch renames cfg_reg_u and
status_reg to bndcfgu and bndstatus.
Signed-off-by: Qiaowei Ren qiaowei@intel.com
---
arch/x86/include/asm/processor.h |4 ++--
1 files changed, 2
to
protect the access to 'bd_addr'.
* update the documentation file to add more content about on-demand
allocation of bounds tables, etc..
Qiaowei Ren (12):
mm: distinguish VMAs with different vm_ops
x86, mpx: rename cfg_reg_u and status_reg
x86, mpx: add MPX specific mmap interface
x86
the
generic decoder is very heavyweight not just in terms of performance
but in terms of interface -- because it has to.
Signed-off-by: Qiaowei Ren qiaowei@intel.com
---
arch/x86/include/asm/mpx.h | 23
arch/x86/kernel/mpx.c | 299
arch/x86
touching the bounds directory
entry. This keeps us from being able to free the tables in this case.
This deficiency will be addressed in later patches.
Signed-off-by: Qiaowei Ren qiaowei@intel.com
---
arch/x86/include/asm/mmu_context.h | 16 ++
arch/x86/include/asm/mpx.h |9 +
arch
-off-by: Qiaowei Ren qiaowei@intel.com
---
arch/x86/include/asm/mmu_context.h |9
arch/x86/include/asm/mpx.h | 11 +
arch/x86/include/asm/processor.h | 18 +++
arch/x86/kernel/mpx.c | 88
arch/x86/kernel/setup.c
New fields about bound violation are added into general struct
siginfo. This will impact MIPS and IA64, which extend general
struct siginfo. This patch syncs this struct for IA64 with
general version.
Signed-off-by: Qiaowei Ren qiaowei@intel.com
---
arch/ia64/include/uapi/asm/siginfo.h
This patch adds the Documentation/x86/intel_mpx.txt file with some
information about Intel MPX.
Signed-off-by: Qiaowei Ren qiaowei@intel.com
---
Documentation/x86/intel_mpx.txt | 245 +++
1 files changed, 245 insertions(+), 0 deletions(-)
create mode
to do this in current kernel.
Existing interfaces, like do_mmap_pgoff(), could not stick specific
-vm_ops in the vma_area_struct when a VMA is created. So, this patch
adds MPX specific mmap interface to do the allocation of bounds tables.
Signed-off-by: Qiaowei Ren qiaowei@intel.com
---
arch/x86
understand that VM_ flags are scarce and are open to other options.
Signed-off-by: Qiaowei Ren qiaowei@intel.com
---
fs/proc/task_mmu.c |1 +
include/linux/mm.h |6 ++
2 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/fs/proc/task_mmu.c b/fs/proc/task_mmu.c
index dfc791c
New fields about bound violation are added into general struct
siginfo. This will impact MIPS and IA64, which extend general
struct siginfo. This patch syncs this struct for MIPS with
general version.
Signed-off-by: Qiaowei Ren qiaowei@intel.com
---
arch/mips/include/uapi/asm/siginfo.h
could think of, we create them on demand in
the kernel.
Signed-off-by: Qiaowei Ren qiaowei@intel.com
---
arch/x86/include/asm/mpx.h | 20 +
arch/x86/kernel/Makefile |1 +
arch/x86/kernel/mpx.c | 101
arch/x86/kernel/traps.c
.
This patch must be applied after another Dave's commit:
381aa07a9b4e1f82969203e9e4863da2a157781d
Signed-off-by: Dave Hansen dave.han...@linux.intel.com
Signed-off-by: Qiaowei Ren qiaowei@intel.com
---
arch/x86/include/asm/disabled-features.h |8 +++-
1 files changed, 7 insertions(+), 1
This patch adds new fields about bound violation into siginfo
structure. si_lower and si_upper are respectively lower bound
and upper bound when bound violation is caused.
Signed-off-by: Qiaowei Ren qiaowei@intel.com
---
include/uapi/asm-generic/siginfo.h |9 -
kernel/signal.c
he same thing.
* fix warnings for 32 bit arch.
* add more description into these patches.
Changes since v7:
* introduce VM_ARCH_2 flag.
* remove all of the pr_debug()s.
* fix prctl numbers in documentation.
* fix some bugs on bounds tables freeing.
Qiaowei Ren (10):
x86, mpx: int
memory is being dedicated to it. With this
feature, plus some grepping in /proc/$pid/smaps one could take a
pretty good stab at it.
Signed-off-by: Qiaowei Ren
---
arch/x86/Kconfig |4 ++
arch/x86/include/asm/mpx.h | 38 +
arch/x86/mm/Makefile |2 +
arch
();
Signed-off-by: Qiaowei Ren
---
arch/x86/include/asm/cpufeature.h |6 ++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/arch/x86/include/asm/cpufeature.h
b/arch/x86/include/asm/cpufeature.h
index bb9b258..82ec7ed 100644
--- a/arch/x86/include/asm/cpufeature.h
+++ b/arch/x86
This patch adds new fields about bound violation into siginfo
structure. si_lower and si_upper are respectively lower bound
and upper bound when bound violation is caused.
Signed-off-by: Qiaowei Ren
---
include/uapi/asm-generic/siginfo.h |9 -
kernel/signal.c
contain a bounds table.
This is less expensive than (1), but still requires reading a pointer
out of userspace for every VMA that we iterate over.
Signed-off-by: Qiaowei Ren
---
fs/proc/task_mmu.c |1 +
include/linux/mm.h |6 ++
2 files changed, 7 insertions(+), 0 deletions(-)
diff
Due to new fields about bound violation added into struct siginfo,
this patch syncs it with general version to avoid build issue.
Signed-off-by: Qiaowei Ren
---
arch/mips/include/uapi/asm/siginfo.h |4
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/arch/mips/include
somewhere else. We don't have
that room in the kernel address space.
Signed-off-by: Qiaowei Ren
---
arch/x86/include/asm/mpx.h | 20 +++
arch/x86/kernel/Makefile |1 +
arch/x86/kernel/mpx.c | 58
arch/x86/kernel/traps.c
to
check whether one application is mpx enabled.
Signed-off-by: Qiaowei Ren
---
arch/x86/include/asm/mpx.h |1 +
arch/x86/include/asm/processor.h | 18
arch/x86/kernel/mpx.c| 55 ++
include/linux/mm_types.h |3
This patch adds the Documentation/x86/intel_mpx.txt file with some
information about Intel MPX.
Signed-off-by: Qiaowei Ren
---
Documentation/x86/intel_mpx.txt | 127 +++
1 files changed, 127 insertions(+), 0 deletions(-)
create mode 100644 Documentation/x86
in the virtual address region which is being unmapped will be freed also.
Signed-off-by: Qiaowei Ren
---
arch/x86/include/asm/mmu_context.h | 16 +++
arch/x86/include/asm/mpx.h |9 ++
arch/x86/mm/mpx.c | 252
include/asm-generic
the
generic decoder is very heavyweight not just in terms of performance
but in terms of interface -- because it has to.
Signed-off-by: Qiaowei Ren
---
arch/x86/include/asm/mpx.h | 23
arch/x86/kernel/mpx.c | 299
arch/x86/kernel/traps.c|6
the
generic decoder is very heavyweight not just in terms of performance
but in terms of interface -- because it has to.
Signed-off-by: Qiaowei Ren qiaowei@intel.com
---
arch/x86/include/asm/mpx.h | 23
arch/x86/kernel/mpx.c | 299
arch/x86
This patch adds the Documentation/x86/intel_mpx.txt file with some
information about Intel MPX.
Signed-off-by: Qiaowei Ren qiaowei@intel.com
---
Documentation/x86/intel_mpx.txt | 127 +++
1 files changed, 127 insertions(+), 0 deletions(-)
create mode
in the virtual address region which is being unmapped will be freed also.
Signed-off-by: Qiaowei Ren qiaowei@intel.com
---
arch/x86/include/asm/mmu_context.h | 16 +++
arch/x86/include/asm/mpx.h |9 ++
arch/x86/mm/mpx.c | 252
to
check whether one application is mpx enabled.
Signed-off-by: Qiaowei Ren qiaowei@intel.com
---
arch/x86/include/asm/mpx.h |1 +
arch/x86/include/asm/processor.h | 18
arch/x86/kernel/mpx.c| 55 ++
include/linux
somewhere else. We don't have
that room in the kernel address space.
Signed-off-by: Qiaowei Ren qiaowei@intel.com
---
arch/x86/include/asm/mpx.h | 20 +++
arch/x86/kernel/Makefile |1 +
arch/x86/kernel/mpx.c | 58
arch/x86
Due to new fields about bound violation added into struct siginfo,
this patch syncs it with general version to avoid build issue.
Signed-off-by: Qiaowei Ren qiaowei@intel.com
---
arch/mips/include/uapi/asm/siginfo.h |4
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git
contain a bounds table.
This is less expensive than (1), but still requires reading a pointer
out of userspace for every VMA that we iterate over.
Signed-off-by: Qiaowei Ren qiaowei@intel.com
---
fs/proc/task_mmu.c |1 +
include/linux/mm.h |6 ++
2 files changed, 7 insertions(+), 0
This patch adds new fields about bound violation into siginfo
structure. si_lower and si_upper are respectively lower bound
and upper bound when bound violation is caused.
Signed-off-by: Qiaowei Ren qiaowei@intel.com
---
include/uapi/asm-generic/siginfo.h |9 -
kernel/signal.c
();
Signed-off-by: Qiaowei Ren qiaowei@intel.com
---
arch/x86/include/asm/cpufeature.h |6 ++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/arch/x86/include/asm/cpufeature.h
b/arch/x86/include/asm/cpufeature.h
index bb9b258..82ec7ed 100644
--- a/arch/x86/include/asm
memory is being dedicated to it. With this
feature, plus some grepping in /proc/$pid/smaps one could take a
pretty good stab at it.
Signed-off-by: Qiaowei Ren qiaowei@intel.com
---
arch/x86/Kconfig |4 ++
arch/x86/include/asm/mpx.h | 38 +
arch/x86/mm/Makefile
warnings for 32 bit arch.
* add more description into these patches.
Changes since v7:
* introduce VM_ARCH_2 flag.
* remove all of the pr_debug()s.
* fix prctl numbers in documentation.
* fix some bugs on bounds tables freeing.
Qiaowei Ren (10):
x86, mpx: introduce VM_MPX to indicate
memory is being dedicated to it. With this
feature, plus some grepping in /proc/$pid/smaps one could take a
pretty good stab at it.
Signed-off-by: Qiaowei Ren
---
arch/x86/Kconfig |4 ++
arch/x86/include/asm/mpx.h | 38 +
arch/x86/mm/Makefile |2 +
arch
This patch adds new fields about bound violation into siginfo
structure. si_lower and si_upper are respectively lower bound
and upper bound when bound violation is caused.
Signed-off-by: Qiaowei Ren
---
include/uapi/asm-generic/siginfo.h |9 -
kernel/signal.c
somewhere else. We don't have
that room in the kernel address space.
Signed-off-by: Qiaowei Ren
---
arch/x86/include/asm/mpx.h | 20 ++
arch/x86/kernel/Makefile |1 +
arch/x86/kernel/mpx.c | 60
arch/x86/kernel/traps.c
hing.
* fix warnings for 32 bit arch.
* add more description into these patches.
Qiaowei Ren (10):
x86, mpx: introduce VM_MPX to indicate that a VMA is MPX specific
x86, mpx: add MPX specific mmap interface
x86, mpx: add macro cpu_has_mpx
x86, mpx: hook #BR exception handler to allocate
in the virtual address region which is being unmapped will be freed also.
Signed-off-by: Qiaowei Ren
---
arch/x86/include/asm/mmu_context.h | 16 +++
arch/x86/include/asm/mpx.h |9 ++
arch/x86/mm/mpx.c | 181
include/asm-generic
();
Signed-off-by: Qiaowei Ren
---
arch/x86/include/asm/cpufeature.h |6 ++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/arch/x86/include/asm/cpufeature.h
b/arch/x86/include/asm/cpufeature.h
index e265ff9..f302d08 100644
--- a/arch/x86/include/asm/cpufeature.h
+++ b/arch/x86
the
generic decoder is very heavyweight not just in terms of performance
but in terms of interface -- because it has to.
Signed-off-by: Qiaowei Ren
---
arch/x86/include/asm/mpx.h | 23
arch/x86/kernel/mpx.c | 299
arch/x86/kernel/traps.c|6
This patch adds the Documentation/x86/intel_mpx.txt file with some
information about Intel MPX.
Signed-off-by: Qiaowei Ren
---
Documentation/x86/intel_mpx.txt | 127 +++
1 files changed, 127 insertions(+), 0 deletions(-)
create mode 100644 Documentation/x86
contain a bounds table.
This is less expensive than (1), but still requires reading a pointer
out of userspace for every VMA that we iterate over.
Signed-off-by: Qiaowei Ren
---
fs/proc/task_mmu.c |1 +
include/linux/mm.h |2 ++
2 files changed, 3 insertions(+), 0 deletions(-)
diff --git
Due to new fields about bound violation added into struct siginfo,
this patch syncs it with general version to avoid build issue.
Signed-off-by: Qiaowei Ren
---
arch/mips/include/uapi/asm/siginfo.h |4
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/arch/mips/include
to
check whether one application is mpx enabled.
Signed-off-by: Qiaowei Ren
---
arch/x86/include/asm/mpx.h |1 +
arch/x86/include/asm/processor.h | 18
arch/x86/kernel/mpx.c| 56 ++
include/linux/mm_types.h |3
Due to new fields about bound violation added into struct siginfo,
this patch syncs it with general version to avoid build issue.
Signed-off-by: Qiaowei Ren qiaowei@intel.com
---
arch/mips/include/uapi/asm/siginfo.h |4
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git
to
check whether one application is mpx enabled.
Signed-off-by: Qiaowei Ren qiaowei@intel.com
---
arch/x86/include/asm/mpx.h |1 +
arch/x86/include/asm/processor.h | 18
arch/x86/kernel/mpx.c| 56 ++
include/linux
();
Signed-off-by: Qiaowei Ren qiaowei@intel.com
---
arch/x86/include/asm/cpufeature.h |6 ++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/arch/x86/include/asm/cpufeature.h
b/arch/x86/include/asm/cpufeature.h
index e265ff9..f302d08 100644
--- a/arch/x86/include/asm
the
generic decoder is very heavyweight not just in terms of performance
but in terms of interface -- because it has to.
Signed-off-by: Qiaowei Ren qiaowei@intel.com
---
arch/x86/include/asm/mpx.h | 23
arch/x86/kernel/mpx.c | 299
arch/x86
This patch adds the Documentation/x86/intel_mpx.txt file with some
information about Intel MPX.
Signed-off-by: Qiaowei Ren qiaowei@intel.com
---
Documentation/x86/intel_mpx.txt | 127 +++
1 files changed, 127 insertions(+), 0 deletions(-)
create mode
contain a bounds table.
This is less expensive than (1), but still requires reading a pointer
out of userspace for every VMA that we iterate over.
Signed-off-by: Qiaowei Ren qiaowei@intel.com
---
fs/proc/task_mmu.c |1 +
include/linux/mm.h |2 ++
2 files changed, 3 insertions(+), 0
somewhere else. We don't have
that room in the kernel address space.
Signed-off-by: Qiaowei Ren qiaowei@intel.com
---
arch/x86/include/asm/mpx.h | 20 ++
arch/x86/kernel/Makefile |1 +
arch/x86/kernel/mpx.c | 60
arch/x86
warnings for 32 bit arch.
* add more description into these patches.
Qiaowei Ren (10):
x86, mpx: introduce VM_MPX to indicate that a VMA is MPX specific
x86, mpx: add MPX specific mmap interface
x86, mpx: add macro cpu_has_mpx
x86, mpx: hook #BR exception handler to allocate bound tables
x86
memory is being dedicated to it. With this
feature, plus some grepping in /proc/$pid/smaps one could take a
pretty good stab at it.
Signed-off-by: Qiaowei Ren qiaowei@intel.com
---
arch/x86/Kconfig |4 ++
arch/x86/include/asm/mpx.h | 38 +
arch/x86/mm/Makefile
This patch adds new fields about bound violation into siginfo
structure. si_lower and si_upper are respectively lower bound
and upper bound when bound violation is caused.
Signed-off-by: Qiaowei Ren qiaowei@intel.com
---
include/uapi/asm-generic/siginfo.h |9 -
kernel/signal.c
in the virtual address region which is being unmapped will be freed also.
Signed-off-by: Qiaowei Ren qiaowei@intel.com
---
arch/x86/include/asm/mmu_context.h | 16 +++
arch/x86/include/asm/mpx.h |9 ++
arch/x86/mm/mpx.c | 181
ync struct figinfo for mips with general version to avoid
build issue.
Qiaowei Ren (10):
x86, mpx: introduce VM_MPX to indicate that a VMA is MPX specific
x86, mpx: add MPX specific mmap interface
x86, mpx: add macro cpu_has_mpx
x86, mpx: hook #BR exception handler to allocate bound ta
In order to do performance optimization, this patch adds macro
cpu_has_mpx which will directly return 0 when MPX is not supported
by kernel.
Signed-off-by: Qiaowei Ren
---
arch/x86/include/asm/cpufeature.h |6 ++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/arch/x86
contain a bounds table.
This is less expensive than (1), but still requires reading a pointer
out of userspace for every VMA that we iterate over.
Signed-off-by: Qiaowei Ren
---
arch/x86/mm/init_64.c |2 ++
fs/proc/task_mmu.c|1 +
include/linux/mm.h|2 ++
3 files changed, 5
This patch adds new fields about bound violation into siginfo
structure. si_lower and si_upper are respectively lower bound
and upper bound when bound violation is caused.
Signed-off-by: Qiaowei Ren
---
include/uapi/asm-generic/siginfo.h |9 -
kernel/signal.c
.
Signed-off-by: Qiaowei Ren
---
arch/x86/Kconfig |4 +++
arch/x86/include/asm/mpx.h | 38
arch/x86/mm/Makefile |2 +
arch/x86/mm/mpx.c | 58
4 files changed, 102 insertions(+), 0
to
check whether one application is mpx enabled.
Signed-off-by: Qiaowei Ren
---
arch/x86/include/asm/mpx.h |1 +
arch/x86/include/asm/processor.h | 18
arch/x86/kernel/mpx.c| 56 ++
include/linux/mm_types.h |3
This patch sets bound violation fields of siginfo struct in #BR
exception handler by decoding the user instruction and constructing
the faulting pointer.
Signed-off-by: Qiaowei Ren
---
arch/x86/include/asm/mpx.h | 23
arch/x86/kernel/mpx.c | 294
When user memory region is unmapped, related bound tables
become unused and need to be released also. This patch cleanups
these unused bound tables through hooking unmap path.
Signed-off-by: Qiaowei Ren
---
arch/x86/include/asm/mmu_context.h | 16 +++
arch/x86/include/asm/mpx.h |9
This patch adds the Documentation/x86/intel_mpx.txt file with some
information about Intel MPX.
Signed-off-by: Qiaowei Ren
---
Documentation/x86/intel_mpx.txt | 127 +++
1 files changed, 127 insertions(+), 0 deletions(-)
create mode 100644 Documentation/x86
Due to new fields about bound violation added into struct siginfo,
this patch syncs it with general version to avoid build issue.
Signed-off-by: Qiaowei Ren
---
arch/mips/include/uapi/asm/siginfo.h |4
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/arch/mips/include
somewhere else. We don't have
that room in the kernel address space.
Signed-off-by: Qiaowei Ren
---
arch/x86/include/asm/mpx.h | 20 ++
arch/x86/kernel/Makefile |1 +
arch/x86/kernel/mpx.c | 63
arch/x86/kernel/traps.c
somewhere else. We don't have
that room in the kernel address space.
Signed-off-by: Qiaowei Ren qiaowei@intel.com
---
arch/x86/include/asm/mpx.h | 20 ++
arch/x86/kernel/Makefile |1 +
arch/x86/kernel/mpx.c | 63
arch/x86
This patch adds the Documentation/x86/intel_mpx.txt file with some
information about Intel MPX.
Signed-off-by: Qiaowei Ren qiaowei@intel.com
---
Documentation/x86/intel_mpx.txt | 127 +++
1 files changed, 127 insertions(+), 0 deletions(-)
create mode
Due to new fields about bound violation added into struct siginfo,
this patch syncs it with general version to avoid build issue.
Signed-off-by: Qiaowei Ren qiaowei@intel.com
---
arch/mips/include/uapi/asm/siginfo.h |4
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git
When user memory region is unmapped, related bound tables
become unused and need to be released also. This patch cleanups
these unused bound tables through hooking unmap path.
Signed-off-by: Qiaowei Ren qiaowei@intel.com
---
arch/x86/include/asm/mmu_context.h | 16 +++
arch/x86/include/asm
to
check whether one application is mpx enabled.
Signed-off-by: Qiaowei Ren qiaowei@intel.com
---
arch/x86/include/asm/mpx.h |1 +
arch/x86/include/asm/processor.h | 18
arch/x86/kernel/mpx.c| 56 ++
include/linux
1 - 100 of 245 matches
Mail list logo