From patchwork Fri Jan 4 17:49:42 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dave Hansen X-Patchwork-Id: 10748617 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 9903217E6 for ; Fri, 4 Jan 2019 17:50:03 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8750A28536 for ; Fri, 4 Jan 2019 17:50:03 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7644328581; Fri, 4 Jan 2019 17:50:03 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 01F9F28536 for ; Fri, 4 Jan 2019 17:50:03 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id C8EE38E00FA; Fri, 4 Jan 2019 12:49:53 -0500 (EST) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id C1B898E00F9; Fri, 4 Jan 2019 12:49:53 -0500 (EST) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id A74C98E00FA; Fri, 4 Jan 2019 12:49:53 -0500 (EST) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-pl1-f200.google.com (mail-pl1-f200.google.com [209.85.214.200]) by kanga.kvack.org (Postfix) with ESMTP id 440F88E00F9 for ; Fri, 4 Jan 2019 12:49:53 -0500 (EST) Received: by mail-pl1-f200.google.com with SMTP id x7so27528213pll.23 for ; Fri, 04 Jan 2019 09:49:53 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-original-authentication-results:x-gm-message-state:from:to:cc :subject:date:message-id:in-reply-to:references; bh=eKAZ6G3d6gxoBe3iXUT4KAJFWCvuF+pxStYF7N4TbTE=; b=cABTrAypABARweOWwrr73WR0E5ACGq4KjlajLNCTU8+vBSmuCrXq7MQJjRQni1QpTc oN4SfPBxIrASilW8H75nXq0CvzNcZ/IbDc3jHwKt9ITGKDfdlbKLs58+Ef/tFHFlOATt VUUh6A8ED/uJOxwyQmlkrv8y3hLsHR9Qf2P97Meq2yLiUAbj0OBaZ6GZQ4YVhF00mX4n 7/5dR9Q017qSOrJtkl7Kukh67u8PQeXlwESejevyCwcbSrTZE58ybivXxHQaWOHRiUIq X3e2qEWQKonsdKScWcRmKeiciyWye/7y5Dxcls8murCRRGK9/SMqyydEF6VLv8PtqOUh 7iog== X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of dave@ray.jf.intel.com designates 134.134.136.31 as permitted sender) smtp.mailfrom=dave@ray.jf.intel.com; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com X-Gm-Message-State: AA+aEWYjDBPjN4+5Ydz4w8MYeXR7WdtA9QJpYRcm3aVEVMhniMpOXICw 94Te4L+QZvkqG6+o/0rMdRnhDWtddAkX1pPKtWRTLuVt3W/3FQNM+HsV0X7sSPRKDh6UqBQ8YwN U61lqutHw+ff2gMBgHUlq9+yVQmtarHps1uJ1Ya/SQr3FLfr1NIKiHm1Rl4HhZ4NwFA== X-Received: by 2002:a62:a1a:: with SMTP id s26mr53487284pfi.31.1546624192879; Fri, 04 Jan 2019 09:49:52 -0800 (PST) X-Google-Smtp-Source: AFSGD/UeuGZn94MD/0NlNwrfY9SW/tULiXx7FhA/OhSRsVO5+Z3JpajB0hffzO58ZdPteJG6CVsO X-Received: by 2002:a62:a1a:: with SMTP id s26mr53487237pfi.31.1546624191947; Fri, 04 Jan 2019 09:49:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546624191; cv=none; d=google.com; s=arc-20160816; b=bzJIhW/lalHHxlWPDkXnIVxs0q3EMBs7H4otoqeW1g8OcAtkBmyAKsGh6Em+hlMRlv iq4r3QViU0e6KkPhIdXzv+nyLnE7g1vlRvXtOKtJjz9Uq3DHTCHM+5cW0cJH+sSCPXTW HhrWdfZgBjMa0keNvaiM7UDe8yjFnIjoYEKIR5cvML93IUiZYDrDkyE9B8LKkGoZiEd3 CPDhi8OjaPF4VKlcITqABKbrF1Zfv61dSdo0QUr3wBrW65zfcJGcZOKsxgOyE6+n+Im7 PoJE+c9FdJb3ft2EZ8hoAHIvEOp4Ab9svG8mu3HWyMoifFWRGUdOIcujnyf25uZ9bryd HFDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:in-reply-to:message-id:date:subject:cc:to:from; bh=eKAZ6G3d6gxoBe3iXUT4KAJFWCvuF+pxStYF7N4TbTE=; b=ijYWpTogiThE4xic+elNUV0JjG/x8lPunItrDH2jHqCBALCvfz/xGnZBmqKAG3MEhy mYaBv/wcaWVvbrgw9p5e+ERrlgBI6u8Wtot/ywLhJLFIIiiMqdOMga0wJdxMaMfFFDaW DZ5F9jq7h5eP+2SU/QO6IhJ+Z6I9I4vlT2QulUrOigZOsZbO1M72fSx1mvz3kfnKRY04 RKe1ehI4h/4+FbyFjct+1omrXT2APk7fBG71qqm3a12N2Axvx7yuyjTuBFqxzj9XCkyE J+sv0it6FseAeCXgTZeEE03fHUq/DU/4OCgP00GnUpHRGTfZrSQGblaM2GzSYcOfMczd kH2Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of dave@ray.jf.intel.com designates 134.134.136.31 as permitted sender) smtp.mailfrom=dave@ray.jf.intel.com; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from mga06.intel.com (mga06.intel.com. [134.134.136.31]) by mx.google.com with ESMTPS id d8si15638076pln.128.2019.01.04.09.49.51 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 04 Jan 2019 09:49:51 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of dave@ray.jf.intel.com designates 134.134.136.31 as permitted sender) client-ip=134.134.136.31; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of dave@ray.jf.intel.com designates 134.134.136.31 as permitted sender) smtp.mailfrom=dave@ray.jf.intel.com; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga104.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 04 Jan 2019 09:49:51 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.56,439,1539673200"; d="scan'208";a="309004799" Received: from unknown (HELO ray) ([10.251.0.234]) by fmsmga005.fm.intel.com with ESMTP; 04 Jan 2019 09:49:50 -0800 Received: by ray (Postfix, from userid 1000) id 71D97E064B; Fri, 4 Jan 2019 09:49:50 -0800 (PST) From: Dave Hansen To: dave.hansen@intel.com Cc: x86@kernel.org, Dave Hansen , Andy Lutomirski , Peter Zijlstra , Paolo Bonzini , Andrew Morton , linux-kernel@vger.kernel.org, linux-mm@kvack.org Subject: [PATCH 4/5] x86/mpx: remove build infratsructure Date: Fri, 4 Jan 2019 09:49:42 -0800 Message-Id: <1546624183-26543-5-git-send-email-dave.hansen@linux.intel.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1546624183-26543-1-git-send-email-dave.hansen@linux.intel.com> References: <1546624183-26543-1-git-send-email-dave.hansen@linux.intel.com> X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: X-Virus-Scanned: ClamAV using ClamSMTP From: Dave Hansen MPX is being removed from the kernel due to a lack of support in the toolchain going forward (gcc). Remove the Kconfig option and the Makefile line. This makes arch/x86/mm/mpx.c and anything under an #ifdef for X86_INTEL_MPX dead code. Signed-off-by: Dave Hansen --- arch/x86/Kconfig | 28 ---------------------------- arch/x86/mm/Makefile | 1 - 2 files changed, 29 deletions(-) diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index e260460..b668833 100644 --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig @@ -1880,34 +1880,6 @@ config X86_INTEL_UMIP specific cases in protected and virtual-8086 modes. Emulated results are dummy. -config X86_INTEL_MPX - prompt "Intel MPX (Memory Protection Extensions)" - def_bool n - # Note: only available in 64-bit mode due to VMA flags shortage - depends on CPU_SUP_INTEL && X86_64 - select ARCH_USES_HIGH_VMA_FLAGS - ---help--- - MPX provides hardware features that can be used in - conjunction with compiler-instrumented code to check - memory references. It is designed to detect buffer - overflow or underflow bugs. - - This option enables running applications which are - instrumented or otherwise use MPX. It does not use MPX - itself inside the kernel or to protect the kernel - against bad memory references. - - Enabling this option will make the kernel larger: - ~8k of kernel text and 36 bytes of data on a 64-bit - defconfig. It adds a long to the 'mm_struct' which - will increase the kernel memory overhead of each - process and adds some branches to paths used during - exec() and munmap(). - - For details, see Documentation/x86/intel_mpx.txt - - If unsure, say N. - config X86_INTEL_MEMORY_PROTECTION_KEYS prompt "Intel Memory Protection Keys" def_bool y diff --git a/arch/x86/mm/Makefile b/arch/x86/mm/Makefile index 4b101dd..8cc3639 100644 --- a/arch/x86/mm/Makefile +++ b/arch/x86/mm/Makefile @@ -45,7 +45,6 @@ obj-$(CONFIG_AMD_NUMA) += amdtopology.o obj-$(CONFIG_ACPI_NUMA) += srat.o obj-$(CONFIG_NUMA_EMU) += numa_emulation.o -obj-$(CONFIG_X86_INTEL_MPX) += mpx.o obj-$(CONFIG_X86_INTEL_MEMORY_PROTECTION_KEYS) += pkeys.o obj-$(CONFIG_RANDOMIZE_MEMORY) += kaslr.o obj-$(CONFIG_PAGE_TABLE_ISOLATION) += pti.o