summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorDaniel Zahka <daniel.zahka@gmail.com>2026-09-30 16:46:46 -0700
committerJakub Kicinski <kuba@kernel.org>2026-10-05 15:59:46 -0700
commite404a2de7ed1a19ed356086e3b012e2227c1024d (patch)
tree74a1b11a71dbd152655407ec927326ece97870b9 /net
parent9a550198d4243228b1258bf865044951eee27af3 (diff)
selftests: drv-net: psp: swap closed for connected sockets in assoc tests
Future work will only allow rx-assoc and tx-assoc to be performed when the sock is in TCP_ESTABLISHED state. Several assoc_ tests, as well as dev_rotate_spi, test using the rx-assoc and tx-assoc uapi calls against sockets in TCP_CLOSE state. These tests don't involve sending or receiving data, nor involve looking up psp device by dst entry, so using a disposable disconnected socket was just a convenience. These can be replaced by a disposable loopback socket. The loopback sockets are IPv4, where the sockets they replace were AF_INET6. This doesn't reduce coverage, since the assoc handlers accept any TCP socket and don't look at the address family. Some users of rx-assoc and tx-assoc on closed sockets are left if they validate errors that are returned before the kernel will check the socket for TCP_ESTABLISHED. Signed-off-by: Daniel Zahka <daniel.zahka@gmail.com> Fixes: 6b46ca260e22 ("net: psp: add socket security association code") Reviewed-by: Willem de Bruijn <willemb@google.com> Link: https://patch.msgid.link/20260930-psp-defeat-v2-1-f266e7447129@gmail.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions