x86: correct size for stack bound check for privileged stack
Previous commit changed the privileged stack size to be using kconfig CONFIG_PRIVILEGED_STACK_SIZE instead of simply CONFIG_MMU_PAGE_SIZE. However, the stack bound check function was still using the MMU page size, so fix that. Signed-off-by: Daniel Leung <daniel.leung@intel.com>
This commit is contained in:
parent
ac5835565b
commit
94997a026f
|
@ -72,7 +72,7 @@ bool z_x86_check_stack_bounds(uintptr_t addr, size_t size, uint16_t cs)
|
|||
* If we get here, we must have been doing a syscall, check
|
||||
* privilege elevation stack bounds
|
||||
*/
|
||||
start = _current->stack_info.start - CONFIG_MMU_PAGE_SIZE;
|
||||
start = _current->stack_info.start - CONFIG_PRIVILEGED_STACK_SIZE;
|
||||
end = _current->stack_info.start;
|
||||
#endif /* CONFIG_USERSPACE */
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue