Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp1711924rdb; Mon, 2 Oct 2023 20:32:10 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE4RALa9oEvl92X80aaGs7ApAOGw45Nz9WLCMcxZavhfyiJaLvW21JMXULHJvw8Mj5hXIwV X-Received: by 2002:a05:620a:390f:b0:76f:9e:4f0 with SMTP id qr15-20020a05620a390f00b0076f009e04f0mr13419955qkn.58.1696303929943; Mon, 02 Oct 2023 20:32:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696303929; cv=none; d=google.com; s=arc-20160816; b=LXVmYFvVLs9H0zQHVisB7YXfaMN9uvgATitfRE5CDQUDDfljIrKwiAJibHIAZgP78A sGU/2Q3f1W6HnLvkGAJiioSb8HIugIg33Lee6YjawQQ1PNLoESX36k63yLVzE6qsAQL+ pEusCw+zsy/zCckY8xvRyI5RUWkXyh7RPKgoFeHg42XJqiTSDCTDfIrqUIcGhvjKcS2h RPcDLOzVkr/jypLrz3Mkp1INPf8MpBDPehAX/brMugwNMorK8kLB/PuVtXDPWGSJCMB/ mLkvmv6e5hVRpkNjnj4ZSuJzZGTSWbAdwQ/A2xsxLnQVU+woay7SsnaHNkgwhFUe/Gf2 8pLw== 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=EdzbIhuxGDnjBKz/qo4JyCrVJwIX8MIj4v7eoahKqIY=; fh=41JUzC+eZnWdBtE63tMrx+WHhmpL5cJqqcDws+oHfQY=; b=YYL+3juXWCJcaX3SE1aXlnKG48B6h4LEcLqOwRaQPcO4b/aqVf2RqhqQIMUg4iEGtj PNiUdHeEOHTM3kQCrJ9gUte71ErVBV9u+OENse7c4438jC9GMGKv8Q5kftoRIF0w9AkX 5lvlASqHbRwFvkiaW34Au7i90yv8z0qY8xWko+ilNFEa0hhqhNSxsnu+YL11jm2xNdIx L/inwqLMHGOdHjz63QqO5W1+QKO5zc2B//MbfqAxOJBk/Sxzgs4pD/U9Hk+pBed2Yf1a EVMdJyfXXBcgHP44lkmaCSmsJazRlxBI2IhGUkI3CN83eHqyjFTwj24P/dptmOX6dT/G 6GVw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id m22-20020a637116000000b0057d08dac74csi111706pgc.157.2023.10.02.20.32.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Oct 2023 20:32:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 442058025DD2; Mon, 2 Oct 2023 20:32:03 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230056AbjJCDcE (ORCPT + 99 others); Mon, 2 Oct 2023 23:32:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35426 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229738AbjJCDcD (ORCPT ); Mon, 2 Oct 2023 23:32:03 -0400 Received: from abb.hmeau.com (abb.hmeau.com [144.6.53.87]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 18BC99D for ; Mon, 2 Oct 2023 20:31:57 -0700 (PDT) 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 1qnW8V-002wK2-QN; Tue, 03 Oct 2023 11:31:52 +0800 Received: by loth.rohan.me.apana.org.au (sSMTP sendmail emulation); Tue, 03 Oct 2023 11:31:55 +0800 Date: Tue, 3 Oct 2023 11:31:55 +0800 From: Herbert Xu To: Nathan Chancellor Cc: Linux Crypto Mailing List , Ard Biesheuvel Subject: [PATCH] crypto: skcipher - Add dependency on ecb Message-ID: 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: <20231002202522.GA4130583@dev-arch.thelio-3990X> X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, 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 groat.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 (groat.vger.email [0.0.0.0]); Mon, 02 Oct 2023 20:32:03 -0700 (PDT) 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 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