Skip to content
Snippets Groups Projects
Select Git revision
  • 708078f65721b46d82d9934a3f0b36a2b8ad0656
  • openEuler-1.0-LTS default protected
  • openEuler-22.09
  • OLK-5.10
  • openEuler-22.03-LTS
  • openEuler-22.03-LTS-Ascend
  • master
  • openEuler-22.03-LTS-LoongArch-NW
  • openEuler-22.09-HCK
  • openEuler-20.03-LTS-SP3
  • openEuler-21.09
  • openEuler-21.03
  • openEuler-20.09
  • 4.19.90-2210.5.0
  • 5.10.0-123.0.0
  • 5.10.0-60.63.0
  • 5.10.0-60.62.0
  • 4.19.90-2210.4.0
  • 5.10.0-121.0.0
  • 5.10.0-60.61.0
  • 4.19.90-2210.3.0
  • 5.10.0-60.60.0
  • 5.10.0-120.0.0
  • 5.10.0-60.59.0
  • 5.10.0-119.0.0
  • 4.19.90-2210.2.0
  • 4.19.90-2210.1.0
  • 5.10.0-118.0.0
  • 5.10.0-106.19.0
  • 5.10.0-60.58.0
  • 4.19.90-2209.6.0
  • 5.10.0-106.18.0
  • 5.10.0-106.17.0
33 results

arch

  • Clone with SSH
  • Clone with HTTPS
  • user avatar
    Chang S. Bae authored and Thomas Gleixner committed
    Without FSGSBASE, user space cannot change GSBASE other than through a
    PRCTL. The kernel enforces that the user space GSBASE value is postive as
    negative values are used for detecting the kernel space GSBASE value in the
    paranoid entry code.
    
    If FSGSBASE is enabled, user space can set arbitrary GSBASE values without
    kernel intervention, including negative ones, which breaks the paranoid
    entry assumptions.
    
    To avoid this, paranoid entry needs to unconditionally save the current
    GSBASE value independent of the interrupted context, retrieve and write the
    kernel GSBASE and unconditionally restore the saved value on exit. The
    restore happens either in paranoid_exit or in the special exit path of the
    NMI low level code.
    
    All other entry code pathes which use unconditional SWAPGS are not affected
    as they do not depend on the actual content.
    
    [ tglx: Massaged changelogs and comments ]
    
    Suggested-by: default avatarH. Peter Anvin <hpa@zytor.com>
    Suggested-by: default avatarAndy Lutomirski <luto@kernel.org>
    Suggested-by: default avatarThomas Gleixner <tglx@linutronix.de>
    Signed-off-by: default avatarChang S. Bae <chang.seok.bae@intel.com>
    Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
    Cc: Andi Kleen <ak@linux.intel.com>
    Cc: Ravi Shankar <ravi.v.shankar@intel.com>
    Cc: Dave Hansen <dave.hansen@linux.intel.com>
    Link: https://lkml.kernel.org/r/1557309753-24073-13-git-send-email-chang.seok.bae@intel.com
    708078f6
    History
    Name Last commit Last update
    ..