summaryrefslogtreecommitdiffstats
path: root/fs/udf
diff options
context:
space:
mode:
authorMathias Krause <minipli@googlemail.com>2012-07-12 08:46:55 +0200
committerJan Kara <jack@suse.cz>2012-07-13 11:21:21 +0200
commit0143fc5e9f6f5aad4764801015bc8d4b4a278200 (patch)
tree98a8486a21426f9ce334ad058ffe40c4e04b231a /fs/udf
parentfe685aabf7c8c9f138e5ea900954d295bf229175 (diff)
downloadlinux-stable-0143fc5e9f6f5aad4764801015bc8d4b4a278200.tar.gz
linux-stable-0143fc5e9f6f5aad4764801015bc8d4b4a278200.tar.bz2
linux-stable-0143fc5e9f6f5aad4764801015bc8d4b4a278200.zip
udf: avoid info leak on export
For type 0x51 the udf.parent_partref member in struct fid gets copied uninitialized to userland. Fix this by initializing it to 0. Signed-off-by: Mathias Krause <minipli@googlemail.com> Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'fs/udf')
-rw-r--r--fs/udf/namei.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/udf/namei.c b/fs/udf/namei.c
index 18024178ac4c..c31deb382afd 100644
--- a/fs/udf/namei.c
+++ b/fs/udf/namei.c
@@ -1279,6 +1279,7 @@ static int udf_encode_fh(struct inode *inode, __u32 *fh, int *lenp,
*lenp = 3;
fid->udf.block = location.logicalBlockNum;
fid->udf.partref = location.partitionReferenceNum;
+ fid->udf.parent_partref = 0;
fid->udf.generation = inode->i_generation;
if (parent) {