diff options
author | Douglas Anderson <dianders@chromium.org> | 2024-01-22 16:49:34 -0800 |
---|---|---|
committer | Kees Cook <keescook@chromium.org> | 2024-02-01 09:44:07 -0800 |
commit | 84022cff50511e28bf96a407979ff7ea809b532c (patch) | |
tree | 264e53186192a5ac936cc3ff1b73e30d3b06e52f /crypto | |
parent | 41bccc98fb7931d63d03f326a746ac4d429c1dd3 (diff) |
lkdtm: Make lkdtm_do_action() return to avoid tail call optimization
The comments for lkdtm_do_action() explicitly call out that it
shouldn't be inlined because we want it to show up in stack
crawls. However, at least with some compilers / options it's still
vanishing due to tail call optimization. Let's add a return value to
the function to make it harder for the compiler to do tail call
optimization here.
Now that we have a return value, we can actually use it in the
callers, which is a minor improvement in the code.
Signed-off-by: Douglas Anderson <dianders@chromium.org>
Link: https://lore.kernel.org/r/20240122164935.1.I345e485f36babad76370c59659a706723750d950@changeid
Signed-off-by: Kees Cook <keescook@chromium.org>
Diffstat (limited to 'crypto')
0 files changed, 0 insertions, 0 deletions