Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 27 Jun 2017 19:45:29 -0400
From:      Shawn Webb <shawn.webb@hardenedbsd.org>
To:        Andriy Gapon <avg@FreeBSD.org>
Cc:        freebsd-current@FreeBSD.org
Subject:   Re: ZFS ABD Panic
Message-ID:  <20170627234529.7jioako7qsmdvdvm@mutt-hbsd>
In-Reply-To: <20170627142516.wuveh44jomoagnng@mutt-hbsd>
References:  <20170626003129.ao72cszn7eeccyhp@mutt-hbsd> <61824b1e-9582-b50f-a55d-5ef4731383d0@FreeBSD.org> <20170627141621.eflvmf53goy45dzh@mutt-hbsd> <8798c2ee-fedf-0641-ffe5-9533d78bc6a2@FreeBSD.org> <20170627142516.wuveh44jomoagnng@mutt-hbsd>

next in thread | previous in thread | raw e-mail | index | archive | help

--ifdxnzw5trumtv3h
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Tue, Jun 27, 2017 at 10:25:16AM -0400, Shawn Webb wrote:
> On Tue, Jun 27, 2017 at 05:22:39PM +0300, Andriy Gapon wrote:
> > On 27/06/2017 17:16, Shawn Webb wrote:
> > > On Tue, Jun 27, 2017 at 05:12:01PM +0300, Andriy Gapon wrote:
> > >> On 26/06/2017 03:31, Shawn Webb wrote:
> > >>> This is on the latest HardenedBSD 12-CURRENT on one of my servers:
> > >>>
> > >>> [141] panic: sleepq_add: td 0xfffff80008d20560 to sleep on wchan 0x=
fffff803b7d4e810 with sleeping prohibited
> > >>> [141] cpuid =3D 5
> > >>> [141] time =3D 1498436043
> > >>> [141] KDB: stack backtrace:
> > >>> [141] db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0=
xfffffe00002fc8b0
> > >>> [141] vpanic() at vpanic+0x19c/frame 0xfffffe00002fc930
> > >>> [141] kassert_panic() at kassert_panic+0x126/frame 0xfffffe00002fc9=
a0
> > >>> [141] sleepq_add() at sleepq_add+0x34f/frame 0xfffffe00002fc9f0
> > >>> [141] _sx_xlock_hard() at _sx_xlock_hard+0x2a4/frame 0xfffffe00002f=
caa0
> > >>> [141] _sx_xlock() at _sx_xlock+0x98/frame 0xfffffe00002fcae0
> > >>> [141] refcount_remove_many() at refcount_remove_many+0x2a/frame 0xf=
ffffe00002fcb20
> > >>> [141] abd_return_buf() at abd_return_buf+0xe3/frame 0xfffffe00002fc=
b50
> > >>> [141] vdev_geom_io_intr() at vdev_geom_io_intr+0x114/frame 0xfffffe=
00002fcb70
> > >>> [141] g_io_schedule_up() at g_io_schedule_up+0x42/frame 0xfffffe000=
02fcba0
> > >>> [141] g_up_procbody() at g_up_procbody+0x6d/frame 0xfffffe00002fcbb0
> > >>> [141] fork_exit() at fork_exit+0x84/frame 0xfffffe00002fcbf0
> > >>> [141] fork_trampoline() at fork_trampoline+0xe/frame 0xfffffe00002f=
cbf0
> > >>
> > >> Seems like another architectural incompatibility between illumos and=
 FreeBSD.
> > >> Are you able to reproduce the crash more or less reliably?
> > >=20
> > > Yup. I just need to do a buildworld and it's triggered.
> > >=20
> >=20
> > Could you please test this patch?
> > http://dpaste.com/12M183A.txt
> > I put it together rather quickly, but I think that it should work :)
>=20
> Can do later today. I'll report back either tonight or tomorrow.

That seems to have fixed it! No kernel panic as of yet. It has survived
two world + kernel builds.

Thanks a lot for the help!

--=20
Shawn Webb
Cofounder and Security Engineer
HardenedBSD

GPG Key ID:          0x6A84658F52456EEE
GPG Key Fingerprint: 2ABA B6BD EF6A F486 BE89  3D9E 6A84 658F 5245 6EEE

--ifdxnzw5trumtv3h
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEKrq2ve9q9Ia+iT2eaoRlj1JFbu4FAllS7hcACgkQaoRlj1JF
bu4P3BAAi0dXRpmBWZpQbN7TSnzhkqBIm+PyhIW2WE6Y8YdMSCU3BVz87d1C9ReF
SLRsQnL0R3+6z1BN3LLFkbnZk+mA5MFDH4JxU2lhC+amvm6BAv/geHUTq31uRKg5
JpxhVPDYmEQRPk+w18/4BwfLSyDHIv0TOX+yroxdYWl9U5J28YN6z3/tBdT/45Zg
4PIAlpQ/Twdt7jm2e+8RTJWkgXXCquFw3oKH4uHx0tK3RyNCXDE2CISpGsC/anfw
qKCFiM93aX5fdsXJS1WsrhuTcbvVXzlogODiIdJf4361h7lNzpOlLknjM9CwGO2P
qhRviuzG7hPT1tppa084lpkz2IUvnrE4KQuHWts8NbqSXphrvv4ndtapK441Tvhk
RV3HnGQQf68yE6oGzuyApHRls1v7RwkD8X9YskHe6TUkixPPfqS3Wzpw5osXYfu8
SMHdHIIbTS1UGqC+t2MUla+tRveJFzolK5AXLnbLlRxSP08afbq1UrSDdw0A0y1v
kIIwiaWdQvmnTkfB0wd1DdVNzLrDXcYTawNc0QCmMEkalCm8QRKBXPBT+25C1CIV
bpYqtRo/ymFNvhoz6UpjPzNyqhDX3tyhoWePCuCTwxiU0Dh7pQE+wvhjnQs5xUF0
mG2x/NwZEgUau/QeUC7Do6exRhk8Yy0wapp6u7hBfemGmXe8nkc=
=nySq
-----END PGP SIGNATURE-----

--ifdxnzw5trumtv3h--



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