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 339
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mptcp: Initialize meta_tp after potentially failing instructions
In mptcp_alloc_mpcb, we are changing quite some fields of the meta_tp and then do a potentially failing hash-insertion attempt. If this one fails, we leave the meta_tp with incorrect sequence-numbers,... Thus, we have to do this operation at the beginning. That way, when it fails we can just continue in mptcp_create_master_sk when mptcp_alloc_mpcb fails. Because, we really can't destroy the meta here, because when we are coming from tcp_rcv_synsent_state_process we already committed to maintain the metask. We rather move the forced closure now to __mptcp_check_req_master. Also, removing the sk_wmem_alloc set to 1, because that's already done in sk_clone_lock(). Fixes: 369a043 ("mptcp: Build-Fix: Support lockless listeners in mptcp_alloc_mpcb") Signed-off-by: Christoph Paasch <cpaasch@apple.com> Signed-off-by: Matthieu Baerts <matthieu.baerts@tessares.net>
- Loading branch information
Showing
1 changed file
with
79 additions
and
79 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