diff mbox series

fuse: verify zero padding in fuse_backing_map

Message ID 20240422064008.936525-1-amir73il@gmail.com (mailing list archive)
State New, archived
Headers show
Series fuse: verify zero padding in fuse_backing_map | expand

Commit Message

Amir Goldstein April 22, 2024, 6:40 a.m. UTC
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>
---
 fs/fuse/passthrough.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Miklos Szeredi April 22, 2024, 3:19 p.m. UTC | #1
On Mon, 22 Apr 2024 at 08:40, Amir Goldstein <amir73il@gmail.com> wrote:
>
> 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>

Applied, thanks.

Miklos
diff mbox series

Patch

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);