From: Thorsten Blum <thorsten.blum@linux.dev>
To: Herbert Xu <herbert@gondor.apana.org.au>
Cc: "David S. Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@google.com>,
Kuniyuki Iwashima <kuniyu@google.com>,
Paolo Abeni <pabeni@redhat.com>,
Willem de Bruijn <willemb@google.com>,
Jakub Kicinski <kuba@kernel.org>, Simon Horman <horms@kernel.org>,
netdev@vger.kernel.org, linux-crypto@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH 1/6] sock: add sock_kzalloc helper
Date: Tue, 26 May 2026 15:23:25 +0200 [thread overview]
Message-ID: <ahWezce_kddgrgy6@linux.dev> (raw)
In-Reply-To: <ahVkZOxZtFes6Huf@gondor.apana.org.au>
On Tue, May 26, 2026 at 05:14:12PM +0800, Herbert Xu wrote:
> On Fri, May 22, 2026 at 02:50:19PM +0200, Thorsten Blum wrote:
> > Hi Herbert,
> >
> > On Mon, Apr 27, 2026 at 12:41:30PM +0200, Thorsten Blum wrote:
> > > Add sock_kzalloc() helper - the sock equivalent to kzalloc().
> > >
> > > Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
> > > ---
> > > include/net/sock.h | 5 +++++
> > > 1 file changed, 5 insertions(+)
> > >
> > > diff --git a/include/net/sock.h b/include/net/sock.h
> > > index dccd3738c368..20bf406dff2d 100644
> > > --- a/include/net/sock.h
> > > +++ b/include/net/sock.h
> > > @@ -1904,6 +1904,11 @@ void sock_kfree_s(struct sock *sk, void *mem, int size);
> > > void sock_kzfree_s(struct sock *sk, void *mem, int size);
> > > void sk_send_sigurg(struct sock *sk);
> > >
> > > +static inline void *sock_kzalloc(struct sock *sk, int size, gfp_t priority)
> > > +{
> > > + return sock_kmalloc(sk, size, priority | __GFP_ZERO);
> > > +}
> > > +
> > > static inline void sock_replace_proto(struct sock *sk, struct proto *proto)
> > > {
> > > if (sk->sk_socket)
> >
> > Can you take this series or should I resend this to net-next?
>
> This patch needs an ack from the netdev maintainers.
Jakub, netdev folks,
Could you take a look at this small include/net/sock.h addition and
provide an Acked-by: tag if you're okay with it going through Herbert's
crypto tree?
The series has Reviewed-by: tags from Kuniyuki, but it hadn't been Cc'ed
to netdev before.
Thanks,
Thorsten
next prev parent reply other threads:[~2026-05-26 13:23 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-04-27 10:41 [PATCH 1/6] sock: add sock_kzalloc helper Thorsten Blum
2026-04-27 10:41 ` [PATCH 2/6] crypto: af_alg - use sock_kzalloc in af_alg_alloc_areq Thorsten Blum
2026-04-28 20:08 ` Kuniyuki Iwashima
2026-04-27 10:41 ` [PATCH 3/6] crypto: algif_aead - use sock_kzalloc in aead_accept_parent_nokey Thorsten Blum
2026-04-28 20:08 ` Kuniyuki Iwashima
2026-04-27 10:41 ` [PATCH 4/6] crypto: af_alg - use sock_kzalloc in alloc_result + accept_parent_nokey Thorsten Blum
2026-04-28 20:09 ` Kuniyuki Iwashima
2026-04-27 10:41 ` [PATCH 5/6] crypto: algif_rng - use sock_kzalloc in rng_accept_parent Thorsten Blum
2026-04-28 20:09 ` Kuniyuki Iwashima
2026-04-27 10:41 ` [PATCH 6/6] crypto: algif_skcipher - use sock_kzalloc in accept_parent_nokey Thorsten Blum
2026-04-28 20:09 ` Kuniyuki Iwashima
2026-04-28 20:07 ` [PATCH 1/6] sock: add sock_kzalloc helper Kuniyuki Iwashima
2026-05-22 12:50 ` Thorsten Blum
2026-05-26 9:14 ` Herbert Xu
2026-05-26 13:23 ` Thorsten Blum [this message]
2026-05-26 22:57 ` Jakub Kicinski
2026-05-26 14:17 ` Simon Horman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ahWezce_kddgrgy6@linux.dev \
--to=thorsten.blum@linux.dev \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=herbert@gondor.apana.org.au \
--cc=horms@kernel.org \
--cc=kuba@kernel.org \
--cc=kuniyu@google.com \
--cc=linux-crypto@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=willemb@google.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox