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

Commits on May 29, 2023

  1. net/tcp: Add flag for tcp_close to avoid double free

    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>
    wengzhe committed May 29, 2023
    Configuration menu
    Copy the full SHA
    d7ecde4 View commit details
    Browse the repository at this point in the history