aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_iface.c
diff options
context:
space:
mode:
authorLior Nahmanson <[email protected]>2022-01-30 13:37:52 +0200
committerJakub Kicinski <[email protected]>2022-02-01 20:32:20 -0800
commitd0cfa548dbde354de986911d3913897b5448faad (patch)
tree1c5a70fb52d17d7eb526fe1ce0c5b23c8e3a69c3 /net/lapb/lapb_iface.c
parent63e4b45c82ed1bde979da7052229a4229ce9cabf (diff)
net: macsec: Verify that send_sci is on when setting Tx sci explicitly
When setting Tx sci explicit, the Rx side is expected to use this sci and not recalculate it from the packet.However, in case of Tx sci is explicit and send_sci is off, the receiver is wrongly recalculate the sci from the source MAC address which most likely be different than the explicit sci. Fix by preventing such configuration when macsec newlink is established and return EINVAL error code on such cases. Fixes: c09440f7dcb3 ("macsec: introduce IEEE 802.1AE driver") Signed-off-by: Lior Nahmanson <[email protected]> Reviewed-by: Raed Salem <[email protected]> Signed-off-by: Raed Salem <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'net/lapb/lapb_iface.c')
0 files changed, 0 insertions, 0 deletions