Sabrina Dubroca aaab73f8fb 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: 3cf3227a21d1 ("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>
2022-11-04 10:43:56 +00:00
..
2022-10-29 18:06:52 -07:00
2022-10-28 13:00:15 +10:00
2022-10-21 17:41:57 -07:00
2022-10-29 18:06:52 -07:00
2022-10-30 09:44:06 -07:00
2022-10-29 18:12:45 -07:00
2022-10-26 17:38:46 -07:00
2022-10-22 15:30:15 -07:00
2022-10-22 03:29:32 +00:00
2022-10-30 11:31:14 -07:00
2022-10-30 11:31:14 -07:00
2022-11-01 12:21:53 -07:00
2022-10-21 14:43:09 -07:00