android_kernel_xiaomi_sm8450/fs/fuse
Alessio Balsini 8a0e4c2b94 FROMLIST: fuse: Fix crediantials leak in passthrough read_iter
If the system doesn't have enough memory when fuse_passthrough_read_iter
is requested in asynchronous IO, an error is directly returned without
restoring the caller's credentials.
Fix by always ensuring credentials are restored.

Fixes: aa29f32988 ("FROMLIST: fuse: Use daemon creds in passthrough mode")
Link: https://lore.kernel.org/lkml/YB0qPHVORq7bJy6G@google.com/
Reported-by: Peng Tao <bergwolf@gmail.com>
Signed-off-by: Alessio Balsini <balsini@android.com>
Signed-off-by: Alessio Balsini <balsini@google.com>
Change-Id: I4aff43f5dd8ddab2cc8871cd9f81438963ead5b6
2021-02-05 14:15:09 +00:00
..
acl.c fuse: fix bad inode 2021-01-09 13:46:24 +01:00
control.c fuse: split fuse_mount off of fuse_conn 2020-09-18 15:17:41 +02:00
cuse.c fuse: split fuse_mount off of fuse_conn 2020-09-18 15:17:41 +02:00
dax.c fuse: split fuse_mount off of fuse_conn 2020-09-18 15:17:41 +02:00
dev.c FROMLIST: fuse: Definitions and ioctl for passthrough 2021-01-26 17:20:09 +00:00
dir.c FROMLIST: fuse: Definitions and ioctl for passthrough 2021-01-26 17:20:09 +00:00
file.c FROMLIST: fuse: Introduce passthrough for mmap 2021-01-26 19:07:13 +00:00
fuse_i.h FROMLIST: fuse: Introduce passthrough for mmap 2021-01-26 19:07:13 +00:00
inode.c FROMLIST: fuse: Passthrough initialization and release 2021-01-26 17:20:09 +00:00
Kconfig virtiofs: implement dax read/write operations 2020-09-10 11:39:23 +02:00
Makefile FROMLIST: fuse: Definitions and ioctl for passthrough 2021-01-26 17:20:09 +00:00
passthrough.c FROMLIST: fuse: Fix crediantials leak in passthrough read_iter 2021-02-05 14:15:09 +00:00
readdir.c fuse: fix bad inode 2021-01-09 13:46:24 +01:00
virtio_fs.c virtiofs fix leak in setup 2020-12-30 11:53:08 +01:00
xattr.c Merge 5.10.6 into android12-5.10 2021-01-13 10:28:55 +01:00