diff options
| author | Rastislav Szabo <rastislav.szabo@isovalent.com> | 2026-08-22 22:11:18 +0200 |
|---|---|---|
| committer | Paolo Abeni <pabeni@redhat.com> | 2026-08-27 12:07:21 +0200 |
| commit | 94ad9e114a1c7b16ea418c1456ac3835e038ab3f (patch) | |
| tree | 8794096e760dba43735926717fd411b15de1ed57 /scripts/const_structs.checkpatch | |
| parent | 03b4702fc5e311cbac9ba8654021a88f0dac914c (diff) | |
| download | linux-94ad9e114a1c7b16ea418c1456ac3835e038ab3f.tar.gz linux-94ad9e114a1c7b16ea418c1456ac3835e038ab3f.zip | |
net/tcp: fix TCP-AO key deletion in VRFs
TCP-AO keys with TCP_AO_KEYF_IFINDEX store the VRF L3 interface index in
l3index. tcp_ao_del_cmd() validates the supplied ifindex, but does not
assign it to its local l3index before matching keys.
As a result, deleting a key scoped to a non-default VRF always fails with
ENOENT because it is matched against l3index 0.
Fixes: 248411b8cb89 ("net/tcp: Wire up l3index to TCP-AO")
Cc: stable@vger.kernel.org
Signed-off-by: Rastislav Szabo <rastislav.szabo@isovalent.com>
Reviewed-by: David Ahern <dsahern@kernel.org>
Acked-by: Dmitry Safonov <0x7f454c46@gmail.com>
Link: https://patch.msgid.link/20260822201119.272269-1-rastislav.szabo@isovalent.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'scripts/const_structs.checkpatch')
0 files changed, 0 insertions, 0 deletions
