ACK: [focal:linux-azure][PULL REQUEST] LP#1877425 - linux-azure: Enable FSGSBASE instructions to support SGX

Ian May ian.may at canonical.com
Fri May 15 22:18:47 UTC 2020


Acked-by: Ian May <ian.may at canonical.com>


On 5/15/20 2:13 PM, Marcelo Henrique Cerri wrote:
> BugLink: http://bugs.launchpad.net/bugs/1877425
>
> The following changes since commit 5531dde89b4be1405834b46aeaed5f8fe4e289e9:
>
>   UBUNTU: Ubuntu-azure-5.4.0-1010.10 (2020-04-10 11:19:49 -0500)
>
> are available in the Git repository at:
>
>   git://git.launchpad.net/~mhcerri/ubuntu/+source/linux/+git/azure azure-5.4-fsgsbase
>
> for you to fetch changes up to eac6738f8496d1fe1bc9c8aeec569608630cf57b:
>
>   UBUNTU: SAUCE: Documentation/x86/64: Add documentation for GS/FS addressing mode (2020-05-07 15:35:40 -0300)
>
> ----------------------------------------------------------------
> Andi Kleen (2):
>       UBUNTU: SAUCE: x86/fsgsbase/64: Add intrinsics for FSGSBASE instructions
>       UBUNTU: SAUCE: x86/elf: Enumerate kernel FSGSBASE capability in AT_HWCAP2
>
> Andy Lutomirski (4):
>       UBUNTU: SAUCE: x86/cpu: Add 'unsafe_fsgsbase' to enable CR4.FSGSBASE
>       UBUNTU: SAUCE: x86/entry/64: Clean up paranoid exit
>       UBUNTU: SAUCE: x86/fsgsbase/64: Use FSGSBASE in switch_to() if available
>       UBUNTU: SAUCE: x86/fsgsbase/64: Enable FSGSBASE on 64bit by default and add a chicken bit
>
> Chang S. Bae (9):
>       UBUNTU: SAUCE: x86/ptrace: Prevent ptrace from clearing the FS/GS selector
>       UBUNTU: SAUCE: selftests/x86/fsgsbase: Test GS selector on ptracer-induced GS base write
>       UBUNTU: SAUCE: x86/entry/64: Switch CR3 before SWAPGS in paranoid entry
>       UBUNTU: SAUCE: x86/entry/64: Introduce the FIND_PERCPU_BASE macro
>       UBUNTU: SAUCE: x86/entry/64: Handle FSGSBASE enabled paranoid entry/exit
>       UBUNTU: SAUCE: x86/entry/64: Document GSBASE handling in the paranoid path
>       UBUNTU: SAUCE: x86/fsgsbase/64: Enable FSGSBASE instructions in helper functions
>       UBUNTU: SAUCE: x86/fsgsbase/64: Use FSGSBASE instructions on thread copy and ptrace
>       UBUNTU: SAUCE: selftests/x86/fsgsbase: Test ptracer-induced GS base write with FSGSBASE
>
> Thomas Gleixner (1):
>       UBUNTU: SAUCE: Documentation/x86/64: Add documentation for GS/FS addressing mode
>
> Tony Luck (1):
>       UBUNTU: SAUCE: x86/speculation/swapgs: Check FSGSBASE in enabling SWAPGS mitigation
>
>  Documentation/admin-guide/kernel-parameters.txt |   2 +
>  Documentation/x86/entry_64.rst                  |   9 ++
>  Documentation/x86/x86_64/fsgs.rst               | 199 ++++++++++++++++++++++++
>  Documentation/x86/x86_64/index.rst              |   1 +
>  arch/x86/entry/calling.h                        |  40 +++++
>  arch/x86/entry/entry_64.S                       | 134 ++++++++++++----
>  arch/x86/include/asm/fsgsbase.h                 |  45 ++++--
>  arch/x86/include/asm/inst.h                     |  15 ++
>  arch/x86/include/uapi/asm/hwcap2.h              |   3 +
>  arch/x86/kernel/cpu/bugs.c                      |   6 +-
>  arch/x86/kernel/cpu/common.c                    |  22 +++
>  arch/x86/kernel/process_64.c                    | 107 +++++++++++--
>  arch/x86/kernel/ptrace.c                        |  14 +-
>  tools/testing/selftests/x86/fsgsbase.c          |  24 ++-
>  14 files changed, 549 insertions(+), 72 deletions(-)
>  create mode 100644 Documentation/x86/x86_64/fsgs.rst
>
>




More information about the kernel-team mailing list