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
  • arm64
  • kernel
  • stacktrace.c
Find file BlameHistoryPermalink
  • Mark Rutland's avatar
    arm64: unwind: strip PAC from kernel addresses · 04ad99a0
    Mark Rutland authored Mar 13, 2020
    
    
    When we enable pointer authentication in the kernel, LR values saved to
    the stack will have a PAC which we must strip in order to retrieve the
    real return address.
    
    Strip PACs when unwinding the stack in order to account for this.
    
    When function graph tracer is used with patchable-function-entry then
    return_to_handler will also have pac bits so strip it too.
    
    Reviewed-by: default avatarKees Cook <keescook@chromium.org>
    Acked-by: default avatarCatalin Marinas <catalin.marinas@arm.com>
    Reviewed-by: default avatarJames Morse <james.morse@arm.com>
    Signed-off-by: default avatarMark Rutland <mark.rutland@arm.com>
    Signed-off-by: default avatarKristina Martsenko <kristina.martsenko@arm.com>
    [Amit: Re-position ptrauth_strip_insn_pac, comment]
    Signed-off-by: default avatarAmit Daniel Kachhap <amit.kachhap@arm.com>
    Signed-off-by: default avatarCatalin Marinas <catalin.marinas@arm.com>
    04ad99a0
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7