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
  • linux
  • kernel
  • rseq.c
Find file BlameHistoryPermalink
  • Mathieu Desnoyers's avatar
    rseq: Kill process when unknown flags are encountered in ABI structures · c17a6ff9
    Mathieu Desnoyers authored Jun 22, 2022
    
    
    rseq_abi()->flags and rseq_abi()->rseq_cs->flags 29 upper bits are
    currently unused.
    
    The current behavior when those bits are set is to ignore them. This is
    not an ideal behavior, because when future features will start using
    those flags, if user-space fails to correctly validate that the kernel
    indeed supports those flags (e.g. with a new sys_rseq flags bit) before
    using them, it may incorrectly assume that the kernel will handle those
    flags way when in fact those will be silently ignored on older kernels.
    
    Validating that unused flags bits are cleared will allow a smoother
    transition when those flags will start to be used by allowing
    applications to fail early, and obviously, when they attempt to use the
    new flags on an older kernel that does not support them.
    
    Signed-off-by: default avatarMathieu Desnoyers <mathieu.desnoyers@efficios.com>
    Signed-off-by: default avatarPeter Zijlstra (Intel) <peterz@infradead.org>
    Signed-off-by: default avatarIngo Molnar <mingo@kernel.org>
    Link: https://lkml.kernel.org/r/20220622194617.1155957-2-mathieu.desnoyers@efficios.com
    c17a6ff9
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7