* [PATCH 1/6] sock: add sock_kzalloc helper
@ 2026-04-27 10:41 Thorsten Blum
2026-04-27 10:41 ` [PATCH 2/6] crypto: af_alg - use sock_kzalloc in af_alg_alloc_areq Thorsten Blum
` (6 more replies)
0 siblings, 7 replies; 17+ messages in thread
From: Thorsten Blum @ 2026-04-27 10:41 UTC (permalink / raw)
To: Herbert Xu, David S. Miller
Cc: Eric Dumazet, Kuniyuki Iwashima, Paolo Abeni, Willem de Bruijn,
Jakub Kicinski, Simon Horman, linux-crypto, linux-kernel,
Thorsten Blum
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)
^ permalink raw reply related [flat|nested] 17+ messages in thread
* [PATCH 2/6] crypto: af_alg - use sock_kzalloc in af_alg_alloc_areq
2026-04-27 10:41 [PATCH 1/6] sock: add sock_kzalloc helper Thorsten Blum
@ 2026-04-27 10:41 ` 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
` (5 subsequent siblings)
6 siblings, 1 reply; 17+ messages in thread
From: Thorsten Blum @ 2026-04-27 10:41 UTC (permalink / raw)
To: Herbert Xu, David S. Miller
Cc: Eric Dumazet, Kuniyuki Iwashima, Paolo Abeni, Willem de Bruijn,
Jakub Kicinski, Simon Horman, linux-crypto, linux-kernel,
Thorsten Blum
Replace sock_kmalloc() followed by memset(0) with sock_kzalloc() to
simplify af_alg_alloc_areq().
Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
---
crypto/af_alg.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/crypto/af_alg.c b/crypto/af_alg.c
index 5a00c18eb145..7a853a866957 100644
--- a/crypto/af_alg.c
+++ b/crypto/af_alg.c
@@ -1179,12 +1179,10 @@ struct af_alg_async_req *af_alg_alloc_areq(struct sock *sk,
if (ctx->inflight)
return ERR_PTR(-EBUSY);
- areq = sock_kmalloc(sk, areqlen, GFP_KERNEL);
+ areq = sock_kzalloc(sk, areqlen, GFP_KERNEL);
if (unlikely(!areq))
return ERR_PTR(-ENOMEM);
- memset(areq, 0, areqlen);
-
ctx->inflight = true;
areq->areqlen = areqlen;
^ permalink raw reply related [flat|nested] 17+ messages in thread
* [PATCH 3/6] crypto: algif_aead - use sock_kzalloc in aead_accept_parent_nokey
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-27 10:41 ` 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
` (4 subsequent siblings)
6 siblings, 1 reply; 17+ messages in thread
From: Thorsten Blum @ 2026-04-27 10:41 UTC (permalink / raw)
To: Herbert Xu, David S. Miller
Cc: Eric Dumazet, Kuniyuki Iwashima, Paolo Abeni, Willem de Bruijn,
Jakub Kicinski, Simon Horman, linux-crypto, linux-kernel,
Thorsten Blum
Replace sock_kmalloc() followed by memset(0) with sock_kzalloc() to
simplify aead_accept_parent_nokey().
Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
---
crypto/algif_aead.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/crypto/algif_aead.c b/crypto/algif_aead.c
index f8bd45f7dc83..83bb9a6bf85e 100644
--- a/crypto/algif_aead.c
+++ b/crypto/algif_aead.c
@@ -402,17 +402,15 @@ static int aead_accept_parent_nokey(void *private, struct sock *sk)
unsigned int len = sizeof(*ctx);
unsigned int ivlen = crypto_aead_ivsize(tfm);
- ctx = sock_kmalloc(sk, len, GFP_KERNEL);
+ ctx = sock_kzalloc(sk, len, GFP_KERNEL);
if (!ctx)
return -ENOMEM;
- memset(ctx, 0, len);
- ctx->iv = sock_kmalloc(sk, ivlen, GFP_KERNEL);
+ ctx->iv = sock_kzalloc(sk, ivlen, GFP_KERNEL);
if (!ctx->iv) {
sock_kfree_s(sk, ctx, len);
return -ENOMEM;
}
- memset(ctx->iv, 0, ivlen);
INIT_LIST_HEAD(&ctx->tsgl_list);
ctx->len = len;
^ permalink raw reply related [flat|nested] 17+ messages in thread
* [PATCH 4/6] crypto: af_alg - use sock_kzalloc in alloc_result + accept_parent_nokey
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-27 10:41 ` [PATCH 3/6] crypto: algif_aead - use sock_kzalloc in aead_accept_parent_nokey Thorsten Blum
@ 2026-04-27 10:41 ` 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
` (3 subsequent siblings)
6 siblings, 1 reply; 17+ messages in thread
From: Thorsten Blum @ 2026-04-27 10:41 UTC (permalink / raw)
To: Herbert Xu, David S. Miller
Cc: Eric Dumazet, Kuniyuki Iwashima, Paolo Abeni, Willem de Bruijn,
Jakub Kicinski, Simon Horman, linux-crypto, linux-kernel,
Thorsten Blum
Replace sock_kmalloc() followed by memset(0) with sock_kzalloc() to
simplify hash_alloc_result() and hash_accept_parent_nokey().
Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
---
crypto/algif_hash.c | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/crypto/algif_hash.c b/crypto/algif_hash.c
index 4d3dfc60a16a..02c0e448390d 100644
--- a/crypto/algif_hash.c
+++ b/crypto/algif_hash.c
@@ -38,12 +38,10 @@ static int hash_alloc_result(struct sock *sk, struct hash_ctx *ctx)
ds = crypto_ahash_digestsize(crypto_ahash_reqtfm(&ctx->req));
- ctx->result = sock_kmalloc(sk, ds, GFP_KERNEL);
+ ctx->result = sock_kzalloc(sk, ds, GFP_KERNEL);
if (!ctx->result)
return -ENOMEM;
- memset(ctx->result, 0, ds);
-
return 0;
}
@@ -412,11 +410,10 @@ static int hash_accept_parent_nokey(void *private, struct sock *sk)
struct hash_ctx *ctx;
unsigned int len = sizeof(*ctx) + crypto_ahash_reqsize(tfm);
- ctx = sock_kmalloc(sk, len, GFP_KERNEL);
+ ctx = sock_kzalloc(sk, len, GFP_KERNEL);
if (!ctx)
return -ENOMEM;
- memset(ctx, 0, len);
ctx->len = len;
crypto_init_wait(&ctx->wait);
^ permalink raw reply related [flat|nested] 17+ messages in thread
* [PATCH 5/6] crypto: algif_rng - use sock_kzalloc in rng_accept_parent
2026-04-27 10:41 [PATCH 1/6] sock: add sock_kzalloc helper Thorsten Blum
` (2 preceding siblings ...)
2026-04-27 10:41 ` [PATCH 4/6] crypto: af_alg - use sock_kzalloc in alloc_result + accept_parent_nokey Thorsten Blum
@ 2026-04-27 10:41 ` 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
` (2 subsequent siblings)
6 siblings, 1 reply; 17+ messages in thread
From: Thorsten Blum @ 2026-04-27 10:41 UTC (permalink / raw)
To: Herbert Xu, David S. Miller
Cc: Eric Dumazet, Kuniyuki Iwashima, Paolo Abeni, Willem de Bruijn,
Jakub Kicinski, Simon Horman, linux-crypto, linux-kernel,
Thorsten Blum
Replace sock_kmalloc() followed by memset(0) with sock_kzalloc() to
simplify rng_accept_parent().
Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
---
crypto/algif_rng.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/crypto/algif_rng.c b/crypto/algif_rng.c
index a9fb492e929a..f609463f9e14 100644
--- a/crypto/algif_rng.c
+++ b/crypto/algif_rng.c
@@ -244,11 +244,10 @@ static int rng_accept_parent(void *private, struct sock *sk)
struct alg_sock *ask = alg_sk(sk);
unsigned int len = sizeof(*ctx);
- ctx = sock_kmalloc(sk, len, GFP_KERNEL);
+ ctx = sock_kzalloc(sk, len, GFP_KERNEL);
if (!ctx)
return -ENOMEM;
- memset(ctx, 0, len);
ctx->len = len;
/*
^ permalink raw reply related [flat|nested] 17+ messages in thread
* [PATCH 6/6] crypto: algif_skcipher - use sock_kzalloc in accept_parent_nokey
2026-04-27 10:41 [PATCH 1/6] sock: add sock_kzalloc helper Thorsten Blum
` (3 preceding siblings ...)
2026-04-27 10:41 ` [PATCH 5/6] crypto: algif_rng - use sock_kzalloc in rng_accept_parent Thorsten Blum
@ 2026-04-27 10:41 ` 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
6 siblings, 1 reply; 17+ messages in thread
From: Thorsten Blum @ 2026-04-27 10:41 UTC (permalink / raw)
To: Herbert Xu, David S. Miller
Cc: Eric Dumazet, Kuniyuki Iwashima, Paolo Abeni, Willem de Bruijn,
Jakub Kicinski, Simon Horman, linux-crypto, linux-kernel,
Thorsten Blum
Replace sock_kmalloc() followed by memset(0) with sock_kzalloc() to
simplify skcipher_accept_parent_nokey().
Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
---
crypto/algif_skcipher.c | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/crypto/algif_skcipher.c b/crypto/algif_skcipher.c
index ba0a17fd95ac..f29a304e1268 100644
--- a/crypto/algif_skcipher.c
+++ b/crypto/algif_skcipher.c
@@ -383,18 +383,15 @@ static int skcipher_accept_parent_nokey(void *private, struct sock *sk)
struct crypto_skcipher *tfm = private;
unsigned int len = sizeof(*ctx);
- ctx = sock_kmalloc(sk, len, GFP_KERNEL);
+ ctx = sock_kzalloc(sk, len, GFP_KERNEL);
if (!ctx)
return -ENOMEM;
- memset(ctx, 0, len);
- ctx->iv = sock_kmalloc(sk, crypto_skcipher_ivsize(tfm),
- GFP_KERNEL);
+ ctx->iv = sock_kzalloc(sk, crypto_skcipher_ivsize(tfm), GFP_KERNEL);
if (!ctx->iv) {
sock_kfree_s(sk, ctx, len);
return -ENOMEM;
}
- memset(ctx->iv, 0, crypto_skcipher_ivsize(tfm));
INIT_LIST_HEAD(&ctx->tsgl_list);
ctx->len = len;
^ permalink raw reply related [flat|nested] 17+ messages in thread
* Re: [PATCH 1/6] sock: add sock_kzalloc helper
2026-04-27 10:41 [PATCH 1/6] sock: add sock_kzalloc helper Thorsten Blum
` (4 preceding siblings ...)
2026-04-27 10:41 ` [PATCH 6/6] crypto: algif_skcipher - use sock_kzalloc in accept_parent_nokey Thorsten Blum
@ 2026-04-28 20:07 ` Kuniyuki Iwashima
2026-05-22 12:50 ` Thorsten Blum
6 siblings, 0 replies; 17+ messages in thread
From: Kuniyuki Iwashima @ 2026-04-28 20:07 UTC (permalink / raw)
To: Thorsten Blum
Cc: Herbert Xu, David S. Miller, Eric Dumazet, Paolo Abeni,
Willem de Bruijn, Jakub Kicinski, Simon Horman, linux-crypto,
linux-kernel
On Mon, Apr 27, 2026 at 3:44 AM Thorsten Blum <thorsten.blum@linux.dev> wrote:
>
> Add sock_kzalloc() helper - the sock equivalent to kzalloc().
>
> Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Reviewed-by: Kuniyuki Iwashima <kuniyu@google.com>
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [PATCH 2/6] crypto: af_alg - use sock_kzalloc in af_alg_alloc_areq
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
0 siblings, 0 replies; 17+ messages in thread
From: Kuniyuki Iwashima @ 2026-04-28 20:08 UTC (permalink / raw)
To: Thorsten Blum
Cc: Herbert Xu, David S. Miller, Eric Dumazet, Paolo Abeni,
Willem de Bruijn, Jakub Kicinski, Simon Horman, linux-crypto,
linux-kernel
On Mon, Apr 27, 2026 at 3:43 AM Thorsten Blum <thorsten.blum@linux.dev> wrote:
>
> Replace sock_kmalloc() followed by memset(0) with sock_kzalloc() to
> simplify af_alg_alloc_areq().
>
> Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Reviewed-by: Kuniyuki Iwashima <kuniyu@google.com>
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [PATCH 3/6] crypto: algif_aead - use sock_kzalloc in aead_accept_parent_nokey
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
0 siblings, 0 replies; 17+ messages in thread
From: Kuniyuki Iwashima @ 2026-04-28 20:08 UTC (permalink / raw)
To: Thorsten Blum
Cc: Herbert Xu, David S. Miller, Eric Dumazet, Paolo Abeni,
Willem de Bruijn, Jakub Kicinski, Simon Horman, linux-crypto,
linux-kernel
On Mon, Apr 27, 2026 at 3:43 AM Thorsten Blum <thorsten.blum@linux.dev> wrote:
>
> Replace sock_kmalloc() followed by memset(0) with sock_kzalloc() to
> simplify aead_accept_parent_nokey().
>
> Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Reviewed-by: Kuniyuki Iwashima <kuniyu@google.com>
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [PATCH 4/6] crypto: af_alg - use sock_kzalloc in alloc_result + accept_parent_nokey
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
0 siblings, 0 replies; 17+ messages in thread
From: Kuniyuki Iwashima @ 2026-04-28 20:09 UTC (permalink / raw)
To: Thorsten Blum
Cc: Herbert Xu, David S. Miller, Eric Dumazet, Paolo Abeni,
Willem de Bruijn, Jakub Kicinski, Simon Horman, linux-crypto,
linux-kernel
On Mon, Apr 27, 2026 at 3:43 AM Thorsten Blum <thorsten.blum@linux.dev> wrote:
>
> Replace sock_kmalloc() followed by memset(0) with sock_kzalloc() to
> simplify hash_alloc_result() and hash_accept_parent_nokey().
>
> Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Reviewed-by: Kuniyuki Iwashima <kuniyu@google.com>
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [PATCH 5/6] crypto: algif_rng - use sock_kzalloc in rng_accept_parent
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
0 siblings, 0 replies; 17+ messages in thread
From: Kuniyuki Iwashima @ 2026-04-28 20:09 UTC (permalink / raw)
To: Thorsten Blum
Cc: Herbert Xu, David S. Miller, Eric Dumazet, Paolo Abeni,
Willem de Bruijn, Jakub Kicinski, Simon Horman, linux-crypto,
linux-kernel
On Mon, Apr 27, 2026 at 3:43 AM Thorsten Blum <thorsten.blum@linux.dev> wrote:
>
> Replace sock_kmalloc() followed by memset(0) with sock_kzalloc() to
> simplify rng_accept_parent().
>
> Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Reviewed-by: Kuniyuki Iwashima <kuniyu@google.com>
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [PATCH 6/6] crypto: algif_skcipher - use sock_kzalloc in accept_parent_nokey
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
0 siblings, 0 replies; 17+ messages in thread
From: Kuniyuki Iwashima @ 2026-04-28 20:09 UTC (permalink / raw)
To: Thorsten Blum
Cc: Herbert Xu, David S. Miller, Eric Dumazet, Paolo Abeni,
Willem de Bruijn, Jakub Kicinski, Simon Horman, linux-crypto,
linux-kernel
On Mon, Apr 27, 2026 at 3:43 AM Thorsten Blum <thorsten.blum@linux.dev> wrote:
>
> Replace sock_kmalloc() followed by memset(0) with sock_kzalloc() to
> simplify skcipher_accept_parent_nokey().
>
> Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Reviewed-by: Kuniyuki Iwashima <kuniyu@google.com>
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [PATCH 1/6] sock: add sock_kzalloc helper
2026-04-27 10:41 [PATCH 1/6] sock: add sock_kzalloc helper Thorsten Blum
` (5 preceding siblings ...)
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
6 siblings, 1 reply; 17+ messages in thread
From: Thorsten Blum @ 2026-05-22 12:50 UTC (permalink / raw)
To: Herbert Xu, David S. Miller
Cc: Eric Dumazet, Kuniyuki Iwashima, Paolo Abeni, Willem de Bruijn,
Jakub Kicinski, Simon Horman, linux-crypto, linux-kernel
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?
Thanks,
Thorsten
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [PATCH 1/6] sock: add sock_kzalloc helper
2026-05-22 12:50 ` Thorsten Blum
@ 2026-05-26 9:14 ` Herbert Xu
2026-05-26 13:23 ` Thorsten Blum
2026-05-26 14:17 ` Simon Horman
0 siblings, 2 replies; 17+ messages in thread
From: Herbert Xu @ 2026-05-26 9:14 UTC (permalink / raw)
To: Thorsten Blum
Cc: David S. Miller, Eric Dumazet, Kuniyuki Iwashima, Paolo Abeni,
Willem de Bruijn, Jakub Kicinski, Simon Horman, linux-crypto,
linux-kernel
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.
Thanks,
--
Email: Herbert Xu <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [PATCH 1/6] sock: add sock_kzalloc helper
2026-05-26 9:14 ` Herbert Xu
@ 2026-05-26 13:23 ` Thorsten Blum
2026-05-26 22:57 ` Jakub Kicinski
2026-05-26 14:17 ` Simon Horman
1 sibling, 1 reply; 17+ messages in thread
From: Thorsten Blum @ 2026-05-26 13:23 UTC (permalink / raw)
To: Herbert Xu
Cc: David S. Miller, Eric Dumazet, Kuniyuki Iwashima, Paolo Abeni,
Willem de Bruijn, Jakub Kicinski, Simon Horman, netdev,
linux-crypto, linux-kernel
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
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [PATCH 1/6] sock: add sock_kzalloc helper
2026-05-26 9:14 ` Herbert Xu
2026-05-26 13:23 ` Thorsten Blum
@ 2026-05-26 14:17 ` Simon Horman
1 sibling, 0 replies; 17+ messages in thread
From: Simon Horman @ 2026-05-26 14:17 UTC (permalink / raw)
To: Herbert Xu
Cc: Thorsten Blum, David S. Miller, Eric Dumazet, Kuniyuki Iwashima,
Paolo Abeni, Willem de Bruijn, Jakub Kicinski, linux-crypto,
linux-kernel
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.
In which case it probably needs to hit the netdev mailing list.
Thanks!
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [PATCH 1/6] sock: add sock_kzalloc helper
2026-05-26 13:23 ` Thorsten Blum
@ 2026-05-26 22:57 ` Jakub Kicinski
0 siblings, 0 replies; 17+ messages in thread
From: Jakub Kicinski @ 2026-05-26 22:57 UTC (permalink / raw)
To: Thorsten Blum
Cc: Herbert Xu, David S. Miller, Eric Dumazet, Kuniyuki Iwashima,
Paolo Abeni, Willem de Bruijn, Simon Horman, netdev, linux-crypto,
linux-kernel
On Tue, 26 May 2026 15:23:25 +0200 Thorsten Blum wrote:
> 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.
IDK, feels like the usage is low enough to border on pointless churn.
Other netdev maintainers may feel differently.
^ permalink raw reply [flat|nested] 17+ messages in thread
end of thread, other threads:[~2026-05-26 22:57 UTC | newest]
Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2026-05-26 22:57 ` Jakub Kicinski
2026-05-26 14:17 ` Simon Horman
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox