Re: [RFC]arm64:Mark __stack_chk_guard as __ro_after_init
From: Catalin Marinas
Date: Thu Sep 16 2021 - 13:52:15 EST
On Tue, 14 Sep 2021 17:44:02 +0800, Dan Li wrote:
> __stack_chk_guard is setup once while init stage and never changed
> after that.
>
> Although the modification of this variable at runtime will usually
> cause the kernel to crash (so dose the attacker), it should be marked
> as _ro_after_init, and it should not affect performance if it is
> placed in the ro_after_init section.
>
> [...]
Applied to arm64 (for-next/fixes), thanks!
[1/1] arm64:Mark __stack_chk_guard as __ro_after_init
https://git.kernel.org/arm64/c/9fcb2e93f41c
--
Catalin