Re: [PATCH v2] fs: select: fix information leak to userspace

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Américo Wang
Date: Tuesday, November 23, 2010 - 7:01 am

On Mon, Nov 15, 2010 at 08:12:21PM +0100, Eric Dumazet wrote:

Yeah, this is not clearly defined by C99 I think, but we can still
find some clues in 6.2.6.1, Paragraph 6,

"
When a value is stored in an object of structure or union type,
including in a member object, the bytes of the object representation
that correspond to any padding bytes take unspecified values.
"

So we can't rely on the compiler to initialize the padding bytes
too.

-- 
Live like a child, think like the god.
 
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] fs: select: fix information leak to userspace, Vasiliy Kulikov, (Wed Nov 10, 1:38 pm)
Re: [PATCH] fs: select: fix information leak to userspace, Andrew Morton, (Fri Nov 12, 1:08 pm)
Re: [PATCH] fs: select: fix information leak to userspace, Andreas Dilger, (Sat Nov 13, 2:38 pm)
[PATCH v2] fs: select: fix information leak to userspace, Vasiliy Kulikov, (Sun Nov 14, 2:25 am)
Re: [PATCH] fs: select: fix information leak to userspace, Andrew Morton, (Sun Nov 14, 7:05 pm)
Re: [PATCH v2] fs: select: fix information leak to userspace, Américo Wang, (Tue Nov 23, 7:01 am)
Re: [PATCH v2] fs: select: fix information leak to userspace, Andreas Dilger, (Tue Nov 23, 11:02 am)
Re: [PATCH v2] fs: select: fix information leak to userspace, Valdis.Kletnieks, (Wed Nov 24, 10:54 am)