fuse: verify zero padding in fuse_backing_map
To allow us extending the interface in the future.
Fixes: 44350256ab
("fuse: implement ioctls to manage backing files")
Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
This commit is contained in:
committed by
Miklos Szeredi
parent
ed30a4a51b
commit
aef8acd79f
@@ -225,7 +225,7 @@ int fuse_backing_open(struct fuse_conn *fc, struct fuse_backing_map *map)
|
|||||||
goto out;
|
goto out;
|
||||||
|
|
||||||
res = -EINVAL;
|
res = -EINVAL;
|
||||||
if (map->flags)
|
if (map->flags || map->padding)
|
||||||
goto out;
|
goto out;
|
||||||
|
|
||||||
file = fget(map->fd);
|
file = fget(map->fd);
|
||||||
|
Reference in New Issue
Block a user