commit | d6c3fbc9bfa3812a9aee187e1664d5496d66f78e | [log] [tgz] |
---|---|---|
author | Venkatesh Srinivas <venkateshs@google.com> | Wed Jan 27 02:48:29 2021 +0000 |
committer | CQ Bot <commit-bot@chromium.org> | Wed Jan 27 02:48:29 2021 +0000 |
tree | 1c9f97f7d00cb1e61bb28e32524cccdd7607d658 | |
parent | c55413625292756b67020be450b5b918689aeb75 [diff] |
[kernel] Unittests of kernel stack depth handling Add a unittest that checks that we can receive interrupts and handle mp_sync_exec calls when thread context has used up half of the kernel stack. The first test is simple and probablistic - it allocates a large on-stack buffer and waits a bit for any (potential) interrupts. If an interrupt were to take > 1/2 the kernel stack to handle, we would see an architecture-specific stack overrun failure. The second test is deterministic and ensures we can run an mp_sync_exec handler (that signals an event) while half the kernel stack is used from thread context by a buffer. Bug: 64808 Panic on boot on the kasan bringup builder Change-Id: I40d356197d38e039d999fbe09615921b08ab0a88 Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/461084 Reviewed-by: Adrian Danis <adanis@google.com> Commit-Queue: Venkatesh Srinivas <venkateshs@google.com>
Pink + Purple == Fuchsia (a new operating system)
Fuchsia is a modular, capability-based operating system. Fuchsia runs on modern 64-bit Intel and ARM processors.
Fuchsia is an open source project with a code of conduct that we expect everyone who interacts with the project to respect.
Read more about Fuchsia's principles.
See Getting Started.
See fuchsia.dev.