Commit 9f8f966
arch: arm64: fix user-mode stack guard boundary calculation
z_arm64_stack_corruption_check() computed the user-mode stack guard
page start by subtracting only Z_ARM64_STACK_GUARD_SIZE from
stack_info.start. However, the guard page is located below the
privileged stack area, so CONFIG_PRIVILEGED_STACK_SIZE must also be
subtracted. Without this, the computed guard_start falls inside the
privileged stack instead of the actual guard page, causing stack
overflow detection to miss faults in the guard region.
Fixes zephyrproject-rtos#113388
Signed-off-by: Hongquan Li <hongquan.li@processmission.com>1 parent b07d0d1 commit 9f8f966
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
435 | 435 | | |
436 | 436 | | |
437 | 437 | | |
438 | | - | |
| 438 | + | |
439 | 439 | | |
440 | 440 | | |
441 | 441 | | |
| |||
0 commit comments