Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F105816696
D43776.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
772 B
Referenced Files
None
Subscribers
None
D43776.diff
View Options
diff --git a/sys/kern/uipc_mbuf.c b/sys/kern/uipc_mbuf.c
--- a/sys/kern/uipc_mbuf.c
+++ b/sys/kern/uipc_mbuf.c
@@ -1439,14 +1439,16 @@
KASSERT(off >= 0, ("m_apply, negative off %d", off));
KASSERT(len >= 0, ("m_apply, negative len %d", len));
while (off > 0) {
- KASSERT(m != NULL, ("m_apply, offset > size of mbuf chain"));
+ KASSERT(m != NULL, ("m_apply, offset > size of mbuf chain "
+ "(%d extra)", off));
if (off < m->m_len)
break;
off -= m->m_len;
m = m->m_next;
}
while (len > 0) {
- KASSERT(m != NULL, ("m_apply, offset > size of mbuf chain"));
+ KASSERT(m != NULL, ("m_apply, length > size of mbuf chain "
+ "(%d extra)", len));
count = min(m->m_len - off, len);
rval = m_apply_one(m, off, count, f, arg);
if (rval)
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Dec 22, 3:20 AM (21 h, 28 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15550293
Default Alt Text
D43776.diff (772 B)
Attached To
Mode
D43776: Disambiguate KASSERTs in the m_apply() mbuf checking code and provide more context
Attached
Detach File
Event Timeline
Log In to Comment