Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: [netbsd-3] src/sys

Module Name:    src
Committed By:   snj
Date:           Sat Apr 11 06:18:21 UTC 2009

Modified Files:
        src/sys/kern [netbsd-3]: uipc_usrreq.c
        src/sys/sys [netbsd-3]: file.h

Log Message:
Apply patch (requested by mlelstv in ticket #2004):
Avoid deep recursion and file descriptor exhaustion.

1. unp_detach: go not call unp_gc directly for descriptors
   that are unixdomain sockets themselves. Instead mark them
   for cleanup during garbage collection.

2. unp_gc: handle detach of descriptors that were marked earlier.

3. prohibit transfer of descriptors within SCM_RIGHTS messages if
   (num_files_in_transit > maxfiles / unp_rights_ratio)

To generate a diff of this commit:
cvs rdiff -u -r1.80.2.3 -r1.80.2.4 src/sys/kern/uipc_usrreq.c
cvs rdiff -u -r1.53 -r1.53.4.1 src/sys/sys/file.h

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

Home | Main Index | Thread Index | Old Index