Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\exec.c Create Date:2022-07-28 20:03:53
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Create a new mm_struct and populate it with a temporary stack* vm_area_struct. We don't have enough context at this point to set the stack* flags, permissions, and offset, so we use temporary values. We'll update* them later in setup_arg_pages().

Proto:static int bprm_mm_init(struct linux_binprm *bprm)

Type:int

Parameter:

TypeParameterName
struct linux_binprm *bprm
361  struct mm_struct * mm = NULL
363  mm = mm = Allocate and initialize an mm_struct.
364  err = -ENOMEM
365  If Not mm Then Go to err
369  Protects ->fs, ->files, ->mm, ->group_info, ->comm, keyring* subscriptions and synchronises with wait4(). Also used in procfs. Also* pins the final release of task.io_context. Also protects ->cpuset and* ->cgroup.subsys[]. And ->vfork_done.
370  rlim_stack = rlim[RLIMIT_STACK]
371  task_unlock(group_leader)
373  err = __bprm_mm_init(bprm)
374  If err Then Go to err
377  Return 0
379  err :
380  If mm Then
381  mm = NULL
382  mmdrop(mm)
385  Return err
Caller
NameDescribe
__do_execve_filesys_execve() executes a new program.