Re: [PATCH v3 net-next 2/8] sctp: Don't copy sk_sndbuf and sk_rcvbuf in sctp_sock_migrate().

Xin Long <[email protected]>
Newsgroups org.kernel.vger.linux-sctp,org.kernel.vger.netdev
Message-ID <CADvbK_dJGFQG9jx5KioFn3-z01w3xO=MeWxwsQ1fUHdkNN6NGw@mail.gmail.com>
On Thu, Oct 23, 2025 at 7:17 PM Kuniyuki Iwashima <[email protected]> wrote:
>
> sctp_sock_migrate() is called from 2 places.
>
> 1) sctp_accept() calls sp->pf->create_accept_sk() before
>    sctp_sock_migrate(), and sp->pf->create_accept_sk() calls
>    sctp_copy_sock().
>
> 2) sctp_do_peeloff() also calls sctp_copy_sock() before
>    sctp_sock_migrate().
>
> sctp_copy_sock() copies sk_sndbuf and sk_rcvbuf from the
> parent socket.
>
> Let's not copy the two fields in sctp_sock_migrate().
>
> Signed-off-by: Kuniyuki Iwashima <[email protected]>
Acked-by: Xin Long <[email protected]>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.