cvs commit: src/tools/regression/sockets/pr_atomic Makefile pr_atomic.c src/sys/kern uipc_socket.c

Bruce M Simpson bms at FreeBSD.org
Sat Dec 23 13:07:08 PST 2006


bms         2006-12-23 21:07:07 UTC

  FreeBSD src repository

  Modified files:
    sys/kern             uipc_socket.c 
  Added files:
    tools/regression/sockets/pr_atomic Makefile pr_atomic.c 
  Log:
  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
  
  Revision  Changes    Path
  1.287     +9 -11     src/sys/kern/uipc_socket.c
  1.1       +7 -0      src/tools/regression/sockets/pr_atomic/Makefile (new)
  1.1       +109 -0    src/tools/regression/sockets/pr_atomic/pr_atomic.c (new)


More information about the cvs-all mailing list