diff options
| author | 2026-10-01 22:33:57 -0400 | |
|---|---|---|
| committer | 2026-10-07 17:10:34 -0700 | |
| commit | 2554c08e16aaeeaa7284bce64e16618f4b8cb0b7 (patch) | |
| tree | f3d7ebbe00a87d2b772254a394a12d7f6c4da2ac /scripts/Makefile.thinlto | |
| parent | Merge branch 'eea-improvements-in-the-driver' (diff) | |
macsec: check the resolved SCI for duplicates
An all-ones IFLA_MACSEC_SCI selects the default SCI derived from the
MACsec device's MAC address and port 1. macsec_init_secy() resolves this
value and stores the result in secy.sci, but macsec_newlink() checks for
duplicates using the unchanged local sci argument.
Consequently, an all-ones request can create a second MACsec device with
the same transmit SCI on the same lower device, while requesting that
SCI explicitly returns -EBUSY.
Resolve an undefined SCI in macsec_newlink() before initializing the
SecY, so initialization and duplicate detection use the same value.
Preserve the all-ones fallback when the resulting SCI is available.
The duplicate acceptance was flagged by Sashiko, an LLM review bot,
during review of an earlier MACsec initialization fix. Source and history
inspection, followed by raw-netlink checks and selftests on the unfixed
kernel, confirmed the issue.
Link: https://lists.openwall.net/netdev/2026/09/16/11
Signed-off-by: Haseeb Malik <haseebulhaq55@gmail.com>
Link: https://patch.msgid.link/20261001-fix-macsec-duplicate-sci-v3-1-0f179fbe1f2d@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
