Created attachment 158422 [details] bzero->explicit_bzero Rather than simply bzero() sensitive stuff, go further and use explicit_bzero() for local variables that may be optmized away.
Michael, since this is SCTP-related, could you have a look?
(In reply to Christian Brueffer from comment #1) I'll close it for two reasons: 1. The function which is patched (sctp_alloc_authinfo()) is never called. 2. The usage of explicit_bzero() should be used to erase memory which you don't need anymore. So you make sure that the compiler doesn't optimize it away. However, the proposed patch would affect the structure before it is used. So the compiler should not optimize it and bzero() would be the right call. I already explained this to the reporter in a private mail exchange.