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: Ensure proper free'ing of master_sk upon failure
We might have inet_opt set from the meta, but inet_sock_destruct will try to free it. We need to set it to NULL to prevent a use-after-free. We need to make sure that the socket is in SOCK_DEAD, thus call sock_orphan() as inet_sock_destruct checks for SOCK_DEAD. Same for TCP_CLOSE. The lock has been taken in sk_clone_lock(). Drop it! Fixes: Zero-day bug Signed-off-by: Christoph Paasch <cpaasch@apple.com> Signed-off-by: Matthieu Baerts <matthieu.baerts@tessares.net>
- Loading branch information