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

[nrf fromtree] net: ipv6: mld: Fix improper reference drop #1679

Merged
merged 1 commit into from
May 14, 2024

Commits on May 13, 2024

  1. [nrf fromtree] net: ipv6: mld: Fix improper reference drop

    In case of successful submission, the reference shouldn't be put down,
    this only should done on error cases.
    
    As reference is put down on success, during the buffer unref, no action
    is taken due to an uint8 overflow (ref is now 255), so, the buf->frags
    isn't cleared properly and the next time the frags is used and when L2
    inserts a second frag, the first head frag and next frag are same (due
    to buffer re-use) causing an infinite loop in either net_buf_frag_last
    or net_pkt_get_len.
    
    Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
    (cherry picked from commit 09048e0)
    krish2718 committed May 13, 2024
    Configuration menu
    Copy the full SHA
    45a1056 View commit details
    Browse the repository at this point in the history