Re: [PATCH] s390/purgatory: Do not use fortified string functions

From: Kees Cook
Date: Thu Jun 01 2023 - 12:58:45 EST


On Tue, 30 May 2023 17:34:15 -0700, Kees Cook wrote:
> With the addition of -fstrict-flex-arrays=3, struct sha256_state's
> trailing array is no longer ignored by CONFIG_FORTIFY_SOURCE:
>
> struct sha256_state {
> u32 state[SHA256_DIGEST_SIZE / 4];
> u64 count;
> u8 buf[SHA256_BLOCK_SIZE];
> };
>
> [...]

Applied to for-next/hardening, thanks!

[1/1] s390/purgatory: Do not use fortified string functions
https://git.kernel.org/kees/c/d11f44513655

--
Kees Cook