Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp2840182pxk; Sun, 4 Oct 2020 14:17:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx2uR7Yofw+dVNtbajQLfJLV4WyBZObA+LcZezEska4kfR9qUl+GX8NNsUQ10s4ygVNRpto X-Received: by 2002:aa7:d948:: with SMTP id l8mr14114605eds.159.1601846275641; Sun, 04 Oct 2020 14:17:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601846275; cv=none; d=google.com; s=arc-20160816; b=qQ/Cu+qGNW2FETqNHo8WpnyUtfBrnqMJywSrJIkZXFNmPtP4RSL0kXeVqsOB72o5q0 6S8JAh0QxZP0rPruieVzLVQm06+y/YM54qHR/JNOLDar1XAWi5DkcLXIVUhjB6lxdfTt BHuf0tJxqQAvpeLRC3xhHvUkPPRARDO4yzv/QBB1l++ofR7k8cg66QiRL9ro7h1yifAw HOUYSWT2r/E4iXxQRUgm0rZFVVN77yYo3vlurau3YVYwMZjdw33ixZQwcTgeWkksUOXl 2jr6PsfSkHZPAcrGDjPeJSdEzOM7ifW4RIBqHMEc8ft/iWlKFy27UkQy8n9X0PsrwWjt 9s5w== 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=jxx1SwsX84EzCH/Ve38nqGwi/A5NtluSgKBKQQBtvjU=; b=YPEnm004r6Bs9Nj+GbU59NfUewibAKdx1eQOYCIRv0Xtfm0xfDCxVqUfbM8V8qMnr/ VmoBXeifI7WhCivHgta+1lboc2HBwcaJXmN1ohBEtWZltSqaFvlnN/uEGKUHQV8a2UhR x7EN2JQsEcw70L1WTv+KUsifeBN5jdio/Oc8RSSSxPUzDOkFge0tVJq/qcdEmRKCnkty TucZYqdp08xUfG0fLT4TMc8kC3CH5xW9ODfRXLLpVsMHKiERcHD32C+exbWlZ93kr9fw QI7pynyl/CucHkhXh2ZZA5t/BP6u04gGS2TzYs2hEIkwtI+BS8X2A08mLzqo+IiIXt6O o2CA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=uTK+erHh; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bm17si5852889ejb.356.2020.10.04.14.17.20; Sun, 04 Oct 2020 14:17:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=uTK+erHh; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726374AbgJDVQW (ORCPT + 99 others); Sun, 4 Oct 2020 17:16:22 -0400 Received: from mail.kernel.org ([198.145.29.99]:37616 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726313AbgJDVQW (ORCPT ); Sun, 4 Oct 2020 17:16:22 -0400 Received: from mail-oo1-f46.google.com (mail-oo1-f46.google.com [209.85.161.46]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id BC7B7206DD; Sun, 4 Oct 2020 21:16:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1601846181; bh=1/fg8uWl3pmlAi0Q2vkVcGSaTYg3h3TSf7CL3PVW6XU=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=uTK+erHhSMum0+TGO/vLDyFgcw5IsFcym9B07ZCSVM+GDdZqJE2PVTasSn/qc8Q2c ZByi2Iws3yyNhmEdaX8jj+6pPdrEanjwSMN5AiIpwAcOEGugcLz7CdEPW2oJE7cnlA b76kJyaa7ebB7QmvBqy/R8HwAMoO1gyJ9bad5ieY= Received: by mail-oo1-f46.google.com with SMTP id k13so1775743oor.2; Sun, 04 Oct 2020 14:16:21 -0700 (PDT) X-Gm-Message-State: AOAM532E8oK3LWjHfFPEKArFodkuIhJQ9ANFYhJuoxOfcHlYtOn0M9K+ 9qzT5ox08kZ5/FQUhMWZ+ULrV+79Tg/FVXV90s0= X-Received: by 2002:a4a:c3ca:: with SMTP id e10mr3026860ooq.41.1601846181147; Sun, 04 Oct 2020 14:16:21 -0700 (PDT) MIME-Version: 1.0 References: <20200930065617.934638-1-palmerdabbelt@google.com> <20201002064905.GA27115@infradead.org> <5692716.lOV4Wx5bFT@positron.chronox.de> In-Reply-To: <5692716.lOV4Wx5bFT@positron.chronox.de> From: Ard Biesheuvel Date: Sun, 4 Oct 2020 23:16:10 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] crypto: jitterentropy - bind statically into kernel To: =?UTF-8?Q?Stephan_M=C3=BCller?= Cc: Palmer Dabbelt , Christoph Hellwig , linux-riscv , Android Kernel Team , kernel test robot , Linux Crypto Mailing List , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Sun, 4 Oct 2020 at 20:48, Stephan M=C3=BCller wrot= e: > > The RISC-V architecture is about to implement the callback > random_get_entropy with a function that is not exported to modules. Why is that? Wouldn't it be better to export the symbol instead? > Thus, the Jitter RNG is changed to be only bound statically into the > kernel removing the option to compile it as module. > > Reported-by: Christoph Hellwig > Signed-off-by: Stephan Mueller > --- > crypto/Kconfig | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/crypto/Kconfig b/crypto/Kconfig > index 094ef56ab7b4..5b20087b117f 100644 > --- a/crypto/Kconfig > +++ b/crypto/Kconfig > @@ -1853,7 +1853,7 @@ config CRYPTO_DRBG > endif # if CRYPTO_DRBG_MENU > > config CRYPTO_JITTERENTROPY > - tristate "Jitterentropy Non-Deterministic Random Number Generator= " > + bool "Jitterentropy Non-Deterministic Random Number Generator" > select CRYPTO_RNG > help > The Jitterentropy RNG is a noise that is intended > -- > 2.26.2 > > > >