Commit e56067f6 authored by Antoine Tenart's avatar Antoine Tenart Committed by sanglipeng
Browse files

net: phy: mscc: macsec: clear encryption keys when freeing a flow

stable inclusion
from stable-v5.10.155
commit 1a4e495edfe25b42c0b59f809a8df97ad5a6eed3
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I7M5F4

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



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

[ Upstream commit 1b16b3fd ]

Commit aaab73f8 ("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: 28c5107a ("net: phy: mscc: macsec support")
Signed-off-by: default avatarAntoine Tenart <atenart@kernel.org>
Signed-off-by: default avatarPaolo Abeni <pabeni@redhat.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarsanglipeng <sanglipeng1@jd.com>
parent 6d413f9e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment