lkml.org 
[lkml]   [2018]   [Apr]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCHv3 10/11] arm64: enable pointer authentication
    Date
    Now that all the necessary bits are in place for userspace, add the
    necessary Kconfig logic to allow this to be enabled.

    Signed-off-by: Mark Rutland <mark.rutland@arm.com>
    Cc: Catalin Marinas <catalin.marinas@arm.com>
    Cc: Will Deacon <will.deacon@arm.com>
    ---
    arch/arm64/Kconfig | 23 +++++++++++++++++++++++
    1 file changed, 23 insertions(+)

    diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig
    index eb2cf4938f6d..d6ce16b1ee47 100644
    --- a/arch/arm64/Kconfig
    +++ b/arch/arm64/Kconfig
    @@ -1127,6 +1127,29 @@ config ARM64_RAS_EXTN

    endmenu

    +menu "ARMv8.3 architectural features"
    +
    +config ARM64_PTR_AUTH
    + bool "Enable support for pointer authentication"
    + default y
    + help
    + Pointer authentication (part of the ARMv8.3 Extensions) provides
    + instructions for signing and authenticating pointers against secret
    + keys, which can be used to mitigate Return Oriented Programming (ROP)
    + and other attacks.
    +
    + This option enables these instructions at EL0 (i.e. for userspace).
    +
    + Choosing this option will cause the kernel to initialise secret keys
    + for each process at exec() time, with these keys being
    + context-switched along with the process.
    +
    + The feature is detected at runtime. If the feature is not present in
    + hardware it will not be advertised to userspace nor will it be
    + enabled.
    +
    +endmenu
    +
    config ARM64_SVE
    bool "ARM Scalable Vector Extension support"
    default y
    --
    2.11.0
    \
     
     \ /
      Last update: 2018-04-17 20:39    [W:3.140 / U:0.100 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site