From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751412AbdKMDAL (ORCPT ); Sun, 12 Nov 2017 22:00:11 -0500 Received: from mga14.intel.com ([192.55.52.115]:24623 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751241AbdKMDAK (ORCPT ); Sun, 12 Nov 2017 22:00:10 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.44,387,1505804400"; d="scan'208";a="148909107" From: Ricardo Neri To: Ingo Molnar , Thomas Gleixner , "H. Peter Anvin" Cc: Borislav Petkov , Andy Lutomirski , Tony Luck , Paolo Bonzini , "Ravi V. Shankar" , x86@kernel.org, ricardo.neri@intel.com, linux-kernel@vger.kernel.org, Ricardo Neri Subject: [PATCH 0/4] x86: Tweaks for UMIP Date: Sun, 12 Nov 2017 18:56:05 -0800 Message-Id: <1510541769-21064-1-git-send-email-ricardo.neri-calderon@linux.intel.com> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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, Ricardo [1]. https://lkml.org/lkml/2017/10/27/699 [2]. https://www.mail-archive.com/linux-kernel@vger.kernel.org/msg1523438.html [3]. https://lkml.org/lkml/2017/11/8/238 [4]. https://lkml.org/lkml/2017/11/8/593 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(-) -- 2.7.4