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

Greg Becker <g...@codeconcepts.com> changed:

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

--- Comment #3 from Greg Becker <g...@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.
_______________________________________________
freebsd-net@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd-net-unsubscr...@freebsd.org"

Reply via email to