函数逻辑报告 |
Source Code:lib\test_user_copy.c |
Create Date:2022-07-27 07:29:32 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:test_copy_struct_from_user
函数原型:static int test_copy_struct_from_user(char *kmem, char __user *umem, size_t size)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
char * | kmem | |
char __user * | umem | |
size_t | size |
108 | ret等于0 |
112 | umem_src等于kmalloc(size, GFP_KERNEL) |
117 | expected等于kmalloc(size, GFP_KERNEL) |
134 | ret或等于test(py_struct_from_user: copy a struct from userspace*@dst: Destination address, in kernel space, "copy_struct_from_user(usize == ksize) failed") |
136 | ret或等于test(memcmp(kmem, expected, ksize), "copy_struct_from_user(usize == ksize) gives unexpected copy") |
147 | ret或等于test(py_struct_from_user: copy a struct from userspace*@dst: Destination address, in kernel space, "copy_struct_from_user(usize < ksize) failed") |
149 | ret或等于test(memcmp(kmem, expected, ksize), "copy_struct_from_user(usize < ksize) gives unexpected copy") |
157 | ret或等于test(py_struct_from_user: copy a struct from userspace*@dst: Destination address, in kernel space != - E2BIG, "copy_struct_from_user(usize > ksize) didn't give E2BIG") |
169 | ret或等于test(py_struct_from_user: copy a struct from userspace*@dst: Destination address, in kernel space, "copy_struct_from_user(usize > ksize) failed") |
171 | ret或等于test(memcmp(kmem, expected, ksize), "copy_struct_from_user(usize > ksize) gives unexpected copy") |
174 | out_free : |
177 | 返回:ret |
名称 | 描述 |
---|---|
test_user_copy_init |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |