* linux-next: build failure after merge of the crypto tree
@ 2023-10-30 4:58 Stephen Rothwell
2023-10-30 5:09 ` Stephen Rothwell
0 siblings, 1 reply; 7+ messages in thread
From: Stephen Rothwell @ 2023-10-30 4:58 UTC (permalink / raw)
To: Herbert Xu, David Miller, Jakub Kicinski, Paolo Abeni
Cc: Networking, Linux Crypto List, Dmitry Safonov, Dmitry Safonov,
Francesco Ruggeri, Salam Noureddine, Linux Kernel Mailing List,
Linux Next Mailing List
[-- Attachment #1: Type: text/plain, Size: 1640 bytes --]
Hi all,
After merging the crypto tree, today's linux-next build (powerpc
allyesconfig) failed like this:
net/ipv4/tcp_ao.c: In function 'tcp_ao_key_alloc':
net/ipv4/tcp_ao.c:1536:13: error: implicit declaration of function 'crypto_ahash_alignmask'; did you mean 'crypto_ahash_alg_name'? [-Werror=implicit-function-declaration]
1536 | if (crypto_ahash_alignmask(tfm) > TCP_AO_KEY_ALIGN) {
| ^~~~~~~~~~~~~~~~~~~~~~
| crypto_ahash_alg_name
Caused by commit
0f8660c82b79 ("crypto: ahash - remove crypto_ahash_alignmask")
interacting with commit
4954f17ddefc ("net/tcp: Introduce TCP_AO setsockopt()s")
from the net-next tree.
I have applied the following merge resolution patch for today:
From: Stephen Rothwell <sfr@canb.auug.org.au>
Date: Mon, 30 Oct 2023 15:54:37 +1100
Subject: [PATCH] fix up for "crypto: ahash - remove crypto_ahash_alignmask"
interacting with "net/tcp: Introduce TCP_AO setsockopt()s"
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
---
net/ipv4/tcp_ao.c | 4 ----
1 file changed, 4 deletions(-)
diff --git a/net/ipv4/tcp_ao.c b/net/ipv4/tcp_ao.c
index 6a845e906a1d..d18562bb3184 100644
--- a/net/ipv4/tcp_ao.c
+++ b/net/ipv4/tcp_ao.c
@@ -1533,10 +1533,6 @@ static struct tcp_ao_key *tcp_ao_key_alloc(struct sock *sk,
goto err_free_pool;
tfm = crypto_ahash_reqtfm(hp.req);
- if (crypto_ahash_alignmask(tfm) > TCP_AO_KEY_ALIGN) {
- err = -EOPNOTSUPP;
- goto err_pool_end;
- }
digest_size = crypto_ahash_digestsize(tfm);
tcp_sigpool_end(&hp);
--
2.40.1
--
Cheers,
Stephen Rothwell
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: linux-next: build failure after merge of the crypto tree
2023-10-30 4:58 linux-next: build failure after merge of the crypto tree Stephen Rothwell
@ 2023-10-30 5:09 ` Stephen Rothwell
2023-10-30 5:23 ` Herbert Xu
0 siblings, 1 reply; 7+ messages in thread
From: Stephen Rothwell @ 2023-10-30 5:09 UTC (permalink / raw)
To: Herbert Xu, David Miller, Jakub Kicinski, Paolo Abeni
Cc: Networking, Linux Crypto List, Dmitry Safonov, Dmitry Safonov,
Francesco Ruggeri, Salam Noureddine, Linux Kernel Mailing List,
Linux Next Mailing List
[-- Attachment #1: Type: text/plain, Size: 2019 bytes --]
Hi all,
On Mon, 30 Oct 2023 15:58:09 +1100 Stephen Rothwell <sfr@canb.auug.org.au> wrote:
>
> After merging the crypto tree, today's linux-next build (powerpc
> allyesconfig) failed like this:
>
> net/ipv4/tcp_ao.c: In function 'tcp_ao_key_alloc':
> net/ipv4/tcp_ao.c:1536:13: error: implicit declaration of function 'crypto_ahash_alignmask'; did you mean 'crypto_ahash_alg_name'? [-Werror=implicit-function-declaration]
> 1536 | if (crypto_ahash_alignmask(tfm) > TCP_AO_KEY_ALIGN) {
> | ^~~~~~~~~~~~~~~~~~~~~~
> | crypto_ahash_alg_name
>
> Caused by commit
>
> 0f8660c82b79 ("crypto: ahash - remove crypto_ahash_alignmask")
>
> interacting with commit
>
> 4954f17ddefc ("net/tcp: Introduce TCP_AO setsockopt()s")
>
> from the net-next tree.
>
> I have applied the following merge resolution patch for today:
From: Stephen Rothwell <sfr@canb.auug.org.au>
Date: Mon, 30 Oct 2023 15:54:37 +1100
Subject: [PATCH] fix up for "crypto: ahash - remove crypto_ahash_alignmask"
interacting with "net/tcp: Introduce TCP_AO setsockopt()s"
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
---
net/ipv4/tcp_ao.c | 6 ------
1 file changed, 6 deletions(-)
diff --git a/net/ipv4/tcp_ao.c b/net/ipv4/tcp_ao.c
index 6a845e906a1d..ef5472ed6158 100644
--- a/net/ipv4/tcp_ao.c
+++ b/net/ipv4/tcp_ao.c
@@ -1533,10 +1533,6 @@ static struct tcp_ao_key *tcp_ao_key_alloc(struct sock *sk,
goto err_free_pool;
tfm = crypto_ahash_reqtfm(hp.req);
- if (crypto_ahash_alignmask(tfm) > TCP_AO_KEY_ALIGN) {
- err = -EOPNOTSUPP;
- goto err_pool_end;
- }
digest_size = crypto_ahash_digestsize(tfm);
tcp_sigpool_end(&hp);
@@ -1551,8 +1547,6 @@ static struct tcp_ao_key *tcp_ao_key_alloc(struct sock *sk,
key->digest_size = digest_size;
return key;
-err_pool_end:
- tcp_sigpool_end(&hp);
err_free_pool:
tcp_sigpool_release(pool_id);
return ERR_PTR(err);
--
2.40.1
--
Cheers,
Stephen Rothwell
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: linux-next: build failure after merge of the crypto tree
2023-10-30 5:09 ` Stephen Rothwell
@ 2023-10-30 5:23 ` Herbert Xu
2023-10-30 17:44 ` Dmitry Safonov
2023-10-30 22:02 ` Jakub Kicinski
0 siblings, 2 replies; 7+ messages in thread
From: Herbert Xu @ 2023-10-30 5:23 UTC (permalink / raw)
To: Stephen Rothwell
Cc: David Miller, Jakub Kicinski, Paolo Abeni, Networking,
Linux Crypto List, Dmitry Safonov, Dmitry Safonov,
Francesco Ruggeri, Salam Noureddine, Linux Kernel Mailing List,
Linux Next Mailing List
On Mon, Oct 30, 2023 at 04:09:53PM +1100, Stephen Rothwell wrote:
>
> From: Stephen Rothwell <sfr@canb.auug.org.au>
> Date: Mon, 30 Oct 2023 15:54:37 +1100
> Subject: [PATCH] fix up for "crypto: ahash - remove crypto_ahash_alignmask"
>
> interacting with "net/tcp: Introduce TCP_AO setsockopt()s"
>
> Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
> ---
> net/ipv4/tcp_ao.c | 6 ------
> 1 file changed, 6 deletions(-)
Acked-by: Herbert Xu <herbert@gondor.apana.org.au>
If we simply apply this patch to the netdev tree then everything
should work at the next merge window. But perhaps you could change
the patch description to say something like remove the obsolete
crypto_hash_alignmask. It's not important though.
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] 7+ messages in thread
* Re: linux-next: build failure after merge of the crypto tree
2023-10-30 5:23 ` Herbert Xu
@ 2023-10-30 17:44 ` Dmitry Safonov
2023-10-30 22:02 ` Jakub Kicinski
1 sibling, 0 replies; 7+ messages in thread
From: Dmitry Safonov @ 2023-10-30 17:44 UTC (permalink / raw)
To: Stephen Rothwell
Cc: David Miller, Jakub Kicinski, Paolo Abeni, Networking,
Linux Crypto List, Dmitry Safonov, Francesco Ruggeri,
Salam Noureddine, Linux Kernel Mailing List,
Linux Next Mailing List, Herbert Xu
On 10/30/23 05:23, Herbert Xu wrote:
> On Mon, Oct 30, 2023 at 04:09:53PM +1100, Stephen Rothwell wrote:
>>
>> From: Stephen Rothwell <sfr@canb.auug.org.au>
>> Date: Mon, 30 Oct 2023 15:54:37 +1100
>> Subject: [PATCH] fix up for "crypto: ahash - remove crypto_ahash_alignmask"
>>
>> interacting with "net/tcp: Introduce TCP_AO setsockopt()s"
>>
>> Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
>> ---
>> net/ipv4/tcp_ao.c | 6 ------
>> 1 file changed, 6 deletions(-)
>
> Acked-by: Herbert Xu <herbert@gondor.apana.org.au>
Reviewed-by: Dmitry Safonov <dima@arista.com>
> If we simply apply this patch to the netdev tree then everything
> should work at the next merge window. But perhaps you could change
> the patch description to say something like remove the obsolete
> crypto_hash_alignmask. It's not important though.
Thank you,
Dmitry
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: linux-next: build failure after merge of the crypto tree
2023-10-30 5:23 ` Herbert Xu
2023-10-30 17:44 ` Dmitry Safonov
@ 2023-10-30 22:02 ` Jakub Kicinski
2023-10-31 4:51 ` Eric Biggers
1 sibling, 1 reply; 7+ messages in thread
From: Jakub Kicinski @ 2023-10-30 22:02 UTC (permalink / raw)
To: Herbert Xu
Cc: Stephen Rothwell, David Miller, Paolo Abeni, Networking,
Linux Crypto List, Dmitry Safonov, Dmitry Safonov,
Francesco Ruggeri, Salam Noureddine, Linux Kernel Mailing List,
Linux Next Mailing List
On Mon, 30 Oct 2023 13:23:53 +0800 Herbert Xu wrote:
> If we simply apply this patch to the netdev tree then everything
> should work at the next merge window. But perhaps you could change
> the patch description to say something like remove the obsolete
> crypto_hash_alignmask. It's not important though.
I'm happy to massage the commit message and apply the fix to net.
But is it actually 100% correct to do that? IOW is calling
crypto_ahash_alignmask() already not necessary in net-next or does
it only become unnecessary after some prep work in crypto-next?
We can tell Linus to squash this fix into the merge of either
crypto-next or net-next, I'm pretty sure he'd be okay with that..
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: linux-next: build failure after merge of the crypto tree
2023-10-30 22:02 ` Jakub Kicinski
@ 2023-10-31 4:51 ` Eric Biggers
2023-10-31 20:14 ` Jakub Kicinski
0 siblings, 1 reply; 7+ messages in thread
From: Eric Biggers @ 2023-10-31 4:51 UTC (permalink / raw)
To: Jakub Kicinski
Cc: Herbert Xu, Stephen Rothwell, David Miller, Paolo Abeni,
Networking, Linux Crypto List, Dmitry Safonov, Dmitry Safonov,
Francesco Ruggeri, Salam Noureddine, Linux Kernel Mailing List,
Linux Next Mailing List
On Mon, Oct 30, 2023 at 03:02:43PM -0700, Jakub Kicinski wrote:
> On Mon, 30 Oct 2023 13:23:53 +0800 Herbert Xu wrote:
> > If we simply apply this patch to the netdev tree then everything
> > should work at the next merge window. But perhaps you could change
> > the patch description to say something like remove the obsolete
> > crypto_hash_alignmask. It's not important though.
>
> I'm happy to massage the commit message and apply the fix to net.
> But is it actually 100% correct to do that? IOW is calling
> crypto_ahash_alignmask() already not necessary in net-next or does
> it only become unnecessary after some prep work in crypto-next?
>
> We can tell Linus to squash this fix into the merge of either
> crypto-next or net-next, I'm pretty sure he'd be okay with that..
It's safe to fold the patch into net-next. It actually looks like a bug to be
using the alignmask in the way that net/ipv4/tcp_ao.c is using it. You don't
want to be erroring out just because the algorithm declared an alignmask.
- Eric
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: linux-next: build failure after merge of the crypto tree
2023-10-31 4:51 ` Eric Biggers
@ 2023-10-31 20:14 ` Jakub Kicinski
0 siblings, 0 replies; 7+ messages in thread
From: Jakub Kicinski @ 2023-10-31 20:14 UTC (permalink / raw)
To: Eric Biggers
Cc: Herbert Xu, Stephen Rothwell, David Miller, Paolo Abeni,
Networking, Linux Crypto List, Dmitry Safonov, Dmitry Safonov,
Francesco Ruggeri, Salam Noureddine, Linux Kernel Mailing List,
Linux Next Mailing List
On Mon, 30 Oct 2023 21:51:57 -0700 Eric Biggers wrote:
> On Mon, Oct 30, 2023 at 03:02:43PM -0700, Jakub Kicinski wrote:
> > On Mon, 30 Oct 2023 13:23:53 +0800 Herbert Xu wrote:
> > > If we simply apply this patch to the netdev tree then everything
> > > should work at the next merge window. But perhaps you could change
> > > the patch description to say something like remove the obsolete
> > > crypto_hash_alignmask. It's not important though.
> >
> > I'm happy to massage the commit message and apply the fix to net.
> > But is it actually 100% correct to do that? IOW is calling
> > crypto_ahash_alignmask() already not necessary in net-next or does
> > it only become unnecessary after some prep work in crypto-next?
> >
> > We can tell Linus to squash this fix into the merge of either
> > crypto-next or net-next, I'm pretty sure he'd be okay with that..
>
> It's safe to fold the patch into net-next. It actually looks like a bug to be
> using the alignmask in the way that net/ipv4/tcp_ao.c is using it. You don't
> want to be erroring out just because the algorithm declared an alignmask.
Thanks Eric! Applied as commit f2fbb9081123 ("net: tcp: remove call to
obsolete crypto_ahash_alignmask()") to net-next. I'll respin our PR
after some sanity checking.
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2023-10-31 20:14 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-10-30 4:58 linux-next: build failure after merge of the crypto tree Stephen Rothwell
2023-10-30 5:09 ` Stephen Rothwell
2023-10-30 5:23 ` Herbert Xu
2023-10-30 17:44 ` Dmitry Safonov
2023-10-30 22:02 ` Jakub Kicinski
2023-10-31 4:51 ` Eric Biggers
2023-10-31 20:14 ` Jakub Kicinski
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).