On Fri, Jul 17, 2020 at 05:42:43PM +0300, Horia Geantă wrote: > > Looks like there's no mention of a limit on src, dst scatterlists size > that crypto implementations could use when pre-allocating memory > and crypto users needing CRYPTO_ALG_ALLOCATES_MEMORY should be aware of > (for the contract to be honoured): > https://lore.kernel.org/linux-crypto/780cb500-2241-61bc-eb44-6f872ad567d3@xxxxxxx Good point. I think we should limit this flag only to the cases applicable to dm-crypt, which seems to be 4 entries maximum. Anything else should be allowed to allocate extra memory as needed. Thanks, -- Email: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt