summaryrefslogtreecommitdiffstats
path: root/net/ipv4/tcp_input.c
diff options
context:
space:
mode:
authorDavid S. Miller2010-09-28 05:24:54 +0200
committerDavid S. Miller2010-09-28 05:24:54 +0200
commit01db403cf99f739f86903314a489fb420e0e254f (patch)
treebf04fbfb3ed88d6cf7abeea1ab5209be36907882 /net/ipv4/tcp_input.c
parentnet/9p: Mount only matching virtio channels (diff)
downloadkernel-qcow2-linux-01db403cf99f739f86903314a489fb420e0e254f.tar.gz
kernel-qcow2-linux-01db403cf99f739f86903314a489fb420e0e254f.tar.xz
kernel-qcow2-linux-01db403cf99f739f86903314a489fb420e0e254f.zip
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 <bono@onlinehome.de> Reported-by: Daniel Büse <dbuese@gmx.de> Reported-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/tcp_input.c')
0 files changed, 0 insertions, 0 deletions