From owner-cvs-all Sun May 19 12:35:41 2002 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 5AB8E37B412; Sun, 19 May 2002 12:35:37 -0700 (PDT) Received: (from marcel@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g4JJZb697556; Sun, 19 May 2002 12:35:37 -0700 (PDT) (envelope-from marcel) Message-Id: <200205191935.g4JJZb697556@freefall.freebsd.org> From: Marcel Moolenaar Date: Sun, 19 May 2002 12:35:37 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/i386/linux linux_ptrace.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG marcel 2002/05/19 12:35:36 PDT Modified files: sys/i386/linux linux_ptrace.c Log: o Fix race condition caused by doing ptrace() for permission checking, followed by a lookup of the process. Do not call ptrace() for permission checking, but do it inline. Spotted by: rwatson o While here, copy-in arguments before we lock. This fixes a possible permanent lock. Reviewed by: rwatson Revision Changes Path 1.2 +44 -24 src/sys/i386/linux/linux_ptrace.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message