[Bug 255874] [PATCH] netgraph: Fix a double free in ng_checksum_rcvdata

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 23 May 2021 12:59:57 +0000
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=255874

--- Comment #4 from commit-hook_at_FreeBSD.org ---
A commit in branch stable/12 references this bug:

URL:
https://cgit.FreeBSD.org/src/commit/?id=76b96a4ec7fa8cffbfe8e876d622fd4e69f25267

commit 76b96a4ec7fa8cffbfe8e876d622fd4e69f25267
Author:     Lutz Donnerhacke <donner_at_FreeBSD.org>
AuthorDate: 2021-05-15 09:32:57 +0000
Commit:     Lutz Donnerhacke <donner_at_FreeBSD.org>
CommitDate: 2021-05-23 12:59:28 +0000

    netgraph/ng_checksum: Fix double free error

    m_pullup(9) frees the mbuf(9) chain in the case of an allocation error.
    The mbuf chain must not be freed again in this case.

    PR:             255874
    Submitted by:   <lylgood_at_foxmail.com>
    Approved by:    markj
    Differential Revision: https://reviews.freebsd.org/D30273

    (cherry picked from commit 687e510e5ce32fddf46a9dc1d517ccc8a8e25581)

 sys/netgraph/ng_checksum.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

-- 
You are receiving this mail because:
You are on the CC list for the bug.
Received on Sun May 23 2021 - 12:59:57 UTC

Original text of this message