Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Register
  • Sign in
  • L linux
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Kirill Smelkov
  • linux
  • Repository
You need to sign in or sign up before continuing.
  • linux
  • arch
  • arm
  • include
  • asm
  • stackprotector.h
Find file BlameHistoryPermalink
  • Ard Biesheuvel's avatar
    gcc-plugins: arm-ssp: Prepare for THREAD_INFO_IN_TASK support · dfbdcda2
    Ard Biesheuvel authored Sep 18, 2021
    
    
    We will be enabling THREAD_INFO_IN_TASK support for ARM, which means
    that we can no longer load the stack canary value by masking the stack
    pointer and taking the copy that lives in thread_info. Instead, we will
    be able to load it from the task_struct directly, by using the TPIDRURO
    register which will hold the current task pointer when
    THREAD_INFO_IN_TASK is in effect. This is much more straight-forward,
    and allows us to declutter this code a bit while at it.
    
    Note that this means that ARMv6 (non-v6K) SMP systems can no longer use
    this feature, but those are quite rare to begin with, so this is a
    reasonable trade off.
    
    Reviewed-by: default avatarKees Cook <keescook@chromium.org>
    Signed-off-by: default avatarArd Biesheuvel <ardb@kernel.org>
    Reviewed-by: default avatarLinus Walleij <linus.walleij@linaro.org>
    Tested-by: default avatarAmit Daniel Kachhap <amit.kachhap@arm.com>
    dfbdcda2
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7