mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-01-19 02:36:25 +07:00
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: Mathias Krause <minipli@googlemail.com> Signed-off-by: Jan Kara <jack@suse.cz>
This commit is contained in:
parent
57b9655d01
commit
fe685aabf7
@ -134,6 +134,7 @@ isofs_export_encode_fh(struct inode *inode,
|
||||
len = 3;
|
||||
fh32[0] = ei->i_iget5_block;
|
||||
fh16[2] = (__u16)ei->i_iget5_offset; /* fh16 [sic] */
|
||||
fh16[3] = 0; /* avoid leaking uninitialized data */
|
||||
fh32[2] = inode->i_generation;
|
||||
if (parent) {
|
||||
struct iso_inode_info *eparent;
|
||||
|
Loading…
Reference in New Issue
Block a user