Subject: PR/30154 CVS commit: src/sys
To: None <christos@netbsd.org, gnats-admin@netbsd.org,>
From: Christos Zoulas <christos@netbsd.org>
List: netbsd-bugs
Date: 05/07/2005 17:43:01
The following reply was made to PR kern/30154; it has been noted by GNATS.

From: Christos Zoulas <christos@netbsd.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: PR/30154 CVS commit: src/sys
Date: Sat,  7 May 2005 17:42:09 +0000 (UTC)

 Module Name:	src
 Committed By:	christos
 Date:		Sat May  7 17:42:09 UTC 2005
 
 Modified Files:
 	src/sys/kern: kern_resource.c uipc_socket.c uipc_socket2.c
 	    uipc_usrreq.c vfs_lockf.c
 	src/sys/netinet: in_pcb.c tcp_usrreq.c
 	src/sys/netipsec: ipsec_osdep.h
 	src/sys/sys: resourcevar.h socketvar.h
 
 Log Message:
 PR/30154: YAMAMOTO Takashi: tcp_close locking botch
 chgsbsize() as mentioned in the PR can be called from an interrupt context
 via tcp_close(). Avoid calling uid_find() in chgsbsize().
 - Instead of storing so_uid in struct socketvar, store *so_uidinfo
 - Add a simple lock to struct uidinfo.
 
 
 To generate a diff of this commit:
 cvs rdiff -r1.93 -r1.94 src/sys/kern/kern_resource.c
 cvs rdiff -r1.109 -r1.110 src/sys/kern/uipc_socket.c
 cvs rdiff -r1.66 -r1.67 src/sys/kern/uipc_socket2.c
 cvs rdiff -r1.80 -r1.81 src/sys/kern/uipc_usrreq.c
 cvs rdiff -r1.39 -r1.40 src/sys/kern/vfs_lockf.c
 cvs rdiff -r1.98 -r1.99 src/sys/netinet/in_pcb.c
 cvs rdiff -r1.102 -r1.103 src/sys/netinet/tcp_usrreq.c
 cvs rdiff -r1.11 -r1.12 src/sys/netipsec/ipsec_osdep.h
 cvs rdiff -r1.25 -r1.26 src/sys/sys/resourcevar.h
 cvs rdiff -r1.81 -r1.82 src/sys/sys/socketvar.h
 
 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.