Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\fork.c Create Date:2022-07-28 08:58:51
Last Modify:2020-03-17 11:04:53 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:clone3_args_valid

Proto:static bool clone3_args_valid(struct kernel_clone_args *kargs)

Type:bool

Parameter:

TypeParameterName
struct kernel_clone_args *kargs
2678  If flags & ~(All the bits taken by the old clone syscall. | Clear any signal handler and reset to SIG_DFL. ) Then Return false
2685  If flags & (Unused, ignored | signal mask to be sent at exit ) Then Return false
2688  If (flags & (set if signal handlers and blocked signals shared | Clear any signal handler and reset to SIG_DFL. )) == (set if signal handlers and blocked signals shared | Clear any signal handler and reset to SIG_DFL. ) Then Return false
2692  If flags & (Same thread group | set if we want to have the same parent as the cloner ) && exit_signal Then Return false
2696  If Not 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. Then Return false
2699  Return true
Caller
NameDescribe
SYSCALL_DEFINE2lone3 - create a new process with specific properties*@uargs: argument structure*@size: size of @uargs* clone3() is the extensible successor to clone()/clone2().* It takes a struct as argument that is versioned by its size.