Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 Jun 2019 12:14:32 +0000
From:      bugzilla-noreply@freebsd.org
To:        net@FreeBSD.org
Subject:   [Bug 238789] panic: mutex so_rcv not owned at /usr/src/sys/kern/uipc_socket.c:2359
Message-ID:  <bug-238789-7501-BhjQpwIjTo@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-238789-7501@https.bugs.freebsd.org/bugzilla/>
References:  <bug-238789-7501@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=238789

Greg Becker <greg@codeconcepts.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |greg@codeconcepts.com

--- Comment #3 from Greg Becker <greg@codeconcepts.com> ---
Created attachment 205327
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=205327&action=edit
Avert panic in soreceive_stream()

This patch prevents jumping to "out" without the sockbuf lock held and tripping
the SOCKBUF_LOCK_ASSERT():

panic: mutex so_rcv not owned at /usr/src/sys/kern/uipc_socket.c:2359

Since the socket buffer data was not changed I see little need to call the 
integrity checks at the "out" label, therefore the simple solution is to just
return if sblock() returns an error.

-- 
You are receiving this mail because:
You are the assignee for the bug.


Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-238789-7501-BhjQpwIjTo>