Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 26 Feb 2003 09:46:15 -0500
From:      Don Bowman <don@sandvine.com>
To:        "''freebsd-stable@freebsd.org' '" <freebsd-stable@freebsd.org>
Subject:   RE: panic with fork?
Message-ID:  <FE045D4D9F7AED4CBFF1B3B813C8533701B35B59@mail.sandvine.com>

next in thread | raw e-mail | index | archive | help
From: Don Bowman

>I find that if I run the below:
>$ while true; do daemon -f bash -c exit; done

 ...

So the problem is in pmap_pinit().
It calls kmem_alloc_pageable() to obtain a page directory table.

In this case, kmem_alloc_pageable() returns NULL, and the code doesn't check
it.

Now, pmap_pinit() clearly doesn't expect to be able to fail, there's no
provision for returning error.

Does anyone have a suggestion for a fix?

--don

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




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