Re: [PATCH v3 net-next 4/8] net: Add sk_clone().

Xin Long <[email protected]>
Newsgroups org.kernel.vger.linux-sctp,org.kernel.vger.netdev
Message-ID <CADvbK_c50x2-OzGhNRfrRK9u0so7fsf92MKoaYTWXAxJoTp=uQ@mail.gmail.com>
On Thu, Oct 23, 2025 at 7:18 PM Kuniyuki Iwashima <[email protected]> wrote:
>
> sctp_accept() will use sk_clone_lock(), but it will be called
> with the parent socket locked, and sctp_migrate() acquires the
> child lock later.
>
> Let's add no lock version of sk_clone_lock().
>
> Note that lockdep complains if we simply use bh_lock_sock_nested().
>
> Signed-off-by: Kuniyuki Iwashima <[email protected]>
Reviewed-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.