]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[IPV6] fix ipv6_getsockopt_sticky copy_to_user leak
authorChris Wright <chrisw@sous-sol.org>
Sat, 10 Mar 2007 00:19:17 +0000 (16:19 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 10 Mar 2007 00:19:17 +0000 (16:19 -0800)
commitd2b02ed9487ed25832d19534575052e43f8e0c4f
tree292944e3306f4209dde7ffc18e36fc3d6e3fd8d7
parentdfee0a725bb027b749ffdd318eb48b91d564b266
[IPV6] fix ipv6_getsockopt_sticky copy_to_user leak

User supplied len < 0 can cause leak of kernel memory.
Use unsigned compare instead.

Signed-off-by: Chris Wright <chrisw@sous-sol.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/ipv6_sockglue.c