Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

net/tcp: Add flag for tcp_close to avoid double free #9414

Merged
merged 1 commit into from May 29, 2023

Conversation

wengzhe
Copy link
Contributor

@wengzhe wengzhe commented May 29, 2023

Summary

Problem:
When tcp_close_work starts to run in LPWORK, if another event comes and calls tcp_free before tcp_close_work takes net_lock, the tcp_free will be called twice and cause double free.

Impact

Testing

Problem:
When tcp_close_work starts to run in LPWORK, if another event comes and
calls tcp_free before tcp_close_work takes net_lock, the tcp_free will
be called twice and cause double free.

Signed-off-by: Zhe Weng <wengzhe@xiaomi.com>
@jerpelea jerpelea merged commit 7d1b733 into apache:master May 29, 2023
26 checks passed
@jerpelea jerpelea added this to To-Add in Release Notes - 12.2.0 Jun 13, 2023
@jerpelea jerpelea moved this from To-Add to In Progress in Release Notes - 12.2.0 Jun 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

3 participants