From owner-freebsd-current@FreeBSD.ORG Sat Jul 3 10:19:31 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EBB5E16A4CF; Sat, 3 Jul 2004 10:19:31 +0000 (GMT) Received: from srv1.cosmo-project.de (srv1.cosmo-project.de [213.83.6.106]) by mx1.FreeBSD.org (Postfix) with ESMTP id 624B243D5A; Sat, 3 Jul 2004 10:19:31 +0000 (GMT) (envelope-from ticso@cicely5.cicely.de) Received: from cicely5.cicely.de (cicely5.cicely.de [IPv6:3ffe:400:8d0:301:200:92ff:fe9b:20e7]) (authenticated bits=0) i63AJOaI068150 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK); Sat, 3 Jul 2004 12:19:27 +0200 (CEST) (envelope-from ticso@cicely5.cicely.de) Received: from cicely5.cicely.de (localhost [IPv6:::1]) by cicely5.cicely.de (8.12.10/8.12.10) with ESMTP id i63AJ0Ui066939 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 3 Jul 2004 12:19:00 +0200 (CEST) (envelope-from ticso@cicely5.cicely.de) Received: (from ticso@localhost) by cicely5.cicely.de (8.12.10/8.12.10/Submit) id i63AIxeB066938; Sat, 3 Jul 2004 12:18:59 +0200 (CEST) (envelope-from ticso) Date: Sat, 3 Jul 2004 12:18:59 +0200 From: Bernd Walter To: freebsd-current@freebsd.org Message-ID: <20040703101858.GB65870@cicely5.cicely.de> References: <20040703075555.GA65870@cicely5.cicely.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040703075555.GA65870@cicely5.cicely.de> User-Agent: Mutt/1.4.2.1i X-Operating-System: FreeBSD cicely5.cicely.de 5.2-CURRENT i386 X-Spam-Status: No, hits=-4.9 required=3.0 tests=BAYES_00 autolearn=ham version=2.61 X-Spam-Report: * -4.9 BAYES_00 BODY: Bayesian spam probability is 0 to 1% * [score: 0.0000] X-Spam-Checker-Version: SpamAssassin 2.61 (1.212.2.1-2003-12-09-exp) on cicely5.cicely.de cc: bmilekic@freebsd.org Subject: Re: malloc(9) M_WAITOK broken X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: ticso@cicely.de List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 Jul 2004 10:19:32 -0000 On Sat, Jul 03, 2004 at 09:55:56AM +0200, Bernd Walter wrote: > I get daily panics in vinum because malloc M_WAITOK returns NULL. > Source is from 1st Jul running on alpha. Since vm_uma_core.c Rev 1.94 uma_zalloc_arg allways ignores M_WAITOK in the non WITNESS case because badness is initialized as 1. My understanding is that M_WAITOK shouldn't be ignored in any case to avoid returning NULL - at least malloc(9) is documented to never return NULL with M_WAITOK. -- B.Walter BWCT http://www.bwct.de bernd@bwct.de info@bwct.de