From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752242AbbKXAGX (ORCPT ); Mon, 23 Nov 2015 19:06:23 -0500 Received: from mga14.intel.com ([192.55.52.115]:27278 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751881AbbKXAGV (ORCPT ); Mon, 23 Nov 2015 19:06:21 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.20,338,1444719600"; d="scan'208";a="692972332" Subject: [PATCH v2 0/2] restrict /dev/mem to idle io memory ranges From: Dan Williams To: linux-kernel@vger.kernel.org Cc: linux-arch@vger.kernel.org, Russell King , Kees Cook , Arnd Bergmann , Greg Kroah-Hartman , "H. Peter Anvin" , Heiko Carstens , Will Deacon , "David S. Miller" , Ingo Molnar , Benjamin Herrenschmidt , Martin Schwidefsky , Andrew Morton , Catalin Marinas , Thomas Gleixner , linux-arm-kernel@lists.infradead.org Date: Mon, 23 Nov 2015 16:05:53 -0800 Message-ID: <20151124000553.26360.57819.stgit@dwillia2-desk3.jf.intel.com> User-Agent: StGit/0.17.1-9-g687f MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Changes since v1 [1]: 1/ Introduce ARCH_HAS_DEVMEM_IS_ALLOWED to flag archs where CONFIG_STRICT_DEVMEM will compile (Ingo) 2/ Drop "default y" for s390 (Heiko) 3/ Fix iomem_is_exclusive() return value in the CONFIG_IO_STRICT_DEVMEM=y case. [1]: https://lkml.org/lkml/2015/11/21/183 --- Dan Williams (2): arch: consolidate CONFIG_STRICT_DEVM in lib/Kconfig.debug restrict /dev/mem to idle io memory ranges arch/arm/Kconfig | 1 + arch/arm/Kconfig.debug | 14 -------------- arch/arm64/Kconfig | 1 + arch/arm64/Kconfig.debug | 14 -------------- arch/frv/Kconfig | 1 + arch/m32r/Kconfig | 1 + arch/powerpc/Kconfig | 1 + arch/powerpc/Kconfig.debug | 12 ------------ arch/s390/Kconfig | 1 + arch/s390/Kconfig.debug | 12 ------------ arch/tile/Kconfig | 4 +--- arch/unicore32/Kconfig | 1 + arch/unicore32/Kconfig.debug | 14 -------------- arch/x86/Kconfig | 1 + arch/x86/Kconfig.debug | 17 ----------------- kernel/resource.c | 11 +++++++++-- lib/Kconfig.debug | 39 +++++++++++++++++++++++++++++++++++++++ 17 files changed, 57 insertions(+), 88 deletions(-)