Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F156883058
D19468.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
604 B
Referenced Files
None
Subscribers
None
D19468.diff
View Options
Index: head/sys/net/iflib.c
===================================================================
--- head/sys/net/iflib.c
+++ head/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
Mon, May 18, 1:42 AM (5 h, 59 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
33228111
Default Alt Text
D19468.diff (604 B)
Attached To
Mode
D19468: iflib: prevent possible infinite loop in iflib_encap
Attached
Detach File
Event Timeline
Log In to Comment