From owner-freebsd-current@FreeBSD.ORG Tue May 19 18:22:02 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 10A86106566C; Tue, 19 May 2009 18:22:02 +0000 (UTC) (envelope-from lwindschuh@googlemail.com) Received: from mail-gx0-f166.google.com (mail-gx0-f166.google.com [209.85.217.166]) by mx1.freebsd.org (Postfix) with ESMTP id 3CCC88FC13; Tue, 19 May 2009 18:21:52 +0000 (UTC) (envelope-from lwindschuh@googlemail.com) Received: by gxk10 with SMTP id 10so1513gxk.19 for ; Tue, 19 May 2009 11:21:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=qXPChlMpEdogv5JT62u8Mr1o1Jwd8paEFwTqV2eKy/U=; b=PMYWiXUg0F3eBLK6tPzQfDjB6bU5Igwn1M677P4ACnUVirUQ1RPUbOQyJjtcLcsJkl L18f0ikB9HyDfYKq/tEzpNaVg7eG1YE85k06S6fdt80cVjmWVLmZpcBV8WTXbZFHzJ7q uqkNRVzEd6epWLaGtmmtrdfpTvR9mqW/AOt2s= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=iEqhKO/58UpKYzqt2wd1Qk7+J6dii3FfY/eAW0d9+HUR5L4eeqJ5Sg9JpyRwe874Vx 11tmIbs4o2I+ofKtZlfL8XsEJDLeLd6HeAOaVVpHhzwKZaTVEPzNgkCx8ZCKImd4dpZm r3fGmIX5UVTD92HxWWeMtKXZ5zw20meqLrzlQ= MIME-Version: 1.0 Received: by 10.151.129.3 with SMTP id g3mr771945ybn.84.1242757282500; Tue, 19 May 2009 11:21:22 -0700 (PDT) In-Reply-To: <20090519044941.GC42412@weongyo.cdnetworks.kr> References: <90a5caac0905171354k6e7c008eye18bd69aa543eaa6@mail.gmail.com> <200905181050.03154.hselasky@c2i.net> <90a5caac0905181508m7024377as8d70c89694a21e26@mail.gmail.com> <20090519044941.GC42412@weongyo.cdnetworks.kr> Date: Tue, 19 May 2009 20:21:22 +0200 Message-ID: <90a5caac0905191121r7da4f6e8t733eff327cf551e0@mail.gmail.com> From: Lucius Windschuh To: Weongyo Jeong , freebsd-current@freebsd.org, Hans Petter Selasky Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: Subject: Re: Panics and potential memory corruption when pulling out a uath device X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 May 2009 18:22:02 -0000 2009/5/19 Weongyo Jeong : > On Tue, May 19, 2009 at 12:08:45AM +0200, Lucius Windschuh wrote: >> 2009/5/18 Hans Petter Selasky : >> > Regarding the first panic, there seems to be a detach race in both upg= t and >> > uath, which is not USB related. Try this patch: >> > >> > http://perforce.freebsd.org/chv.cgi?CH=3D162250 >> >> This fixes not only the first panic. >> I can't provoke any panic by pulling out the active device. Thanks. > > Could you please test with this patch that is slightly different with > Hans's patch? =A0It try to unsetup after stopping the device. > > If no problems I'd commit it. This works also. I cannot produce panics with it. Lucius