Skip to content
Commit 4436fb19 authored by Keith Packard's avatar Keith Packard Committed by Carles Cufí
Browse files

subsys/logging: Add compiler barriers to msg stack allocation



This ensures that the compiler will have moved the stack pointer below the
stack area where the message will be constructed. Otherwise, the message
can be smashed by an interrupt handler while it is being built.

This bug was found on qemu_cortex_a53 using SDK 0.14.2 with gcc 10.3.0 when
building the samples/subsys/logging/syst/sample.logger.syst.deferred test
under twister using picolibc:

Signed-off-by: default avatarKeith Packard <keithp@keithp.com>
parent ca2f491b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment