diff options
| author | 2026-10-11 21:57:11 +0000 | |
|---|---|---|
| committer | 2026-10-15 19:05:21 -0700 | |
| commit | de3ef6921c00f0af5bdfffc795b7c1d6886b5d6f (patch) | |
| tree | f2c91684ed5c479fea357b400e7192a78ae2c8fd /scripts/Makefile.thinlto | |
| parent | ncsi: Fix use-after-free in the VLAN id list removal (diff) | |
macsec: check for duplicate SCIs before registering the device
macsec_newlink() registers and links the device before rejecting a
duplicate SCI. Registration can emit link notifications for a device
whose creation ultimately fails with -EBUSY.
The SCI is already resolved before SecY initialization, so check for a
duplicate there and return -EBUSY directly. Remove the now-unused unlink
label while preserving cleanup for failures after registration.
Suggested-by: Sabrina Dubroca <sd@queasysnail.net>
Link: https://lore.kernel.org/netdev/ar2KmwhtCMbOKLsG@krikkit/
Signed-off-by: Haseeb Malik <haseebulhaq55@gmail.com>
Reviewed-by: Sabrina Dubroca <sd@queasysnail.net>
Link: https://patch.msgid.link/20261011-macsec-early-sci-check-2b1f06af193f@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
