Commit 12aa432c authored by Wang Ming's avatar Wang Ming Committed by sanglipeng
Browse files

net: ipv4: Use kfree_sensitive instead of kfree

stable inclusion
from stable-v5.10.188
commit 1a478ad1297a40675350d834871b8f6a4729eef6
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I8KYFP

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=1a478ad1297a40675350d834871b8f6a4729eef6



--------------------------------

[ Upstream commit daa75144 ]

key might contain private part of the key, so better use
kfree_sensitive to free it.

Fixes: 38320c70 ("[IPSEC]: Use crypto_aead and authenc in ESP")
Signed-off-by: default avatarWang Ming <machel@vivo.com>
Reviewed-by: default avatarTariq Toukan <tariqt@nvidia.com>
Reviewed-by: default avatarKuniyuki Iwashima <kuniyu@amazon.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarsanglipeng <sanglipeng1@jd.com>
parent e1a8071a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment