]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net: sctp: sctp_auth_key_put: use kzfree instead of kfree
authorDaniel Borkmann <dborkman@redhat.com>
Thu, 7 Feb 2013 00:55:37 +0000 (00:55 +0000)
committerWilly Tarreau <w@1wt.eu>
Mon, 10 Jun 2013 09:43:36 +0000 (11:43 +0200)
commit9c51a966d1dc8a0dc359a4e2f94b31c7273b8f69
tree3a1bdfc40863af89521ec838fe17f8d87ff8fcff
parent57201215910fc6fb5496ca85025dfa92d7518660
net: sctp: sctp_auth_key_put: use kzfree instead of kfree

[ Upstream commit 586c31f3bf04c290dc0a0de7fc91d20aa9a5ee53 ]

For sensitive data like keying material, it is common practice to zero
out keys before returning the memory back to the allocator. Thus, use
kzfree instead of kfree.

Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
Acked-by: Neil Horman <nhorman@tuxdriver.com>
Acked-by: Vlad Yasevich <vyasevich@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Willy Tarreau <w@1wt.eu>
net/sctp/auth.c