Files
linux/fs/xfs/linux-2.6
Dan Rosenberg 043d7866ae xfs: prevent reading uninitialized stack memory
commit a122eb2fdf upstream.

The XFS_IOC_FSGETXATTR ioctl allows unprivileged users to read 12
bytes of uninitialized stack memory, because the fsxattr struct
declared on the stack in xfs_ioc_fsgetxattr() does not alter (or zero)
the 12-byte fsx_pad member before copying it back to the user.  This
patch takes care of it.

Signed-off-by: Dan Rosenberg <dan.j.rosenberg@gmail.com>
Reviewed-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Alex Elder <aelder@sgi.com>
Cc: dann frazier <dannf@debian.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2010-09-26 17:21:30 -07:00
..
2009-06-01 22:59:45 -05:00
2008-12-04 15:39:21 +11:00
2008-12-29 16:47:18 +11:00
2009-09-15 12:29:24 -05:00
2008-10-30 16:55:03 +11:00
2009-03-16 08:25:25 +01:00
2009-06-10 17:07:47 +02:00