Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3070209pxk; Sun, 4 Oct 2020 23:44:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx1eBWTYyHz9+M3hXrxthVXKRLKH6Jsur+s1jc0rbuezOExslH6VHcPfBHoMTb3F+BjbzkG X-Received: by 2002:a17:906:3bc9:: with SMTP id v9mr8481436ejf.340.1601880277966; Sun, 04 Oct 2020 23:44:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601880277; cv=none; d=google.com; s=arc-20160816; b=kxoEQiwBl5DIAdgbAaWBXBtjFKbxnRM1SdqxeGn9tS//spTOsljFwyh7SIstm/TD/5 WFEa8kpWpkKFPMt9ob6CR7kNbtfGljWtY11tvtGJ8U82i+R3HMnBTPlkAopWPlZhn4AX oV3alEb4iS8raw8NWaLUdYr4Sy1CpPnTYnZb8AgShJzdqOEgXwM57nFwadkigaP7VvnP uCgh93D5efbP9CiQ558QfqEj2gvZpwieCVuB/Ea5C5eWiq7LG26LxOnQCEqNNXKNVUgL 2RnshGUoaweaUOTVYKej0U2QNMZre2x8ARX9uYYs3A8tWXN/vUki9E1LhfARkJ/cyqyQ LXMg== 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=iRWIFXu9IPejAwjRd+GboHZ88cTR/5W5Zq6fO1ic9O4=; b=Da00HnNThFMaIOL6nW33NRzn0qrPqHbjvoM2UGhswFlcKA+Al0u+laYUH8K7c1pHzY 9oozmpvnS0DzR2ua2OdS27mLQ9rI3TYVzyxzHJpmyX9HkSQzaRW6gPopJe1X992yIfGq mwpM9RP8ZeUD/yF72Hbtk8TBmvCptVz2xyxbFxD47Gq0mNGiw57oVpnMLqdxq0PSj0ym USYTrL+1haGHmQHbqLFacVr1jXDS0pNnOrSJQ+tkDxaUIvT7CvKrGnC2NSHGwFXJ7VUR xBtpGqwtt4J0M2r2Pbq93aTGIy/wjZ37O8VfSFvmbE06zstY6Nhb/P0Zk6pn9OO1O8Xc pAYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=DMlgHEhy; 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 j4si1416319ejv.394.2020.10.04.23.44.12; Sun, 04 Oct 2020 23:44:37 -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=DMlgHEhy; 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 S1725896AbgJEGoI (ORCPT + 99 others); Mon, 5 Oct 2020 02:44:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52006 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725891AbgJEGoI (ORCPT ); Mon, 5 Oct 2020 02:44:08 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 59AEEC0613CE; Sun, 4 Oct 2020 23:44:08 -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=iRWIFXu9IPejAwjRd+GboHZ88cTR/5W5Zq6fO1ic9O4=; b=DMlgHEhyHSc6X2C3Lr2WraccDZ VfjiaMKfrp78RiHwjwBRAVhsVRAqDVuV1XFlntQOgD6oYgEcRalr7AXh5g8OWyxIUfR767DD/y0cO ZkcAcBJXRxqqwROTBPc7UKTwtkXsh6BzsY1gBv1FNi0vFaU9Vvhs+wIpiFhp1M3iNgDZqVgUn02wg dxPkahaxT64ZWhRtCqCv7btUekJ3E2iQ+Y0MfhXh5UfzgqaEkGUGB4e0hflfAHA677Eigpr0xzkiK K5/BCZlQpRyopV/AyZNtNDUVXbep1LYr5ErS5oo6osLPGAIN2xXhZK1B+gchSNRb5Cq2o4bge/UVL 51mnLo5w==; Received: from hch by casper.infradead.org with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1kPKE5-00020y-1l; Mon, 05 Oct 2020 06:44:01 +0000 Date: Mon, 5 Oct 2020 07:44:00 +0100 From: Christoph Hellwig To: Stephan Mueller Cc: Christoph Hellwig , Ard Biesheuvel , 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: <20201005064400.GA7462@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: <2588700.mWSkj6HvKX@tauon.chronox.de> 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 [adding Thomas] On Mon, Oct 05, 2020 at 08:40:25AM +0200, Stephan Mueller wrote: > > 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. We could probably add a kernel_clock_gettime which contains the clock_gettime syscal implementation minus the put_timespec64. Thomas, is this something that fits your timekeeping vision?