函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\fork.c Create Date:2022-07-27 09:58:20
Last Modify:2020-03-17 11:04:53 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:lone3_stack_valid - check and prepare stack*@kargs: kernel clone args* Verify that the stack arguments userspace gave us are sane.* In addition, set the stack direction for userspace since it's easy for us to* determine.

函数原型:static inline bool clone3_stack_valid(struct kernel_clone_args *kargs)

返回类型:bool

参数:

类型参数名称
struct kernel_clone_args *kargs
2657  如果stack恒等于0则
2658  如果stack_size大于0则返回:false
2660  否则
2661  如果stack_size恒等于0则返回:false
2664  如果非access_ok - Checks if a user space pointer is valid*@addr: User space pointer to start of block to check*@size: Size of block to check* Context: User context only. This function may sleep if pagefaults are* enabled.((void__user * )stack, stack_size)则返回:false
2668  stack加等于stack_size
2672  返回:true
调用者
名称描述
clone3_args_valid