From owner-freebsd-usb@FreeBSD.ORG Sat Aug 23 17:15:42 2008 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DFE991065679 for ; Sat, 23 Aug 2008 17:15:42 +0000 (UTC) (envelope-from phk@critter.freebsd.dk) Received: from phk.freebsd.dk (phk.freebsd.dk [130.225.244.222]) by mx1.freebsd.org (Postfix) with ESMTP id 9FF728FC15 for ; Sat, 23 Aug 2008 17:15:42 +0000 (UTC) (envelope-from phk@critter.freebsd.dk) Received: from critter.freebsd.dk (unknown [192.168.61.3]) by phk.freebsd.dk (Postfix) with ESMTP id B0339170E4; Sat, 23 Aug 2008 17:15:40 +0000 (UTC) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.14.2/8.14.2) with ESMTP id m7NHFcVs010827; Sat, 23 Aug 2008 17:15:39 GMT (envelope-from phk@critter.freebsd.dk) To: "M. Warner Losh" From: "Poul-Henning Kamp" In-Reply-To: Your message of "Sat, 23 Aug 2008 10:01:55 CST." <20080823.100155.1310242209.imp@bsdimp.com> Date: Sat, 23 Aug 2008 17:15:38 +0000 Message-ID: <10826.1219511738@critter.freebsd.dk> Sender: phk@critter.freebsd.dk Cc: freebsd-usb@freebsd.org Subject: Re: usb4bsd patch review X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 23 Aug 2008 17:15:43 -0000 In message <20080823.100155.1310242209.imp@bsdimp.com>, "M. Warner Losh" writes : >While this may be a good idea, I'm hesitant about races that it may >introduce. This is the classic point of attack: do something between >steps of a formerly atomic operation that was made non-atomic. I >can't think of anything off the top of my head, but I'm still >concerned. We have ways of closing the race if need be, but they're all slightly kludgy, but I am not overly concerned about those races as long as the default is to not give access. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence.