diff options
author | Mathias Krause <minipli@googlemail.com> | 2012-07-12 08:46:55 +0200 |
---|---|---|
committer | Jan Kara <jack@suse.cz> | 2012-07-13 11:21:21 +0200 |
commit | 0143fc5e9f6f5aad4764801015bc8d4b4a278200 (patch) | |
tree | 98a8486a21426f9ce334ad058ffe40c4e04b231a /fs | |
parent | fe685aabf7c8c9f138e5ea900954d295bf229175 (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')
-rw-r--r-- | fs/udf/namei.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/udf/namei.c b/fs/udf/namei.c index 18024178ac4..c31deb382af 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) { |