Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 28 Jan 2018 19:44:01 -0800
From:      Cy Schubert <Cy.Schubert@cschubert.com>
To:        Warner Losh <imp@bsdimp.com>
Cc:        Cy Schubert <Cy.Schubert@cschubert.com>, Allan Jude <allanjude@freebsd.org>, FreeBSD Current <freebsd-current@freebsd.org>
Subject:   Re: Panic on shutdown @r328436: "Unholding 6 with cnt = -559038242"
Message-ID:  <201801290344.w0T3i19l071991@slippy.cwsent.com>
In-Reply-To: Message from Warner Losh <imp@bsdimp.com> of "Sun, 28 Jan 2018 20:18:59 -0700." <CANCZdfpgo7=O%2BNvQH_Vh56U1sSd92_3TmNGDiSF%2BxMXzQQNsnA@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
In message <CANCZdfpgo7=O+NvQH_Vh56U1sSd92_3TmNGDiSF+xMXzQQNsnA@mail.gma
il.com>
, 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 <Cy.Schubert@cschubert.com>
> 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 <Cy.Schubert@cschubert.com>
FreeBSD UNIX:  <cy@FreeBSD.org>   Web:  http://www.FreeBSD.org

	The need of the many outweighs the greed of the few.





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201801290344.w0T3i19l071991>