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
  • fs
  • exec.c
Find file BlameHistoryPermalink
  • Eric W. Biederman's avatar
    exec: Implement kernel_execve · be619f7f
    Eric W. Biederman authored Jul 13, 2020
    To allow the kernel not to play games with set_fs to call exec
    implement kernel_execve.  The function kernel_execve takes pointers
    into kernel memory and copies the values pointed to onto the new
    userspace stack.
    
    The calls with arguments from kernel space of do_execve are replaced
    with calls to kernel_execve.
    
    The calls do_execve and do_execveat are made static as there are now
    no callers outside of exec.
    
    The comments that mention do_execve are updated to refer to
    kernel_execve or execve depending on the circumstances.  In addition
    to correcting the comments, this makes it easy to grep for do_execve
    and verify it is not used.
    
    Inspired-by: https://lkml.kernel.org/r/20200627072704.2447163-1-hch@lst.de
    
    
    Reviewed-by: default avatarKees Cook <keescook@chromium.org>
    Link: https://lkml.kernel.org/r/87wo365ikj.fsf@x220.int.ebiederm.org
    
    
    Signed-off-by: default avatar"Eric W. Biederman" <ebiederm@xmission.com>
    be619f7f
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7