From: Dan Rosenberg Date: Mon, 6 Sep 2010 22:24:57 +0000 (-0400) Subject: xfs: prevent reading uninitialized stack memory X-Git-Tag: v2.6.36-rc4~10^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a122eb2fdfd78b58c6dd992d6f4b1aaef667eef9;p=pandora-kernel.git xfs: prevent reading uninitialized stack memory 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 Reviewed-by: Eric Sandeen Signed-off-by: Alex Elder --- Reading git-diff-tree failed