]> git.itanic.dy.fi Git - linux-stable/commit
mptcp: fix potential wake-up event loss
authorPaolo Abeni <pabeni@redhat.com>
Fri, 23 Feb 2024 16:14:16 +0000 (17:14 +0100)
committerJakub Kicinski <kuba@kernel.org>
Tue, 27 Feb 2024 02:41:56 +0000 (18:41 -0800)
commitb111d8fbd2cbc63e05f3adfbbe0d4df655dfcc5b
tree84308a3bc6be76f7217a9c92fba04d9d6972cfbe
parentadf1bb78dab55e36d4d557aa2fb446ebcfe9e5ce
mptcp: fix potential wake-up event loss

After the blamed commit below, the send buffer auto-tuning can
happen after that the mptcp_propagate_sndbuf() completes - via
the delegated action infrastructure.

We must check for write space even after such change or we risk
missing the wake-up event.

Fixes: 8005184fd1ca ("mptcp: refactor sndbuf auto-tuning")
Cc: stable@vger.kernel.org
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Reviewed-by: Mat Martineau <martineau@kernel.org>
Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
Link: https://lore.kernel.org/r/20240223-upstream-net-20240223-misc-fixes-v1-6-162e87e48497@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/mptcp/protocol.h