On Fri, Nov 25, 2022 at 06:20:49PM +0800, Herbert Xu wrote: > On Fri, Nov 25, 2022 at 10:14:37AM +0000, Giovanni Cabiddu wrote: > > > > diff --git a/include/crypto/acompress.h b/include/crypto/acompress.h > > index cb3d6b1c655d..bc16e0208169 100644 > > --- a/include/crypto/acompress.h > > +++ b/include/crypto/acompress.h > > @@ -11,6 +11,7 @@ > > #include <linux/crypto.h> > > > > #define CRYPTO_ACOMP_ALLOC_OUTPUT 0x00000001 > > +#define CRYPTO_ACOMP_NULL_DST_LIMIT 131072 > > How about simply > > CRYPTO_ACOMP_DST_MAX > > Even if it isn't enforced strictly, this is basically the ceiling > on how much effort we are willing to spend on decompressing the > input. That's perfect. Thanks, -- Giovanni