You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
apps/demo: probe the syscall stack from the MPU violation test
Add a "Syscall near limit" case that burns the App task's stack down to
160 B and then loads a system font the app has not touched, a syscall
whose privileged chain (resource_storage, filesystem, flash) needs a few
hundred bytes. With syscalls relocated to their own stack the call
completes and the app reports "SURVIVED (expected)"; on a kernel that
still runs syscalls on the task stack it overflows privileged and the
watch reboots, which is the FIRM-4306 failure mode.
Tests can now declare that surviving is the expected outcome, so the
"MPU MISS" wording stays reserved for accesses that should have faulted.
On qemu_flint: upstream/main "survives" only because the wiped guard lets
the overflow run into the kernel heap; with the guard restored alone the
emulator reboots; with the dedicated syscall stack the test passes and
the guard stays untouched.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
0 commit comments