]> err.no Git - linux-2.6/commit
[IPV6]: Check length of optval provided by user in setsockopt().
authorWang Chen <wangchen@cn.fujitsu.com>
Mon, 7 Apr 2008 01:42:07 +0000 (09:42 +0800)
committerYOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Sat, 12 Apr 2008 04:43:23 +0000 (13:43 +0900)
commita28398ba6112be28c6a92aacf06aca1979b454b7
treed1998af0632459026ee9bf479afcf9897f626ac2
parent7f1eced8b0a001c4d5a8cfa5ac7b5cbc89fedab8
[IPV6]: Check length of optval provided by user in setsockopt().

Check length of setsockopt's optval, which provided by user, before copy it
from user space.
For POSIX compliant, return -EINVAL for setsockopt of short lengths.

Signed-off-by: Wang Chen <wangchen@cn.fujitsu.com>
Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
net/ipv6/ipv6_sockglue.c