Subject: CVS commit: src/sys
To: None <>
From: Bill Studenmund <>
List: source-changes
Date: 09/04/2003 16:44:07
Module Name:	src
Committed By:	wrstuden
Date:		Thu Sep  4 16:44:06 UTC 2003

Modified Files:
	src/sys/kern: uipc_socket.c
	src/sys/sys: socketvar.h

Log Message:
Adjust struct sockbuf and sorflush() so that we don't zero out
every field; some need to stay around.

Fixes a bug where by calling shutdown() on a socket with knotes
will cause the kernel to panic when the kernel closes the socket.
Other access, such as calling kevent() may also trigger the panic.

Debugged with help from Jason and Allen. Patch reviewed by same plus
Itojun and Matt Thomas.

This problem seems to be the same one that FreeBSD saw in their PR
number 54331.

Kernel version _not_ bumped as we will piggyback the bump earlier today.

To generate a diff of this commit:
cvs rdiff -r1.85 -r1.86 src/sys/kern/uipc_socket.c
cvs rdiff -r1.65 -r1.66 src/sys/sys/socketvar.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.