Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3076376pxk; Sun, 4 Oct 2020 23:57:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwGpI05pIlsZbdqEGcxIMdukbxlfMG4o21h4Sfcqqr0U0eZmtl3zb6gB7bxFEab5oasQwqV X-Received: by 2002:a17:906:c43:: with SMTP id t3mr13833730ejf.219.1601881037102; Sun, 04 Oct 2020 23:57:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601881037; cv=none; d=google.com; s=arc-20160816; b=qBPqe5QJfocBCNI2PhbXEbn4ATix5BJzLLS3hZ6cT2lvaxWwacr8GZyz35WWt93pyD Hx00d9aDy0PYBMdokp2PsjvRiddkMyyZLiKtkGfSnv3herZpBHf0blGYGfgxtoTXcU34 0d/vsGogT2J1kRB25Te5jnXcFQ3u+NrIPoVWOothh3AswGMlUNvHnr2kRBGzzTAh4H9+ oPoLn+CyvltmdD9xMzngk1aoFih7avzZKUZnxRbzn3e7vZ58Lq8lZ6NeHdP6EtdwcOvo xLJbejWRDDoHmIGEgftoSlcmKy/oQWIbGGmvAKst/dF9cqAVYZ4uWzmSzvwJ/jPh5as6 4FLQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=JH0LA4ZuyggAVCTfAaYXHSoHoqqf3UMSAcaG4H8OYWQ=; b=KOxKGn3hKfSJ3YOSy8caQ/XAJMZI5T0ap/yrekk2ToR2khIkmOlrR3MvZXVQ3Ns5hJ CRozKl3o3ZKZnkGVS+sjIUaJR7jZf+/V4Y6ej9Xr9mVez3IUf7PJmK3zPHJVvS/AYvqp kGnRd6axlw0Q/rS4+Szy2S9b1+wR+IerBvtj2OdUG9F80gsowy5TOxOtNESjgxnwnWXJ 12ws9lJUMYb+vBmxD+TiXOKBG7Bhb8mkN9fybvuS0vQnjwbVOMeeENPJPvZwWRoI25R5 XJLLBQdadWLY+I5ZuIuUlcwDmuLTw75/OGOkbRGZTzI2SMm1qFvNNZxMclff8DHx3OUA 3nNA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=ng9feSs+; 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 d17si1255159edv.383.2020.10.04.23.56.51; Sun, 04 Oct 2020 23:57:17 -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=@infradead.org header.s=casper.20170209 header.b=ng9feSs+; 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 S1725873AbgJEG4v (ORCPT + 99 others); Mon, 5 Oct 2020 02:56:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53938 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725869AbgJEG4v (ORCPT ); Mon, 5 Oct 2020 02:56:51 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BF42AC0613CE; Sun, 4 Oct 2020 23:56:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=JH0LA4ZuyggAVCTfAaYXHSoHoqqf3UMSAcaG4H8OYWQ=; b=ng9feSs+iOaagTDCS7GVS803UG FYtJiDiazlMQbCOD7eSn/To5ES0cXenIsuYBC9zsl2M8eCCcF8vztyfDRaKMn20fLaPOxf3wG05DZ QOHHQsDwG+RWnfXOYf15tRZDnQE4FvS1PpneP8X6muACi7I3brc0ZrLZu8w6PG0Z4Qr97L7G77e8L i+HE7S6F/pSR1VIGaWf8mQxE5Rw27NM7JPcLy9Tlrq87GW/tdYoz+yN05tJIJWxC3GdBPc9nSca4W hEWY8WkbcW/LHg4ZGsuGGwnKi7+Mh39JdBrJ4ZJ4co4pn2E2vgVZSfTclzV/HBw4pVLG5VvYwYhX0 1dY1sLbA==; Received: from hch by casper.infradead.org with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1kPKQO-0002jS-Bx; Mon, 05 Oct 2020 06:56:44 +0000 Date: Mon, 5 Oct 2020 07:56:44 +0100 From: Christoph Hellwig To: Ard Biesheuvel Cc: Stephan Mueller , Christoph Hellwig , Palmer Dabbelt , linux-riscv , Android Kernel Team , kernel test robot , Linux Crypto Mailing List , Linux Kernel Mailing List , Thomas Gleixner Subject: Re: [PATCH] crypto: jitterentropy - bind statically into kernel Message-ID: <20201005065644.GB7462@infradead.org> References: <20200930065617.934638-1-palmerdabbelt@google.com> <20201005061918.GB1856@infradead.org> <2588700.mWSkj6HvKX@tauon.chronox.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-SRS-Rewrite: SMTP reverse-path rewritten from by casper.infradead.org. See http://www.infradead.org/rpr.html Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Mon, Oct 05, 2020 at 08:44:39AM +0200, Ard Biesheuvel wrote: > On Mon, 5 Oct 2020 at 08:40, Stephan Mueller wrote: > > > > 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. > > > > AFAICT, that call is backed by ktime_get_real_ts64(), which is already > being exported to modules. Indeed. No need for my earlier idea..