From patchwork Wed Apr 1 20:32:35 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eric Biggers X-Patchwork-Id: 11469527 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 09E7614DD for ; Wed, 1 Apr 2020 20:34:58 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id DCA28214D8 for ; Wed, 1 Apr 2020 20:34:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1585773297; bh=Lkegc6/p8gRLQQ0hP6UVszjf/sI5WbF2HCMlwMjtYDA=; h=From:To:Cc:Subject:Date:List-ID:From; b=Jv+LhtlOuFEgENk8sl/ewd9Jk1n2IJxtrpcfJsHq9+TyPTU9yqXKqwYaifmpve5b/ jjEy+HP+P5TQsyiiyHULOsCUGfiVyd8WHavRcui47VbtjWocuNPHn9QjqHjxSUEz2h gNYotejbGWy5SzZhS8RIrty/1fYYGOwGWFUY7+qM= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1733027AbgDAUe5 (ORCPT ); Wed, 1 Apr 2020 16:34:57 -0400 Received: from mail.kernel.org ([198.145.29.99]:54400 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732821AbgDAUe4 (ORCPT ); Wed, 1 Apr 2020 16:34:56 -0400 Received: from ebiggers-linuxstation.mtv.corp.google.com (unknown [104.132.1.76]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id ADCFF2082F; Wed, 1 Apr 2020 20:34:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1585773295; bh=Lkegc6/p8gRLQQ0hP6UVszjf/sI5WbF2HCMlwMjtYDA=; h=From:To:Cc:Subject:Date:From; b=1SDYC/nWbgmXoEIi916NjDiByqsEStNGZ/nU5PKwRbPJEhWdjVlKHM/2vPlFJeYVb 6wNaSAbcoKhw4E5du6kun0K/ROUKttnl1ppjKKmR+04s3XTu4U+EFT/CrZV6ayDSSj ZmSeKsM431UmGqU7yw0YCv+qQNA5yOahyWtP3pWU= From: Eric Biggers To: linux-ext4@vger.kernel.org Cc: linux-fscrypt@vger.kernel.org Subject: [PATCH 0/4] e2fsprogs: fix and document the stable_inodes feature Date: Wed, 1 Apr 2020 13:32:35 -0700 Message-Id: <20200401203239.163679-1-ebiggers@kernel.org> X-Mailer: git-send-email 2.26.0.rc2.310.g2932bb562d-goog MIME-Version: 1.0 Sender: linux-fscrypt-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fscrypt@vger.kernel.org Fix tune2fs to not allow cases where IV_INO_LBLK_64-encrypted files (which can exist if the stable_inodes feature is set) could be broken: - Changing the filesystem's UUID - Clearing the stable_inodes feature Also document the stable_inodes feature in the appropriate places. Eric Biggers (4): tune2fs: prevent changing UUID of fs with stable_inodes feature tune2fs: prevent stable_inodes feature from being cleared ext4.5: document the stable_inodes feature tune2fs.8: document the stable_inodes feature misc/ext4.5.in | 16 ++++++++++++++++ misc/tune2fs.8.in | 7 +++++++ misc/tune2fs.c | 10 ++++++++-- 3 files changed, 31 insertions(+), 2 deletions(-)