]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Drop all received data mbufs from a socket's queue if the MT_SONAME
authorBruce M Simpson <bms@FreeBSD.org>
Sat, 23 Dec 2006 21:07:07 +0000 (21:07 +0000)
committerBruce M Simpson <bms@FreeBSD.org>
Sat, 23 Dec 2006 21:07:07 +0000 (21:07 +0000)
commita86ec3382030607ef7a672217d977cd0bb8fa878
tree17e5ba5e7fc8a212668aa640a100c6666212e355
parent0dd4da1c1fcb99e6c5df97702804523fb4ff4c77
Drop all received data mbufs from a socket's queue if the MT_SONAME
mbuf is dropped, to preserve the invariant in the PR_ADDR case.

Add a regression test to detect this condition, but do not hook it
up to the build for now.

PR:             kern/38495
Submitted by:   James Juran
Reviewed by:    sam, rwatson
Obtained from:  NetBSD
MFC after:      2 weeks
sys/kern/uipc_socket.c
tools/regression/sockets/pr_atomic/Makefile [new file with mode: 0644]
tools/regression/sockets/pr_atomic/pr_atomic.c [new file with mode: 0644]