On Fri, 5 Aug 2005, Stephen Pollei wrote: > > On Fri, 5 Aug 2005, Arjan van de Ven wrote: > > > > This would imply a similiar kmalloc() would be useful as well. > > > > Second, how relevant is it for the kernel? > > > we've had a non-negliable amount of security holes because of this > > So why don't we have a similiar kmalloc()? > You mean something like: > static void __bad_kmalloc_safe_nonconstant_size(void); Hmm. If we had kcmalloc then we may be able to add a zero bit to the slab allocator. If we would obtain zeroed pages for the slab then we may skip zeroing of individual entries. However, the cache warming effect of the current zeroing is then not occurring. Not sure if this would make sense but this is a possible optimization if we had kcmalloc. - 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: [PATCH] kernel: use kcalloc instead kmalloc/memset
- From: Stephen Pollei <[email protected]>
- Re: [PATCH] kernel: use kcalloc instead kmalloc/memset
- References:
- [PATCH] kernel: use kcalloc instead kmalloc/memset
- From: Pekka Enberg <[email protected]>
- Re: [PATCH] kernel: use kcalloc instead kmalloc/memset
- From: Andrew Morton <[email protected]>
- Re: [PATCH] kernel: use kcalloc instead kmalloc/memset
- From: Pekka J Enberg <[email protected]>
- Re: [PATCH] kernel: use kcalloc instead kmalloc/memset
- From: Andrew Morton <[email protected]>
- Re: [PATCH] kernel: use kcalloc instead kmalloc/memset
- From: Roman Zippel <[email protected]>
- Re: [PATCH] kernel: use kcalloc instead kmalloc/memset
- From: Arjan van de Ven <[email protected]>
- Re: [PATCH] kernel: use kcalloc instead kmalloc/memset
- From: Roman Zippel <[email protected]>
- Re: [PATCH] kernel: use kcalloc instead kmalloc/memset
- From: Arjan van de Ven <[email protected]>
- Re: [PATCH] kernel: use kcalloc instead kmalloc/memset
- From: Roman Zippel <[email protected]>
- Re: [PATCH] kernel: use kcalloc instead kmalloc/memset
- From: Stephen Pollei <[email protected]>
- [PATCH] kernel: use kcalloc instead kmalloc/memset
- Prev by Date: Re: [PATCH] driver core: Add the ability to unbind drivers to devices from userspace
- Next by Date: Re: [PATCH] driver core: Add the ability to unbind drivers to devices from userspace
- Previous by thread: Re: [PATCH] kernel: use kcalloc instead kmalloc/memset
- Next by thread: Re: [PATCH] kernel: use kcalloc instead kmalloc/memset
- Index(es):