Jordan Rife wrote: > 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 all direct calls to sock->ops->connect() with kernel_connect() > to make these call safe. > > Link: https://lore.kernel.org/netdev/20230912013332.2048422-1-jrife@xxxxxxxxxx/ > Fixes: d74bad4e74ee ("bpf: Hooks for sys_connect") > Cc: stable@xxxxxxxxxxxxxxx > Signed-off-by: Jordan Rife <jrife@xxxxxxxxxx> Reviewed-by: Willem de Bruijn <willemb@xxxxxxxxxx>