Re: [PATCH v3 net-next 0/8] sctp: Avoid redundant initialisation in sctp_accept() and sctp_do_peeloff().

[email protected]
Newsgroups org.kernel.vger.linux-sctp,org.kernel.vger.netdev
Message-ID <176161442950.1651448.1798701747287698660.git-patchwork-notify@kernel.org>
Hello:

This series was applied to netdev/net-next.git (main)
by Jakub Kicinski <[email protected]>:

On Thu, 23 Oct 2025 23:16:49 +0000 you wrote:
> When sctp_accept() and sctp_do_peeloff() allocates a new socket,
> somehow sk_alloc() is used, and the new socket goes through full
> initialisation, but most of the fields are overwritten later.
> 
>   1)
>   sctp_accept()
>   |- sctp_v[46]_create_accept_sk()
>   |  |- sk_alloc()
>   |  |- sock_init_data()
>   |  |- sctp_copy_sock()
>   |  `- newsk->sk_prot->init() / sctp_init_sock()
>   |
>   `- sctp_sock_migrate()
>      `- sctp_copy_descendant(newsk, oldsk)
> 
> [...]

Here is the summary with links:
  - [v3,net-next,1/8] sctp: Defer SCTP_DBG_OBJCNT_DEC() to sctp_destroy_sock().
    https://git.kernel.org/netdev/net-next/c/622e8838a298
  - [v3,net-next,2/8] sctp: Don't copy sk_sndbuf and sk_rcvbuf in sctp_sock_migrate().
    https://git.kernel.org/netdev/net-next/c/2d4df59aae91
  - [v3,net-next,3/8] sctp: Don't call sk->sk_prot->init() in sctp_v[46]_create_accept_sk().
    https://git.kernel.org/netdev/net-next/c/b7185792f80a
  - [v3,net-next,4/8] net: Add sk_clone().
    https://git.kernel.org/netdev/net-next/c/151b98d10ef7
  - [v3,net-next,5/8] sctp: Use sk_clone() in sctp_accept().
    https://git.kernel.org/netdev/net-next/c/16942cf4d3e3
  - [v3,net-next,6/8] sctp: Remove sctp_pf.create_accept_sk().
    https://git.kernel.org/netdev/net-next/c/c49ed521f177
  - [v3,net-next,7/8] sctp: Use sctp_clone_sock() in sctp_do_peeloff().
    https://git.kernel.org/netdev/net-next/c/b7ddb55f3127
  - [v3,net-next,8/8] sctp: Remove sctp_copy_sock() and sctp_copy_descendant().
    https://git.kernel.org/netdev/net-next/c/71068e2e1b6b

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
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.