mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-11-13 07:31:07 +00:00
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> |
History
|
|
|---|---|---|
| .. | ||
| bugs.c | ||
| cfi.c | ||
| core.c | ||
| fortify.c | ||
| heap.c | ||
| lkdtm.h | ||
| Makefile | ||
| perms.c | ||
| powerpc.c | ||
| refcount.c | ||
| rodata.c | ||
| stackleak.c | ||
| usercopy.c | ||