1 From 253eacc070b114c2ec1f81b067d2fed7305467b0 Mon Sep 17 00:00:00 2001
2 From: Linus Torvalds <torvalds@linux-foundation.org>
3 Date: Sat, 30 Oct 2010 16:43:10 -0700
4 Subject: net: Truncate recvfrom and sendto length to INT_MAX.
6 From: Linus Torvalds <torvalds@linux-foundation.org>
8 commit 253eacc070b114c2ec1f81b067d2fed7305467b0 upstream.
10 Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
11 Signed-off-by: David S. Miller <davem@davemloft.net>
12 Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
16 1 file changed, 4 insertions(+)
20 @@ -1651,6 +1651,8 @@ SYSCALL_DEFINE6(sendto, int, fd, void __
26 sock = sockfd_lookup_light(fd, &err, &fput_needed);
29 @@ -1708,6 +1710,8 @@ SYSCALL_DEFINE6(recvfrom, int, fd, void
35 sock = sockfd_lookup_light(fd, &err, &fput_needed);