]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
tcp: warn on negative reordering values
authorSoheil Hassas Yeganeh <soheil@google.com>
Tue, 16 May 2017 21:39:02 +0000 (17:39 -0400)
committerDavid S. Miller <davem@davemloft.net>
Fri, 19 May 2017 20:55:46 +0000 (16:55 -0400)
commit6f5b24eed0278136c29c27f2a7b3a2b6a202ac68
treeb8a07f08f4d1787db97a93027c4cc8773d9c7aa8
parentc6cd850d6568872f66fc4a4582f34f9b910066ca
tcp: warn on negative reordering values

Commit bafbb9c73241 ("tcp: eliminate negative reordering
in tcp_clean_rtx_queue") fixes an issue for negative
reordering metrics.

To be resilient to such errors, warn and return
when a negative metric is passed to tcp_update_reordering().

Signed-off-by: Soheil Hassas Yeganeh <soheil@google.com>
Signed-off-by: Neal Cardwell <ncardwell@google.com>
Signed-off-by: Yuchung Cheng <ycheng@google.com>
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp_input.c