diff options
author | David S. Miller <[email protected]> | 2010-09-27 20:24:54 -0700 |
---|---|---|
committer | David S. Miller <[email protected]> | 2010-09-27 20:24:54 -0700 |
commit | 01db403cf99f739f86903314a489fb420e0e254f (patch) | |
tree | bf04fbfb3ed88d6cf7abeea1ab5209be36907882 /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace | |
parent | 0b20406cda621c2495d10baab1e87127ceb43337 (diff) |
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 <[email protected]>
Reported-by: Daniel Büse <[email protected]>
Reported-by: Andrew Morton <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace')
0 files changed, 0 insertions, 0 deletions