Re: [PATCH v4 00/24] crypto: fix RCU stalls

From: Herbert Xu
Date: Wed Nov 16 2022 - 22:59:10 EST


On Tue, Nov 15, 2022 at 10:13:18PM -0600, Robert Elliott wrote:
> This series fixes the RCU stalls triggered by the x86 crypto
> modules discussed in
> https://lore.kernel.org/all/MW5PR84MB18426EBBA3303770A8BC0BDFAB759@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/
>
> Two root causes were:
> - too much data processed between kernel_fpu_begin and
> kernel_fpu_end calls (which are heavily used by the x86
> optimized drivers)
> - tcrypt not calling cond_resched during speed test loops
>
> These problems have always been lurking, but improving the
> loading of the x86/sha512 module led to it happening a lot
> during boot when using SHA-512 for module signature checking.

Can we split this series up please? The fixes to the stalls should
stand separately from the changes to how modules are loaded. The
latter is more of an improvement while the former should be applied
ASAP.

Thanks,
--
Email: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt