summaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorAmir Goldstein <amir73il@gmail.com>2024-04-22 09:40:08 +0300
committerMiklos Szeredi <mszeredi@redhat.com>2024-04-22 17:13:43 +0200
commitaef8acd79f363ced098cd3bcde0a5978a52607ad (patch)
tree9b317d3b74014cb7c6ea125dc1ceb10ab4baca44 /fs
parented30a4a51bb196781c8058073ea720133a65596f (diff)
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 <amir73il@gmail.com> Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Diffstat (limited to 'fs')
-rw-r--r--fs/fuse/passthrough.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/fuse/passthrough.c b/fs/fuse/passthrough.c
index 1567f0323858..9666d13884ce 100644
--- a/fs/fuse/passthrough.c
+++ b/fs/fuse/passthrough.c
@@ -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);