Page MenuHomeFreeBSD

D46786.diff
No OneTemporary

D46786.diff

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
@@ -2147,6 +2147,12 @@
mprev = NULL;
for (m = m0; m != NULL; m = mprev->m_next) {
+ /* This code is not safe to use with unmapped mbufs. */
+ if ((m->m_flags & M_EXTPG) != 0) {
+ m_freem(m0);
+ return (NULL);
+ }
+
/*
* Regular mbufs are ignored unless there's a cluster
* in front of it that we can use to coalesce. We do

File Metadata

Mime Type
text/plain
Expires
Fri, Nov 8, 7:35 PM (20 h, 48 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
12842627
Default Alt Text
D46786.diff (460 B)

Event Timeline