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

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Tue Jun 25 12:14:34 UTC 2019


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

Greg Becker <greg at codeconcepts.com> changed:

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

--- Comment #3 from Greg Becker <greg at 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.


More information about the freebsd-net mailing list