[PATCH 0/2] arm64: Fix for dynamic SCS under full LTO take #2

Sami Tolvanen samitolvanen at google.com
Tue Jan 23 09:06:07 PST 2024


Hi Ard,

On Tue, Jan 23, 2024 at 1:31 PM Ard Biesheuvel <ardb+git at google.com> wrote:
>
> From: Ard Biesheuvel <ardb at kernel.org>
>
> Disabling unwind table generation turns out not to fix the issue with
> full LTO and dynamic shadow call stack, as reported by Sami. So instead,
> disable LTO for the compilation unit in question.
>
> Implemented as a revert + new patch so that only the real fix needs to
> go to -stable.
>
> Cc: Sami Tolvanen <samitolvanen at google.com>
> Cc: Kees Cook <keescook at chromium.org>
>
> Ard Biesheuvel (2):
>   arm64: Revert "scs: Work around full LTO issue with dynamic SCS"
>   arm64: scs: Disable LTO for SCS patching code
>
>  arch/arm64/kernel/Makefile | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)

Thanks for the patches! I confirmed that this fixes the boot issue I was seeing.

Reviewed-by: Sami Tolvanen <samitolvanen at google.com>
Tested-by: Sami Tolvanen <samitolvanen at google.com>

Sami



More information about the linux-arm-kernel mailing list