git: b994e68f44cf - stable/15 - unix: Fix a missing initialization in uipc_sosend_stream_or_seqpacket()
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 24 Aug 2026 16:29:43 UTC
The branch stable/15 has been updated by markj:
URL: https://cgit.FreeBSD.org/src/commit/?id=b994e68f44cfe589b98c05a2e46503255e4756b9
commit b994e68f44cfe589b98c05a2e46503255e4756b9
Author: Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2026-08-10 14:41:04 +0000
Commit: Mark Johnston <markj@FreeBSD.org>
CommitDate: 2026-08-24 15:17:53 +0000
unix: Fix a missing initialization in uipc_sosend_stream_or_seqpacket()
This could be triggered by an in-kernel sender, of which I can't find
any examples.
Fixes: d15792780760 ("unix: new implementation of unix/stream & unix/seqpacket")
Reviewed by: glebius
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D58673
(cherry picked from commit 6dfd710963da7fe6086bcfb705b32b6a3646848f)
---
sys/kern/uipc_usrreq.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/sys/kern/uipc_usrreq.c b/sys/kern/uipc_usrreq.c
index ed3e22ad63f6..963e1cab251b 100644
--- a/sys/kern/uipc_usrreq.c
+++ b/sys/kern/uipc_usrreq.c
@@ -1167,8 +1167,10 @@ uipc_sosend_stream_or_seqpacket(struct socket *so, struct sockaddr *addr,
eor ? M_EOR : 0);
if (__predict_false(error))
goto out2;
- } else
+ } else {
+ uio = NULL;
uipc_reset_kernel_mbuf(m, &mc);
+ }
error = SOCK_IO_SEND_LOCK(so, SBLOCKWAIT(flags));
if (error)