You've already forked linux-rockchip
mirror of
https://github.com/armbian/linux-rockchip.git
synced 2026-01-06 11:08:10 -08:00
net: phy: mscc: macsec: clear encryption keys when freeing a flow
[ Upstream commit1b16b3fdf6] Commitaaab73f8fb("macsec: clear encryption keys from the stack after setting up offload") made sure to clean encryption keys from the stack after setting up offloading, but the MSCC PHY driver made a copy, kept it in the flow data and did not clear it when freeing a flow. Fix this. Fixes:28c5107aa9("net: phy: mscc: macsec support") Signed-off-by: Antoine Tenart <atenart@kernel.org> Signed-off-by: Paolo Abeni <pabeni@redhat.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
4ad684ba02
commit
1a4e495edf
@@ -632,6 +632,7 @@ static void vsc8584_macsec_free_flow(struct vsc8531_private *priv,
|
||||
|
||||
list_del(&flow->list);
|
||||
clear_bit(flow->index, bitmap);
|
||||
memzero_explicit(flow->key, sizeof(flow->key));
|
||||
kfree(flow);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user