[PATCH] arm64: always enable DEBUG_RODATA and remove the Kconfig option
Kees Cook
keescook at chromium.org
Thu Aug 25 11:16:11 PDT 2016
On Thu, Aug 25, 2016 at 12:23 PM, Mark Rutland <mark.rutland at arm.com> wrote:
> Follow the example set by x86 in commit 9ccaf77cf05915f5 ("x86/mm:
> Always enable CONFIG_DEBUG_RODATA and remove the Kconfig option"), and
> make these protections a fundamental security feature rather than an
> opt-in. This also results in a minor code simplification.
>
> For those rare cases when users wish to disable this protection (e.g.
> for debugging), this can be done by passing 'rodata=off' on the command
> line.
>
> As DEBUG_RODATA_ALIGN is only intended to address a performance/memory
> tradeoff, and does not affect correctness, this is left user-selectable.
> DEBUG_MODULE_RONX is also left user-selectable until the core code
> provides a boot-time option to disable the protection for debugging
> use-cases.
>
> Signed-off-by: Mark Rutland <mark.rutland at arm.com>
> Cc: Ard Biesheuvel <ard.biesheuvel at linaro.org>
> Cc: Catalin Marinas <catalin.marinas at arm.com>
> Cc: Kees Cook <keescook at chromium.org>
> Cc: Laura Abbott <labbott at redhat.com>
> Cc: Will Deacon <will.deacon at arm.com>
Awesome!
Acked-by: Kees Cook <keescook at chromium.org>
-Kees
--
Kees Cook
Nexus Security
More information about the linux-arm-kernel
mailing list