git: 299175f2e52e - main - Revert "Assert that mbufs are writable if we write to them"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 11 Sep 2024 15:06:07 UTC
The branch main has been updated by kp:
URL: https://cgit.FreeBSD.org/src/commit/?id=299175f2e52e1a5cf495316d53a245bea00dfca7
commit 299175f2e52e1a5cf495316d53a245bea00dfca7
Author: Kristof Provost <kp@FreeBSD.org>
AuthorDate: 2024-09-11 15:04:35 +0000
Commit: Kristof Provost <kp@FreeBSD.org>
CommitDate: 2024-09-11 15:04:35 +0000
Revert "Assert that mbufs are writable if we write to them"
This reverts commit f08247fd888e6f7db0ecf2aaa39377144ac40b4c.
This assertion is triggered by
ktls_test:ktls_transmit_aes128_cbc_1_0_sha1_control. Remove the assertion until
we fully understand why.
Sponsored by: Rubicon Communications, LLC ("Netgate")
---
sys/kern/uipc_mbuf.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/sys/kern/uipc_mbuf.c b/sys/kern/uipc_mbuf.c
index 3232af880925..f6ce9b5cc74b 100644
--- a/sys/kern/uipc_mbuf.c
+++ b/sys/kern/uipc_mbuf.c
@@ -1280,8 +1280,6 @@ m_copyback(struct mbuf *m0, int off, int len, c_caddr_t cp)
if (m0 == NULL)
return;
-
- MPASS(M_WRITABLE(m0));
while (off > (mlen = m->m_len)) {
off -= mlen;
totlen += mlen;