Re: IPV6: make ipv6_getsockopt_sticky honor user's buffer size

2007-03-08 Thread David Miller
From: YOSHIFUJI Hideaki / 吉藤英明 <[EMAIL PROTECTED]> Date: Fri, 09 Mar 2007 09:49:32 +0900 (JST) > We should give truncated result and return full length > from the POSIX POV. True, and the user would know what happened because it knows both the original length it gave and the larger one the kernel

Re: IPV6: make ipv6_getsockopt_sticky honor user's buffer size

2007-03-08 Thread YOSHIFUJI Hideaki / 吉藤英明
In article <[EMAIL PROTECTED]> (at Thu, 08 Mar 2007 14:38:04 -0800 (PST)), David Miller <[EMAIL PROTECTED]> says: > From: Chris Wright <[EMAIL PROTECTED]> > Date: Wed, 7 Mar 2007 23:10:48 -0800 > > > Make sure not to copy_to_user more than user's buffer can handle (we > > already checked the min

Re: IPV6: make ipv6_getsockopt_sticky honor user's buffer size

2007-03-08 Thread David Miller
From: Chris Wright <[EMAIL PROTECTED]> Date: Wed, 7 Mar 2007 23:10:48 -0800 > Make sure not to copy_to_user more than user's buffer can handle (we > already checked the min, just use it) in ipv6_getsockopt_sticky. And > while there, minor whitespace cleanup now that ipv6_getsockopt_sticky > call

IPV6: make ipv6_getsockopt_sticky honor user's buffer size

2007-03-07 Thread Chris Wright
Make sure not to copy_to_user more than user's buffer can handle (we already checked the min, just use it) in ipv6_getsockopt_sticky. And while there, minor whitespace cleanup now that ipv6_getsockopt_sticky call can nicely fit on one line. Signed-off-by: Chris Wright <[EMAIL PROTECTED]> --- dif