From patchwork Mon Dec 12 04:45:54 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eric Biggers X-Patchwork-Id: 32242 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp2046901wrr; Sun, 11 Dec 2022 20:49:16 -0800 (PST) X-Google-Smtp-Source: AA0mqf7FxsO5zMMCLVXc76SnbOfmlKoZ5CC8YIYCGHB93DQzngH+6qTqG+YgW0qbz0+nt3etBqEP X-Received: by 2002:a62:f205:0:b0:577:458f:97cc with SMTP id m5-20020a62f205000000b00577458f97ccmr14684863pfh.2.1670820556555; Sun, 11 Dec 2022 20:49:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670820556; cv=none; d=google.com; s=arc-20160816; b=UWTDheupHfhrZnvTUE9HzZ0kauJg6Khs5hlhR50gc0CpR4GOz1jAj9SO2kqqs54GZt LDtVuEPYf1vRKJbTlQ17MUoJh9Fg11V3Et7khICRTgLB3pPw+TYcvxkl6U7AFWyS0yJ+ bwVr3Jtge615u/iAPL5ElVsbECUc7XoPeBi6JHKbseLjE+2cMLHAaibsLG5pAGYOaloW FmRCalUaQnYZS5JoHi+Edp7u5eLAcGY1a82LjdyEjxOp/MWXw6fGXwrKKS7HsX2YU271 lvWTCfLIgsV2UFdDCXW3Yai5BKOGqx1t7e17/XPeRz5l1WY8MiAH3YhJmGKTYns7k73i o1Eg== 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=h3u27pM1KdReLMKP7YcpwMjlxkY/BHSbHp2QG5ymXbE=; b=aQ4Du56dQ6oMlGAC8VZqnd9pRICMYCUP+WKGxiM8GndO1E9cYDVW53DjJJn8GRMWaL 0Lz+1jVJfDX8CllfMFZFbcPPeUZIguaMoRBI/dtAIy9vUhiQbXmcY9rNQG8EZ6/E4r4D a6qyFSSx2ASLhnZKxsDHeFa7chGL7ERCqm7POctkZolVb+jFXGdpxHitV6EHmfGu4Fma 1cB2HDdWnZ6ix5d1IMbf8l7/xDR0WqZeFM3SkkBexl0Jy21aOB7zKhGzFiwSpJmoWyNY 8aoK6kgZYEoUwa5dFj2eYTArc11a7r8vOt0lgHwL+HmYvinTRQXblOMOr4Jn+KbUXr3u 2KEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=HHl82Mya; 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 f19-20020a056a001ad300b0053652e1c0b6si9073194pfv.12.2022.12.11.20.49.03; Sun, 11 Dec 2022 20:49:16 -0800 (PST) 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=HHl82Mya; 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 S231179AbiLLEqD (ORCPT + 99 others); Sun, 11 Dec 2022 23:46:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46304 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229799AbiLLEp7 (ORCPT ); Sun, 11 Dec 2022 23:45:59 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8DA6E64E9; Sun, 11 Dec 2022 20:45:57 -0800 (PST) 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 2A9D560EAB; Mon, 12 Dec 2022 04:45:57 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4021DC433D2; Mon, 12 Dec 2022 04:45:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1670820356; bh=ZiPqywrfVYJKyTMOBz5ADrSOCtd+XOKFfeu5S1nMah4=; h=Date:From:To:Cc:Subject:From; b=HHl82Mya2ZR0wKm/58rpz/ANETzs4T9/LlUcAtG6Jj/kdDcSPMy3nUSluiVp8JwXG 5Zx/BL/ckxlDkCXUPLL9ML9luXQVYAs6fZ+ytcqXBYsADAqzIE7i3GKmkbTrSW/Kw2 3XWKMbBePAmK7rN4+xXQ8ZaI0tsddiJh0pnmP8PZueq0XoVAbGF6TIgTBuagMf3cb6 Lct0ctXRuaxw6z9+1GJaxO70Dsudj2HbinzikLEoff2C/Ux+gZAKDKEfXZsivs/eKS MgwgMj5QowZcxObgBI0FlnIbym4sDn6ocMgkng+dpntHP+WBUO09whZTmB+UJ6+foK l2I392lOG5/3w== Date: Sun, 11 Dec 2022 20:45:54 -0800 From: Eric Biggers To: Linus Torvalds Cc: linux-fscrypt@vger.kernel.org, linux-ext4@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net, linux-mtd@lists.infradead.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, Theodore Ts'o , Jaegeuk Kim Subject: [GIT PULL] fscrypt updates for 6.2 Message-ID: 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?1751982335762327940?= X-GMAIL-MSGID: =?utf-8?q?1751982335762327940?= The following changes since commit f0c4d9fc9cc9462659728d168387191387e903cc: Linux 6.1-rc4 (2022-11-06 15:07:11 -0800) are available in the Git repository at: https://git.kernel.org/pub/scm/fs/fscrypt/fscrypt.git tags/fscrypt-for-linus for you to fetch changes up to 41952551acb405080726aa38a8a7ce317d9de4bb: fscrypt: add additional documentation for SM4 support (2022-12-02 10:43:00 -0800) ---------------------------------------------------------------- This release adds SM4 encryption support, contributed by Tianjia Zhang. SM4 is a Chinese block cipher that is an alternative to AES. I recommend against using SM4, but (according to Tianjia) some people are being required to use it. Since SM4 has been turning up in many other places (crypto API, wireless, TLS, OpenSSL, ARMv8 CPUs, etc.), it hasn't been very controversial, and some people have to use it, I don't think it would be fair for me to reject this optional feature. Besides the above, there are a couple cleanups. ---------------------------------------------------------------- Eric Biggers (4): fscrypt: pass super_block to fscrypt_put_master_key_activeref() fscrypt: add comment for fscrypt_valid_enc_modes_v1() fscrypt: remove unused Speck definitions fscrypt: add additional documentation for SM4 support Tianjia Zhang (2): blk-crypto: Add support for SM4-XTS blk crypto mode fscrypt: Add SM4 XTS/CTS symmetric algorithm support Documentation/filesystems/fscrypt.rst | 7 +++++++ block/blk-crypto.c | 6 ++++++ fs/crypto/fscrypt_private.h | 13 ++++--------- fs/crypto/keyring.c | 14 ++++++-------- fs/crypto/keysetup.c | 17 ++++++++++++++++- fs/crypto/policy.c | 12 ++++++++++++ include/linux/blk-crypto.h | 1 + include/uapi/linux/fscrypt.h | 4 ++-- 8 files changed, 54 insertions(+), 20 deletions(-)