lkml.org 
[lkml]   [2019]   [Apr]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 4.9 40/76] powerpc/fsl: Enable runtime patching if nospectre_v2 boot arg is used
    Date
    commit 3bc8ea8603ae4c1e09aca8de229ad38b8091fcb3 upstream.

    If the user choses not to use the mitigations, replace
    the code sequence with nops.

    Signed-off-by: Diana Craciun <diana.craciun@nxp.com>
    Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
    Signed-off-by: Sasha Levin <sashal@kernel.org>
    ---
    arch/powerpc/kernel/setup-common.c | 1 +
    1 file changed, 1 insertion(+)

    diff --git a/arch/powerpc/kernel/setup-common.c b/arch/powerpc/kernel/setup-common.c
    index d5a128f54537..5e7d70c5d065 100644
    --- a/arch/powerpc/kernel/setup-common.c
    +++ b/arch/powerpc/kernel/setup-common.c
    @@ -919,6 +919,7 @@ void __init setup_arch(char **cmdline_p)
    ppc_md.setup_arch();

    setup_barrier_nospec();
    + setup_spectre_v2();

    paging_init();

    --
    2.19.1


    \
     
     \ /
      Last update: 2019-04-15 20:51    [W:4.018 / U:0.968 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site