Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp2036561rdb; Tue, 3 Oct 2023 08:25:44 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHoGBh3mElZrJmizxHg2gEQHkuSwUB2X8OrH+SFJW2vEcya+jZqt7Aom/w95VZsJA0GkUxS X-Received: by 2002:a17:902:c115:b0:1bf:4a1f:2b57 with SMTP id 21-20020a170902c11500b001bf4a1f2b57mr14850639pli.13.1696346743942; Tue, 03 Oct 2023 08:25:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696346743; cv=none; d=google.com; s=arc-20160816; b=qvkY49Hhu/RJA+kNYCRWcZMSQ+uknGy1Rb+zQpo06D9fsBtqkN7RCyQKPohB9cYLQR 9jmGwUZMD2gsgoSRdg2lfAXkN06KZ+RS2bm157q3b9rIde9xv0NlvEA5TGH+//5AMj57 AsegbznOQnFBr3WAbqDlqiQPDsWtpIQaqQ7x+AotWn7oUmktO1VVGTrifq6X3f+11oMQ Rd/+JMkR0f0jcpQQVVh3RX4Ga7HnMKXaxmmTBwOnZSvX/nmWNTBmZkU2GWOF3YjYke+U Qy5LsHu3YcVagunMkzq2x+CKNz4n0jh+hZb77IFrvcyk8scn6AKUdNmprbqTPZKAjZjZ o6cw== 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:dkim-signature; bh=ssrNNuNmD8gqwrUEBFqaZvTtAJSFgMNdiUEN3aSziEQ=; fh=UDWDhAO7lJRReNZvubywdGsu9mvQhvlekph1HTPfwkE=; b=ErDPrvmqbz0jtoYDkI0l/TTI9/knx+hdjDeElek+uJD7vkI7gdd6+Q4evvrvWzVNPU EwU8YCLhLe+SoNPr/SmH62FeC7y46H6Bi6hYw0L7R1gkrlbt99gyS45WluXbBzZxCHDl XdCJO0usWtOCS4f4ZeSADxxlBO64S8KuUARiGy83g3tA/wJbV0O8C2jsIQetw0p2PWAw dwhUvt4bwgRP5G0oJzznB8oWDlrHR2XQUyI+XkJ6HiRX3iYisD423eDhKet5InAPqKmw pTQ9FIcx11tH0IUsOCZuu+VUw/TKqRlckm62qMEj9KTluFEr3dREegW769d7MiBqbETd 4o0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=sby3rdr0; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id p18-20020a170902c71200b001c42b2b02casi1537164plp.174.2023.10.03.08.25.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Oct 2023 08:25:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=sby3rdr0; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id EB02C8135D67; Tue, 3 Oct 2023 08:25:38 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232387AbjJCPZj (ORCPT + 99 others); Tue, 3 Oct 2023 11:25:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41616 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230238AbjJCPZh (ORCPT ); Tue, 3 Oct 2023 11:25:37 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 48F60A6 for ; Tue, 3 Oct 2023 08:25:33 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A4C62C433C7; Tue, 3 Oct 2023 15:25:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1696346732; bh=g1iuKh4ZfWiEBpKOvmDQZDYCbhUMEMf3u1k/K1yDYEY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=sby3rdr09kzWbvgX6INPUuJD+Bm73azs/bryQFZs8FY/jfNqK44nM4exYvEh3vNly 2fkwBlKIKzFfSKJ0Mb9f0QaziFRr9LeOLWg0ukM39e9AzDbsvsFUYtzyBYZQwmOpuc VkWNXVZNGKUGwNiNyxEYLXwkSjGVXaP+f0qpecJ1kIxENoQYmEx0j0mjR8Z8j4z7zK zY6WLlGFyrjE321Wn6W0aDKADmALcdJFl0gFllGD82durArQdSRKnsGorie7jdRX46 K/CyZ5+28UkCCDiQGQBKjlugiMMC07/SM5TtNPSjzY8UlFn9/9kwS3ae2+i5p1ykIw yOxijHmRuv4kw== Date: Tue, 3 Oct 2023 08:25:30 -0700 From: Nathan Chancellor To: Herbert Xu Cc: Linux Crypto Mailing List , Ard Biesheuvel Subject: Re: [PATCH] crypto: skcipher - Add dependency on ecb Message-ID: <20231003152530.GA63187@dev-arch.thelio-3990X> References: <20230914082828.895403-1-herbert@gondor.apana.org.au> <20230914082828.895403-9-herbert@gondor.apana.org.au> <20231002202522.GA4130583@dev-arch.thelio-3990X> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Tue, 03 Oct 2023 08:25:39 -0700 (PDT) On Tue, Oct 03, 2023 at 11:31:55AM +0800, Herbert Xu wrote: > On Mon, Oct 02, 2023 at 01:25:22PM -0700, Nathan Chancellor wrote: > > > > I am noticing a failure to get to user space when booting OpenSUSE's > > armv7hl configuration [1] in QEMU after this change as commit > > 705b52fef3c7 ("crypto: cbc - Convert from skcipher to lskcipher"). I can > > reproduce it with GCC 13.2.0 from kernel.org [2] and QEMU 8.1.1, in case > > either of those versions matter. The rootfs is available at [3] in case > > it is relevant. > > Thanks for the report. This is caused by a missing dependency > on ECB. Please try this patch: > > ---8<--- > As lskcipher requires the ecb wrapper for the transition add an > explicit dependency on it so that it is always present. This can > be removed once all simple ciphers have been converted to lskcipher. > > Reported-by: Nathan Chancellor > Fixes: 705b52fef3c7 ("crypto: cbc - Convert from skcipher to lskcipher") > Signed-off-by: Herbert Xu Tested-by: Nathan Chancellor Thanks for the quick fix! > diff --git a/crypto/Kconfig b/crypto/Kconfig > index ed931ddea644..bbf51d55724e 100644 > --- a/crypto/Kconfig > +++ b/crypto/Kconfig > @@ -85,6 +85,7 @@ config CRYPTO_SKCIPHER > tristate > select CRYPTO_SKCIPHER2 > select CRYPTO_ALGAPI > + select CRYPTO_ECB > > config CRYPTO_SKCIPHER2 > tristate > @@ -689,7 +690,7 @@ config CRYPTO_CTS > > config CRYPTO_ECB > tristate "ECB (Electronic Codebook)" > - select CRYPTO_SKCIPHER > + select CRYPTO_SKCIPHER2 > select CRYPTO_MANAGER > help > ECB (Electronic Codebook) mode (NIST SP800-38A) > -- > Email: Herbert Xu > Home Page: http://gondor.apana.org.au/~herbert/ > PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt