Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fe685aab authored by Mathias Krause's avatar Mathias Krause Committed by Jan Kara
Browse files

isofs: avoid info leak on export



For type 1 the parent_offset member in struct isofs_fid gets copied
uninitialized to userland. Fix this by initializing it to 0.

Signed-off-by: default avatarMathias Krause <minipli@googlemail.com>
Signed-off-by: default avatarJan Kara <jack@suse.cz>
parent 57b9655d
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -134,6 +134,7 @@ isofs_export_encode_fh(struct inode *inode,
	len = 3;
	len = 3;
	fh32[0] = ei->i_iget5_block;
	fh32[0] = ei->i_iget5_block;
 	fh16[2] = (__u16)ei->i_iget5_offset;  /* fh16 [sic] */
 	fh16[2] = (__u16)ei->i_iget5_offset;  /* fh16 [sic] */
	fh16[3] = 0;  /* avoid leaking uninitialized data */
	fh32[2] = inode->i_generation;
	fh32[2] = inode->i_generation;
	if (parent) {
	if (parent) {
		struct iso_inode_info *eparent;
		struct iso_inode_info *eparent;