aboutsummaryrefslogtreecommitdiffstats
path: root/fs/udf
diff options
context:
space:
mode:
authorMathias Krause <minipli@googlemail.com>2012-07-12 02:46:55 -0400
committerJan Kara <jack@suse.cz>2012-07-13 05:21:21 -0400
commit0143fc5e9f6f5aad4764801015bc8d4b4a278200 (patch)
tree98a8486a21426f9ce334ad058ffe40c4e04b231a /fs/udf
parentfe685aabf7c8c9f138e5ea900954d295bf229175 (diff)
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,
1279 *lenp = 3; 1279 *lenp = 3;
1280 fid->udf.block = location.logicalBlockNum; 1280 fid->udf.block = location.logicalBlockNum;
1281 fid->udf.partref = location.partitionReferenceNum; 1281 fid->udf.partref = location.partitionReferenceNum;
1282 fid->udf.parent_partref = 0;
1282 fid->udf.generation = inode->i_generation; 1283 fid->udf.generation = inode->i_generation;
1283 1284
1284 if (parent) { 1285 if (parent) {