Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\module.c Create Date:2022-07-28 10:58:43
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Sets info->hdr and info->len.

Proto:static int copy_module_from_user(const void __user *umod, unsigned long len, struct load_info *info)

Type:int

Parameter:

TypeParameterName
const void __user *umod
unsigned longlen
struct load_info *info
2983  len = len
2984  If len < size of *hdr Then Return -ENOEXEC
2987  err = security_kernel_load_data(LOADING_MODULE)
2988  If err Then Return err
2992  hdr = __vmalloc(len, GFP_KERNEL | DOC: Action modifiers* Action modifiers* ~~~~~~~~~~~~~~~~* %__GFP_NOWARN suppresses allocation failure reports.* %__GFP_COMP address compound page metadata.* %__GFP_ZERO returns a zeroed page on success., PAGE_KERNEL)
2994  If Not hdr Then Return -ENOMEM
2997  If copy_chunked_from_user(hdr, umod, len) != 0 Then
2998  vfree(hdr)
2999  Return -EFAULT
3002  Return 0
Caller
NameDescribe
SYSCALL_DEFINE3