From owner-cvs-all@FreeBSD.ORG Thu Mar 22 13:21:25 2007 Return-Path: X-Original-To: cvs-all@FreeBSD.org Delivered-To: cvs-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 87DD216A403; Thu, 22 Mar 2007 13:21:25 +0000 (UTC) (envelope-from glebius@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [69.147.83.41]) by mx1.freebsd.org (Postfix) with ESMTP id 61A2313C459; Thu, 22 Mar 2007 13:21:25 +0000 (UTC) (envelope-from glebius@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.8/8.13.8) with ESMTP id l2MDLPZY026061; Thu, 22 Mar 2007 13:21:25 GMT (envelope-from glebius@repoman.freebsd.org) Received: (from glebius@localhost) by repoman.freebsd.org (8.13.8/8.13.8/Submit) id l2MDLOKC026056; Thu, 22 Mar 2007 13:21:25 GMT (envelope-from glebius) Message-Id: <200703221321.l2MDLOKC026056@repoman.freebsd.org> From: Gleb Smirnoff Date: Thu, 22 Mar 2007 13:21:24 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/sys/kern uipc_socket.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Mar 2007 13:21:25 -0000 glebius 2007-03-22 13:21:24 UTC FreeBSD src repository Modified files: sys/kern uipc_socket.c Log: Move the dom_dispose and pru_detach calls in sofree() earlier. Only after calling pru_detach we can be absolutely sure, that we don't have any references to the socket in the stack. This closes race between lockless sbdestroy() and data arriving on socket. Reviewed by: rwatson Revision Changes Path 1.295 +5 -4 src/sys/kern/uipc_socket.c