This repository has been archived by the owner on Apr 18, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 335
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mptcp: Always release meta if it gets closed half-way through
After the check for is_meta_sk() in tcp_check_req and before acquiring the lock, the meta might have been closed through mptcp_disconnect. At that point, the is_meta_sk()-check will return false. However, we still did acquire the lock and thus need to release it. So, store this info in a local variable in tcp_check_req. Also, there is another path through which we might enter calling tcp_check_req, namely mptcp_v4/6_do_rcv. In that case, we don't end up calling tcp_child_process and thus need to manually drop the meta-lock ourselves. Fixes: b4563ba ("mptcp: Take meta-lock when creating secondary subflow") Signed-off-by: Christoph Paasch <cpaasch@apple.com> Signed-off-by: Matthieu Baerts <matthieu.baerts@tessares.net> (cherry picked from commit f182a8e) Signed-off-by: Matthieu Baerts <matthieu.baerts@tessares.net>
- Loading branch information
Showing
3 changed files
with
9 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters