From: "Russell King (Oracle)" <linux@armlinux.org.uk>
To: Herbert Xu <herbert@gondor.apana.org.au>
Cc: "Linus Torvalds" <torvalds@linux-foundation.org>,
"Horia Geantă" <horia.geanta@nxp.com>,
"Ard Biesheuvel" <ardb@kernel.org>,
"David S. Miller" <davem@davemloft.net>,
linux-crypto@vger.kernel.org
Subject: Re: [BUG] More issues with arm/aes-neonbs
Date: Fri, 9 Aug 2024 08:50:52 +0100 [thread overview]
Message-ID: <ZrXKXIQ6loxE7msT@shell.armlinux.org.uk> (raw)
In-Reply-To: <ZrWdx5cL1vKrMBbs@gondor.apana.org.au>
On Fri, Aug 09, 2024 at 12:40:39PM +0800, Herbert Xu wrote:
> On Thu, Aug 08, 2024 at 12:54:10PM -0700, Linus Torvalds wrote:
> >
> > I don't know the crypto registration API enough to even guess at what
> > the fix to break the recursion is.
> >
> > Herbert?
>
> Yes my plan is to fix this in the Crypto API and not do any recursive
> loads as we used to do.
>
> The immediate cause of the recursive load is the self-test system
> (if it is not disabled through Kconfig). The algorithm registration
> does not return until after the self-test has successfully executed.
> For the algorithm in question, that involves loading a fallback
> algorithm which is what triggered the recursive module load.
>
> We had an issue when algorithms were built into the kernel, where
> due to the random of registration calls, a self-test may invoke
> an algorithm which is built into the kernel but not yet registered.
> There it was resolved by postponing all self-tests until all
> algorithms had been registered (or when an algorithm was first used,
> which would trigger the self-test for that algorithm there and then).
>
> I will extend this to modules and let the registration return
> as soon as the new algorithm can be looked up. The self-test
> can then complete asynchronously.
>
> Russell, is it OK with you if we only resolve this in the mainline
> kernel or do you want a solution that can be backported as well?
That's fine - I've blacklisted the arm-aes-bs module in modprobe.conf
on the affected machines. Thanks!
--
RMK's Patch system: https://www.armlinux.org.uk/developer/patches/
FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!
next prev parent reply other threads:[~2024-08-09 7:51 UTC|newest]
Thread overview: 35+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-05 21:42 [BUG] More issues with arm/aes-neonbs Russell King (Oracle)
2024-08-06 10:35 ` Herbert Xu
2024-08-08 6:17 ` Herbert Xu
2024-08-08 17:14 ` Linus Torvalds
2024-08-08 18:35 ` Linus Torvalds
2024-08-08 19:54 ` Linus Torvalds
2024-08-09 4:40 ` Herbert Xu
2024-08-09 5:19 ` Linus Torvalds
2024-08-09 16:25 ` Linus Torvalds
2024-08-09 7:50 ` Russell King (Oracle) [this message]
2024-08-10 2:41 ` [PATCH 1/3] crypto: api - Remove instance larval fulfilment Herbert Xu
2024-08-16 8:45 ` kernel test robot
2024-08-17 6:56 ` [v3 PATCH " Herbert Xu
2024-08-17 6:57 ` [v3 PATCH 2/3] crypto: api - Do not wait for tests during registration Herbert Xu
2024-08-17 6:58 ` [v3 PATCH 3/3] crypto: simd - Do not call crypto_alloc_tfm " Herbert Xu
2024-08-27 18:48 ` Eric Biggers
2024-08-28 2:59 ` Herbert Xu
2024-08-30 17:51 ` Eric Biggers
2024-09-01 8:05 ` [PATCH] crypto: api - Fix generic algorithm self-test races Herbert Xu
2024-09-02 17:05 ` Eric Biggers
2024-09-02 23:07 ` Herbert Xu
2024-10-05 22:24 ` Eric Biggers
2024-10-06 0:53 ` Herbert Xu
2024-10-06 3:06 ` Eric Biggers
2024-10-07 4:32 ` Herbert Xu
2024-10-07 7:58 ` Herbert Xu
2024-10-07 8:31 ` Herbert Xu
2024-08-10 2:42 ` [PATCH 2/3] crypto: api - Do not wait for tests during registration Herbert Xu
2024-08-11 13:30 ` Dan Carpenter
2024-08-12 10:33 ` Herbert Xu
2024-08-12 10:34 ` [v2 PATCH 1/3] crypto: api - Remove instance larval fulfilment Herbert Xu
2024-08-12 10:35 ` [v2 PATCH 2/3] crypto: api - Do not wait for tests during registration Herbert Xu
2024-08-12 10:36 ` [v2 PATCH 3/3] crypto: simd - Do not call crypto_alloc_tfm " Herbert Xu
2024-08-10 2:43 ` [PATCH " Herbert Xu
2024-08-09 18:27 ` [BUG] More issues with arm/aes-neonbs Eric Biggers
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=ZrXKXIQ6loxE7msT@shell.armlinux.org.uk \
--to=linux@armlinux.org.uk \
--cc=ardb@kernel.org \
--cc=davem@davemloft.net \
--cc=herbert@gondor.apana.org.au \
--cc=horia.geanta@nxp.com \
--cc=linux-crypto@vger.kernel.org \
--cc=torvalds@linux-foundation.org \
/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;
as well as URLs for NNTP newsgroup(s).