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:Antoine Tenart <atenart@kernel.org> Signed-off-by:
Paolo Abeni <pabeni@redhat.com> Signed-off-by:
Sasha Levin <sashal@kernel.org> Signed-off-by:
sanglipeng <sanglipeng1@jd.com>
Loading
Please sign in to comment