From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758445AbcATWhu (ORCPT ); Wed, 20 Jan 2016 17:37:50 -0500 Received: from mga04.intel.com ([192.55.52.120]:46521 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753783AbcATWhs (ORCPT ); Wed, 20 Jan 2016 17:37:48 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.22,322,1449561600"; d="scan'208";a="894957338" Subject: [PATCH] fix CONFIG_IO_STRICT_DEVMEM, do not enable by default From: Dan Williams To: torvalds@linux-foundation.org Cc: Russell King , Kees Cook , Arnd Bergmann , Greg Kroah-Hartman , linux-kernel@vger.kernel.org, Ingo Molnar , Andrew Morton , Larry Finger Date: Wed, 20 Jan 2016 14:37:22 -0800 Message-ID: <20160120223722.13138.83597.stgit@dwillia2-desk3.amr.corp.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 Larry reports: "My PowerBook G4 Aluminum with a 32-bit PPC processor fails to boot for the 4.4-git series". This is likely due to X still needing /dev/mem access on this platform. CONFIG_IO_STRICT_DEVMEM is not yet safe to turn on when CONFIG_STRICT_DEVMEM=y. Remove the default so that old configurations do not change behavior. Fixes: 90a545e98126 ("restrict /dev/mem to idle io memory ranges") Reported-by: Larry Finger Tested-by: Larry Finger Link: http://marc.info/?l=linux-kernel&m=145332012023825&w=2 Cc: Arnd Bergmann Cc: Ingo Molnar Cc: Kees Cook Cc: Russell King Cc: Andrew Morton Cc: Greg Kroah-Hartman Signed-off-by: Dan Williams --- lib/Kconfig.debug | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug index f75a33f29f6e..7d0b49c536c5 100644 --- a/lib/Kconfig.debug +++ b/lib/Kconfig.debug @@ -1919,7 +1919,6 @@ config STRICT_DEVMEM config IO_STRICT_DEVMEM bool "Filter I/O access to /dev/mem" depends on STRICT_DEVMEM - default STRICT_DEVMEM ---help--- If this option is disabled, you allow userspace (root) access to all io-memory regardless of whether a driver is actively using that