Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
HOTFIX:Backport Memory corruption due to stack coloring overreach com…
…plete Backport of upstream NuttX 86400a2 08e92ab 4b65817 Improper rounding in redundant stack coloring routines could overwriting the TOS+1 and BOS-1 depending on the value of CONFIG_ARCH_INTERRUPTSTACK This applies the compelet upstream set of fixes from David Cabecinhas <david.cab+bitbucket@gmail.com> Improper rouding in redundant stack coloring routines was overwriting the TOS+1 and BOS-1 The legacy OABI 4 byte stack alingment was removed Only the EABI 8 byte alinement is supported The redundant interrupt stack coloring. up_initalize had the correct implemantation (last verson of patch) and the redundant version in the arch/arm/src/stmxxx/stmxx_irq.c was calculating the size wrong. This is fixed by rounding up CONFIG_ARCH_INTERRUPTSTACK by 4 bytes when allocated and alining on a 8 byte boundry
- Loading branch information