Re: [PATCH v5 01/11] eal: introduce new secure memory fill

2025-02-12 Thread Stephen Hemminger
On Wed, 12 Feb 2025 10:09:27 +0100 Morten Brørup wrote: > > From: Stephen Hemminger [mailto:step...@networkplumber.org] > > Sent: Tuesday, 11 February 2025 18.35 > > > > When memset() is used before a release function such as free, > > the compiler if allowed to optimize the memset away under >

RE: [PATCH v5 01/11] eal: introduce new secure memory fill

2025-02-12 Thread Morten Brørup
> From: Stephen Hemminger [mailto:step...@networkplumber.org] > Sent: Tuesday, 11 February 2025 18.35 > > When memset() is used before a release function such as free, > the compiler if allowed to optimize the memset away under > the as-if rules. This is normally ok, but in certain cases such > as

Re: [PATCH v5 01/11] eal: introduce new secure memory fill

2025-02-11 Thread fengchengwen
Signed-off-by: Chengwen Feng On 2025/2/12 1:35, Stephen Hemminger wrote: > When memset() is used before a release function such as free, > the compiler if allowed to optimize the memset away under > the as-if rules. This is normally ok, but in certain cases such > as passwords or security keys it