Re: malloc(9) M_WAITOK broken

From: Brian Fundakowski Feldman <green_at_freebsd.org>
Date: Sat, 3 Jul 2004 14:22:46 -0400
On Sat, Jul 03, 2004 at 12:18:59PM +0200, Bernd Walter wrote:
> 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.

Please try an updated src/sys/vm/uma_core.c now (the rest of the build
is broken, so just try updating the last revision of that file.)

-- 
Brian Fundakowski Feldman                           \'[ FreeBSD ]''''''''''\
  <> green_at_FreeBSD.org                               \  The Power to Serve! \
 Opinions expressed are my own.                       \,,,,,,,,,,,,,,,,,,,,,,\
Received on Sat Jul 03 2004 - 16:22:40 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:00 UTC