From patchwork Mon Mar 20 20:56:17 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eric Biggers X-Patchwork-Id: 72452 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:604a:0:0:0:0:0 with SMTP id j10csp1438056wrt; Mon, 20 Mar 2023 14:07:44 -0700 (PDT) X-Google-Smtp-Source: AK7set+8cBbu5G3aQxKqb99OItL57wVJYqT//xakYktgQsBpzJuEg0ODGvZzxYZb6vhQGfO2S5CH X-Received: by 2002:a05:6a20:be04:b0:da:4e05:768 with SMTP id ge4-20020a056a20be0400b000da4e050768mr1300940pzb.38.1679346464154; Mon, 20 Mar 2023 14:07:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679346464; cv=none; d=google.com; s=arc-20160816; b=kXjHz0ZF/YdUtc7WluFlozuIprMBZ8cxSafpAu1d5S9APfV6HaSWJ+DzmzXXX1H5tM iliJut0F1GsXgVWo16xrdqnaJS4zWx5fmgrUH2aqHrTDeoqlvvaLnMg/gcOCktIYW3Td y9qX41zrndljPpY1i1dCxWVUACnXKX5YKWPLdIZxv/HIF2LkhTRIDxGAbPrSO2YPo/Fb fphhLM+zX+fEwXZMMpnvtOHogXmQbehoLZku+VRMA+EcGy8EHEfCIfWwCH3173fsEYGV vUtdA/Im/9tcgdfueIFp+WWP5hO2Bvyy5FEdMhX1tu9CAmSFfAKgS/Cyf9cHUWazAaaL wJhA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version:message-id :subject:cc:to:from:date:dkim-signature; bh=QLg/ISaInymVvp/5UvtkC2t4FzK6wwh9CGZ250ya4QY=; b=ajvvQbBh7WFgYDRiNJ+O2/VFvrM0togKno5O54epqak/FfH6+zJ5V3G7JhaL5Bh0v6 W1Z5T+jJqgEGJObzrzy51lVdYfOP3G+dswAdyItnENJcomllxjGCusi4x9twoL5bKm9o xcSGoDF8jgb6VF2L69fGOF1Il5NKnGDXogUuTrglA0T+rbA/vvads047fQ4fS3nriEYA YDAFj/iyWgLEi2B+zHsmCiFKrLId1fTyhGKwnBJ8KLY1EyE6tO7ZrM6uJLz7jYQ5/sP2 vqJ/xfP8CiEqcOCvm8t03Lvxuby4tpNIAgKFrhLkXmnUUfA1uMkkkkacRjTQT4zUKlYi 0pnQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=U5f18BUk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q11-20020a63504b000000b004fbe30d869esi11045358pgl.268.2023.03.20.14.07.30; Mon, 20 Mar 2023 14:07:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=U5f18BUk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229799AbjCTU4a (ORCPT + 99 others); Mon, 20 Mar 2023 16:56:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39890 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230138AbjCTU41 (ORCPT ); Mon, 20 Mar 2023 16:56:27 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DDF7846A2; Mon, 20 Mar 2023 13:56:21 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id E685161812; Mon, 20 Mar 2023 20:56:19 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E15DCC4339B; Mon, 20 Mar 2023 20:56:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1679345779; bh=TIisIt10fTBip8aXju7/P4H6FODyu04/HbhhX49wO9c=; h=Date:From:To:Cc:Subject:From; b=U5f18BUkAyOeemq+22V7ydwhU6CkvKYt0o8epjIrF0czmcfDjiO6l/qH1Dyj1kzrG QUAI3mZzKD1ahZyJY/KWPlbSVe81sqXAgnCpIfAz7MtASKADACYryCU8cSEgZecc9j zlehdT5gmVpt7G0PLyEOhsCKfSvds1PuNphhyQR+qmiQ7CLu2Sr4pjgROgcYXoVIs3 j7wG3QUllgK7yn6mDxn7RRzvw4shjIilMNewkePzbuVLGayq9mmz8FotoZES+8VJBZ prpx8rnFWGiQOwqVeiOBeP6SSJ8xPJJ0C48++C7IVdHdUPzetM8UTP6LNoz6iPVulj CkKA5jzVtGvrQ== Date: Mon, 20 Mar 2023 13:56:17 -0700 From: Eric Biggers To: Linus Torvalds Cc: linux-fscrypt@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-security-module@vger.kernel.org, linux-kernel@vger.kernel.org, Theodore Ts'o , Jaegeuk Kim Subject: [GIT PULL] fscrypt fix for v6.3-rc4 Message-ID: <20230320205617.GA1434@sol.localdomain> MIME-Version: 1.0 Content-Disposition: inline X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1760922397692464611?= X-GMAIL-MSGID: =?utf-8?q?1760922397692464611?= The following changes since commit fe15c26ee26efa11741a7b632e9f23b01aca4cc6: Linux 6.3-rc1 (2023-03-05 14:52:03 -0800) are available in the Git repository at: https://git.kernel.org/pub/scm/fs/fscrypt/linux.git tags/fscrypt-for-linus for you to fetch changes up to 4bcf6f827a79c59806c695dc280e763c5b6a6813: fscrypt: check for NULL keyring in fscrypt_put_master_key_activeref() (2023-03-18 21:08:03 -0700) ---------------------------------------------------------------- Fix a bug where when a filesystem was being unmounted, the fscrypt keyring was destroyed before inodes have been released by the Landlock LSM. This bug was found by syzbot. ---------------------------------------------------------------- Eric Biggers (3): fscrypt: destroy keyring after security_sb_delete() fscrypt: improve fscrypt_destroy_keyring() documentation fscrypt: check for NULL keyring in fscrypt_put_master_key_activeref() fs/crypto/keyring.c | 23 +++++++++++++---------- fs/super.c | 15 ++++++++++++--- 2 files changed, 25 insertions(+), 13 deletions(-)