On Tue, Dec 6, 2022 at 8:57 AM Jan Beulich <[email protected]> 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]>

Reviewed-by: Jason Andryuk <[email protected]>

Reply via email to