From owner-cvs-src@FreeBSD.ORG Sat Dec 24 04:57:50 2005 Return-Path: X-Original-To: cvs-src@FreeBSD.org Delivered-To: cvs-src@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DBC2B16A41F; Sat, 24 Dec 2005 04:57:50 +0000 (GMT) (envelope-from alc@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8D1F243D46; Sat, 24 Dec 2005 04:57:50 +0000 (GMT) (envelope-from alc@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id jBO4vojl088660; Sat, 24 Dec 2005 04:57:50 GMT (envelope-from alc@repoman.freebsd.org) Received: (from alc@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id jBO4vocX088659; Sat, 24 Dec 2005 04:57:50 GMT (envelope-from alc) Message-Id: <200512240457.jBO4vocX088659@repoman.freebsd.org> From: Alan Cox Date: Sat, 24 Dec 2005 04:57:50 +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 imgact_aout.c imgact_elf.c imgact_gzip.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 24 Dec 2005 04:57:51 -0000 alc 2005-12-24 04:57:50 UTC FreeBSD src repository Modified files: sys/kern imgact_aout.c imgact_elf.c imgact_gzip.c Log: Maintain the lock on the vnode for most of exec_elfN_imgact(). Specifically, it is required for the I/O that may be performed by elfN_load_section(). Avoid an obscure deadlock in the a.out, elf, and gzip image activators. Add a comment describing why the deadlock does not occur in the common case and how it might occur in less usual circumstances. Eliminate an unused variable from exec_aout_imgact(). In collaboration with: tegge Revision Changes Path 1.100 +13 -2 src/sys/kern/imgact_aout.c 1.172 +35 -32 src/sys/kern/imgact_elf.c 1.55 +13 -0 src/sys/kern/imgact_gzip.c