diff options
| author | Herbert Xu <[email protected]> | 2005-09-02 00:48:59 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2005-09-02 00:48:59 +0000 |
| commit | ef015786152adaff5a6a8bf0c8ea2f70cee8059d (patch) | |
| tree | 3042db7e451c61aefc60c1463bb6e307ca510638 /net/ipv4/tcp_input.c | |
| parent | [NET]: Add sk_stream_wmem_schedule (diff) | |
| download | kernel-ef015786152adaff5a6a8bf0c8ea2f70cee8059d.tar.gz kernel-ef015786152adaff5a6a8bf0c8ea2f70cee8059d.zip | |
[TCP]: Fix sk_forward_alloc underflow in tcp_sendmsg
I've finally found a potential cause of the sk_forward_alloc underflows
that people have been reporting sporadically.
When tcp_sendmsg tacks on extra bits to an existing TCP_PAGE we don't
check sk_forward_alloc even though a large amount of time may have
elapsed since we allocated the page. In the mean time someone could've
come along and liberated packets and reclaimed sk_forward_alloc memory.
This patch makes tcp_sendmsg check sk_forward_alloc every time as we
do in do_tcp_sendpages.
Signed-off-by: Herbert Xu <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/ipv4/tcp_input.c')
0 files changed, 0 insertions, 0 deletions
