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
  • fork.c
Find file BlameHistoryPermalink
  • Al Viro's avatar
    copy_process(): don't use ksys_close() on cleanups · 6fd2fe49
    Al Viro authored Jun 26, 2019
    anon_inode_getfd() should be used *ONLY* in situations when we are
    guaranteed to be past the last failure point (including copying the
    descriptor number to userland, at that).  And ksys_close() should
    not be used for cleanups at all.
    
    anon_inode_getfile() is there for all nontrivial cases like that.
    Just use that...
    
    Fixes: b3e58382
    
     ("clone: add CLONE_PIDFD")
    Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
    Reviewed-by: default avatarJann Horn <jannh@google.com>
    Signed-off-by: default avatarChristian Brauner <christian@brauner.io>
    6fd2fe49
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7