On 06/12/2022 13:57, Jan Beulich wrote:
> Especially with our use of __builtin_memset() to implement memset() the
> compiler is free to eliminate instances when it can prove that the
> affected object is dead. Introduce a small helper function accompanying
> the memset() with a construct forcing the compiler to retain the
> clearing of (stack) memory.
>
> Fixes: c021c95498d9 ("x86: Replace our own specialised versions of memset and
> memcpy with")
> Signed-off-by: Jan Beulich <[email protected]>
Thanks. I'd noticed this before wanted to do something about it.
Acked-by: Andrew Cooper <[email protected]>