[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <0000013e65cd1cf9-c331a323-ad53-45e0-bd3f-367456456777-000000@email.amazonses.com>
Date: Thu, 2 May 2013 15:12:21 +0000
From: Christoph Lameter <cl@...ux.com>
To: Pekka Enberg <penberg@...nel.org>
cc: Tetsuo Handa <penguin-kernel@...ove.SAKURA.ne.jp>,
glommer@...allels.com, linux-kernel@...r.kernel.org
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.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists