On Fri, Dec 03, 2010 at 04:15:44PM +0000, Konstantin Belousov wrote: > Author: kib > Date: Fri Dec 3 16:15:44 2010 > New Revision: 216150 > URL: http://svn.freebsd.org/changeset/base/216150 > > Log: > Reviewed by: jeff, rwatson > MFC after: 1 week
Oops, I failed to use proper -F file with svn ci :(. The commit log is (or, was supposed to be): If unix socket has a unix socket attached as the rights that has a unix socket attached as the rights that has a unix socket attached as the rights ... Kernel may overflow the stack on attempt to close such socket. Only close the rights file in the context of the current close if the file is not unix domain socket. Otherwise, postpone the work to taskqueue, preventing unlimited recursion. The pass of the unix domain sockets over the SCM_RIGHTS message control is not widely used, and more, the close of the socket with still attached rights is mostly an application failure. The change should not affect the performance of typical users of SCM_RIGHTS. Reviewed by: jeff, rwatson MFC after: 1 week
pgpR6hM74VSzK.pgp
Description: PGP signature