Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F177759356
D58466.1795214107.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
526 B
Referenced Files
None
Subscribers
None
D58466.1795214107.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,15 @@
mprev = NULL;
for (m = m0; m != NULL; m = mprev->m_next) {
+ /*
+ * m_unshare() can not process KTLS mbufs because they must
+ * neither be linearized nor converted to mapped.
+ */
+ if (mbuf_has_tls_session(m)) {
+ 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 20, 10:35 PM (20 h, 24 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41876912
Default Alt Text
D58466.1795214107.diff (526 B)
Attached To
Mode
D58466: mbuf: make m_unshare() to fail on KTLS mbufs
Attached
Detach File
Event Timeline