Skip to content

Commit

Permalink
udf: avoid info leak on export
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Jan Kara <[email protected]>
  • Loading branch information
minipli authored and jankara committed Jul 13, 2012
1 parent fe685aa commit 0143fc5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fs/udf/namei.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 0143fc5

Please sign in to comment.