• Home
  • Raw
  • Download

Lines Matching refs:prctl_map

1922 static int validate_prctl_map_addr(struct prctl_mm_map *prctl_map)  in validate_prctl_map_addr()  argument
1946 u64 val = *(u64 *)((char *)prctl_map + offsets[i]); in validate_prctl_map_addr()
1957 ((unsigned long)prctl_map->__m1 __op \ in validate_prctl_map_addr()
1958 (unsigned long)prctl_map->__m2) ? 0 : -EINVAL in validate_prctl_map_addr()
1973 if (check_data_rlimit(rlimit(RLIMIT_DATA), prctl_map->brk, in validate_prctl_map_addr()
1974 prctl_map->start_brk, prctl_map->end_data, in validate_prctl_map_addr()
1975 prctl_map->start_data)) in validate_prctl_map_addr()
1986 struct prctl_mm_map prctl_map = { .exe_fd = (u32)-1, }; in prctl_set_mm_map() local
1995 return put_user((unsigned int)sizeof(prctl_map), in prctl_set_mm_map()
1998 if (data_size != sizeof(prctl_map)) in prctl_set_mm_map()
2001 if (copy_from_user(&prctl_map, addr, sizeof(prctl_map))) in prctl_set_mm_map()
2004 error = validate_prctl_map_addr(&prctl_map); in prctl_set_mm_map()
2008 if (prctl_map.auxv_size) { in prctl_set_mm_map()
2012 if (!prctl_map.auxv || in prctl_set_mm_map()
2013 prctl_map.auxv_size > sizeof(mm->saved_auxv)) in prctl_set_mm_map()
2018 (const void __user *)prctl_map.auxv, in prctl_set_mm_map()
2019 prctl_map.auxv_size)) in prctl_set_mm_map()
2027 if (prctl_map.exe_fd != (u32)-1) { in prctl_set_mm_map()
2039 error = prctl_set_mm_exe_file(mm, prctl_map.exe_fd); in prctl_set_mm_map()
2063 mm->start_code = prctl_map.start_code; in prctl_set_mm_map()
2064 mm->end_code = prctl_map.end_code; in prctl_set_mm_map()
2065 mm->start_data = prctl_map.start_data; in prctl_set_mm_map()
2066 mm->end_data = prctl_map.end_data; in prctl_set_mm_map()
2067 mm->start_brk = prctl_map.start_brk; in prctl_set_mm_map()
2068 mm->brk = prctl_map.brk; in prctl_set_mm_map()
2069 mm->start_stack = prctl_map.start_stack; in prctl_set_mm_map()
2070 mm->arg_start = prctl_map.arg_start; in prctl_set_mm_map()
2071 mm->arg_end = prctl_map.arg_end; in prctl_set_mm_map()
2072 mm->env_start = prctl_map.env_start; in prctl_set_mm_map()
2073 mm->env_end = prctl_map.env_end; in prctl_set_mm_map()
2084 if (prctl_map.auxv_size) in prctl_set_mm_map()
2126 struct prctl_mm_map prctl_map = { in prctl_set_mm() local
2167 prctl_map.start_code = mm->start_code; in prctl_set_mm()
2168 prctl_map.end_code = mm->end_code; in prctl_set_mm()
2169 prctl_map.start_data = mm->start_data; in prctl_set_mm()
2170 prctl_map.end_data = mm->end_data; in prctl_set_mm()
2171 prctl_map.start_brk = mm->start_brk; in prctl_set_mm()
2172 prctl_map.brk = mm->brk; in prctl_set_mm()
2173 prctl_map.start_stack = mm->start_stack; in prctl_set_mm()
2174 prctl_map.arg_start = mm->arg_start; in prctl_set_mm()
2175 prctl_map.arg_end = mm->arg_end; in prctl_set_mm()
2176 prctl_map.env_start = mm->env_start; in prctl_set_mm()
2177 prctl_map.env_end = mm->env_end; in prctl_set_mm()
2181 prctl_map.start_code = addr; in prctl_set_mm()
2184 prctl_map.end_code = addr; in prctl_set_mm()
2187 prctl_map.start_data = addr; in prctl_set_mm()
2190 prctl_map.end_data = addr; in prctl_set_mm()
2193 prctl_map.start_stack = addr; in prctl_set_mm()
2196 prctl_map.start_brk = addr; in prctl_set_mm()
2199 prctl_map.brk = addr; in prctl_set_mm()
2202 prctl_map.arg_start = addr; in prctl_set_mm()
2205 prctl_map.arg_end = addr; in prctl_set_mm()
2208 prctl_map.env_start = addr; in prctl_set_mm()
2211 prctl_map.env_end = addr; in prctl_set_mm()
2217 error = validate_prctl_map_addr(&prctl_map); in prctl_set_mm()
2240 mm->start_code = prctl_map.start_code; in prctl_set_mm()
2241 mm->end_code = prctl_map.end_code; in prctl_set_mm()
2242 mm->start_data = prctl_map.start_data; in prctl_set_mm()
2243 mm->end_data = prctl_map.end_data; in prctl_set_mm()
2244 mm->start_brk = prctl_map.start_brk; in prctl_set_mm()
2245 mm->brk = prctl_map.brk; in prctl_set_mm()
2246 mm->start_stack = prctl_map.start_stack; in prctl_set_mm()
2247 mm->arg_start = prctl_map.arg_start; in prctl_set_mm()
2248 mm->arg_end = prctl_map.arg_end; in prctl_set_mm()
2249 mm->env_start = prctl_map.env_start; in prctl_set_mm()
2250 mm->env_end = prctl_map.env_end; in prctl_set_mm()