]> git.baikalelectronics.ru Git - kernel.git/commit
net: phy: mscc: macsec: clear encryption keys when freeing a flow
authorAntoine Tenart <atenart@kernel.org>
Tue, 8 Nov 2022 15:34:58 +0000 (16:34 +0100)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 10 Nov 2022 10:58:52 +0000 (11:58 +0100)
commit7eb6763a79de2ef9844a5a73063e3b542eea3c54
tree41cfb09c50af1eb45cdd23f81403a70a2bd2df50
parent3d4c8f9055ad7812c2a47a3df88da6141598817b
net: phy: mscc: macsec: clear encryption keys when freeing a flow

Commit 5d6d7cda5f0c ("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: f999521bdebb ("net: phy: mscc: macsec support")
Signed-off-by: Antoine Tenart <atenart@kernel.org>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/phy/mscc/mscc_macsec.c