The branch main has been updated by kbowling (ports committer):

URL: 
https://cgit.FreeBSD.org/src/commit/?id=a61c24ddb7d677337d6184ffcee34a6e902d72d7

commit a61c24ddb7d677337d6184ffcee34a6e902d72d7
Author:     Konstantin Kukushkin <darkdestruc...@rambler.ru>
AuthorDate: 2021-08-01 14:41:38 +0000
Commit:     Kevin Bowling <kbowl...@freebsd.org>
CommitDate: 2021-08-01 15:07:33 +0000

    udp: Fix soroverflow SOCKBUF unlocking
    
    We hold the SOCKBUF_LOCK so use soroverflow_locked here.
    This bug may manifest as a non-killable process stuck in [*so_rcv].
    
    Approved by:    scottl
    Reviewed by:    Roy Marples <r...@marples.name>
    Fixes:  7045b1603bdf
    MFC after:  10 days
    Differential Revision:  https://reviews.freebsd.org/D31374
---
 sys/netinet/udp_usrreq.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/netinet/udp_usrreq.c b/sys/netinet/udp_usrreq.c
index ed79ddce5109..76ed063391eb 100644
--- a/sys/netinet/udp_usrreq.c
+++ b/sys/netinet/udp_usrreq.c
@@ -379,7 +379,7 @@ udp_append(struct inpcb *inp, struct ip *ip, struct mbuf 
*n, int off,
        so = inp->inp_socket;
        SOCKBUF_LOCK(&so->so_rcv);
        if (sbappendaddr_locked(&so->so_rcv, append_sa, n, opts) == 0) {
-               soroverflow(so);
+               soroverflow_locked(so);
                m_freem(n);
                if (opts)
                        m_freem(opts);
_______________________________________________
dev-commits-src-main@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/dev-commits-src-main
To unsubscribe, send any mail to "dev-commits-src-main-unsubscr...@freebsd.org"

Reply via email to