diff options
| author | Paolo Abeni <pabeni@redhat.com> | 2025-01-13 16:44:57 +0100 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-01-23 17:22:59 +0100 |
| commit | 470f313603df0c2e77ea55cbccb61de5b67f3a91 (patch) | |
| tree | edd47178dc275fbd2309b277fd883c1405c775f4 /tools | |
| parent | 34e8ad3f23269d370a3fa143f070b4433e95a2fe (diff) | |
| download | linux-470f313603df0c2e77ea55cbccb61de5b67f3a91.tar.gz linux-470f313603df0c2e77ea55cbccb61de5b67f3a91.tar.bz2 linux-470f313603df0c2e77ea55cbccb61de5b67f3a91.zip | |
mptcp: fix spurious wake-up on under memory pressure
commit e226d9259dc4f5d2c19e6682ad1356fa97cf38f4 upstream.
The wake-up condition currently implemented by mptcp_epollin_ready()
is wrong, as it could mark the MPTCP socket as readable even when
no data are present and the system is under memory pressure.
Explicitly check for some data being available in the receive queue.
Fixes: 5684ab1a0eff ("mptcp: give rcvlowat some love")
Cc: stable@vger.kernel.org
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Reviewed-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
Link: https://patch.msgid.link/20250113-net-mptcp-connect-st-flakes-v1-2-0d986ee7b1b6@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions
