Lines Matching refs:stack
29 * stack frame (if possible).
32 * NOT_STACK: not at all on the stack
33 * GOOD_FRAME: fully within a valid stack frame
34 * GOOD_STACK: within the current stack (when can't frame-check exactly)
35 * BAD_STACK: error condition (invalid stack position or bad stack frame)
39 const void * const stack = task_stack_page(current);
40 const void * const stackend = stack + THREAD_SIZE;
43 /* Object is not on the stack at all. */
44 if (obj + len <= stack || stackend <= obj)
48 * Reject: object partially overlaps the stack (passing the
49 * check above means at least one end is within the stack,
50 * so if this check fails, the other end is outside the stack).
52 if (obj < stack || stackend < obj + len)
56 ret = arch_within_stack_frames(stack, stackend, obj, len);
60 /* Finally, check stack depth if possible. */
78 * __check_object_size() function. Normal stack buffer usage should never
209 * - fully contained by stack (or stack frame, when available)
225 /* Check for bad stack object. */
228 /* Object is not touching the current process stack. */
235 * process stack (when frame checking not available).
239 usercopy_abort("process stack", NULL, to_user,