Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp4142886rwb; Mon, 21 Nov 2022 04:22:29 -0800 (PST) X-Google-Smtp-Source: AA0mqf4R3gjtaJqD8NV7tCrQXuwr7KRuBRZhwkhkosguYPvYVX6+NLnDxBWQQKp6uWgDjANhws/d X-Received: by 2002:a17:902:ef8f:b0:17f:7ed1:7da5 with SMTP id iz15-20020a170902ef8f00b0017f7ed17da5mr11872602plb.101.1669033349513; Mon, 21 Nov 2022 04:22:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669033349; cv=none; d=google.com; s=arc-20160816; b=NY+iLnhZbcgPlmOXLia/PxZ1UyuNkgt58I1cf5O5Wq9d7ehaPRSwjTdO1NpnReYSbG T+uKSL68oZHIdgz+YwJ9xPu4F7gCJ++ZS1nUbKlZZTYEi0+YmYthOvbYgL2htP9FIRqX sDgPwzpErIQofKNrg3aS2pRKkQLEFDHlx/0SPo2dLrFn2ZJKLb+b+XYpW7nBg4aBthli /CgkkKDe5Rck80cIwRnouCK8/Exd6eXQbHS9qd6OKXaLhh0ckBP50416AOdZwISHMcf/ 1r6A7ZKFRIuLIoThyTfBbuUvGpRfwKYY6Bqn6xfbL+KrN5jXYKI4x9386Nu5sY+ojG4I tNTg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id:dkim-signature; bh=1HsNfz9XOEIju64ddYDG6hBufFeXYQLXW0mjnepugd8=; b=jIE+4APmngsuQ2IOPWUEUtCIsk/mZXQZuOm/ew+HVncdvdAY0IfD389FWmHhXfxT3L ts8aodKJUItSMPtRaJyEVhqqAyZPj2tSZZGE4qZXIcvtBWgcvopteAa4J+USeqOu8KZE wTgBoygYjTPcIVdaJeRGhRLaqo4n9Ht3Xcw4OQVV4Ds8W6n2dyeHGHovAjWJcmFdl6vb R4TL912G3zHxTrOD7JYAakw4pEN6v+TXXly96SwNQroWPcxzTQ3BLIKP+6Xv4KwME3FR pV1dn6mlZJe5py4coLOkv+KueLIAOFbhgZAarlTI80inq7nXe9DhySTz8i2VAjgQeYd3 fblw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@corsac.net header.s=2021 header.b=gR+4oSBS; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id lw7-20020a17090b180700b002135e1f5a7bsi15975450pjb.155.2022.11.21.04.22.09; Mon, 21 Nov 2022 04:22:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-crypto-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=@corsac.net header.s=2021 header.b=gR+4oSBS; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231318AbiKUMSu (ORCPT + 99 others); Mon, 21 Nov 2022 07:18:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40552 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231151AbiKUMSe (ORCPT ); Mon, 21 Nov 2022 07:18:34 -0500 Received: from smtp1-g21.free.fr (smtp1-g21.free.fr [IPv6:2a01:e0c:1:1599::10]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CF9B44F1AD for ; Mon, 21 Nov 2022 04:18:23 -0800 (PST) Received: from mail.corsac.net (unknown [IPv6:2a01:e0a:2ff:c170::5]) by smtp1-g21.free.fr (Postfix) with ESMTPS id E7C5DB0056A for ; Mon, 21 Nov 2022 13:18:21 +0100 (CET) Received: from scapa.corsac.net (unknown [IPv6:2a01:e0a:2ff:c170:6af7:28ff:fe8d:2119]) by mail.corsac.net (Postfix) with ESMTPS id 81A129E for ; Mon, 21 Nov 2022 13:18:16 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=corsac.net; s=2021; t=1669033096; bh=HRXD/vVZ59AEX+tvcO9x86W+D29X6hQg9+v1YxcH5RI=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=gR+4oSBSvS4CDSCX+qQBhDPT81F5QMDyW85k2mBGJypsyMaEDfAYqEULHuwQzhgCQ FlYvNnCW6no7nKk7YidnXb0usr0ezZ6YKHgn7SNI2uXESNLkUuJmvZ8dnWLf2muxl6 Vsr5+R8BA7YuP6hQYOMVWLkAygpfTdg42oCIPQs3yqz9ZMfxIArASFs+GHrn/UOYbF RV+0NFuJE2RRjaTIWVllJM9WiLpGblo/eHAluTBTq3t/HTFlSajZAMkysYlQo+NDQj oEWIXJVPhcvweE+lnqKXwzLMrcVMaNQM0Rn8nqUdIWjhugQQ7PUS2P9pv/XicKmqFA ZZ+k2LqbDzT7A== Received: from corsac (uid 1000) (envelope-from corsac@corsac.net) id a0052 by scapa.corsac.net (DragonFly Mail Agent v0.13); Mon, 21 Nov 2022 13:18:16 +0100 Message-ID: Subject: Re: crypto_alg_lookup() returning -80 (ELIBBAD) From: Yves-Alexis Perez To: linux-crypto@vger.kernel.org Cc: Tobias Brunner Date: Mon, 21 Nov 2022 13:18:10 +0100 In-Reply-To: References: Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.46.1-1 MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,UNPARSEABLE_RELAY 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-crypto@vger.kernel.org -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 On Fri, 2022-10-07 at 18:17 +0200, Yves-Alexis Perez wrote: > So there's definitely something fishy in my kernel and I'm unsure why. >=20 > Would anyone have a clue about what is happening here, and any idea how t= o > debug further? With some help from systemtap I managed to debug further and narrowed down = the problem to the RNG (and more specifically anssi_cprng). When booting, first load of the module returns: [ 7.910500] alg: cprng: Failed to load transform for ansi_cprng: -2 [ 7.917774] alg: No test for fips(ansi_cprng) (fips_ansi_cprng) But unloading/reloading the module afterwards only shows the second line an= d IPsec starts working again (whether the `ip xfrm state` lines or strongSwan more generally). I have yet to debug further but my feeling is that it might be TPM-related = but I'm unsure and have no clear debugging path for now. I'll let you know if I find anything. Regards, - --=20 Yves-Alexis -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEE8vi34Qgfo83x35gF3rYcyPpXRFsFAmN7bIIACgkQ3rYcyPpX RFsqdQgA62FGOagIAHKW000yQ/pm42+vO9DZFo7zJ17OHCsjintACME/bU3p3O+l mmWz7yv1ib7GcCL19p1ZN/XX3ukORYwuvm3ixKy7mytRb1qwphKLKl1t08NeEceB b7z2ZyjQAIPslkT0LL88fk5T3iOjelZg94fNTerUxDiGWCt6a8Oqz09jBUEK2yST UgkOGVPlNQM5Frs/SUiC2HhkHQEmek/urwncKVBfBCcmJQcqaaGBKeAyZB+JEyCz 1h0HnrHhIhjWPj93SwdbaqjnT7eIOT+jQSQ67CatUWkQBEHT1FJgcyle/mzhb8hs wGW4VaOtbfTOtdMVlXFyipNMszMG2g=3D=3D =3D6MCJ -----END PGP SIGNATURE-----