Files
kernel_xiaomi_cepheus/include/uapi/linux
Alessio Balsini 084b16d264 BACKPORT: ANDROID: fuse/passthrough: API V2 with __u32 open argument
The initial FUSE passthrough interface has the issue of introducing an
ioctl which receives as a parameter a data structure containing a
pointer. What happens is that, depending on the architecture, the size
of this struct might change, and especially for 32-bit userspace running
on 64-bit kernel, the size mismatch results into different a single
ioctl the behavior of which depends on the data that is passed (e.g.,
with an enum). This is just a poor ioctl design as mentioned by Arnd
Bergmann [1].

Introduce the new FUSE_PASSTHROUGH_OPEN ioctl which only gets the fd of
the lower file system, which is a fixed-size __u32, dropping the
confusing fuse_passthrough_out data structure.

[1] https://lore.kernel.org/lkml/CAK8P3a2K2FzPvqBYL9W=Yut58SFXyetXwU4Fz50G5O3TsS0pPQ@mail.gmail.com/

Bug: 175195837
Signed-off-by: Alessio Balsini <balsini@google.com>
Change-Id: I486d71cbe20f3c0c87544fa75da4e2704fe57c7c
[cyberknight777: backport to 4.14]
Signed-off-by: Cyber Knight <cyberknight755@gmail.com>
Signed-off-by: onettboots <blackcocopet@gmail.com>
2023-08-09 18:16:06 -05:00
..
2021-12-10 14:04:46 +00:00
2021-05-24 16:47:29 +00:00
2018-11-19 11:16:57 +08:00
2020-12-22 15:09:24 +08:00
2020-05-15 15:50:12 +05:30
2020-12-22 03:42:18 -08:00
2020-12-22 11:47:35 +05:30
2021-04-16 11:57:51 +02:00
2020-07-16 13:13:14 +08:00
2020-10-29 09:07:14 +01:00
2021-06-29 13:56:26 +05:30
2021-08-17 14:19:08 +00:00
2020-01-09 14:58:35 -08:00
2022-03-11 10:06:50 +01:00