函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\keys\keyctl_pkey.c Create Date:2022-07-27 20:02:13
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Verify a signature

函数原型:long keyctl_pkey_verify(const struct keyctl_pkey_params __user *_params, const char __user *_info, const void __user *_in, const void __user *_in2)

返回类型:long

参数:

类型参数名称
const struct keyctl_pkey_params __user *_params
const char __user *_info
const void __user *_in
const void __user *_in2
291  ret等于Get parameters from userspace. Callers must always call the free function* on params, even if an error is returned.
293  如果ret小于0则转到:error_params
296  ret等于负EOPNOTSUPP
297  如果非asym_verify_signature则转到:error_params
300  in等于memdup_user - duplicate memory region from user space*@src: source address in user space*@len: number of bytes to copy* Return: an ERR_PTR() on failure. Result is physically* contiguous, to be freed by kfree().
301  如果是错误
302  ret等于错误
303  转到:error_params
306  in2等于memdup_user - duplicate memory region from user space*@src: source address in user space*@len: number of bytes to copy* Return: an ERR_PTR() on failure. Result is physically* contiguous, to be freed by kfree().
307  如果是错误
308  ret等于错误
309  转到:error_in
312  op等于kernel_pkey_verify
313  ret等于asym_verify_signature( & params, in, in2)
315  释放内存
316  error_in :
317  释放内存
318  error_params :
319  keyctl_pkey_params_free( & params)
320  返回:ret
调用者
名称描述
COMPAT_SYSCALL_DEFINE5The key control system call, 32-bit compatibility version for 64-bit archs