You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
FreeRTOS-Kernel/portable/GCC
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>
2 years ago
..
ARM7_AT91FR40008 Normalize files with mixed line endings (introduced in commit 3a413d1) 4 years ago
ARM7_AT91SAM7S Normalize files with mixed line endings (introduced in commit 3a413d1) 4 years ago
ARM7_LPC23xx Normalize files with mixed line endings (introduced in commit 3a413d1) 4 years ago
ARM7_LPC2000 Normalize files with mixed line endings (introduced in commit 3a413d1) 4 years ago
ARM_CA9 Include string.h at the top of portable/GCC/ARM_CA9/port.c to prevent memset() generating a warning. (#430) 3 years ago
ARM_CA53_64_BIT fix alignment exception for ullPortInterruptNesting. (#317) 3 years ago
ARM_CA53_64_BIT_SRE Update comments for the ARM_CA53_64_BIT_SRE port (#403) 3 years ago
ARM_CM0 Add configSYSTICK_CLOCK_HZ to Cortex-M0 ports (#484) 3 years ago
ARM_CM3 fix typo (#399) 3 years ago
ARM_CM3_MPU Use highest numbered MPU regions for kernel 2 years ago
ARM_CM4F fix typo (#399) 3 years ago
ARM_CM4_MPU Use highest numbered MPU regions for kernel 2 years ago
ARM_CM7 Add Cortex M7 r0p1 Errata 837070 workaround to CM4_MPU ports (#513) 3 years ago
ARM_CM23 Add .syntax unified to GCC assembly functions (#538) 3 years ago
ARM_CM23_NTZ/non_secure Add .syntax unified to GCC assembly functions (#538) 3 years ago
ARM_CM33 Add .syntax unified to GCC assembly functions (#538) 3 years ago
ARM_CM33_NTZ/non_secure Add .syntax unified to GCC assembly functions (#538) 3 years ago
ARM_CM55 Add .syntax unified to GCC assembly functions (#538) 3 years ago
ARM_CM55_NTZ/non_secure Add .syntax unified to GCC assembly functions (#538) 3 years ago
ARM_CM85 M85 support (#556) 2 years ago
ARM_CM85_NTZ/non_secure M85 support (#556) 2 years ago
ARM_CR5 fix typo (#399) 3 years ago
ARM_CRx_No_GIC Normalize files with mixed line endings (introduced in commit 3a413d1) 4 years ago
ATMega323 Normalize files with mixed line endings (introduced in commit 3a413d1) 4 years ago
AVR32_UC3 Update license text for ports that were previously missed. 4 years ago
AVR_AVRDx Remove AVR ports from main repo (#394) 3 years ago
AVR_Mega0 Remove AVR ports from main repo (#394) 3 years ago
CORTUS_APS3 Normalize files with mixed line endings (introduced in commit 3a413d1) 4 years ago
ColdFire_V2 Normalize files with mixed line endings (introduced in commit 3a413d1) 4 years ago
H8S2329 Normalize files with mixed line endings (introduced in commit 3a413d1) 4 years ago
HCS12 Normalize files with mixed line endings (introduced in commit 3a413d1) 4 years ago
IA32_flat Normalize files with mixed line endings (introduced in commit 3a413d1) 4 years ago
MCF5235 Replace two dashes and one whitespace with their corresponding ASCII characters. (#362) 4 years ago
MSP430F449 Normalize files with mixed line endings (introduced in commit 3a413d1) 4 years ago
MicroBlaze Normalize files with mixed line endings (introduced in commit 3a413d1) 4 years ago
MicroBlazeV8 Normalize files with mixed line endings (introduced in commit 3a413d1) 4 years ago
MicroBlazeV9 Add vPortRemoveInterruptHandler API (#533) 3 years ago
NiosII Fix: Interrut Handler Register Function and Exception Process (#41) 3 years ago
PPC405_Xilinx Normalize files with mixed line endings (introduced in commit 3a413d1) 4 years ago
PPC440_Xilinx Normalize files with mixed line endings (introduced in commit 3a413d1) 4 years ago
RISC-V RISC-V: Add support for RV32E extension in GCC port (#543) 3 years ago
RL78 Normalize files with mixed line endings (introduced in commit 3a413d1) 4 years ago
RX100 Fix GCC/RX100 function naming error. (#440) 3 years ago
RX200 Normalize files with mixed line endings (introduced in commit 3a413d1) 4 years ago
RX600 Normalize files with mixed line endings (introduced in commit 3a413d1) 4 years ago
RX600v2 Normalize files with mixed line endings (introduced in commit 3a413d1) 4 years ago
RX700v3_DPFPU Add SPDX-License-Identifier: MIT to MIT licensed files. 4 years ago
STR75x Normalize files with mixed line endings (introduced in commit 3a413d1) 4 years ago
TriCore_1782 Normalize files with mixed line endings (introduced in commit 3a413d1) 4 years ago