Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1761998AbXFRKn3 (ORCPT ); Mon, 18 Jun 2007 06:43:29 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1759974AbXFRKnU (ORCPT ); Mon, 18 Jun 2007 06:43:20 -0400 Received: from postel.suug.ch ([194.88.212.233]:38298 "EHLO postel.suug.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752941AbXFRKnU (ORCPT ); Mon, 18 Jun 2007 06:43:20 -0400 Date: Mon, 18 Jun 2007 12:43:40 +0200 From: Thomas Graf To: Miklos Szeredi Cc: davem@davemloft.net, akpm@linux-foundation.org, viro@ftp.linux.org.uk, alan@lxorguk.ukuu.org.uk, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] fix race in AF_UNIX Message-ID: <20070618104340.GZ521@postel.suug.ch> References: <20070618.021813.105401188.davem@davemloft.net> <20070618.023520.102546505.davem@davemloft.net> <20070618103241.GX521@postel.suug.ch> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 776 Lines: 20 * Miklos Szeredi 2007-06-18 12:39 > You are wrong. Look in unix_release_sock(): > > if (atomic_read(&unix_tot_inflight)) > unix_gc(); /* Garbage collect fds */ > > > unix_tot_inflight is the number of AF_UNIX sockets currently being > transferred over some AF_UNIX sockets. > > That means that just sending (non-unix socket) fds over unix sockets > will never invoke the gc. That's what I meant, I'm sorry, I should have written unix socket file descriptor to not leave any room for misinterpretation. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/