mirror of
https://github.com/versity/scoutfs.git
synced 2026-01-05 11:45:09 +00:00
plug df ioctl leaks.
The `type` member and padding are not initialized before being copied to userspace. Signed-off-by: Auke Kok <auke.kok@versity.com>
This commit is contained in:
@@ -954,6 +954,9 @@ static int copy_alloc_detail_to_user(struct super_block *sb, void *arg,
|
||||
if (args->copied == args->nr)
|
||||
return -EOVERFLOW;
|
||||
|
||||
/* .type and .pad need clearing */
|
||||
memset(&ade, 0, sizeof(struct scoutfs_ioctl_alloc_detail_entry));
|
||||
|
||||
ade.blocks = blocks;
|
||||
ade.id = id;
|
||||
ade.meta = !!meta;
|
||||
|
||||
Reference in New Issue
Block a user