Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\fpu\xstate.c Create Date:2022-07-28 07:50:40
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Validate an xstate header supplied by userspace (ptrace or sigreturn)

Proto:int validate_xstate_header(const struct xstate_header *hdr)

Type:int

Parameter:

TypeParameterName
const struct xstate_header *hdr
482  If xfeatures & ( ~Mask of xstate features supported by the CPU and the kernel: | Supervisor features ) Then Return -EINVAL
486  If xcomp_bv Then Return -EINVAL
493  BUILD_BUG_ON - break compile if a condition is true( size of reserved != 48)
496  If memchr_inv - Find an unmatching character in an area of memory.*@start: The memory area*@c: Find a character other than c*@bytes: The size of the area.* returns the address of the first character other than @c, or %NULL Then Return -EINVAL
499  Return 0
Caller
NameDescribe
__fpu__restore_sig
copy_kernel_to_xstateConvert from a ptrace standard-format kernel buffer to kernel XSAVES format* and copy to the target thread. This is called from xstateregs_set().
copy_user_to_xstateConvert from a ptrace or sigreturn standard-format user-space buffer to* kernel XSAVES format and copy to the target thread. This is called from* xstateregs_set(), as well as potentially from the sigreturn() and* rt_sigreturn() system calls.