lkml.org 
[lkml]   [2019]   [Feb]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 4.4 45/65] arm64: hyp-stub: Forbid kprobing of the hyp-stub
    Date
    4.4-stable review patch.  If anyone has any objections, please let me know.

    ------------------

    From: James Morse <james.morse@arm.com>

    commit 8fac5cbdfe0f01254d9d265c6aa1a95f94f58595 upstream.

    The hyp-stub is loaded by the kernel's early startup code at EL2
    during boot, before KVM takes ownership later. The hyp-stub's
    text is part of the regular kernel text, meaning it can be kprobed.

    A breakpoint in the hyp-stub causes the CPU to spin in el2_sync_invalid.

    Add it to the __hyp_text.

    Signed-off-by: James Morse <james.morse@arm.com>
    Cc: stable@vger.kernel.org
    Signed-off-by: Will Deacon <will.deacon@arm.com>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

    ---
    arch/arm64/kernel/hyp-stub.S | 2 ++
    1 file changed, 2 insertions(+)

    --- a/arch/arm64/kernel/hyp-stub.S
    +++ b/arch/arm64/kernel/hyp-stub.S
    @@ -26,6 +26,8 @@
    #include <asm/virt.h>

    .text
    + .pushsection .hyp.text, "ax"
    +
    .align 11

    ENTRY(__hyp_stub_vectors)

    \
     
     \ /
      Last update: 2019-02-04 12:08    [W:4.615 / U:0.172 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site