Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F102115391
D46786.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
460 B
Referenced Files
None
Subscribers
None
D46786.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
@@ -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
Details
Attached
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)
Attached To
Mode
D46786: m_unshare: Fail with a NULL return if the chain contains unmapped mbufs
Attached
Detach File
Event Timeline
Log In to Comment