Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp5105728pxb; Wed, 19 Jan 2022 11:07:52 -0800 (PST) X-Google-Smtp-Source: ABdhPJzXkm4GVngP251hd0PQKjLrpEvlCyW8/HKgl6k9+yQ/g5/M2xyV/Kr84Wl69/NyrU2jklZd X-Received: by 2002:a17:90b:1c88:: with SMTP id oo8mr5919725pjb.212.1642619272469; Wed, 19 Jan 2022 11:07:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642619272; cv=none; d=google.com; s=arc-20160816; b=CEDEmVGjVBnTnO+Xnzei8wwhmP1xtSH+/NapSeBBWbQ01tERQy2dw9qlBEyodrvci7 PmfhTTwp8E9x3zbimlmI4ngqT2ykw87FUVBcKdkfqdrh0gHWKVzAtLq31aYOUJtCEhsT uxs9BoFW1kgMOLSBZcwTirwdDVAQ6zwJPJVcHpftXHvD4ycFEvOD+NOarD9zegRfSIAC kg0Emqu3iqBZk8ncoZq9czV6xaGDGIXdZ0/rF5gr5g1FZXoJZ9TSJkI3jfZZ+i4XP7xq u9BmXykeVItGApoyHgx9PiehysZM2stKMZrdAxCWaQ5hd9790s3g5cypGriVmx0/7oBw 5C+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=Z2qzS1YyFLGr4bq2bICDJnhm7EqHKIoge9OaexJ5oUY=; b=CtnNjdOrzrydl1GNJtfEOeDg0WT5ePlNRKn5U+ZBT0PdgZnZZcaz+8FsmyRDpH6K2f 9wPa9NlFYXd4F7/Hf0h+N0q8Jot3zmVYHUM/GodxkRb4mZfqQDRVZvmpwtgTzHMZQCAw uTcVYpA97aFptnH+9zJEaYfM4vFYOBudpYIz3IGZ8iJww6L8HcwECvina2Ss6cUAqJSY AGS0hUQoFnH+UKW0LC71QwYFYPTFT/BFohLPwarPkZfIxvEs4XuPx9k+5DFj0infFBDN 2gn5mGo2osSYvMgsfwCTtdgADJJIpyRO6hmVg0T65JBvXDd765xXQWPvV0dsd91LbXR7 SC5g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u4si754753pgf.694.2022.01.19.11.07.40; Wed, 19 Jan 2022 11:07:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237185AbiARFbu (ORCPT + 99 others); Tue, 18 Jan 2022 00:31:50 -0500 Received: from helcar.hmeau.com ([216.24.177.18]:59636 "EHLO fornost.hmeau.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235752AbiARFbq (ORCPT ); Tue, 18 Jan 2022 00:31:46 -0500 Received: from gwarestrin.arnor.me.apana.org.au ([192.168.103.7]) by fornost.hmeau.com with smtp (Exim 4.92 #5 (Debian)) id 1n9h5d-0006et-EJ; Tue, 18 Jan 2022 16:31:30 +1100 Received: by gwarestrin.arnor.me.apana.org.au (sSMTP sendmail emulation); Tue, 18 Jan 2022 16:31:29 +1100 Date: Tue, 18 Jan 2022 16:31:29 +1100 From: Herbert Xu To: kernel test robot Cc: Stephan =?iso-8859-1?Q?M=FCller?= , Mat Martineau , LKML , lkp@lists.01.org, lkp@intel.com, Linux Crypto Mailing List Subject: [PATCH] crypto: kdf - Select hmac in addition to sha256 Message-ID: References: <20220118015649.GA12486@xsang-OptiPlex-9020> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220118015649.GA12486@xsang-OptiPlex-9020> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jan 18, 2022 at 09:56:49AM +0800, kernel test robot wrote: > > [ 42.753085][ T1] WARNING: CPU: 1 PID: 1 at crypto/kdf_sp800108.c:138 crypto_kdf108_init (crypto/kdf_sp800108.c:136) > [ 42.754665][ T1] Modules linked in: > [ 42.755366][ T1] CPU: 1 PID: 1 Comm: swapper/0 Not tainted 5.16.0-rc1-00049-gd3b04a4398fe #2 > [ 42.756752][ T1] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014 > [ 42.758199][ T1] RIP: 0010:crypto_kdf108_init (crypto/kdf_sp800108.c:136) > > CONFIG_CRYPTO_HMAC=m > CONFIG_CRYPTO_KDF800108_CTR=y ---8<--- In addition to sha256 we must also enable hmac for the kdf self-test to work. Reported-by: kernel test robot Fixes: 304b4acee2f0 ("crypto: kdf - select SHA-256 required...") Fixes: 026a733e6659 ("crypto: kdf - add SP800-108 counter key...") Signed-off-by: Herbert Xu diff --git a/crypto/Kconfig b/crypto/Kconfig index 3ba2f532d79c..2b0456731603 100644 --- a/crypto/Kconfig +++ b/crypto/Kconfig @@ -1850,6 +1850,7 @@ config CRYPTO_JITTERENTROPY config CRYPTO_KDF800108_CTR tristate + select CRYPTO_HMAC select CRYPTO_SHA256 config CRYPTO_USER_API -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt