]> git.baikalelectronics.ru Git - kernel.git/commit
net: atlantic: macsec: clear encryption keys from the stack
authorAntoine Tenart <atenart@kernel.org>
Tue, 8 Nov 2022 15:34:59 +0000 (16:34 +0100)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 10 Nov 2022 10:58:52 +0000 (11:58 +0100)
commit85c4e8bc22bbc2179b3bc0bc62957ccde4f32c8d
tree242fa1fc829a29f0b9156659be7c605ff751c8e5
parent4cf1f48047aa8e36727390ba0aace8bb83665b99
net: atlantic: macsec: clear encryption keys from the stack

Commit a87ec6f757f4 ("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 atlantic driver made a copy and did
not clear it. Fix this.

[4 Fixes tags below, all part of the same series, no need to split this]

Fixes: b0b9b89d8c45 ("net: atlantic: MACSec ingress offload implementation")
Fixes: e7895edacd9e ("net: atlantic: MACSec ingress offload HW bindings")
Fixes: 41790159870a ("net: atlantic: MACSec egress offload implementation")
Fixes: ba4608817052 ("net: atlantic: MACSec egress offload HW bindings")
Signed-off-by: Antoine Tenart <atenart@kernel.org>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/aquantia/atlantic/aq_macsec.c
drivers/net/ethernet/aquantia/atlantic/macsec/macsec_api.c