Lines Matching refs:stack
26 * stack frame (if possible).
29 * NOT_STACK: not at all on the stack
30 * GOOD_FRAME: fully within a valid stack frame
31 * GOOD_STACK: fully on the stack (when can't do frame-checking)
32 * BAD_STACK: error condition (invalid stack position or bad stack frame)
36 const void * const stack = task_stack_page(current);
37 const void * const stackend = stack + THREAD_SIZE;
40 /* Object is not on the stack at all. */
41 if (obj + len <= stack || stackend <= obj)
45 * Reject: object partially overlaps the stack (passing the
46 * check above means at least one end is within the stack,
47 * so if this check fails, the other end is outside the stack).
49 if (obj < stack || stackend < obj + len)
53 ret = arch_within_stack_frames(stack, stackend, obj, len);
64 * __check_object_size() function. Normal stack buffer usage should never
252 * - fully contained by stack (or stack frame, when available)
268 /* Check for bad stack object. */
271 /* Object is not touching the current process stack. */
278 * process stack (when frame checking not available).
282 usercopy_abort("process stack", NULL, to_user, 0, n);