Re: [PATCH v2 6/6] lkdtm: Fix CFI_BACKWARD on RISC-V

Kees Cook
2023-08-15T23:40:09Z

On Tue, Aug 15, 2023 at 08:34:49PM +0000, Sami Tolvanen wrote:
> On RISC-V, the return address is before the current frame pointer,
> unlike on most other architectures. Use the correct offset on RISC-V
> to fix the CFI_BACKWARD test.
>
> Signed-off-by: Sami Tolvanen <samitolvanen@google.com>

Acked-by: Kees Cook <keescook@chromium.org>

--
Kees Cook