Re: [stable] [PATCH v2] ipc: initialize structure memory to zerofor shmctl

From: Greg KH
Date: Wed Oct 06 2010 - 22:58:23 EST


On Wed, Oct 06, 2010 at 07:18:36PM -0700, Kees Cook wrote:
> The old shm interface will leak a few bytes of stack contents. Explicitly
> initialize the structure to zero-fill the untouched fields, using memset
> instead of C99-style in case there are ever holes in the structure.
>
> Signed-off-by: Kees Cook <kees.cook@xxxxxxxxxxxxx>
> ---

If you wish to have a patch included in the stable series, please read
Documentation/stable_kernel_rules.txt which state that adding a:
Cc: stable <stable@xxxxxxxxxx>
to the signed-off-by: area will cause it to be automagically included
when the patch gets into Linus's tree. Otherwise it just causes a lot
of extra work for me to dig around and watch out for it in the future.

thanks,

greg k-h
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/