Discussion:
[Bug 255874] [PATCH] netgraph: Fix a double free in ng_checksum_rcvdata
b***@freebsd.org
2021-05-14 13:00:25 UTC
Permalink
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=255874

Mark Linimon <***@FreeBSD.org> changed:

What |Removed |Added
----------------------------------------------------------------------------
Assignee|***@FreeBSD.org |***@FreeBSD.org
--
You are receiving this mail because:
You are the assignee for the bug.
b***@freebsd.org
2021-05-15 09:26:25 UTC
Permalink
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=255874

Lutz Donnerhacke <***@FreeBSD.org> changed:

What |Removed |Added
----------------------------------------------------------------------------
Status|New |Open
Keywords| |patch
CC| |***@FreeBSD.org
Assignee|***@FreeBSD.org |***@FreeBSD.org
--
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
b***@freebsd.org
2021-05-15 09:41:21 UTC
Permalink
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=255874

Lutz Donnerhacke <***@FreeBSD.org> changed:

What |Removed |Added
----------------------------------------------------------------------------
Status|Open |In Progress

--- Comment #1 from Lutz Donnerhacke <***@FreeBSD.org> ---
Thank you for you detection, analysis and fix of this bug.

Change is now under review D30273
I'll wait for someone else to review this independently.
If your bug report had been a review, I'v simply accepted it.
--
You are receiving this mail because:
You are on the CC list for the bug.
b***@freebsd.org
2021-05-16 17:41:51 UTC
Permalink
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=255874

--- Comment #2 from commit-***@FreeBSD.org ---
A commit in branch main references this bug:

URL:
https://cgit.FreeBSD.org/src/commit/?id=687e510e5ce32fddf46a9dc1d517ccc8a8e25581

commit 687e510e5ce32fddf46a9dc1d517ccc8a8e25581
Author: Lutz Donnerhacke <***@FreeBSD.org>
AuthorDate: 2021-05-15 09:32:57 +0000
Commit: Lutz Donnerhacke <***@FreeBSD.org>
CommitDate: 2021-05-16 17:39:51 +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: <***@foxmail.com>
Approved by: markj
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D30273

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.
b***@freebsd.org
2021-05-16 17:42:58 UTC
Permalink
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=255874

Lutz Donnerhacke <***@FreeBSD.org> changed:

What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |FIXED
Status|In Progress |Closed
--
You are receiving this mail because:
You are on the CC list for the bug.
b***@freebsd.org
2021-05-23 12:56:50 UTC
Permalink
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=255874

--- Comment #3 from commit-***@FreeBSD.org ---
A commit in branch stable/13 references this bug:

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

commit fa670efa25ad960e17a6a9cb4601e5c3f19de5da
Author: Lutz Donnerhacke <***@FreeBSD.org>
AuthorDate: 2021-05-15 09:32:57 +0000
Commit: Lutz Donnerhacke <***@FreeBSD.org>
CommitDate: 2021-05-23 12:55:20 +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: <***@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.
b***@freebsd.org
2021-05-23 12:59:57 UTC
Permalink
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=255874

--- Comment #4 from commit-***@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 <***@FreeBSD.org>
AuthorDate: 2021-05-15 09:32:57 +0000
Commit: Lutz Donnerhacke <***@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: <***@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.
b***@freebsd.org
2021-05-23 13:02:59 UTC
Permalink
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=255874

--- Comment #5 from commit-***@FreeBSD.org ---
A commit in branch stable/11 references this bug:

URL:
https://cgit.FreeBSD.org/src/commit/?id=6bc3535519f7206f844c3ffd0ee282e8875dceb4

commit 6bc3535519f7206f844c3ffd0ee282e8875dceb4
Author: Lutz Donnerhacke <***@FreeBSD.org>
AuthorDate: 2021-05-15 09:32:57 +0000
Commit: Lutz Donnerhacke <***@FreeBSD.org>
CommitDate: 2021-05-23 13:01:34 +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: <***@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.
b***@freebsd.org
2021-05-24 03:05:39 UTC
Permalink
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=255874

Kubilay Kocak <***@FreeBSD.org> changed:

What |Removed |Added
----------------------------------------------------------------------------
Flags| |mfc-stable13+,
| |mfc-stable12+,
| |mfc-stable11+
URL| |https://reviews.freebsd.org
| |/D30273
Summary|[PATCH] netgraph: Fix a |netgraph: Fix a double free
|double free in |in ng_checksum_rcvdata
|ng_checksum_rcvdata |
Keywords|patch |
--
You are receiving this mail because:
You are on the CC list for the bug.
Loading...