Thread (18 messages) flat view 18 messages, 4 authors, 2012-09-21

Re: [PATCH 4/6] xfrm_user: fix info leak in copy_to_user_tmpl()

From: Steffen Klassert <steffen.klassert@secunet.com>
Date: 2012-09-20 07:26:14
Also in: lkml

On Wed, Sep 19, 2012 at 11:33:41PM +0200, Mathias Krause wrote:
The memory used for the template copy is a local stack variable. As
struct xfrm_user_tmpl contains multiple holes added by the compiler for
alignment, not initializing the memory will lead to leaking stack bytes
to userland. Add an explicit memset(0) to avoid the info leak.

Initial version of the patch by Brad Spengler.

Cc: Brad Spengler <redacted>
Signed-off-by: Mathias Krause <redacted>
Patches 1-4:

Acked-by: Steffen Klassert <steffen.klassert@secunet.com>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help