diff options
| author | Antoine Tenart <[email protected]> | 2021-06-24 09:38:28 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2021-06-24 19:41:12 +0000 |
| commit | 1f7fe5121127e037b86592ba42ce36515ea0e3f7 (patch) | |
| tree | 499085a89fb5c4931d9c6bd2bb65da4711e6f0a4 /drivers/fpga/of-fpga-region.c | |
| parent | Merge tag 'linux-can-fixes-for-5.13-20210624' of git://git.kernel.org/ (diff) | |
| download | kernel-1f7fe5121127e037b86592ba42ce36515ea0e3f7.tar.gz kernel-1f7fe5121127e037b86592ba42ce36515ea0e3f7.zip | |
net: macsec: fix the length used to copy the key for offloading
The key length used when offloading macsec to Ethernet or PHY drivers
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 to store the key (the max length
accepted in uAPI) and secy->key_len to copy it.
Fixes: 3cf3227a21d1 ("net: macsec: hardware offloading infrastructure")
Reported-by: Lior Nahmanson <[email protected]>
Signed-off-by: Antoine Tenart <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'drivers/fpga/of-fpga-region.c')
0 files changed, 0 insertions, 0 deletions
