mptcp: plug mptcp_accept memory leaks
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v3 Latest3 patches 1 replyIn review
- v23 patches 2 repliesSuperseded
- v13 patches 3 repliesSuperseded
v2 from the cover letter
- rename helper in patch 2
- add back crucial mptcp_init_sock() after clone in patch 3. This was lost during rebase and broke the tests but i forgot to refresh this patch when i sent v1.
Patches in v3 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | mptcp: release mptcp socket in mptcp_closenet/ | +5 | 0 replies | |
| 2/3 | mptcp: store tcp socket, not tcp sock in subflow ctxnet/ net/ net/ | +22 | 0 replies | |
| 3/3 | mptcp: accept: don't leak mptcp socket structurenet/ | +46 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.
Cover letter [MPTCP] [PATCH mptcp v3 0/3] mptcp: plug mptcp_accept memory leaks
v3: rebase & fix erroneous conditional in patch #3.
v2 cover letter:
v2:
- rename helper in patch 2
- add back crucial mptcp_init_sock() after clone in patch 3. This was lost during rebase and broke the tests but i forgot to refresh this patch when i sent v1.
This series resolves the memory leaks that occur when running mptcp_connect.sh.
I don't mind if they get squashed.
I've decided to split this into 3 distinct changes to make it a bit clearer what is going on.
Second patch is not a bug fix, i can resend and drop it if the consensus is to continue using the sk->sk_socket back reference.
Third patch is a bit large due to the change in how the new mptcp socket is created.
See the commit messages for more details.
After these changes kmemleak doesn't report any leaks when the test script has completed.