NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

PR/47591 CVS commit: src/sys/kern

The following reply was made to PR kern/47591; it has been noted by GNATS.

From: "Christos Zoulas" <>
Subject: PR/47591 CVS commit: src/sys/kern
Date: Mon, 7 Oct 2013 20:29:24 -0400

 Module Name:   src
 Committed By:  christos
 Date:          Tue Oct  8 00:29:24 UTC 2013
 Modified Files:
        src/sys/kern: uipc_syscalls.c
 Log Message:
 PR/47591: Michael Plass: If the unix socket is closed before accept,
 unp->unp_conn will be NULL in PRU_ACCEPT, as called from
 sys_accept->so_accept. This will cause the usrreq to return with
 no error, leaving the mbuf gotten from m_get() with an uninitialized
 length, containing junk from a previous call. Initialize m_len to
 be 0 to handle this case. This is yet another reason why Beverly's
 idea of setting m_len = 0 in m_get() makes a lot of sense. Arguably
 this could be an error, since the data we return now has 0 family
 and length.
 To generate a diff of this commit:
 cvs rdiff -u -r1.162 -r1.163 src/sys/kern/uipc_syscalls.c
 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

Home | Main Index | Thread Index | Old Index