Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp988220ybp; Fri, 4 Oct 2019 08:01:06 -0700 (PDT) X-Google-Smtp-Source: APXvYqyjG6vgWpu0Jelv3hEboznB9e1AZEq/lQv9MZmwUCQxdGai4UWT44rwjsCZk3JUuMg5lH5P X-Received: by 2002:a50:d903:: with SMTP id t3mr15404860edj.117.1570201265825; Fri, 04 Oct 2019 08:01:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570201265; cv=none; d=google.com; s=arc-20160816; b=0BEqAJrE1YdC00TSHVPk4c93A76W4ULY0x55X9d5lK5+/Us1u8tDiZCsK+37/5cJbs kUMFcmuDkSzg9rOqGYInXuGhEHzvG2/8sLi/NbULyXk4dAgUi/EtLSGDgWyPyWOV+DWo u7quEypB/JpK0v3BU8GqR15Xv5pnDJmiOwXAmFRlKL0TSekFJk1fEOXpqojMREs+QUDM mQ55+e+dMkDKAxrYviESI7kfCH3RAZPq8c248mTSWkX0az5lsvitth4+l6ASVPL5UXIO aPseZIhE87mh3bFcrLQ08+xR8pAzt3uBshW+uDhv3vxupOSrZS73HnE5as8nKzXX2inv aT+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=RLniEQxAH4/gfhYKz1Mqv7ZTj9FDz7v+FD5BGhHrkMM=; b=kNAVggjOWzjOHRTDT0A8gYpygyJBi+GezKcf3pVNGlGqKUKVgFe2LDa8lKAggBLzpu qI9jEmn4SScxxjGhWNg2lgVWRO37aBj9o7HK5vgEaOzySar1YQ5ZejgEhTw6BgKCVqdU 5jnATvfYMTyH+6gF1fy8EclZ3IxQVupSPXUeUL+ZVmUslHYABhfUUtKKf4BtVUZqk6+E FxtM/E9r4rr65NtkPqLKhz5rhDLdQCxq392oy4SmptuykSxlnOj9cCwrt2S9oyQw6N9w 45esc62l/dnfX1pOEitVJR/GEJrqjdaS5QKFUb7cKdybQ6ON28gAWp5j+v6l0Pg57Dy6 MeTQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=zPVDZCeJ; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id bt13si3554078edb.245.2019.10.04.08.00.39; Fri, 04 Oct 2019 08:01:05 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=zPVDZCeJ; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389487AbfJDO7i (ORCPT + 99 others); Fri, 4 Oct 2019 10:59:38 -0400 Received: from mail-wr1-f66.google.com ([209.85.221.66]:36282 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389598AbfJDO7i (ORCPT ); Fri, 4 Oct 2019 10:59:38 -0400 Received: by mail-wr1-f66.google.com with SMTP id y19so7640477wrd.3 for ; Fri, 04 Oct 2019 07:59:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=RLniEQxAH4/gfhYKz1Mqv7ZTj9FDz7v+FD5BGhHrkMM=; b=zPVDZCeJ4kuATkm+D9lHaW4RXOz/dmF4dM5BAKgFfZ5jq/X6d/oskwqG1GJ9r7lOwm UQQxoOPiVrTIeGI9COY+TZbLF8V/vv+StaNGFZHZJp07UbPTDUMuq3QE0u5/Ey6ft5ZK 2z6UrPqlnGpp77h7jgXJPIuBG21HnhNhs6efsIZfHLprqkBLXjlJyht1Dbm/nmhol31O ZJXTcHo8aP5bF8c/wjLS3p3rwPAGPG81GwXfRfBUv2YDILycWuUkHkgHOiLxTZW9RO5A 6fA5kjINCYoqtAqG2D8ZjDpN0yq8RcnNS8umHKSbuIbprfCXl2m0nZdS1bguJDyYbDO3 y/4Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=RLniEQxAH4/gfhYKz1Mqv7ZTj9FDz7v+FD5BGhHrkMM=; b=T05OAmloZJ8n0dITSoRA4HQjOOb5h1AaVVl6YhoPERuST+uHSMRKbPno/dzCyVfE6S RUJpvZHBjG8JiZmHYlsD/CVEcZgi0T9j02QPSXU6i3CA+qtffhFcg4o/4KuSD8M7qRRM CP6vyCuSjk/0HthaBgV1KXnCzdGT7YMEkIfpkZcdkwfcTEio/w8zQlIjJbQlC2NxBhb2 CLPaBVmoltfq/C1y0XHHcI7HTaDYC+ccXClk2BZ4iOmjbQkEqjVwKVs7Jfh3bA9fl7be lohpfxlDQy+ue9jojq9V1UuudO7ZtkyQIJaA2CbsHaA6PrnJz8wq5uLj6VRlq5tNZjLU Aa6w== X-Gm-Message-State: APjAAAVYVAOZIjFXTJqRtz3zX/uxq6kc0rum0uiCWchJyApLLNNtVVoP 674tLL5dOVv2VqQ0W939GEV14pBXEI0dsTHTKHdKbc7ibNKQeQ== X-Received: by 2002:adf:e5cb:: with SMTP id a11mr11769702wrn.200.1570201176479; Fri, 04 Oct 2019 07:59:36 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Ard Biesheuvel Date: Fri, 4 Oct 2019 16:59:24 +0200 Message-ID: Subject: Re: [PATCH v2 00/20] crypto: crypto API library interfaces for WireGuard To: "Jason A. Donenfeld" Cc: Andy Lutomirski , "open list:HARDWARE RANDOM NUMBER GENERATOR CORE" , Herbert Xu , David Miller , Greg KH , Linus Torvalds , Samuel Neves , Dan Carpenter , Arnd Bergmann , Eric Biggers , Andy Lutomirski , Will Deacon , Marc Zyngier , Catalin Marinas , Martin Willi , Peter Zijlstra , Josh Poimboeuf Content-Type: text/plain; charset="UTF-8" Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Fri, 4 Oct 2019 at 16:55, Jason A. Donenfeld wrote: > > On Fri, Oct 4, 2019 at 4:53 PM Andy Lutomirski wrote: > > I think it might be better to allow two different modules to export the same symbol but only allow one of them to be loaded. Or use static calls. > > Static calls perform well and are well understood. This would be my preference. How so? No code exists yet in mainline, and the x86 code is still heavily being discussed, requires voodoo code patching and tooling changes. Implementations for other architectures have not even been proposed yet, with the exception of the code I wrote for arm64.