]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
mptcp: fix poll after shutdown
authorPaolo Abeni <pabeni@redhat.com>
Thu, 11 Feb 2021 23:30:38 +0000 (15:30 -0800)
committerSeth Forshee <seth.forshee@canonical.com>
Thu, 8 Apr 2021 20:42:46 +0000 (15:42 -0500)
commit32c0f44e87e7bcdcaea11a5a5c7f5367963a8332
tree8fad4323d291b7e3193ea8cbddc256e43b377206
parenta5b31c47c12b86ca25be6d22b35ad8ea74dc082b
mptcp: fix poll after shutdown

BugLink: https://bugs.launchpad.net/bugs/1923069
[ Upstream commit dd913410b0a442a53d41a9817ed2208850858e99 ]

The current mptcp_poll() implementation gives unexpected
results after shutdown(SEND_SHUTDOWN) and when the msk
status is TCP_CLOSE.

Set the correct mask.

Fixes: 8edf08649eed ("mptcp: rework poll+nospace handling")
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
net/mptcp/protocol.c