From owner-freebsd-current@FreeBSD.ORG Wed May 20 03:50:05 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 98C60106566B for ; Wed, 20 May 2009 03:50:05 +0000 (UTC) (envelope-from weongyo.jeong@gmail.com) Received: from mail-pz0-f173.google.com (mail-pz0-f173.google.com [209.85.222.173]) by mx1.freebsd.org (Postfix) with ESMTP id 5E2A88FC08 for ; Wed, 20 May 2009 03:50:04 +0000 (UTC) (envelope-from weongyo.jeong@gmail.com) Received: by pzk3 with SMTP id 3so165057pzk.3 for ; Tue, 19 May 2009 20:50:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:received:from:date:to:cc :subject:message-id:reply-to:mail-followup-to:references :mime-version:content-type:content-disposition:in-reply-to :user-agent:organization:x-operation-sytem; bh=m41dPR7Bpq09RHhSAymCOUosG187jd8x/E4erOB+noc=; b=tXi7n/ZvuxMdXTgypJhLxOGGibtFwQdKzb8rqcF9XeH0v5tUZjQ+X2KUuWZUzku7nn k0GMmN+QcaGdEKKg6s3Fr8Zh/7t1CAWUbCRQinmihNMIAw95idl8nyJHIq98i1ZRnGqV Tj2WmIDT8V/banhKdwQFar9DRi3gi5dAJrILs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:date:to:cc:subject:message-id:reply-to:mail-followup-to :references:mime-version:content-type:content-disposition :in-reply-to:user-agent:organization:x-operation-sytem; b=lVSiTTJM/MKuflgl/Cw9uXtZ08PMu5CKmZ6KsIa5wGpeB4wtcrl6zXc72oyiPpuEkF gRGFMnSkSBn909OBNQLz9+sI8dMx8XRC3GC5O7y5zkD9C9sKUtP9mfrGk/1hCai3inGB 8urW1fGi+Mw/cIFwHu0gPXD7kpp3HHG06SN7Y= Received: by 10.142.200.3 with SMTP id x3mr318902wff.63.1242791404771; Tue, 19 May 2009 20:50:04 -0700 (PDT) Received: from weongyo ([114.111.62.249]) by mx.google.com with ESMTPS id k2sm14157966rvb.4.2009.05.19.20.50.01 (version=SSLv3 cipher=RC4-MD5); Tue, 19 May 2009 20:50:03 -0700 (PDT) Received: by weongyo (sSMTP sendmail emulation); Wed, 20 May 2009 12:49:58 +0900 From: Weongyo Jeong Date: Wed, 20 May 2009 12:49:58 +0900 To: Lucius Windschuh Message-ID: <20090520034958.GJ42412@weongyo.cdnetworks.kr> Mail-Followup-To: Lucius Windschuh , freebsd-current@freebsd.org, Hans Petter Selasky References: <90a5caac0905171354k6e7c008eye18bd69aa543eaa6@mail.gmail.com> <200905181050.03154.hselasky@c2i.net> <90a5caac0905181508m7024377as8d70c89694a21e26@mail.gmail.com> <20090519044941.GC42412@weongyo.cdnetworks.kr> <90a5caac0905191121r7da4f6e8t733eff327cf551e0@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <90a5caac0905191121r7da4f6e8t733eff327cf551e0@mail.gmail.com> User-Agent: Mutt/1.4.2.3i Organization: CDNetworks. X-Operation-Sytem: FreeBSD Cc: freebsd-current@freebsd.org, Hans Petter Selasky 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 Reply-To: Weongyo Jeong List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 May 2009 03:50:05 -0000 On Tue, May 19, 2009 at 08:21:22PM +0200, Lucius Windschuh wrote: > 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 upgt and > >> > uath, which is not USB related. Try this patch: > >> > > >> > http://perforce.freebsd.org/chv.cgi?CH=162250 > >> > >> 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? ?It try to unsetup after stopping the device. > > > > If no problems I'd commit it. > > This works also. I cannot produce panics with it. The patch is committed at r192419. Thanks you for reporting! :-) regards, Weongyo Jeong