Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756474Ab1EPVrZ (ORCPT ); Mon, 16 May 2011 17:47:25 -0400 Received: from mga02.intel.com ([134.134.136.20]:46815 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752303Ab1EPVrY (ORCPT ); Mon, 16 May 2011 17:47:24 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.65,221,1304319600"; d="scan'208";a="643471691" From: "Fenghua Yu" To: "Ingo Molnar" , "Thomas Gleixner" , "H Peter Anvin" , "Asit K Mallick" , "Linus Torvalds" , "Avi Kivity" , "Arjan van de Ven" , "Andrew Morton" , "Andi Kleen" Cc: "linux-kernel" , "Fenghua Yu" Subject: [PATCH v2 0/4] Enable SMEP CPU Feature Date: Mon, 16 May 2011 14:34:41 -0700 Message-Id: <1305581685-5144-1-git-send-email-fenghua.yu@intel.com> X-Mailer: git-send-email 1.7.2 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1278 Lines: 32 From: Fenghua Yu Intel new CPU supports SMEP (Supervisor Mode Execution Protection). SMEP prevents kernel from executing code in application. Updated Intel SDM describes this CPU feature. The document will be published soon. Note: This patch set doesn't enable the SMEP feature in KVM. If it's needed, another patch will be pushed for enabling the feature in KVM. Fenghua Yu (4): x86, cpu: Add CPU flags for SMEP x86, cpu: Add SMEP CPU feature in CR4 x86, head_32/64.S: Enable SMEP x86/kernel/common.c: Disable SMEP by kernel option nosmep Documentation/kernel-parameters.txt | 4 ++++ arch/x86/include/asm/cpufeature.h | 1 + arch/x86/include/asm/processor-flags.h | 1 + arch/x86/kernel/cpu/common.c | 22 ++++++++++++++++++++++ arch/x86/kernel/cpu/scattered.c | 1 + arch/x86/kernel/head_32.S | 17 +++++++++++++---- arch/x86/kernel/head_64.S | 13 +++++++++++-- 7 files changed, 53 insertions(+), 6 deletions(-) -- 1.7.2 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/