From owner-freebsd-bugs Wed Jan 15 07:53:37 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id HAA07812 for bugs-outgoing; Wed, 15 Jan 1997 07:53:37 -0800 (PST) Received: from root.com (implode.root.com [198.145.90.17]) by freefall.freebsd.org (8.8.4/8.8.4) with ESMTP id HAA07804; Wed, 15 Jan 1997 07:53:21 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by root.com (8.7.6/8.6.5) with SMTP id HAA07423; Wed, 15 Jan 1997 07:51:18 -0800 (PST) Message-Id: <199701151551.HAA07423@root.com> X-Authentication-Warning: implode.root.com: Host localhost [127.0.0.1] didn't use HELO protocol To: Bruce Evans cc: bugs@FreeBSD.ORG, dyson@FreeBSD.ORG, wollman@FreeBSD.ORG Subject: Re: malloc(..., M_WAITOK) found harmful In-reply-to: Your message of "Thu, 16 Jan 1997 00:51:05 +1100." <199701151351.AAA24268@godzilla.zeta.org.au> From: David Greenman Reply-To: dg@root.com Date: Wed, 15 Jan 1997 07:51:18 -0800 Sender: owner-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk >Here mbinit() calls m_clalloc() with the M_DONTWAIT flag and m_clalloc() >calls kmem_malloc() with the M_NOWAIT flag, but the flag is not passed >on to vm_map_insert() and vm_map_entry_create() eventually calls malloc() >with the M_WAITOK flag. vm_map_create() always uses M_WAITOK. Hmmm. I don't see how this can happen since the map is mb_map and vm_map_entry_create does special things in this case to make sure that malloc is NOT called. Please explain... -DG David Greenman Core-team/Principal Architect, The FreeBSD Project