Alessio Balsini 30a5a7a4a7
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: aa29f32988c1f84c96e2457b049dea437601f2cc ("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
(cherry picked from commit 79a47db66416232bbc5b9fce8f417c9fad025fb1)
Signed-off-by: alk3pInjection <webmaster@raspii.tech>
Signed-off-by: atndko <z1281552865@gmail.com>
Signed-off-by: Zlatan Radovanovic <zlatan.radovanovic@fet.ba>
Signed-off-by: Cyber Knight <cyberknight755@gmail.com>
Signed-off-by: Forenche <prahul2003@gmail.com>
2022-07-03 17:30:57 +05:30
..
2019-10-11 19:10:13 +02:00
2020-04-03 08:18:27 +02:00
2020-07-29 09:11:55 +02:00
2019-08-06 19:05:23 +02:00
2020-06-25 15:41:52 +02:00
2019-12-05 15:48:19 +01:00
2020-07-24 10:08:39 +02:00
2019-12-17 21:13:36 +01:00
2022-04-02 13:21:35 +05:30
2020-07-01 12:51:55 +02:00
2022-04-02 12:30:38 +05:30
2020-08-13 13:44:59 -07:00
2022-06-22 14:21:48 +05:30
2022-04-02 13:39:53 +05:30
2022-06-22 14:21:48 +05:30
2020-05-20 12:15:34 +02:00
2020-03-11 18:02:43 +01:00
2022-04-02 13:31:28 +05:30
2020-08-13 13:44:59 -07:00
2020-05-03 08:51:19 +02:00