• Home
  • Raw
  • Download

Lines Matching refs:prctl_map

1914 static int validate_prctl_map_addr(struct prctl_mm_map *prctl_map)  in validate_prctl_map_addr()  argument
1938 u64 val = *(u64 *)((char *)prctl_map + offsets[i]); in validate_prctl_map_addr()
1949 ((unsigned long)prctl_map->__m1 __op \ in validate_prctl_map_addr()
1950 (unsigned long)prctl_map->__m2) ? 0 : -EINVAL in validate_prctl_map_addr()
1965 if (check_data_rlimit(rlimit(RLIMIT_DATA), prctl_map->brk, in validate_prctl_map_addr()
1966 prctl_map->start_brk, prctl_map->end_data, in validate_prctl_map_addr()
1967 prctl_map->start_data)) in validate_prctl_map_addr()
1978 struct prctl_mm_map prctl_map = { .exe_fd = (u32)-1, }; in prctl_set_mm_map() local
1987 return put_user((unsigned int)sizeof(prctl_map), in prctl_set_mm_map()
1990 if (data_size != sizeof(prctl_map)) in prctl_set_mm_map()
1993 if (copy_from_user(&prctl_map, addr, sizeof(prctl_map))) in prctl_set_mm_map()
1996 error = validate_prctl_map_addr(&prctl_map); in prctl_set_mm_map()
2000 if (prctl_map.auxv_size) { in prctl_set_mm_map()
2004 if (!prctl_map.auxv || in prctl_set_mm_map()
2005 prctl_map.auxv_size > sizeof(mm->saved_auxv)) in prctl_set_mm_map()
2010 (const void __user *)prctl_map.auxv, in prctl_set_mm_map()
2011 prctl_map.auxv_size)) in prctl_set_mm_map()
2019 if (prctl_map.exe_fd != (u32)-1) { in prctl_set_mm_map()
2031 error = prctl_set_mm_exe_file(mm, prctl_map.exe_fd); in prctl_set_mm_map()
2055 mm->start_code = prctl_map.start_code; in prctl_set_mm_map()
2056 mm->end_code = prctl_map.end_code; in prctl_set_mm_map()
2057 mm->start_data = prctl_map.start_data; in prctl_set_mm_map()
2058 mm->end_data = prctl_map.end_data; in prctl_set_mm_map()
2059 mm->start_brk = prctl_map.start_brk; in prctl_set_mm_map()
2060 mm->brk = prctl_map.brk; in prctl_set_mm_map()
2061 mm->start_stack = prctl_map.start_stack; in prctl_set_mm_map()
2062 mm->arg_start = prctl_map.arg_start; in prctl_set_mm_map()
2063 mm->arg_end = prctl_map.arg_end; in prctl_set_mm_map()
2064 mm->env_start = prctl_map.env_start; in prctl_set_mm_map()
2065 mm->env_end = prctl_map.env_end; in prctl_set_mm_map()
2076 if (prctl_map.auxv_size) in prctl_set_mm_map()
2118 struct prctl_mm_map prctl_map = { in prctl_set_mm() local
2159 prctl_map.start_code = mm->start_code; in prctl_set_mm()
2160 prctl_map.end_code = mm->end_code; in prctl_set_mm()
2161 prctl_map.start_data = mm->start_data; in prctl_set_mm()
2162 prctl_map.end_data = mm->end_data; in prctl_set_mm()
2163 prctl_map.start_brk = mm->start_brk; in prctl_set_mm()
2164 prctl_map.brk = mm->brk; in prctl_set_mm()
2165 prctl_map.start_stack = mm->start_stack; in prctl_set_mm()
2166 prctl_map.arg_start = mm->arg_start; in prctl_set_mm()
2167 prctl_map.arg_end = mm->arg_end; in prctl_set_mm()
2168 prctl_map.env_start = mm->env_start; in prctl_set_mm()
2169 prctl_map.env_end = mm->env_end; in prctl_set_mm()
2173 prctl_map.start_code = addr; in prctl_set_mm()
2176 prctl_map.end_code = addr; in prctl_set_mm()
2179 prctl_map.start_data = addr; in prctl_set_mm()
2182 prctl_map.end_data = addr; in prctl_set_mm()
2185 prctl_map.start_stack = addr; in prctl_set_mm()
2188 prctl_map.start_brk = addr; in prctl_set_mm()
2191 prctl_map.brk = addr; in prctl_set_mm()
2194 prctl_map.arg_start = addr; in prctl_set_mm()
2197 prctl_map.arg_end = addr; in prctl_set_mm()
2200 prctl_map.env_start = addr; in prctl_set_mm()
2203 prctl_map.env_end = addr; in prctl_set_mm()
2209 error = validate_prctl_map_addr(&prctl_map); in prctl_set_mm()
2232 mm->start_code = prctl_map.start_code; in prctl_set_mm()
2233 mm->end_code = prctl_map.end_code; in prctl_set_mm()
2234 mm->start_data = prctl_map.start_data; in prctl_set_mm()
2235 mm->end_data = prctl_map.end_data; in prctl_set_mm()
2236 mm->start_brk = prctl_map.start_brk; in prctl_set_mm()
2237 mm->brk = prctl_map.brk; in prctl_set_mm()
2238 mm->start_stack = prctl_map.start_stack; in prctl_set_mm()
2239 mm->arg_start = prctl_map.arg_start; in prctl_set_mm()
2240 mm->arg_end = prctl_map.arg_end; in prctl_set_mm()
2241 mm->env_start = prctl_map.env_start; in prctl_set_mm()
2242 mm->env_end = prctl_map.env_end; in prctl_set_mm()