summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorVitaliy Makkoveev <mvs@cvs.openbsd.org>2022-07-02 11:49:24 +0000
committerVitaliy Makkoveev <mvs@cvs.openbsd.org>2022-07-02 11:49:24 +0000
commit84e7924ceb5da6d5ed029f2acb15b617e5f8349e (patch)
tree48aabe65a217cc46b49e0bca503f334faf85890b /sys
parent1d5225950d9a50ae0c6fd09eadf045bbf060b605 (diff)
Unlock peer in the SOCK_STREAM and SOCK_SEQPACKET error path.
Reported-by: syzbot+a648408d6a58fd40b59a@syzkaller.appspotmail.com by anton@
Diffstat (limited to 'sys')
-rw-r--r--sys/kern/uipc_usrreq.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/kern/uipc_usrreq.c b/sys/kern/uipc_usrreq.c
index 0710393d376..0fb95eea8d3 100644
--- a/sys/kern/uipc_usrreq.c
+++ b/sys/kern/uipc_usrreq.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uipc_usrreq.c,v 1.166 2022/07/01 09:56:17 mvs Exp $ */
+/* $OpenBSD: uipc_usrreq.c,v 1.167 2022/07/02 11:49:23 mvs Exp $ */
/* $NetBSD: uipc_usrreq.c,v 1.18 1996/02/09 19:00:50 christos Exp $ */
/*
@@ -362,6 +362,7 @@ uipc_usrreq(struct socket *so, int req, struct mbuf *m, struct mbuf *nam,
control)) {
control = NULL;
} else {
+ sounlock(so2);
error = ENOBUFS;
break;
}