lkml.org 
[lkml]   [2020]   [Apr]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    Subject[PATCH v13 09/12] arm64: disable SCS for hypervisor code
    From
    Disable SCS for code that runs at a different exception level by
    adding __noscs to __hyp_text.

    Suggested-by: James Morse <james.morse@arm.com>
    Signed-off-by: Sami Tolvanen <samitolvanen@google.com>
    Reviewed-by: Kees Cook <keescook@chromium.org>
    Acked-by: Marc Zyngier <maz@kernel.org>
    ---
    arch/arm64/include/asm/kvm_hyp.h | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    diff --git a/arch/arm64/include/asm/kvm_hyp.h b/arch/arm64/include/asm/kvm_hyp.h
    index fe57f60f06a8..875b106c5d98 100644
    --- a/arch/arm64/include/asm/kvm_hyp.h
    +++ b/arch/arm64/include/asm/kvm_hyp.h
    @@ -13,7 +13,7 @@
    #include <asm/kvm_mmu.h>
    #include <asm/sysreg.h>

    -#define __hyp_text __section(.hyp.text) notrace
    +#define __hyp_text __section(.hyp.text) notrace __noscs

    #define read_sysreg_elx(r,nvh,vh) \
    ({ \
    --
    2.26.2.303.gf8c07b1a785-goog
    \
     
     \ /
      Last update: 2020-04-27 18:01    [W:2.590 / U:0.720 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site