Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name: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.

Proto:static inline bool clone3_stack_valid(struct kernel_clone_args *kargs)

Type:bool

Parameter:

TypeParameterName
struct kernel_clone_args *kargs
2657  If stack == 0 Then
2658  If stack_size > 0 Then Return false
2660  Else
2661  If stack_size == 0 Then Return false
2664  If Not 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) Then Return false
2668  stack += stack_size
2672  Return true
Caller
NameDescribe
clone3_args_valid