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
  • Eric W. Biederman's avatar
    fork: Explicitly set PF_KTHREAD · 753550eb
    Eric W. Biederman authored Apr 11, 2022
    Instead of implicitly inheriting PF_KTHREAD from the parent process
    examine arguments in kernel_clone_args to see if PF_KTHREAD should be
    set.  This makes knowledge of which new threads are kernel threads
    explicit.
    
    This also makes it so that init and the user mode helper processes
    no longer have PF_KTHREAD set.
    
    Link: https://lkml.kernel.org/r/20220506141512.516114-6-ebiederm@xmission.com
    
    
    Signed-off-by: default avatar"Eric W. Biederman" <ebiederm@xmission.com>
    753550eb
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7