This repository has been archived by the owner on Apr 18, 2024. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mptcp: Don't sock_put too early if we still access the meta
In the error code-paths the meta is supposed to get free'd. Problem is: we do a bh_unlock_sock() after the last sock_put(). (that last sock-put happens in the error code-path when going into inet_csk_destroy_sock() coming from inet_child_forget()) The reason this is the last sock_put() is because we sock_put already in __mptcp_check_req_master. Thus, this is error-prone. Instread of having __mptcp_check_req_master do the last sock_put, let's let the callers do it. That avoid a bh_unlock_sock() on a free'd socket. Fixes: Zero-day bug Signed-off-by: Christoph Paasch <cpaasch@apple.com> Signed-off-by: Matthieu Baerts <matthieu.baerts@tessares.net> (cherry picked from commit 7b0343d) Signed-off-by: Matthieu Baerts <matthieu.baerts@tessares.net> (cherry picked from commit 99ec1d7) Signed-off-by: Matthieu Baerts <matthieu.baerts@tessares.net>
- Loading branch information