lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <bea07eb7-1763-147c-9da5-e70d2fcf876b@redhat.com>
Date:   Tue, 20 Feb 2018 08:45:10 -0800
From:   Laura Abbott <labbott@...hat.com>
To:     Arnd Bergmann <arnd@...db.de>, Russell King <linux@...linux.org.uk>
Cc:     Kees Cook <keescook@...omium.org>,
        Jinbum Park <jinb.park7@...il.com>,
        Tony Lindgren <tony@...mide.com>,
        linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] ARM: make CONFIG_DEBUG_WX depend on MMU

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 <labbott@...hat.com>

> Fixes: a8e53c151fe7 ("ARM: 8737/1: mm: dump: add checking for writable and executable")
> Signed-off-by: Arnd Bergmann <arnd@...db.de>
> ---
>   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.
> 

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ