FreeBSD Bugzilla – Attachment 225051 Details for
Bug 255878
[PATCH] netpfil/ipfw: Fix a double free in aqm_pie_enqueue
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
V2: avoid the double free while keep orignal function unchanged
0002-v2-netpfil-ipfw-fix-df-aqm_pie_enqueue.patch (text/plain), 588 bytes, created by
lylgood
on 2021-05-18 03:39:58 UTC
(
hide
)
Description:
V2: avoid the double free while keep orignal function unchanged
Filename:
MIME Type:
Creator:
lylgood
Created:
2021-05-18 03:39:58 UTC
Size:
588 bytes
patch
obsolete
>diff --git a/sys/netpfil/ipfw/dn_aqm_pie.c b/sys/netpfil/ipfw/dn_aqm_pie.c >index abd5bbf0eb9a..037f7cbe790d 100644 >--- a/sys/netpfil/ipfw/dn_aqm_pie.c >+++ b/sys/netpfil/ipfw/dn_aqm_pie.c >@@ -542,8 +542,11 @@ aqm_pie_enqueue(struct dn_queue *q, struct mbuf* m) > mtag = m_tag_alloc(MTAG_ABI_COMPAT, DN_AQM_MTAG_TS, > sizeof(aqm_time_t), M_NOWAIT); > if (mtag == NULL) { >+ update_stats(q, 0, 1); >+ /* reset accu_prob after packet drop */ >+ pst->accu_prob = 0; > m_freem(m); >- t = DROP; >+ return 1; > } > *(aqm_time_t *)(mtag + 1) = AQM_UNOW; > m_tag_prepend(m, mtag);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 255878
:
224941
| 225051