Received: by 10.223.185.116 with SMTP id b49csp844780wrg; Tue, 20 Feb 2018 08:46:21 -0800 (PST) X-Google-Smtp-Source: AH8x227lQyjrL1Ltjn7FLegwTqC4LXXAxNLdXGdDw93619K/oLMUgzJ0i5+9xoCe50LEeqkzOTUG X-Received: by 2002:a17:902:e85:: with SMTP id 5-v6mr223085plx.208.1519145181517; Tue, 20 Feb 2018 08:46:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519145181; cv=none; d=google.com; s=arc-20160816; b=ivkG4hf0WtD4OThxl1esHDYloY87ltosOdJW9+a+doI7CEav8hGZDLhlz+jtjFj3FK rmhdL5mRYrJ0TA09yeZHRNatZFvXMdVGQSYs9KsiB7Y3aeo/h1wGfVYFGdmQHEjfwSn3 Skm54yAfhoFxKfXb5Y9N3d76Hc61ksaAslWKEQZ9ZQg+JGJkYwkiAVp4PBGpOWNoVvut Zz30Wm99zkvSHrD8oYhGQkTyjqko3lMN8GmsVaIV/WlqhKTPnUIx6IuaE7SOZ4jXHkvx mpkUkqyTkwavCFKeBNCH/qAOKd3Ys7sUaKY6XdTs9/UpY3BjKkqNd5QkmJ56djdvCqNu XWWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=QAOe9pcWjuzQanN1KGEUAVsZhlDmyF+5MNB2DScYF5Q=; b=n+Nqs3qrtSwkie2lmpk3EP3c8LJNnaoiXqMHeBPpnLlvOc3AhYmYr5Y9JcLgrob/W8 8tedFK/deeh0W8N3AyPR7NvJPOXYFSq10vIfGKvRq3cDLDkAa99iV9T9MnzZrbHPPNxc yTGxqGiHW6VIvRDQ81qs6QJulRdXUY8ZHDbexsXrb/CA1VuoZlO0tFdb5uhjNLe2rH5I HXDyFMXBEAySdrw4yxyKp5RouYwO0UX2BWg7cX55xf0FFEHpRkfN3ltV1zTQR0XB+9gw +vNNaZT8kJZIlXaHEqo1I2EnpknoQ0u2H6nct4s7eH8YdMAcAlt04oYfajm+F3CG6Ddy vilw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j11si6433493pgq.634.2018.02.20.08.46.06; Tue, 20 Feb 2018 08:46:21 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752977AbeBTQpV (ORCPT + 99 others); Tue, 20 Feb 2018 11:45:21 -0500 Received: from mail-oi0-f68.google.com ([209.85.218.68]:41483 "EHLO mail-oi0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752249AbeBTQpT (ORCPT ); Tue, 20 Feb 2018 11:45:19 -0500 Received: by mail-oi0-f68.google.com with SMTP id e10so6565278oiy.8 for ; Tue, 20 Feb 2018 08:45:19 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=QAOe9pcWjuzQanN1KGEUAVsZhlDmyF+5MNB2DScYF5Q=; b=BiE0kWdv42YlModRRg1+j9oTjnrU9RFurpnaKaRicyqEQkF/7PffwHltu6pgBWcLMq Pi7vBN6LzM2g9cSleL6HVcUTe7NzjkRl4iaUmhiy4U23xotdD5Tn1pOiIoiZ70I3N8pk fUGM4xnxCPjJ44P0RthaeG4Xce78WI40fArnTZ5axSTh1S+pclhxIV4EovJU5FEqJSbm GSyDFju/vAxEhcu4UPTK8/FOfixyR7ZbwGuaJaZezlGpYQM7a2yQQucUY8FeXiSAnTD4 m33yj80kvbUA/2/acACCjIV/7h0AGoY99/4EvGmB1hq0CYnu6V2p0q+LnIJhCbzOk2wI 4lpw== X-Gm-Message-State: APf1xPA85ecJ5yuy8fZf+Fqk24SAV80Vj2D4dndxnGMjSYRok9Z8NMvo 609h3ZGuuWyztrb64LsPEeau1HnvPiM= X-Received: by 10.202.28.15 with SMTP id c15mr151507oic.243.1519145118414; Tue, 20 Feb 2018 08:45:18 -0800 (PST) Received: from ?IPv6:2601:602:9802:a8dc::f21a? ([2601:602:9802:a8dc::f21a]) by smtp.gmail.com with ESMTPSA id 125sm13822814oig.56.2018.02.20.08.45.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 20 Feb 2018 08:45:17 -0800 (PST) Subject: Re: [PATCH] ARM: make CONFIG_DEBUG_WX depend on MMU To: Arnd Bergmann , Russell King Cc: Kees Cook , Jinbum Park , Tony Lindgren , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org References: <20180220150932.3285766-1-arnd@arndb.de> From: Laura Abbott Message-ID: Date: Tue, 20 Feb 2018 08:45:10 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 In-Reply-To: <20180220150932.3285766-1-arnd@arndb.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 02/20/2018 07:09 AM, Arnd Bergmann wrote: > Without CONFIG_MMU, this results in a build failure: > > ./arch/arm/include/asm/memory.h:92:23: error: initializer element is not constant > #define VECTORS_BASE vectors_base > arch/arm/mm/dump.c:32:4: note: in expansion of macro 'VECTORS_BASE' > { VECTORS_BASE, "Vectors" }, > > arch/arm/mm/dump.c:71:11: error: 'L_PTE_USER' undeclared here (not in a function); did you mean 'VTIME_USER'? > .mask = L_PTE_USER, > ^~~~~~~~~~ > > Obviously the feature only makes sense with an MMU, so let's add the > dependency here. > Acked-by: Laura Abbott > Fixes: a8e53c151fe7 ("ARM: 8737/1: mm: dump: add checking for writable and executable") > Signed-off-by: Arnd Bergmann > --- > arch/arm/Kconfig.debug | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/arch/arm/Kconfig.debug b/arch/arm/Kconfig.debug > index 7b3d9c5c73bb..6db106b5b9e9 100644 > --- a/arch/arm/Kconfig.debug > +++ b/arch/arm/Kconfig.debug > @@ -22,6 +22,7 @@ config ARM_PTDUMP_DEBUGFS > > config DEBUG_WX > bool "Warn on W+X mappings at boot" > + depends on MMU > select ARM_PTDUMP_CORE > ---help--- > Generate a warning if any W+X mappings are found at boot. >