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
  • sys.c
Find file BlameHistoryPermalink
  • Miguel Ojeda's avatar
    prctl: move PR_GET_AUXV out of PR_MCE_KILL · 636e3483
    Miguel Ojeda authored Jul 09, 2023
    Somehow PR_GET_AUXV got added into PR_MCE_KILL's switch when the patch was
    applied [1].
    
    Thus move it out of the switch, to the place the patch added it.
    
    In the recently released v6.4 kernel some user could, in principle, be
    already using this feature by mapping the right page and passing the
    PR_GET_AUXV constant as a pointer:
    
        prctl(PR_MCE_KILL, PR_GET_AUXV, ...)
    
    So this does change the behavior for users.  We could keep the bug since
    the other subcases in PR_MCE_KILL (PR_MCE_KILL_CLEAR and PR_MCE_KILL_SET)
    do not overlap.
    
    However, v6.4 may be recent enough (2 weeks old) that moving the lines
    (rather than just adding a new case) does not break anybody?  Moreover,
    the documentation in man-pages was just committed today [2].
    
    Link: https://lkml.kernel.org/r/20230708233344.361854-1-ojeda@kernel.org
    Fixes: ddc65971 ("prctl: add PR_GET_AUXV to copy auxv to userspace")
    Link: https://lore.kernel.org/all/d81864a7f7f43bca6afa2a09fc2e850e4050ab42.1680611394.git.josh@joshtriplett.org/ [1]
    Link: https://git.kernel.org/pub/scm/docs/man-pages/man-pages.git/commit/?id=8cf0c06bfd3c2b219b044d4151c96f0da50af9ad
    
     [2]
    Signed-off-by: default avatarMiguel Ojeda <ojeda@kernel.org>
    Cc: Josh Triplett <josh@joshtriplett.org>
    Cc: <stable@vger.kernel.org>
    Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    636e3483
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7