On Sat, 2005-08-06 at 02:40 +0200, Roman Zippel wrote: > I actually looked at the current kcalloc users and besides a few unchecked > module parameters, the arguments were either constant or had to be checked > anyway. I didn't find a single example which required the "safety" of > kcalloc(). Every caller of kcalloc() should do proper bounds checking. It's just that when they forget to do it, we hopefully avoid a buffer overflow which can be exploited. Pekka - 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/
- 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: 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]>
- [PATCH] kernel: use kcalloc instead kmalloc/memset
- Prev by Date: Re: [PATCH] tpm_infineon: Support for new TPM 1.2 and PNPACPI
- Next by Date: [2.6 patch] fs/Kconfig: quota help text updates
- Previous by thread: Re: [PATCH] kernel: use kcalloc instead kmalloc/memset
- Next by thread: Re: [PATCH] kernel: use kcalloc instead kmalloc/memset
- Index(es):