Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp205606imw; Mon, 4 Jul 2022 07:47:36 -0700 (PDT) X-Google-Smtp-Source: AGRyM1ssYw4uc12GoQN4M/9tMBShxR11QF/PIe501xFjDZkp8QxK74pKheglEzTLXaUY74GVoqfr X-Received: by 2002:a17:907:217b:b0:722:fc5e:326e with SMTP id rl27-20020a170907217b00b00722fc5e326emr30055756ejb.478.1656946056652; Mon, 04 Jul 2022 07:47:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656946056; cv=none; d=google.com; s=arc-20160816; b=Ujbz8Rfu3eULrMYEkXt9Cqc5czPGyj1P1Uo7AyEK3S3JK2agKVBDoq8d4FX6huQQd6 2hrLSA+mnI7EpqJmOgSE3NY4M8q+AmT6NtGfmY1pUzqcAKjqpa6O89kz4Zh/IDPU1DsE aoIxxFfCN1P9rC822KcWQBbcYQ0VvBX9DNiVxZmWNLKapa7p8UihNF2UzvGhl0xJXiJ0 ZWQW/jKCJagN5zOxWhJzSClpN6ex3nUySAI+thg/bF3eK7KW36XTC6rYR8XuQHFeNhqE rQ/BGBe3CpzjzLH7HJ/XfIe+JSOQNl/XIfqmstDRmQDa3FpLLk//TiXWmH2DCkAx64aC 6ljA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=UWn8vpHqr/tRsNkcZQpjikpuU5VBHUd8JIMbOKw3t24=; b=tgqgelwsGLUKq/T1jhjyep47YTDKUUoecBEA+giSRO2mw9nvpqzkFbdlMAWH00XahF EqJVwP+b1vYoI2/SM9LTGxbAkk9nk8o9EEsPr00yISSUddD23ExKHalpfUezB388uka/ ugzEyMw41ev4xfomOhV5+auwiUmLMJexiSs0VmR2L8xRwNX8n2eJL+eII8OhCvrahRbv vyKinQC0A1wzA0lkv4kzwg9p6jM9/vdBBAMUM2ciB5bJFnIFx+oI4ZYNQARyBakPOxCH DbYqC/Sv5AwOmS3FMLmTdCvkeCF9qHwGRI+mU2Q/elD0B7eIA+I/D7Z/19z9fxDKSc4j TrOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=dk56OqnD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l21-20020a170906795500b0072a89b3acd3si14846671ejo.497.2022.07.04.07.47.09; Mon, 04 Jul 2022 07:47:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=@redhat.com header.s=mimecast20190719 header.b=dk56OqnD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234593AbiGDOfu (ORCPT + 99 others); Mon, 4 Jul 2022 10:35:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35634 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233791AbiGDOft (ORCPT ); Mon, 4 Jul 2022 10:35:49 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id C18C05F70 for ; Mon, 4 Jul 2022 07:35:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1656945347; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=UWn8vpHqr/tRsNkcZQpjikpuU5VBHUd8JIMbOKw3t24=; b=dk56OqnDrq7NNLKZBFzUF+oB+BqbYw9fgCgsr9P0Dqwke7CHHyL3LFz+/LdvmOyz25JHhS AWcBqhhgQVbRaJH/F+98jAf+aI6QDky0/vfCgghGSehm64nXCnB9jt6BdXkayNNE72i6qD pfNnvs0XpEba6itr0r7mBLeTb16iwEQ= Received: from mail-ed1-f69.google.com (mail-ed1-f69.google.com [209.85.208.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-12-vjRYt7AMNtaNegJwyc3ukg-1; Mon, 04 Jul 2022 10:35:46 -0400 X-MC-Unique: vjRYt7AMNtaNegJwyc3ukg-1 Received: by mail-ed1-f69.google.com with SMTP id g7-20020a056402424700b00435ac9c7a8bso7321790edb.14 for ; Mon, 04 Jul 2022 07:35:46 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=UWn8vpHqr/tRsNkcZQpjikpuU5VBHUd8JIMbOKw3t24=; b=hwRvK+lQY0AnVFOpyWXuXy5soW7eNb52RTYu8JDuUpGbfwcjbjE4czq3exJYQkoKrn oNgVdWncurqYnuvlDg9t9170c0GI46q1AGMj0w5uJvuoiTtHXvZ9FN1naIhRR/BfNkZO hzGeEEOobcYK8B/+qnfeiASymH2nK1CqrjuxkFi2F6jtv/oqlMtmTNQeI6A5UiVX/+Wp 7U0myQWXw5JiWMNRpVfBUxLeJcyoFjKJyiG34GtqBh4qP34af/x2ELTm1jpbOZ6rlFUH 1vb08D6fz5mXaQO7jLJTkcjkgSYWCmxW9S6gnIgc8KhclABZVzhKpzWjLstTNUgOS2xo O+xg== X-Gm-Message-State: AJIora9kkaXtfc4sxCVdrjDB2jV8DcU8FKLOlAlY8/oGt0dL8CL0BwDD pN6muDREHV92SXd+KDpz3iV3BoYYF8vmewLKzN43I+zRMs+7wyb7QqZ0oFnxcliz7GUPqKj5Nzd JRDosrf5b5r05+fmy9nO68O+cO8CMnoo6JRn6MK3L X-Received: by 2002:a17:906:3f09:b0:712:466:e04a with SMTP id c9-20020a1709063f0900b007120466e04amr29119874ejj.719.1656945345478; Mon, 04 Jul 2022 07:35:45 -0700 (PDT) X-Received: by 2002:a17:906:3f09:b0:712:466:e04a with SMTP id c9-20020a1709063f0900b007120466e04amr29119849ejj.719.1656945345282; Mon, 04 Jul 2022 07:35:45 -0700 (PDT) MIME-Version: 1.0 References: <202207030630.6SZVkrWf-lkp@intel.com> In-Reply-To: <202207030630.6SZVkrWf-lkp@intel.com> From: Vlad Dronov Date: Mon, 4 Jul 2022 16:35:34 +0200 Message-ID: Subject: Re: include/crypto/chacha.h:100: undefined reference to `chacha_crypt_arch' To: kernel test robot Cc: kbuild-all@lists.01.org, LKML , Herbert Xu , Harald Freudenberger Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE 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-kernel@vger.kernel.org Hi, On Sun, Jul 3, 2022 at 12:51 AM kernel test robot wrote: > ... > config: s390-buildonly-randconfig-r005-20220703 (https://download.01.org/= 0day-ci/archive/20220703/202207030630.6SZVkrWf-lkp@intel.com/config) > ... > s390-linux-ld: lib/crypto/chacha20poly1305.o: in function `chacha_cryp= t': > >> include/crypto/chacha.h:100: undefined reference to `chacha_crypt_arch= ' > >> s390-linux-ld: include/crypto/chacha.h:100: undefined reference to `ch= acha_crypt_arch' > ... > Kconfig warnings: (for reference only) > WARNING: unmet direct dependencies detected for CRYPTO_LIB_CHACHA20POL= Y1305 > Depends on (CRYPTO_ARCH_HAVE_LIB_CHACHA || !CRYPTO_ARCH_HAVE_LIB_CHACH= A && (CRYPTO_ARCH_HAVE_LIB_POLY1305 || !CRYPTO_ARCH_HAVE_LIB_POLY1305 && CR= YPTO Ok, this is either weird or I do not understand how the Kconfig system work= s. What I look at is CRYPTO_LIB_CHACHA20POLY1305 definition: [ lib/crypto/Kconfig ] config CRYPTO_LIB_CHACHA20POLY1305 tristate "ChaCha20-Poly1305 AEAD support (8-byte nonce library version)= " depends on CRYPTO_ARCH_HAVE_LIB_CHACHA || !CRYPTO_ARCH_HAVE_LIB_CHACHA depends on CRYPTO_ARCH_HAVE_LIB_POLY1305 || !CRYPTO_ARCH_HAVE_LIB_POLY1= 305 depends on CRYPTO and this test's random config (s390-buildonly-randconfig-r005-20220703): $ grep -e CRYPTO_LIB_CHACHA20POLY1305 -e CRYPTO_ARCH_HAVE_LIB_CHACHA -e CRYPTO_ARCH_HAVE_LIB_POLY1305 -e CRYPTO=3D config CONFIG_CRYPTO=3Dy CONFIG_CRYPTO_ARCH_HAVE_LIB_CHACHA=3Dm CONFIG_CRYPTO_LIB_CHACHA20POLY1305=3Dy // missing CRYPTO_ARCH_HAVE_LIB_POLY1305 implies =3Dn (I guess?) I'm following the canonical "Kconfig Language" doc ( https://www.kernel.org/doc/html/latest/kbuild/kconfig-language.html ) which states: > - dependencies: =E2=80=9Cdepends on=E2=80=9D > This defines a dependency for this menu entry. If multiple dependencies a= re defined, they are connected with =E2=80=98&&=E2=80=99. and > '!' (6) > '&&' (7) > '||' (8) > > 6. Returns the result of (2-/expr/). > 7. Returns the result of min(/expr/, /expr/). > 8. Returns the result of max(/expr/, /expr/). > An expression can have a value of =E2=80=98n=E2=80=99, =E2=80=98m=E2=80= =99 or =E2=80=98y=E2=80=99 (or 0, 1, 2 respectively for calculations). So calculating: (CRYPTO_ARCH_HAVE_LIB_CHACHA || !CRYPTO_ARCH_HAVE_LIB_CHACHA) && (CRYPTO_ARCH_HAVE_LIB_POLY1305 || !CRYPTO_ARCH_HAVE_LIB_POLY1305) && CRYPTO I find it equal to: (m || !m) && (n || !n) && y =3D> m && y && y =3D> m So CRYPTO_LIB_CHACHA20POLY1305 should be no higher than M, but it is =3DY in a config file =3D> weird :\ (or me wrong somewhere). WDYT? Best regards, Vladis Dronov | Red Hat, Inc. | The Core Kernel | Senior Software Engineer