diff options
| author | Dan Rosenberg <[email protected]> | 2010-09-06 22:24:57 +0000 |
|---|---|---|
| committer | Alex Elder <[email protected]> | 2010-09-10 12:39:28 +0000 |
| commit | a122eb2fdfd78b58c6dd992d6f4b1aaef667eef9 (patch) | |
| tree | 754cbb6319fd3114c6aeb1bf456bf37cff699c69 /scripts/basic/docproc.c | |
| parent | Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dto... (diff) | |
| download | kernel-a122eb2fdfd78b58c6dd992d6f4b1aaef667eef9.tar.gz kernel-a122eb2fdfd78b58c6dd992d6f4b1aaef667eef9.zip | |
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 <[email protected]>
Reviewed-by: Eric Sandeen <[email protected]>
Signed-off-by: Alex Elder <[email protected]>
Diffstat (limited to 'scripts/basic/docproc.c')
0 files changed, 0 insertions, 0 deletions
