]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Drop all received data mbufs from a socket's queue if the MT_SONAME
authorbms <bms@FreeBSD.org>
Sat, 23 Dec 2006 21:07:07 +0000 (21:07 +0000)
committerbms <bms@FreeBSD.org>
Sat, 23 Dec 2006 21:07:07 +0000 (21:07 +0000)
commit1a77168e4f3fdc6b976334b2c62ae628611dcffe
tree17e5ba5e7fc8a212668aa640a100c6666212e355
parent46c72e924066c98a4fcf3c658f726d5c96d67d60
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]