fuse: verify zero padding in fuse_backing_map
Subsystems (3)
Amir Goldstein
maintainerPATCH 1/1 fuse: verify zero padding in fuse_backing_map
To allow us extending the interface in the future.
Fixes 44350256ab94 ("fuse: implement ioctls to manage backing files")
Signed-off-by Amir Goldstein <[email protected]>
--- fs/fuse/passthrough.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
fs/fuse/passthrough.c +1 -1
@@ -225,7 +225,7 @@ int fuse_backing_open(struct fuse_conn *fc, struct fuse_backing_map *map) goto out; res = -EINVAL ; -if (map->flags) +if (map->flags || map->padding) goto out; file =fget (map->fd);
Signature · 1 line
2.34.1
Quoted 5 lines · Amir Goldstein
To allow us extending the interface in the future.
Fixes 44350256ab94 ("fuse: implement ioctls to manage backing files")Signed-off-by Amir Goldstein <[email protected]>
Applied, thanks.
Miklos