* [PATCH] fuse: verify zero padding in fuse_backing_map
@ 2024-04-22 6:40 Amir Goldstein
2024-04-22 15:19 ` Miklos Szeredi
0 siblings, 1 reply; 2+ messages in thread
From: Amir Goldstein @ 2024-04-22 6:40 UTC (permalink / raw)
To: Miklos Szeredi
Cc: Bernd Schubert, Sweet Tea Dorminy, Daniel Rosenberg,
linux-fsdevel
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(-)
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);
--
2.34.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] fuse: verify zero padding in fuse_backing_map
2024-04-22 6:40 [PATCH] fuse: verify zero padding in fuse_backing_map Amir Goldstein
@ 2024-04-22 15:19 ` Miklos Szeredi
0 siblings, 0 replies; 2+ messages in thread
From: Miklos Szeredi @ 2024-04-22 15:19 UTC (permalink / raw)
To: Amir Goldstein
Cc: Bernd Schubert, Sweet Tea Dorminy, Daniel Rosenberg,
linux-fsdevel
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-04-22 15:19 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-22 6:40 [PATCH] fuse: verify zero padding in fuse_backing_map Amir Goldstein
2024-04-22 15:19 ` Miklos Szeredi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox