函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\exec.c Create Date:2022-07-29 10:33:47
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称: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().

函数原型:static int bprm_mm_init(struct linux_binprm *bprm)

返回类型:int

参数:

类型参数名称
struct linux_binprm *bprm
361  struct mm_struct * mm = NULL
363  mm等于mm等于Allocate and initialize an mm_struct.
364  err等于负ENOMEM
365  如果非mm则转到: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  如果err则转到:err
377  返回:0
379  err :
380  如果mm
381  mm = NULL
382  mmdrop(mm)
385  返回:err
调用者
名称描述
__do_execve_filesys_execve() executes a new program.