Messages in this thread | | | Date | Thu, 2 May 2013 15:12:21 +0000 | From | Christoph Lameter <> | Subject | Re: [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.
| |