Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F176830448
D19468.1793447582.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
589 B
Referenced Files
None
Subscribers
None
D19468.1793447582.diff
View Options
Index: sys/net/iflib.c
===================================================================
--- sys/net/iflib.c
+++ sys/net/iflib.c
@@ -3276,9 +3276,14 @@
txq->ift_mbuf_defrag++;
m_head = m_defrag(*m_headp, M_NOWAIT);
}
- remap++;
- if (__predict_false(m_head == NULL))
+ /*
+ * remap should never be >1 unless bus_dmamap_load_mbuf_sg
+ * failed to map an mbuf that was run through m_defrag
+ */
+ MPASS(remap <= 1);
+ if (__predict_false(m_head == NULL || remap > 1))
goto defrag_failed;
+ remap++;
*m_headp = m_head;
goto retry;
break;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Oct 31, 11:53 AM (44 m, 56 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41256538
Default Alt Text
D19468.1793447582.diff (589 B)
Attached To
Mode
D19468: iflib: prevent possible infinite loop in iflib_encap
Attached
Detach File
Event Timeline