From patchwork Wed Sep 1 16:27:17 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eric Biggers X-Patchwork-Id: 12469797 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-14.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2E2F0C432BE for ; Wed, 1 Sep 2021 16:28:15 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 1418961053 for ; Wed, 1 Sep 2021 16:28:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245538AbhIAQ3L (ORCPT ); Wed, 1 Sep 2021 12:29:11 -0400 Received: from mail.kernel.org ([198.145.29.99]:45282 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245484AbhIAQ3K (ORCPT ); Wed, 1 Sep 2021 12:29:10 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 9C3C161053; Wed, 1 Sep 2021 16:28:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1630513693; bh=fmOdVLIoHRP0uybJSMzliPgeLHikRzrbnj9mRMHwsVI=; h=From:To:Cc:Subject:Date:From; b=rFGSjUtgu2o8WUxV1cD9ekzKEXwohpHncP3cA/Klzfkc+TzlW+ItUIOV9VjA/fgci 25aOGDMYYhlaiszzakBpjXF8kE3H63mrczpGcVzYmzHe3UVrxln5VN4TmboZQUDm+L NDWnc+7VobjJEACrDJEFafozFlyFyjMysDvtnKIj/fooIWoHBh8TiI+7GhYTalCC/a t0Ka0W9UT8Mrs/j6gTebf8YOaSA7ExfZsfHft8uI/JqGWOP9hd9wAL3Jz/a2WjWnZs f+JLqerG3ES+tJD8HCirfxe8Ipjzlenba2+zSwp7wGQZj35WFRDirxZycQ0xHJVVUi 5NpA6UrWT9fAQ== From: Eric Biggers To: stable@vger.kernel.org Cc: linux-fscrypt@vger.kernel.org Subject: [PATCH 5.10 0/4] backport fscrypt symlink fixes to 5.10 Date: Wed, 1 Sep 2021 09:27:17 -0700 Message-Id: <20210901162721.138605-1-ebiggers@kernel.org> X-Mailer: git-send-email 2.33.0 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-fscrypt@vger.kernel.org This series resolves some silent cherry-pick conflicts due to the prototype of inode_operations::getattr having changed in v5.12, as well as a conflict in the ubifs patch. Please apply to 5.10-stable. Eric Biggers (4): fscrypt: add fscrypt_symlink_getattr() for computing st_size ext4: report correct st_size for encrypted symlinks f2fs: report correct st_size for encrypted symlinks ubifs: report correct st_size for encrypted symlinks fs/crypto/hooks.c | 44 +++++++++++++++++++++++++++++++++++++++++ fs/ext4/symlink.c | 11 ++++++++++- fs/f2fs/namei.c | 11 ++++++++++- fs/ubifs/file.c | 12 ++++++++++- include/linux/fscrypt.h | 7 +++++++ 5 files changed, 82 insertions(+), 3 deletions(-)