Skip to content

Commit

Permalink
HOTFIX:Backport Memory corruption due to stack coloring overreach com…
Browse files Browse the repository at this point in the history
…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
David Sidrane committed Mar 20, 2017
1 parent f2164b1 commit 1a52ae7
Showing 1 changed file with 490 additions and 16 deletions.

0 comments on commit 1a52ae7

Please sign in to comment.