This series adds support for the FS_IOC_GET_ENCRYPTION_POLICY_EX ioctl to fuse. We want this in Chrome OS because have applications running inside a VM that expect this ioctl to succeed on a virtiofs mount. This series doesn't add support for other dynamically-sized ioctls because there don't appear to be any users for them. However, once these patches are merged it should hopefully be much simpler to add support for other ioctls in the future, if necessary. Changes in v2: * Move ioctl length calculation to a separate function. * Properly clean up in the error case. * Check that the user-provided size does not cause an integer overflow. Chirantan Ekbote (2): fuse: Move ioctl length calculation to a separate function fuse: Support FS_IOC_GET_ENCRYPTION_POLICY_EX fs/fuse/file.c | 43 +++++++++++++++++++++++++++++++++---------- 1 file changed, 33 insertions(+), 10 deletions(-) -- 2.29.2.576.ga3fc446d84-goog