fork_findpid() - Fatal trap 12: page fault while in kernel mode

Shawn Webb shawn.webb at hardenedbsd.org
Tue Dec 15 19:20:22 UTC 2015


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.
> 
> This one is from a system based on r290926 running with
> kern.randompid=9001 and forking frequently (>1000 forks/second)
> due to poudriere and afl-fuzz:
> 
> Fatal trap 12: page fault while in kernel mode
> cpuid = 1; apic id = 04
> fault virtual address   = 0x618b00a8
> fault code              = supervisor read data, page not present
> instruction pointer     = 0x20:0xffffffff80909158
> stack pointer           = 0x28:0xfffffe011e03b940
> frame pointer           = 0x28:0xfffffe011e03b960
> code segment            = base 0x0, limit 0xfffff, type 0x1b
>                         = DPL 0, pres 1, long 1, def32 0, gran 1
> processor eflags        = interrupt enabled, resume, IOPL = 0
> current process         = 71325 (sh)
> trap number             = 12
> panic: page fault
> cpuid = 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,

-- 
Shawn Webb
HardenedBSD

GPG Key ID:          0x6A84658F52456EEE
GPG Key Fingerprint: 2ABA B6BD EF6A F486 BE89  3D9E 6A84 658F 5245 6EEE
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-current/attachments/20151215/ce0fc213/attachment.sig>


More information about the freebsd-current mailing list