Re: [PATCH] crypto: relocate ALG_MAX_PAGES to uapi

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Dec 25, 2015 at 06:14:54PM +0100, Stephan Mueller wrote:
> The define of ALG_MAX_PAGES is relevant for user space as this macro
> defines the maximum number of pages to be processed in one go by
> vmsplice/splice. If user space does not obey that limit, the calling
> thread will hang until a recvmsg is called (by another thread).
> 
> As user space should have the ability to prevent such blocks, it needs
> to know about the limit. Therefore, the define is moved to the uapi
> header file.
> 
> Signed-off-by: Stephan Mueller <smueller@xxxxxxxxxx>

I don't like exporting details like this.  User-space should not
be relying on voodoo like this to avoid hanging.

Please show me the program that actually hangs so we can figure
out what if anything needs to be done to address this.

Thanks,
-- 
Email: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
--
To unsubscribe from this list: send the line "unsubscribe linux-crypto" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Kernel]     [Gnu Classpath]     [Gnu Crypto]     [DM Crypt]     [Netfilter]     [Bugtraq]

  Powered by Linux