Page MenuHomeFreeBSD

D46786.1789809170.diff
No OneTemporary

Size
460 B
Referenced Files
None
Subscribers
None

D46786.1789809170.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
Sat, Sep 19, 9:12 AM (2 h, 59 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29776282
Default Alt Text
D46786.1789809170.diff (460 B)

Event Timeline