macsec: clear encryption keys from the stack after setting up offload
macsec_add_rxsa and macsec_add_txsa copy the key to an on-stack offloading context to pass it to the drivers, but leaves it there when it's done. Clear it with memzero_explicit as soon as it's not needed anymore. Fixes: 3cf3227a ("net: macsec: hardware offloading infrastructure") Signed-off-by:Sabrina Dubroca <sd@queasysnail.net> Reviewed-by:
Antoine Tenart <atenart@kernel.org> Reviewed-by:
Leon Romanovsky <leonro@nvidia.com> Signed-off-by:
David S. Miller <davem@davemloft.net>
parent
80df4706
-
mentioned in commit 1893bb64
-
mentioned in commit 1b16b3fd
-
mentioned in commit 879785de
-
mentioned in commit adaa0f18
-
mentioned in commit 1a4e495e
-
mentioned in commit 05b22284
-
mentioned in commit fca3b0a1
-
mentioned in commit 3652f1f8
-
mentioned in commit 6bfb5491
-
mentioned in commit 3943a3d6
Please register or sign in to comment