Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Dec 2015 14:20:16 -0500
From:      Shawn Webb <shawn.webb@hardenedbsd.org>
To:        Fabian Keil <freebsd-listen@fabiankeil.de>
Cc:        FreeBSD Current <freebsd-current@freebsd.org>, Oliver Pinter <oliver.pinter@hardenedbsd.org>
Subject:   Re: fork_findpid() - Fatal trap 12: page fault while in kernel mode
Message-ID:  <20151215192016.GC73098@mutt-hardenedbsd>
In-Reply-To: <20151215174238.2d7cc3bb@fabiankeil.de>
References:  <20151215174238.2d7cc3bb@fabiankeil.de>

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

--UPT3ojh+0CqEDtpF
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Tue, Dec 15, 2015 at 05:42:38PM +0100, Fabian Keil wrote:
> I've seen the following panic a couple of times in the last three
> months, usually while poudriere was running and with sh being the
> current process.
>=20
> This one is from a system based on r290926 running with
> kern.randompid=3D9001 and forking frequently (>1000 forks/second)
> due to poudriere and afl-fuzz:
>=20
> Fatal trap 12: page fault while in kernel mode
> cpuid =3D 1; apic id =3D 04
> fault virtual address   =3D 0x618b00a8
> fault code              =3D supervisor read data, page not present
> instruction pointer     =3D 0x20:0xffffffff80909158
> stack pointer           =3D 0x28:0xfffffe011e03b940
> frame pointer           =3D 0x28:0xfffffe011e03b960
> code segment            =3D base 0x0, limit 0xfffff, type 0x1b
>                         =3D DPL 0, pres 1, long 1, def32 0, gran 1
> processor eflags        =3D interrupt enabled, resume, IOPL =3D 0
> current process         =3D 71325 (sh)
> trap number             =3D 12
> panic: page fault
> cpuid =3D 1
> KDB: stack backtrace:
> [...]
> Uptime: 13d20h43m20s
> [...]

Hey Fabien,

I'm glad you've seen this, too. We've observed this in HardenedBSD,
especially when running Poudriere and Jenkins. I think Oliver Pinter
might have a potential patch to fix this. I've CC'd him on this thread.

Thanks,

--=20
Shawn Webb
HardenedBSD

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

--UPT3ojh+0CqEDtpF
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBCAAGBQJWcGfuAAoJEGqEZY9SRW7uiK0QAJg8mym9cN4a+a4S5mZI///V
72UTg3v4gdJaRsSWPX2LjAu6rMgQ0KzL0FPlPdYTLhNzf0htsA59bFMf2mQ8Pu+h
S/oi6EHN3dTZRQopTlus6dLkbTl1irQlgpOuWvVvOClSQbVEp/EOTJjnYvqnqjsI
Q7wQnvmYqaOvthCg+YM6VzPndc01o8b8de0YLby3o+Spq0q1nhGbcOvoPNCbBqmp
T634KDKRv3a4y1idrsDwS1CY4OR4ifnypuqZL5PBqdWpJdzUNwgslcJvOxG0/fPD
JWnTIQMT0mGEZRKSM9K6iMj6Rq4U8Ylya4K1TpN1gVlCZihaO8OwMJG0brw4pYsK
KMHQBMQMIXA2RvQBRHRRpfRjoxbfRNM0GA/L7v0p454f+8qgRGHcLFzSTRk3OD7L
KxeJbGJ51Cf1VwUEiX/VZ4a1YkhPm6eaxQIeIeG+shFV5/zuCg09mwF7cT5gDtPG
v+fNz/ConHToL7O2oWoZqDdAFOUHT9uZsop8UrejLeimdH29U/nz4HjSBZ2EPtCS
+BHVfvB4itnTBQ0JQSVeTP1znj5r0zweR+vpTB5sSO64wk5azcyjhSu4EvaR4aRn
BGnMs2J4Qzr87n1Dnj7F4658RABH4jXMt0Aim8I/2SXazZJZUUidn4kIJDeHEy0h
Thf/P8XabBYNuPxpJUDV
=o5YC
-----END PGP SIGNATURE-----

--UPT3ojh+0CqEDtpF--



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