FreeRTOS-Kernel/portable/IAR
Gaurav Aggarwal ea9c26f524 Use highest numbered MPU regions for kernel
ARMv7-M allows overlapping MPU regions. When 2 MPU regions overlap, the
MPU configuration of the higher numbered MPU region is applied. For
example, if a memory area is covered by 2 MPU regions 0 and 1, the
memory permissions for MPU region 1 are applied.

We use 5 MPU regions for kernel code and kernel data protections and
leave the remaining for the application writer. We were using lowest
numbered MPU regions (0-4) for kernel protections and leaving the
remaining for the application writer. The application writer could
configure those higher numbered MPU regions to override kernel
protections.

This commit changes the code to use highest numbered MPU regions for
kernel protections and leave the remaining for the application writer.
This ensures that the application writer cannot override kernel
protections.

We thank the SecLab team at Northeastern University for reporting this
issue.

Signed-off-by: Gaurav Aggarwal <aggarg@amazon.com>
2022-09-17 00:03:08 +05:30
..
78K0R Normalize files with mixed line endings (introduced in commit 3a413d1) 2021-06-01 17:55:18 -07:00
ARM_CA5_No_GIC Normalize files with mixed line endings (introduced in commit 3a413d1) 2021-06-01 17:55:18 -07:00
ARM_CA9 Normalize files with mixed line endings (introduced in commit 3a413d1) 2021-06-01 17:55:18 -07:00
ARM_CM0 Add configSYSTICK_CLOCK_HZ to Cortex-M0 ports (#484) 2022-04-08 11:13:11 -07:00
ARM_CM3 fix typo (#399) 2021-10-06 15:32:07 -07:00
ARM_CM4F fix typo (#399) 2021-10-06 15:32:07 -07:00
ARM_CM4F_MPU Use highest numbered MPU regions for kernel 2022-09-17 00:03:08 +05:30
ARM_CM7 fix typo (#399) 2021-10-06 15:32:07 -07:00
ARM_CM23 Add suppport for ARM CM55 (#494) 2022-06-01 15:00:10 -07:00
ARM_CM23_NTZ/non_secure Add suppport for ARM CM55 (#494) 2022-06-01 15:00:10 -07:00
ARM_CM33 Add suppport for ARM CM55 (#494) 2022-06-01 15:00:10 -07:00
ARM_CM33_NTZ/non_secure Add suppport for ARM CM55 (#494) 2022-06-01 15:00:10 -07:00
ARM_CM55 Add suppport for ARM CM55 (#494) 2022-06-01 15:00:10 -07:00
ARM_CM55_NTZ/non_secure Add suppport for ARM CM55 (#494) 2022-06-01 15:00:10 -07:00
ARM_CM85 M85 support (#556) 2022-09-13 22:08:25 +05:30
ARM_CM85_NTZ/non_secure M85 support (#556) 2022-09-13 22:08:25 +05:30
ARM_CRx_No_GIC Normalize files with mixed line endings (introduced in commit 3a413d1) 2021-06-01 17:55:18 -07:00
ATMega323 Normalize files with mixed line endings (introduced in commit 3a413d1) 2021-06-01 17:55:18 -07:00
AtmelSAM7S64 Normalize files with mixed line endings (introduced in commit 3a413d1) 2021-06-01 17:55:18 -07:00
AtmelSAM9XE Normalize files with mixed line endings (introduced in commit 3a413d1) 2021-06-01 17:55:18 -07:00
AVR32_UC3 Update license text for ports that were previously missed. 2021-05-27 19:57:55 -07:00
AVR_AVRDx Add SPDX-License-Identifier: MIT to MIT licensed files. 2021-05-27 19:57:55 -07:00
AVR_Mega0 Add SPDX-License-Identifier: MIT to MIT licensed files. 2021-05-27 19:57:55 -07:00
LPC2000 Normalize files with mixed line endings (introduced in commit 3a413d1) 2021-06-01 17:55:18 -07:00
MSP430 Normalize files with mixed line endings (introduced in commit 3a413d1) 2021-06-01 17:55:18 -07:00
MSP430X Normalize files with mixed line endings (introduced in commit 3a413d1) 2021-06-01 17:55:18 -07:00
RISC-V Normalize files with mixed line endings (introduced in commit 3a413d1) 2021-06-01 17:55:18 -07:00
RL78 Migrated RL78/IAR port to EWRL78v3+ (#461) 2022-02-24 10:04:46 -07:00
RX100 Normalize files with mixed line endings (introduced in commit 3a413d1) 2021-06-01 17:55:18 -07:00
RX600 Normalize files with mixed line endings (introduced in commit 3a413d1) 2021-06-01 17:55:18 -07:00
RX700v3_DPFPU Add SPDX-License-Identifier: MIT to MIT licensed files. 2021-05-27 19:57:55 -07:00
RXv2 Normalize files with mixed line endings (introduced in commit 3a413d1) 2021-06-01 17:55:18 -07:00
STR71x Normalize files with mixed line endings (introduced in commit 3a413d1) 2021-06-01 17:55:18 -07:00
STR75x Normalize files with mixed line endings (introduced in commit 3a413d1) 2021-06-01 17:55:18 -07:00
STR91x Normalize files with mixed line endings (introduced in commit 3a413d1) 2021-06-01 17:55:18 -07:00
V850ES Normalize files with mixed line endings (introduced in commit 3a413d1) 2021-06-01 17:55:18 -07:00