Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SMCCC_ARCH_WORKAROUND_1 #2229

Merged
merged 5 commits into from
Apr 13, 2018
Merged

SMCCC_ARCH_WORKAROUND_1 #2229

merged 5 commits into from
Apr 13, 2018

Commits on Apr 13, 2018

  1. core: add smccc.h

    Adds <smccc.h> introducing new features in SMC calling convention v1.1
    
    See also
    Link: https://developer.arm.com/-/media/developer/pdf/ARM_DEN_0070A_Firmware_interfaces_for_mitigating_CVE-2017-5715.pdf
    
    Reviewed-by: Etienne Carriere <[email protected]>
    Reviewed-by: Jerome Forissier <[email protected]>
    Signed-off-by: Jens Wiklander <[email protected]>
    jenswi-linaro committed Apr 13, 2018
    Configuration menu
    Copy the full SHA
    45a58f8 View commit details
    Browse the repository at this point in the history
  2. core: arm: add thread_smc()

    Adds thread_smc() for simple SMC calls to dispatcher in EL3
    
    Reviewed-by: Etienne Carriere <[email protected]>
    Reviewed-by: Jerome Forissier <[email protected]>
    Signed-off-by: Jens Wiklander <[email protected]>
    jenswi-linaro committed Apr 13, 2018
    Configuration menu
    Copy the full SHA
    e998e76 View commit details
    Browse the repository at this point in the history
  3. core: arm64: provide special rw kernel page at EL0

    Provide a special kernel read/write mapped page while in EL0 if compiled
    with CFG_CORE_UNMAP_CORE_AT_EL0 and CFG_CORE_WORKAROUND_SPECTRE_BP_SEC.
    This page will later be used as a temporary replacement of
    thread_core_local. thread_core_local is not completely replaced, the new
    memory is only used for temporary storage of registers via the stack
    pointer.
    
    Reviewed-by: Etienne Carriere <[email protected]>
    Signed-off-by: Jens Wiklander <[email protected]>
    jenswi-linaro committed Apr 13, 2018
    Configuration menu
    Copy the full SHA
    053ceb7 View commit details
    Browse the repository at this point in the history
  4. core: arm64: use SMCCC_ARCH_WORKAROUND_1

    Use SMCCC_ARCH_WORKAROUND_1 to implement CVE-2017-5715 in AArch64.
    Previous workarounds for CVE-2017-5715 haven't been fully effective.
    
    Fixes CVE-2017-5715
    Reviewed-by: Etienne Carriere <[email protected]>
    Reviewed-by: Jerome Forissier <[email protected]>
    Tested-by: Jerome Forissier <[email protected]> (HiKey960)
    Signed-off-by: Jens Wiklander <[email protected]>
    jenswi-linaro committed Apr 13, 2018
    Configuration menu
    Copy the full SHA
    2bb0bef View commit details
    Browse the repository at this point in the history
  5. core: calculate size of special rx map at EL0

    Calculate the required size the read-only executable mapping of kernel
    mode code while in user mode (EL0) instead of the old hard coded 8k
    size.
    
    Reviewed-by: Etienne Carriere <[email protected]>
    Tested-by: Jens Wiklander <[email protected]> (Juno)
    Signed-off-by: Jens Wiklander <[email protected]>
    jenswi-linaro committed Apr 13, 2018
    Configuration menu
    Copy the full SHA
    32f49cf View commit details
    Browse the repository at this point in the history