aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/prog_tests/autoload.c
diff options
context:
space:
mode:
authorJordan Rife <[email protected]>2023-09-21 18:46:40 -0500
committerDavid S. Miller <[email protected]>2023-10-01 19:31:29 +0100
commit26297b4ce1ce4ea40bc9a48ec99f45da3f64d2e2 (patch)
treee88844115c0dada925a3b41729fe84ed3fd7ea2a /tools/testing/selftests/bpf/prog_tests/autoload.c
parent9d4c75800f61e5d75c1659ba201b6c0c7ead3070 (diff)
net: replace calls to sock->ops->connect() with kernel_connect()
commit 0bdf399342c5 ("net: Avoid address overwrite in kernel_connect") ensured that kernel_connect() will not overwrite the address parameter in cases where BPF connect hooks perform an address rewrite. This change replaces direct calls to sock->ops->connect() in net with kernel_connect() to make these call safe. Link: https://lore.kernel.org/netdev/[email protected]/ Fixes: d74bad4e74ee ("bpf: Hooks for sys_connect") Cc: [email protected] Reviewed-by: Willem de Bruijn <[email protected]> Signed-off-by: Jordan Rife <[email protected]> Reviewed-by: Simon Horman <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/autoload.c')
0 files changed, 0 insertions, 0 deletions