]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
mptcp: fix potential wake-up event loss
authorPaolo Abeni <pabeni@redhat.com>
Fri, 23 Feb 2024 16:14:16 +0000 (17:14 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 6 Mar 2024 14:48:42 +0000 (14:48 +0000)
commitb609ecda2d767c6de520939825f1a93a4f3197a9
treef17e9ab0d22e9215745e17f7bc8e8c8e7ec34485
parentae5530ccd5ef6977c45e8ad17e66e164159cd6ff
mptcp: fix potential wake-up event loss

commit b111d8fbd2cbc63e05f3adfbbe0d4df655dfcc5b upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/mptcp/protocol.h