3.16.52-rc1 review patch. If anyone has any objections, please let me know.
------------------ From: "Jason A. Donenfeld" <[email protected]> commit 910801809b2e40a4baedd080ef5d80b4a180e70e upstream. Error paths forgot to zero out sensitive material, so this patch changes some kfrees into a kzfrees. Signed-off-by: Jason A. Donenfeld <[email protected]> Signed-off-by: David Howells <[email protected]> Reviewed-by: Eric Biggers <[email protected]> Cc: Herbert Xu <[email protected]> Cc: Kirill Marinushkin <[email protected]> Cc: [email protected] [bwh: Backported to 3.16: there's only one kfree() to change] Signed-off-by: Ben Hutchings <[email protected]> --- security/keys/big_key.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) --- a/security/keys/big_key.c +++ b/security/keys/big_key.c @@ -135,7 +135,7 @@ void big_key_destroy(struct key *key) path->mnt = NULL; path->dentry = NULL; } else { - kfree(key->payload.data); + kzfree(key->payload.data); key->payload.data = NULL; } }

