Re: panic: sbappendstream 1 [head/amd64 _at_r293419]

From: Gleb Smirnoff <glebius_at_FreeBSD.org>
Date: Fri, 8 Jan 2016 10:24:46 -0800
On Fri, Jan 08, 2016 at 09:34:23AM -0500, Jonathan T. Looney wrote:
J> The likely suspect here looks like r293405, which changed uipc_send() to
J> use sbappendstream_locked() instead of sbappend_locked().
J> 
J> However, I can't explain *why* that change is causing this problem without
J> further investigation.

That is because sbappendstream() has invariant that socket buffer doesn't
have any records in it. But, if control data is sent, which is possible
for AF_UNIX, a record is made. Thus, we can't used optimized version for
AF_UNIX, only for AF_INET.

-- 
Totus tuus, Glebius.
Received on Fri Jan 08 2016 - 17:24:52 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:02 UTC