From owner-freebsd-current@freebsd.org Mon Jan 29 03:44:06 2018 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6435AED2114 for ; Mon, 29 Jan 2018 03:44:06 +0000 (UTC) (envelope-from cy.schubert@cschubert.com) Received: from smtp-out-so.shaw.ca (smtp-out-so.shaw.ca [64.59.136.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "Client", Issuer "CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id DCE127CE48; Mon, 29 Jan 2018 03:44:05 +0000 (UTC) (envelope-from cy.schubert@cschubert.com) Received: from spqr.komquats.com ([96.50.22.10]) by shaw.ca with ESMTPA id g0MTeNtRNS7Bpg0MVeqRUv; Sun, 28 Jan 2018 20:44:04 -0700 X-Authority-Analysis: v=2.2 cv=NKylwwyg c=1 sm=1 tr=0 a=jvE2nwUzI0ECrNeyr98KWA==:117 a=jvE2nwUzI0ECrNeyr98KWA==:17 a=kj9zAlcOel0A:10 a=RgaUWeydRksA:10 a=xfDLHkLGAAAA:8 a=YxBL1-UpAAAA:8 a=6I5d2MoRAAAA:8 a=pGLkceISAAAA:8 a=mmhVEwpV6fCbO0pgw5wA:9 a=CjuIK1q_8ugA:10 a=IfaqVvZgccqrtc8gcwf2:22 a=Ia-lj3WSrqcvXOmTRaiG:22 a=IjZwj45LgO3ly-622nXo:22 Received: from slippy.cwsent.com (slippy [10.1.1.91]) by spqr.komquats.com (Postfix) with ESMTPS id B901B3437; Sun, 28 Jan 2018 19:44:01 -0800 (PST) Received: from slippy.cwsent.com (localhost [127.0.0.1]) by slippy.cwsent.com (8.15.2/8.15.2) with ESMTP id w0T3i1dP071994; Sun, 28 Jan 2018 19:44:01 -0800 (PST) (envelope-from Cy.Schubert@cschubert.com) Received: from slippy (cy@localhost) by slippy.cwsent.com (8.15.2/8.15.2/Submit) with ESMTP id w0T3i19l071991; Sun, 28 Jan 2018 19:44:01 -0800 (PST) (envelope-from Cy.Schubert@cschubert.com) Message-Id: <201801290344.w0T3i19l071991@slippy.cwsent.com> X-Authentication-Warning: slippy.cwsent.com: cy owned process doing -bs X-Mailer: exmh version 2.8.0 04/21/2012 with nmh-1.7 Reply-to: Cy Schubert From: Cy Schubert X-os: FreeBSD X-Sender: cy@cwsent.com X-URL: http://www.cschubert.com/ To: Warner Losh cc: Cy Schubert , Allan Jude , FreeBSD Current Subject: Re: Panic on shutdown @r328436: "Unholding 6 with cnt = -559038242" In-Reply-To: Message from Warner Losh of "Sun, 28 Jan 2018 20:18:59 -0700." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sun, 28 Jan 2018 19:44:01 -0800 X-CMAE-Envelope: MS4wfDLtsfz73HmPhxd0b8fD+dEsedLdJ4HRjZ/skl5QQFT+iDzZdYq77g82idK0NHomqmPon83SIEhbB+mHmbU8Ug5bjtDjub4jfoNwL2OIqOn64lYNvGEG EcaFAOnxN8choC+5Wi0PX95AB8sJ5uZF0UHQDTIX5PQzIt4fyclCh95p25puUYJGA+pDddXe2A8b2YdCQQlJqeyWWpR5nDR5BsmIcjHX0D3qNAt5jbfnBbZ/ q2hzpAgvIokE9V1BKEzaKPei1jE6Ax9JmKAdTW7Y87s= X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.25 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: Mon, 29 Jan 2018 03:44:06 -0000 In message , Warner Losh writes: > --94eb2c0425900a5b5c0563e1b5b8 > Content-Type: text/plain; charset="UTF-8" > Content-Transfer-Encoding: quoted-printable > > On Sun, Jan 28, 2018 at 7:38 PM, Cy Schubert > wrote: > > > In message <2effa324-c428-6135-371b-acb00c803d29@freebsd.org>, Allan > > Jude write > > s: > > > On 2018-01-28 16:28, Warner Losh wrote: > > > > On Sun, Jan 28, 2018 at 2:22 PM, thomas masper < > > thomas.masper@gmail.com> > > > > wrote: > > > > > > > >> Hi, > > > >> similar panic happen to me when extracting a pendrive from laptop US= > B > > port > > > >> (I tried 3 different pendrive). > > > >> No issue if I reboot or shutdown. I don't know if those two issues a= > re > > > >> related. > > > >> > > > > > > > > Do you have a reproducible test case? Ideally, it would be 'insert an= > d > > > > remove usb thumb drive' but maybe there's more steps between insert a= > nd > > > > removal. > > > > > > > > Warner > > > > > > > > > > > > > > > >> panic: Releasing 6 with cnt =3D -559038242 > > > > Converting this to hex we get DEADC0DE. > > > vm/uma_dbg.c:static const uint32_t uma_junk =3D 0xdeadc0de; > > Use after free it is then... Yes, INVARIANTS. Learned that when I was chasing an ipfilter use after free. -- Cheers, Cy Schubert FreeBSD UNIX: Web: http://www.FreeBSD.org The need of the many outweighs the greed of the few.