[lkml]   [2006]   [Feb]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: Terminate process that fails on a constrained allocation
    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
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2006-02-09 00:57    [W:0.018 / U:14.868 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site