Skip to content
Commit 24cccab4 authored by Kees Cook's avatar Kees Cook
Browse files

lkdtm/bugs: Adjust recursion test to avoid elision



While I was able to trick gcc into keeping a pathological recursion,
Clang was not so easily fooled. Instead, switch to using "volatile" and
side-effects to keep the stack variable allocated and to run the function.
Additionally renames "OVERFLOW" to "EXHAUST_STACK" to better describe the
test.

Signed-off-by: default avatarKees Cook <keescook@chromium.org>
parent 2bf8496f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment