diff options
author | 2020-11-24 22:51:24 +0100 | |
---|---|---|
committer | 2020-11-25 13:36:16 -0800 | |
commit | fd8976790a6c1fee98bd7bc73754ddc9f01273ab (patch) | |
tree | 8f2c56dcaedd3bbb5f430ec6ed290032f19f6e78 /net/lapb/lapb_timer.c | |
parent | bridge: mrp: Implement LC mode for MRP (diff) | |
download | wireguard-linux-fd8976790a6c1fee98bd7bc73754ddc9f01273ab.tar.xz wireguard-linux-fd8976790a6c1fee98bd7bc73754ddc9f01273ab.zip |
mptcp: be careful on MPTCP-level ack.
We can enter the main mptcp_recvmsg() loop even when
no subflows are connected. As note by Eric, that would
result in a divide by zero oops on ack generation.
Address the issue by checking the subflow status before
sending the ack.
Additionally protect mptcp_recvmsg() against invocation
with weird socket states.
v1 -> v2:
- removed unneeded inline keyword - Jakub
Reported-and-suggested-by: Eric Dumazet <eric.dumazet@gmail.com>
Fixes: ea4ca586b16f ("mptcp: refine MPTCP-level ack scheduling")
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Link: https://lore.kernel.org/r/5370c0ae03449239e3d1674ddcfb090cf6f20abe.1606253206.git.pabeni@redhat.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions