Re: [PATCH 2/2] [IPV6]: Ensure to truncate result and return full length for sticky options.
From: Chris Wright <hidden> Date: 2007-03-10 00:22:19
* David Miller (davem@davemloft.net) wrote:
copy_to_user() will check it, actually, it will make sure that
optval + len doesn't wrap or overlap into kernel space.
Actually, like sparc64 it BUG's on negative length so we have
to fix this :-)
Yeah, I think it's arch dependent (x86_64 for example will give
me 2GB back happily, useful if I forgot my password ;-)
thanks,
-chris