kernel: enable CONFIG_DEBUG_WX on aarch64

Message ID 0c5a219d-21e8-9c0d-c3f5-4c516361a8d1@ipfire.org
State Accepted
Commit b5e1ccaee2d8b7419bb04c7d09f014c2bb7028d0
Headers
Series kernel: enable CONFIG_DEBUG_WX on aarch64 |

Commit Message

Peter Müller April 18, 2020, 8:16 a.m. UTC
  Since this is described as 'Generate a warning if any W+X mappings are
found at boot.', it most likely does not break anything and can be
safely enabled.

Fixes: #12373

Cc: Arne Fitzenreiter <arne.fitzenreiter@ipfire.org>
Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
---
 config/kernel/kernel.config.aarch64-ipfire | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Comments

Michael Tremer April 20, 2020, 7:12 a.m. UTC | #1
Acked-by: Michael Tremer <michael.tremer@ipfire.org>

> On 18 Apr 2020, at 09:16, Peter Müller <peter.mueller@ipfire.org> wrote:
> 
> Since this is described as 'Generate a warning if any W+X mappings are
> found at boot.', it most likely does not break anything and can be
> safely enabled.
> 
> Fixes: #12373
> 
> Cc: Arne Fitzenreiter <arne.fitzenreiter@ipfire.org>
> Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
> ---
> config/kernel/kernel.config.aarch64-ipfire | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/config/kernel/kernel.config.aarch64-ipfire b/config/kernel/kernel.config.aarch64-ipfire
> index 32ad2df07..eb914365f 100644
> --- a/config/kernel/kernel.config.aarch64-ipfire
> +++ b/config/kernel/kernel.config.aarch64-ipfire
> @@ -6572,7 +6572,7 @@ CONFIG_IO_STRICT_DEVMEM=y
> # CONFIG_ARM64_PTDUMP_DEBUGFS is not set
> # CONFIG_PID_IN_CONTEXTIDR is not set
> # CONFIG_ARM64_RANDOMIZE_TEXT_OFFSET is not set
> -# CONFIG_DEBUG_WX is not set
> +CONFIG_DEBUG_WX=y
> CONFIG_DEBUG_ALIGN_RODATA=y
> # CONFIG_ARM64_RELOC_TEST is not set
> # CONFIG_CORESIGHT is not set
> -- 
> 2.16.4
  

Patch

diff --git a/config/kernel/kernel.config.aarch64-ipfire b/config/kernel/kernel.config.aarch64-ipfire
index 32ad2df07..eb914365f 100644
--- a/config/kernel/kernel.config.aarch64-ipfire
+++ b/config/kernel/kernel.config.aarch64-ipfire
@@ -6572,7 +6572,7 @@  CONFIG_IO_STRICT_DEVMEM=y
 # CONFIG_ARM64_PTDUMP_DEBUGFS is not set
 # CONFIG_PID_IN_CONTEXTIDR is not set
 # CONFIG_ARM64_RANDOMIZE_TEXT_OFFSET is not set
-# CONFIG_DEBUG_WX is not set
+CONFIG_DEBUG_WX=y
 CONFIG_DEBUG_ALIGN_RODATA=y
 # CONFIG_ARM64_RELOC_TEST is not set
 # CONFIG_CORESIGHT is not set