mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-08-19 17:48:33 -04:00
ARMv8.1-M: Add task dedicated PAC key support (#1195)
armv8.1-m: Add task dedicated PAC key To harden the security, each task is assigned a dedicated PAC key, so that attackers needs to guess the all the tasks' PAC keys right to exploit the system using Return Oriented Programming. The kernel is now updated to support the following: * A PAC key set with a random number generated and is saved in the task's context when a task is created. * As part of scheduling, the task's PAC key is stored/restored to/from the task's context when a task is unscheduled/scheduled from/to run. stack-overflow-check: Introduce portGET_CURRENT_TOP_OF_STACK macro When MPU wrapper v2 is used, the task's context is stored in TCB and `pxTopOfStack`` member of TCB points to the context location in TCB. We, therefore, need to read PSP to find the task's current top of stack. Signed-off-by: Ahmed Ismail <Ahmed.Ismail@arm.com>
This commit is contained in:
parent
c38427eea4
commit
78e0cc778a
87 changed files with 6662 additions and 3530 deletions
2
.github/.cSpellWords.txt
vendored
2
.github/.cSpellWords.txt
vendored
|
@ -106,6 +106,7 @@ CLKSOURCE
|
|||
CLKSTA
|
||||
CLRB
|
||||
CLRF
|
||||
clrm
|
||||
CLRPSW
|
||||
CMCNT
|
||||
CMCON
|
||||
|
@ -678,6 +679,7 @@ pylint
|
|||
pytest
|
||||
pyyaml
|
||||
RAMPZ
|
||||
randomisation
|
||||
RASR
|
||||
Rationalised
|
||||
Raynald
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue