[lkml]   [2017]   [Nov]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Subject[RESEND PATCH v2 0/4] x86: Tweaks for UMIP
[To tip maintainers: This is a resend to copy the Linux kernel mailing
list. No changes in the patches since my original v2 submission.]

Now that the support for UMIP [1], [2] has been merged in the tip tree,
this series add a couple of tweaks.

Ingo asked for two small additions to select UMIP by default when building
and inform of this feature being enabled [3].

Also, Linus suggested to issue a rate-limited warning whenever the any of
the instructions that UMIP protects are used by user space programs [4].
This is useful to give programs a hint on the reason for which they start
seeing an unexpected SIGSEGV signal. Also, it helps to encourage updates
to those programs and avoid using these instructions if possible.

Thanks and BR,


Changes since V1:
* Capitalize all the instructions' mnemonics in both code and patch
* Correct documentation of umip_pr_warn() to correctly reflect the function
* Update description of patch #4 to describe the update to the existing
rate-limited pr_err().

Ricardo Neri (4):
x86/umip: Select X86_INTEL_UMIP by default
x86/umip: Inform that UMIP has been enabled
x86/umip: Identify the str and sldt instructions
x86/umip: Warn if UMIP-protected instructions are used

arch/x86/Kconfig | 10 ++++-
arch/x86/kernel/cpu/common.c | 2 +
arch/x86/kernel/umip.c | 88 +++++++++++++++++++++++++++++++++++++-------
3 files changed, 85 insertions(+), 15 deletions(-)


 \ /
  Last update: 2017-11-14 07:31    [W:0.071 / U:0.704 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site