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
rust: Mention that RUST_OPT_LEVEL_0/1 can cause excessive stack usage
At least on ppc64le, RUST_OPT_LEVEL_0/1 causes some functions to be
generated that use up to 20KB of stack. This leads to stack overflow,
which may exhibit as a panic:
Kernel panic - not syncing: corrupted stack end detected inside scheduler
CPU: 0 PID: 1 Comm: swapper/0 Not tainted 5.12.0-rc3+ #1
But may also cause other crashes, depending on what is overwritten by
the overflow.
Add a note to the Kconfig for RUST_OPT_LEVEL_0/1 that this can happen.
Signed-off-by: Michael Ellerman <[email protected]>
0 commit comments