Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3068608pxk; Sun, 4 Oct 2020 23:41:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw6YbFf5aw7Y7yH7VPVS9l+XOkMTGe5Rct6cFRfrWx2cFJOnEn7MGtMjOJXIb3vTrw0uwWL X-Received: by 2002:a50:8881:: with SMTP id d1mr15499960edd.306.1601880071886; Sun, 04 Oct 2020 23:41:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601880071; cv=none; d=google.com; s=arc-20160816; b=cNLeTv/2SCPz6Tc7I9/I7LYPz8nT53oYNNxj/IYOA5vb74XII6wEwUPBTvGKOtmLaw MaWslkKIOa3ghdANRI6eXjEjls/U+lqPMZVX1Q87ibWrwpdPwSuKo9txgfFFG3cNDLeC jr/fKjyzcBZjnKTUBKlX/rHQEpBe9idJpBRkTu3P3EGpy/ub/Bd35fFmTn2CFQT+j+14 v4mwVV9oqVyHvC4nT01oHtvxKQssET7P4dlNCAhjb0iXOWrFi3PLDz+B8f3akk8McVQK eev7JnZj3r4004Y70yjyzPMnJpn+4nYqP2HGSN4tfhxpKcV6UndrQBWF9qOGxWikkRHN Cneg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=BfPJTkHJ25aT4xHJTt8bqUqo6Mmt7owb63RplAlMbz0=; b=i3S2lt3wzPwf8ghWcFyzxzey3rXViJmec3gl8o5hM14txY1VDpLeas5irREIfZsi/Z vtCMhxaT/FwvG5hIuIBkybL3ruGjEqeQttu1ekkGk4c0JHUqT1GWWjeLqj/ri1YNB0Ph DhcxBSx+5lr591TGY93xCoPlYNKHbIWylmqQRLZnmPfzrdA5mqL/pLua4uqq8UZTR80a Z7iahT/ouJZ4qjN9TEETwsMntsxgCk2IJYiY/iU9ud0w/bnS8ED799jQul/QmWumW9tb KmJtustnWRGWp9yhfYr2qWNAFsenubvuyiOAqHOXToEW/dCsbj+inQXU3IbEq1CdaDre dfUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chronox.de header.s=strato-dkim-0002 header.b=Q6sQmNeX; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id da5si6861963edb.362.2020.10.04.23.40.38; Sun, 04 Oct 2020 23:41:11 -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=@chronox.de header.s=strato-dkim-0002 header.b=Q6sQmNeX; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725866AbgJEGke (ORCPT + 99 others); Mon, 5 Oct 2020 02:40:34 -0400 Received: from mo4-p01-ob.smtp.rzone.de ([85.215.255.51]:14262 "EHLO mo4-p01-ob.smtp.rzone.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725867AbgJEGke (ORCPT ); Mon, 5 Oct 2020 02:40:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1601880032; s=strato-dkim-0002; d=chronox.de; h=References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: X-RZG-CLASS-ID:X-RZG-AUTH:From:Subject:Sender; bh=BfPJTkHJ25aT4xHJTt8bqUqo6Mmt7owb63RplAlMbz0=; b=Q6sQmNeXAk8G1J0FDlQF03ZyjoIjvoEBOM2MmK7wCRScluNxjE3U3K51hIeJeRpWG8 6XtikIQfxeBi54qMX8FZYKVXwHTFSHNr3GtyXDKP1TBYQ+dqsKu+2KsySLFLu3GaAf/O ErCic+mJhUYhKXuONdcekE3tm7j03Qz/VBvh40fEyPkmdVGbGINSWUV2NkucMaPD8MFQ 7IzgxIMTj0MmpnQWSys3LEsJCogQjxRCJlCOkZRCXgBHh0FXFHo0Iiyc8pQP3D62LpDZ 6Lbf3e/12TmQuFSpc5Vm2YhNx+aQWKRkzFjNJDI5jcSeDnEqKMRN6frzPcQGLmv4DAGI ZBZw== X-RZG-AUTH: ":P2ERcEykfu11Y98lp/T7+hdri+uKZK8TKWEqNyiHySGSa9k9x2wdNs6neUFoh7cs3k0=" X-RZG-CLASS-ID: mo00 Received: from tauon.chronox.de by smtp.strato.de (RZmta 47.2.1 AUTH) with ESMTPSA id C0b627w956eQB0K (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits)) (Client did not present a certificate); Mon, 5 Oct 2020 08:40:26 +0200 (CEST) From: Stephan Mueller To: Christoph Hellwig , Ard Biesheuvel Cc: Palmer Dabbelt , linux-riscv , Android Kernel Team , kernel test robot , Linux Crypto Mailing List , Linux Kernel Mailing List Subject: Re: [PATCH] crypto: jitterentropy - bind statically into kernel Date: Mon, 05 Oct 2020 08:40:25 +0200 Message-ID: <2588700.mWSkj6HvKX@tauon.chronox.de> In-Reply-To: References: <20200930065617.934638-1-palmerdabbelt@google.com> <20201005061918.GB1856@infradead.org> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org Am Montag, 5. Oktober 2020, 08:24:46 CEST schrieb Ard Biesheuvel: Hi Ard, > If jitterentropy is a special case, we could put a alternate > non-'static inline' version of random_get_entropy() in the core > kernel, and only export it if JITTER_ENTROPY is built as a module in > the first place. But I'd prefer it if jitterentropy switches to an API > that is suitable for driver consumption. Which API do you have in mind? In user space, I use clock_gettime(CLOCK_REALTIME) which also considers the clock source. Thanks Stephan