函数逻辑报告 |
Source Code:kernel\sys.c |
Create Date:2022-07-27 10:21:13 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:prctl_set_mm
函数原型:static int prctl_set_mm(int opt, unsigned long addr, unsigned long arg4, unsigned long arg5)
返回类型:int
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| int | opt | |
| unsigned long | addr | |
| unsigned long | arg4 | |
| unsigned long | arg5 |
| 2090 | struct prctl_mm_map prctl_map = {auxiliary vector = NULL, vector size = 0, /proc/$pid/exe link file = - 1, } |
| 2098 | 如果arg5或arg4且opt不等于PR_SET_MM_AUXV且opt不等于PR_SET_MM_MAP且opt不等于PR_SET_MM_MAP_SIZE则返回:负EINVAL |
| 2111 | 如果opt恒等于PR_SET_MM_EXE_FILE则返回:prctl_set_mm_exe_file(mm, (unsignedint)addr) |
| 2114 | 如果opt恒等于PR_SET_MM_AUXV则返回:prctl_set_auxv(mm, addr, arg4) |
| 2117 | 如果addr大于等于TASK_SIZE或addr小于mmap_min_addr则返回:负EINVAL |
| 2127 | lock for reading |
| 2130 | 加自旋锁 |
| 2131 | code section bounds 等于start_code |
| 2133 | data section bounds 等于start_data |
| 2135 | heap for brk() syscall 等于start_brk |
| 2137 | stack starts at 等于start_stack |
| 2144 | 当:opt恒等于PR_SET_MM_START_CODE |
| 2145 | code section bounds 等于addr |
| 2146 | 退出 |
| 2147 | 当:opt恒等于PR_SET_MM_END_CODE |
| 2150 | 当:opt恒等于PR_SET_MM_START_DATA |
| 2151 | data section bounds 等于addr |
| 2152 | 退出 |
| 2153 | 当:opt恒等于PR_SET_MM_END_DATA |
| 2156 | 当:opt恒等于PR_SET_MM_START_STACK |
| 2157 | stack starts at 等于addr |
| 2158 | 退出 |
| 2159 | 当:opt恒等于PR_SET_MM_START_BRK |
| 2160 | heap for brk() syscall 等于addr |
| 2161 | 退出 |
| 2162 | 当:opt恒等于PR_SET_MM_BRK |
| 2165 | 当:opt恒等于PR_SET_MM_ARG_START |
| 2167 | 退出 |
| 2168 | 当:opt恒等于PR_SET_MM_ARG_END |
| 2171 | 当:opt恒等于PR_SET_MM_ENV_START |
| 2172 | vironment variables bounds 等于addr |
| 2173 | 退出 |
| 2174 | 当:opt恒等于PR_SET_MM_ENV_END |
| 2177 | 默认 |
| 2178 | 转到:out |
| 2181 | error等于Check arithmetic relations of passed addresses.* WARNING: we don't require any capability here so be very careful* in what is allowed for modification from userspace. |
| 2193 | 当:opt恒等于PR_SET_MM_START_STACK |
| 2194 | 当:opt恒等于PR_SET_MM_ARG_START |
| 2195 | 当:opt恒等于PR_SET_MM_ARG_END |
| 2196 | 当:opt恒等于PR_SET_MM_ENV_START |
| 2197 | 当:opt恒等于PR_SET_MM_ENV_END |
| 2210 | start_stack等于stack starts at |
| 2216 | error等于0 |
| 2217 | out : |
| 2218 | 自旋锁解锁 |
| 2219 | lease a read lock |
| 2220 | 返回:error |
| 名称 | 描述 |
|---|---|
| SYSCALL_DEFINE5 |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |