You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
icp: Use explicit_memset() exclusively in gcm_clear_ctx()
d634d20 fixed an information leak issue
where GCC's optimization passes had removed `memset()` operations meant
to sanitize sensitive data before memory is freed for use by the rest of
the kernel.
When I wrote it, I had assumed that the compiler would not remove the
other `memset()` operations, but upon reflection, I have realized that
this was a bad assumption to make. I would rather have a very slight
amount of additional overhead when calling `gcm_clear_ctx()` than risk a
future compiler remove `memset()` calls. This is likely to happen if
someone decides to try doing link time optimization and the person will
not think to audit the assembly output for issues like this, so it is
best to preempt the possibility before it happens.
Signed-off-by: Richard Yao <[email protected]>
0 commit comments