From mboxrd@z Thu Jan 1 00:00:00 1970 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 A9E00C11F68 for ; Fri, 2 Jul 2021 06:54:51 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 7EFA06141C for ; Fri, 2 Jul 2021 06:54:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230026AbhGBG5W (ORCPT ); Fri, 2 Jul 2021 02:57:22 -0400 Received: from mail.kernel.org ([198.145.29.99]:42466 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229542AbhGBG5W (ORCPT ); Fri, 2 Jul 2021 02:57:22 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id A2A7A613F0; Fri, 2 Jul 2021 06:54:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1625208890; bh=2YEFNbCIRo9WHTdZ5XW0VKfk2fnVjJ1mVF7axmh20i4=; h=From:To:Cc:Subject:Date:From; b=hb2Z+thtoOA3Ut1D51UPw7NUY4/SDw+9ssqTVt7RSJrQ+PeUpckBpHqKThBKweN5k lbd26NukQBtGrzVQZR0VApGV+hAOe4pbrKCoHqnOFYlvvNHWI6lLZN1slkg9znK7QA PBWSIug3OcJx+ZYgHrfHDhJdMgqiEO97WuKXOGiLuCN5iUglvtfoBmTj4ieI5MLW3G tp1fPywkkq9ZrOOj+xHVwcAFrOPXsgTGtWc0z7yMxtSeDXSWq4rpTGKc1p0Bg2NawI OZWUn6F3LZrJuKBLEGWrDr3IwEyl6nIznqGrYnLPez8t9ykzve/FQxDyZEnZaiODQk aT+b5KyTtBu6Q== From: Eric Biggers To: linux-fscrypt@vger.kernel.org Cc: linux-ext4@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net, linux-mtd@lists.infradead.org, linux-fsdevel@vger.kernel.org Subject: [PATCH 0/5] fscrypt: report correct st_size for encrypted symlinks Date: Thu, 1 Jul 2021 23:53:45 -0700 Message-Id: <20210702065350.209646-1-ebiggers@kernel.org> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-fscrypt@vger.kernel.org This series makes the stat() family of syscalls start reporting the correct size for encrypted symlinks. See patch 1 for a detailed explanation of the problem and solution. Patch 1 adds a helper function that computes the correct size for an encrypted symlink. Patches 2-4 make the filesystems with fscrypt support use it, and patch 5 updates the documentation. This series applies to mainline commit 3dbdb38e2869. Eric Biggers (5): 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 fscrypt: remove mention of symlink st_size quirk from documentation Documentation/filesystems/fscrypt.rst | 5 --- fs/crypto/hooks.c | 44 +++++++++++++++++++++++++++ fs/ext4/symlink.c | 12 +++++++- fs/f2fs/namei.c | 12 +++++++- fs/ubifs/file.c | 13 +++++++- include/linux/fscrypt.h | 7 +++++ 6 files changed, 85 insertions(+), 8 deletions(-) base-commit: 3dbdb38e286903ec220aaf1fb29a8d94297da246 -- 2.32.0 From mboxrd@z Thu Jan 1 00:00:00 1970 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=-11.8 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,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 97E7CC11F68 for ; Fri, 2 Jul 2021 06:55:12 +0000 (UTC) Received: from lists.sourceforge.net (lists.sourceforge.net [216.105.38.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 6518F61156; Fri, 2 Jul 2021 06:55:12 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 6518F61156 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=linux-f2fs-devel-bounces@lists.sourceforge.net Received: from [127.0.0.1] (helo=sfs-ml-4.v29.lw.sourceforge.com) by sfs-ml-4.v29.lw.sourceforge.com with esmtp (Exim 4.90_1) (envelope-from ) id 1lzD4y-0007jl-2n; Fri, 02 Jul 2021 06:55:12 +0000 Received: from [172.30.20.202] (helo=mx.sourceforge.net) by sfs-ml-4.v29.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lzD4p-0007jR-HF for linux-f2fs-devel@lists.sourceforge.net; Fri, 02 Jul 2021 06:55:03 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sourceforge.net; s=x; h=Content-Transfer-Encoding:MIME-Version:Message-Id: Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=9LzP3+lxRRBVQonHgS7VVulwJb/vPpVRfwfqivhYpXQ=; b=lP7/zsyGZNpBkEaTWnp3MHLZlE kE4Ocj9YmoNwlW2g1/by4mMogPEqtu6fkkrc3PaCARjK9sOyquLLmElnmcsL3Qyv5UjhBbYf2p+lX u6w3aOwj0P0e4d6/DZTlErOSrl0Z/Fpv6Pjr3pHY/E68kGdKN87jyeJr0r9a21VWeGL0=; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x ; h=Content-Transfer-Encoding:MIME-Version:Message-Id:Date:Subject:Cc:To:From :Sender:Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Id:List-Help:List-Unsubscribe:List-Subscribe:List-Post: List-Owner:List-Archive; bh=9LzP3+lxRRBVQonHgS7VVulwJb/vPpVRfwfqivhYpXQ=; b=B CnEYhvxaOk9sa/Rea2tbVZ64bqARRPlg7dP8sR3NXjNzc18Wxr+OTvrRoZ2ZkNJAbCbtDoWLlTRzJ JfQ5G/Bl7qQ+FDevvlgA95/NSEyb59Q+ghXPRAlkOQDaqhwHF8EqTYchvZTWxsRcza+MHQ4Nna41n 9/37/xUkpnWjAY3c=; Received: from mail.kernel.org ([198.145.29.99]) by sfi-mx-2.v28.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92.3) id 1lzD4m-0004OJ-Vi for linux-f2fs-devel@lists.sourceforge.net; Fri, 02 Jul 2021 06:55:03 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id A2A7A613F0; Fri, 2 Jul 2021 06:54:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1625208890; bh=2YEFNbCIRo9WHTdZ5XW0VKfk2fnVjJ1mVF7axmh20i4=; h=From:To:Cc:Subject:Date:From; b=hb2Z+thtoOA3Ut1D51UPw7NUY4/SDw+9ssqTVt7RSJrQ+PeUpckBpHqKThBKweN5k lbd26NukQBtGrzVQZR0VApGV+hAOe4pbrKCoHqnOFYlvvNHWI6lLZN1slkg9znK7QA PBWSIug3OcJx+ZYgHrfHDhJdMgqiEO97WuKXOGiLuCN5iUglvtfoBmTj4ieI5MLW3G tp1fPywkkq9ZrOOj+xHVwcAFrOPXsgTGtWc0z7yMxtSeDXSWq4rpTGKc1p0Bg2NawI OZWUn6F3LZrJuKBLEGWrDr3IwEyl6nIznqGrYnLPez8t9ykzve/FQxDyZEnZaiODQk aT+b5KyTtBu6Q== From: Eric Biggers To: linux-fscrypt@vger.kernel.org Date: Thu, 1 Jul 2021 23:53:45 -0700 Message-Id: <20210702065350.209646-1-ebiggers@kernel.org> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 X-Headers-End: 1lzD4m-0004OJ-Vi Subject: [f2fs-dev] [PATCH 0/5] fscrypt: report correct st_size for encrypted symlinks X-BeenThere: linux-f2fs-devel@lists.sourceforge.net X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-fsdevel@vger.kernel.org, linux-ext4@vger.kernel.org, linux-mtd@lists.infradead.org, linux-f2fs-devel@lists.sourceforge.net Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: linux-f2fs-devel-bounces@lists.sourceforge.net This series makes the stat() family of syscalls start reporting the correct size for encrypted symlinks. See patch 1 for a detailed explanation of the problem and solution. Patch 1 adds a helper function that computes the correct size for an encrypted symlink. Patches 2-4 make the filesystems with fscrypt support use it, and patch 5 updates the documentation. This series applies to mainline commit 3dbdb38e2869. Eric Biggers (5): 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 fscrypt: remove mention of symlink st_size quirk from documentation Documentation/filesystems/fscrypt.rst | 5 --- fs/crypto/hooks.c | 44 +++++++++++++++++++++++++++ fs/ext4/symlink.c | 12 +++++++- fs/f2fs/namei.c | 12 +++++++- fs/ubifs/file.c | 13 +++++++- include/linux/fscrypt.h | 7 +++++ 6 files changed, 85 insertions(+), 8 deletions(-) base-commit: 3dbdb38e286903ec220aaf1fb29a8d94297da246 -- 2.32.0 _______________________________________________ Linux-f2fs-devel mailing list Linux-f2fs-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel From mboxrd@z Thu Jan 1 00:00:00 1970 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=-12.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED,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 5C13BC11F68 for ; Fri, 2 Jul 2021 06:55:58 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 1E18B61413 for ; Fri, 2 Jul 2021 06:55:58 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 1E18B61413 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-mtd-bounces+linux-mtd=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=JhNqSVzWumdtFWXbcJgTUcBO1Z53dfbOX4G+UwzMCe8=; b=hZpQp9J8jjIHJv cjYn7mbrCuWgvwJZ3s+aqUmWbRdgHlSJ1AYTtDe8EdiXCvKeBjc2KZ3TW85Y95pVu6a9pKVlGq/dE OS9VBhcD5p4n+lCWIc0B0/luVk/tU7NbIMIhE+lxMCdT7bX+umn0gGoZIBszc4TM/E+c5gNX2MCTx lYM4nxoU44fI61l6HHzud0+Py4EfxQWknFpliFUr34N2KPnQl+XIlqy8/mLjuFR4a/txFjhbD96qm w4B7CCIeC5jCX5x/Hd0qSmD1k5AyPNs3E+jML7myd1y85AQyMo1FUrdvLiomvn+v28JXHyBUl1Dca 44M676ouNaQ1bkzJetEw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1lzD4k-002Iw8-0K; Fri, 02 Jul 2021 06:54:58 +0000 Received: from mail.kernel.org ([198.145.29.99]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1lzD4e-002Irb-02 for linux-mtd@lists.infradead.org; Fri, 02 Jul 2021 06:54:53 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id A2A7A613F0; Fri, 2 Jul 2021 06:54:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1625208890; bh=2YEFNbCIRo9WHTdZ5XW0VKfk2fnVjJ1mVF7axmh20i4=; h=From:To:Cc:Subject:Date:From; b=hb2Z+thtoOA3Ut1D51UPw7NUY4/SDw+9ssqTVt7RSJrQ+PeUpckBpHqKThBKweN5k lbd26NukQBtGrzVQZR0VApGV+hAOe4pbrKCoHqnOFYlvvNHWI6lLZN1slkg9znK7QA PBWSIug3OcJx+ZYgHrfHDhJdMgqiEO97WuKXOGiLuCN5iUglvtfoBmTj4ieI5MLW3G tp1fPywkkq9ZrOOj+xHVwcAFrOPXsgTGtWc0z7yMxtSeDXSWq4rpTGKc1p0Bg2NawI OZWUn6F3LZrJuKBLEGWrDr3IwEyl6nIznqGrYnLPez8t9ykzve/FQxDyZEnZaiODQk aT+b5KyTtBu6Q== From: Eric Biggers To: linux-fscrypt@vger.kernel.org Cc: linux-ext4@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net, linux-mtd@lists.infradead.org, linux-fsdevel@vger.kernel.org Subject: [PATCH 0/5] fscrypt: report correct st_size for encrypted symlinks Date: Thu, 1 Jul 2021 23:53:45 -0700 Message-Id: <20210702065350.209646-1-ebiggers@kernel.org> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210701_235452_090516_0D32D521 X-CRM114-Status: UNSURE ( 7.51 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-mtd" Errors-To: linux-mtd-bounces+linux-mtd=archiver.kernel.org@lists.infradead.org This series makes the stat() family of syscalls start reporting the correct size for encrypted symlinks. See patch 1 for a detailed explanation of the problem and solution. Patch 1 adds a helper function that computes the correct size for an encrypted symlink. Patches 2-4 make the filesystems with fscrypt support use it, and patch 5 updates the documentation. This series applies to mainline commit 3dbdb38e2869. Eric Biggers (5): 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 fscrypt: remove mention of symlink st_size quirk from documentation Documentation/filesystems/fscrypt.rst | 5 --- fs/crypto/hooks.c | 44 +++++++++++++++++++++++++++ fs/ext4/symlink.c | 12 +++++++- fs/f2fs/namei.c | 12 +++++++- fs/ubifs/file.c | 13 +++++++- include/linux/fscrypt.h | 7 +++++ 6 files changed, 85 insertions(+), 8 deletions(-) base-commit: 3dbdb38e286903ec220aaf1fb29a8d94297da246 -- 2.32.0 ______________________________________________________ Linux MTD discussion mailing list http://lists.infradead.org/mailman/listinfo/linux-mtd/