From: Christopher Hoffman Date: Wed, 23 Jul 2025 19:11:31 +0000 (+0000) Subject: client: skip fscrypt decrypt_bl if data bl is empty. X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=519f31271e40d6ea32911d4f5fd13d5523944512;p=ceph.git client: skip fscrypt decrypt_bl if data bl is empty. Fixes: https://tracker.ceph.com/issues/72237 Fixes: https://tracker.ceph.com/issues/72192 Signed-off-by: Christopher Hoffman --- diff --git a/src/client/FSCrypt.cc b/src/client/FSCrypt.cc index edb38898affaf..1e10085d8ee8b 100644 --- a/src/client/FSCrypt.cc +++ b/src/client/FSCrypt.cc @@ -882,6 +882,8 @@ int FSCryptFNameDenc::get_decrypted_symlink(const std::string& b64enc, std::stri int FSCryptFDataDenc::decrypt_bl(uint64_t off, uint64_t len, uint64_t pos, const std::vector& holes, bufferlist *bl) { auto data_len = bl->length(); + if (data_len == 0) + return 0; auto target_end = off + len;