summaryrefslogtreecommitdiffstats
path: root/kernel/futex.c
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@ghostprotocols.net>2007-03-28 20:54:32 +0200
committerDavid S. Miller <davem@davemloft.net>2007-03-28 20:54:32 +0200
commit39ebc0276bada8bb70e067cb6d0eb71839c0fb08 (patch)
treea6afca93101b9142523d6814db12ec09d73e58ef /kernel/futex.c
parent[IPV6]: Set IF_READY if the device is up and has carrier (diff)
downloadlinux-39ebc0276bada8bb70e067cb6d0eb71839c0fb08.tar.xz
linux-39ebc0276bada8bb70e067cb6d0eb71839c0fb08.zip
[DCCP] getsockopt: Fix DCCP_SOCKOPT_[SEND,RECV]_CSCOV
We were only checking if there was enough space to put the int, but left len as specified by the (malicious) user, sigh, fix it by setting len to sizeof(val) and transfering just one int worth of data, the one asked for. Also check for negative len values. Signed-off-by: Arnaldo Carvalho de Melo <acme@ghostprotocols.net> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'kernel/futex.c')
0 files changed, 0 insertions, 0 deletions