diff options
author | Antoine Tenart <atenart@kernel.org> | 2021-06-24 12:38:30 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-06-24 22:41:13 +0300 |
commit | d67fb4772d9a6cfd10f1109f0e7b1e6eb58c8e16 (patch) | |
tree | c7466d702d0f11a6794c53e5dc986dd08ea4ad4f /net/ipv6 | |
parent | c309217f91f2d2097c2a0a832d9bff50b88c81dc (diff) | |
download | linux-d67fb4772d9a6cfd10f1109f0e7b1e6eb58c8e16.tar.xz |
net: atlantic: fix the macsec key length
The key length used to store the macsec key was set to MACSEC_KEYID_LEN
(16), which is an issue as:
- This was never meant to be the key length.
- The key length can be > 16.
Fix this by using MACSEC_MAX_KEY_LEN instead (the max length accepted in
uAPI).
Fixes: 27736563ce32 ("net: atlantic: MACSec egress offload implementation")
Fixes: 9ff40a751a6f ("net: atlantic: MACSec ingress offload implementation")
Reported-by: Lior Nahmanson <liorna@nvidia.com>
Signed-off-by: Antoine Tenart <atenart@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6')
0 files changed, 0 insertions, 0 deletions