]> git.baikalelectronics.ru Git - kernel.git/commit
mptcp: more strict state checking for acks
authorPaolo Abeni <pabeni@redhat.com>
Tue, 12 Jan 2021 17:25:23 +0000 (18:25 +0100)
committerJakub Kicinski <kuba@kernel.org>
Wed, 13 Jan 2021 04:09:19 +0000 (20:09 -0800)
commit3ce8c99ecd940bf6bba73a3a1f6fe6f28ee4bc34
tree0ba67f80da78e148b9b06d4d9d7bc5075788fc43
parent6d3aeed8b5fa377a7c266d1a46c3c8a9d52499d3
mptcp: more strict state checking for acks

Syzkaller found a way to trigger division by zero
in mptcp_subflow_cleanup_rbuf().

The current checks implemented into tcp_can_send_ack()
are too week, let's be more accurate.

Reported-by: Christoph Paasch <cpaasch@apple.com>
Fixes: 4b82918d43b2 ("mptcp: refine MPTCP-level ack scheduling")
Fixes: 53c79b423756 ("mptcp: be careful on MPTCP-level ack.")
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Reviewed-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/mptcp/protocol.c