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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1E710C47088 for ; Fri, 2 Dec 2022 10:19:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233251AbiLBKT1 (ORCPT ); Fri, 2 Dec 2022 05:19:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58588 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233196AbiLBKTZ (ORCPT ); Fri, 2 Dec 2022 05:19:25 -0500 Received: from formenos.hmeau.com (helcar.hmeau.com [216.24.177.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 84EF6CCED0; Fri, 2 Dec 2022 02:19:24 -0800 (PST) Received: from loth.rohan.me.apana.org.au ([192.168.167.2]) by formenos.hmeau.com with smtp (Exim 4.94.2 #2 (Debian)) id 1p138O-003CBV-E7; Fri, 02 Dec 2022 18:19:09 +0800 Received: by loth.rohan.me.apana.org.au (sSMTP sendmail emulation); Fri, 02 Dec 2022 18:19:08 +0800 Date: Fri, 2 Dec 2022 18:19:08 +0800 From: Herbert Xu To: Nikolaus Voss Cc: Horia Geanta , Pankaj Gupta , Gaurav Jain , "David S. Miller" , Ahmad Fatoum , David Gstir , Steffen Trumtrar , Nikolaus Voss , linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3] crypto: caam: blob_gen.c: warn if key is insecure Message-ID: References: <20221121141929.2E36427E9@mail.steuer-voss.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221121141929.2E36427E9@mail.steuer-voss.de> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Nov 21, 2022 at 03:12:41PM +0100, Nikolaus Voss wrote: > If CAAM is not in "trusted" or "secure" state, a fixed non-volatile key > is used instead of the unique device key. This is the default mode of > operation without secure boot (HAB). In this scenario, CAAM encrypted > blobs should be used only for testing but not in a production > environment, so issue a warning. > > Signed-off-by: Nikolaus Voss > > --- > CHANGES > ======= > v2: make warning more verbose, correct register, style fixes > v3: fix sparse warning "dereference of noderef expression" > by using ioread32() to dereference iomem pointer > > drivers/crypto/caam/blob_gen.c | 9 +++++++++ > drivers/crypto/caam/regs.h | 3 +++ > 2 files changed, 12 insertions(+) Patch applied. Thanks. -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt