From: David S. Miller Date: Tue, 28 Sep 2010 03:24:54 +0000 (-0700) Subject: tcp: Fix >4GB writes on 64-bit. X-Git-Tag: v2.6.36-rc6~6^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=01db403cf99f739f86903314a489fb420e0e254f;p=pandora-kernel.git tcp: Fix >4GB writes on 64-bit. Fixes kernel bugzilla #16603 tcp_sendmsg() truncates iov_len to an 'int' which a 4GB write to write zero bytes, for example. There is also the problem higher up of how verify_iovec() works. It wants to prevent the total length from looking like an error return value. However it does this using 'int', but syscalls return 'long' (and thus signed 64-bit on 64-bit machines). So it could trigger false-positives on 64-bit as written. So fix it to use 'long'. Reported-by: Olaf Bonorden Reported-by: Daniel Büse Reported-by: Andrew Morton Signed-off-by: David S. Miller --- Reading git-diff-tree failed