On Wed, 8 Feb 2006, Andrew Morton wrote: > > If a caller cannot handle NULL then __GFP_NOFAIL has to be set, right? > > That would assume non-buggy code. I'm talking about the exercising of > hitherto-unused codepaths. We've fixed many, many pieces of code which > simply assumed that kmalloc(GFP_KERNEL) succeeds. I doubt if many such > simple bugs still exist, but there will be more subtle ones in there. We could add __GFP_NOFAIL to kmem_getpages in slab.c to insure that kmalloc waits rather than return NULL. Also a too drastic measure right? - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
- Follow-Ups:
- Re: Terminate process that fails on a constrained allocation
- From: Andi Kleen <[email protected]>
- Re: Terminate process that fails on a constrained allocation
- References:
- Terminate process that fails on a constrained allocation
- From: Christoph Lameter <[email protected]>
- Re: Terminate process that fails on a constrained allocation
- From: Andi Kleen <[email protected]>
- Re: Terminate process that fails on a constrained allocation
- From: Paul Jackson <[email protected]>
- Re: Terminate process that fails on a constrained allocation
- From: Andi Kleen <[email protected]>
- Re: Terminate process that fails on a constrained allocation
- From: Andrew Morton <[email protected]>
- Re: Terminate process that fails on a constrained allocation
- From: Christoph Lameter <[email protected]>
- Re: Terminate process that fails on a constrained allocation
- From: Andrew Morton <[email protected]>
- Terminate process that fails on a constrained allocation
- Prev by Date: Re: chroot in swsusp userland interface (was: Re: [Suspend2-devel] Re: [ 00/10] [Suspend2] Modules support.)
- Next by Date: Re: [RFC][PATCH 2/7] VPIDs: pid/vpid conversions
- Previous by thread: Re: Terminate process that fails on a constrained allocation
- Next by thread: Re: Terminate process that fails on a constrained allocation
- Index(es):