lkml.org 
[lkml]   [2013]   [May]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [linux-next-20130422] Bug in SLAB?
    On Wed, 1 May 2013, Pekka Enberg wrote:

    > > This behavior has been in there for years. Why try a kmalloc that
    > > always fails since the size is too big?
    >
    > ...because want the extra protection for cases where size is controlled by
    > userspace. This is consistent with kcalloc() that returns NULL on integer
    > overflow.

    The slab allocator behavior since SLUB was introduced has been to BUG() on
    allocations that can never be satisfied.



    \
     
     \ /
      Last update: 2013-05-02 17:21    [W:4.157 / U:0.492 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site