Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3058092pxk; Sun, 4 Oct 2020 23:20:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzlPCybYdIBId5UbJJbwO1bwWZjbW1+pNlwtkGEJ9vhQVMTSAlWVgzBmdUDCCRAvfqoQ8N2 X-Received: by 2002:a17:906:4cc7:: with SMTP id q7mr14333380ejt.437.1601878807038; Sun, 04 Oct 2020 23:20:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601878807; cv=none; d=google.com; s=arc-20160816; b=c8OcuHA0rYzs/KUCaH5gMnka1eJrQfNw8labvPnedUNcF4gVHcfm88gBqjoFdikjHv fIaO7NPGNO3kOBO+Njmb6Q8fiq4i8xs3AfHLVsfwdhk1jXHLei6c+OyTpAcjPM+U1694 mY1e8K83QALB0d1imizYNmMx2qNNcmpjNHY8PAebmTlzPVgLj+eCl86pc3qoJuu44vUC 7ezKMNRWIi/va4/15Hln+MC3DrzJuSxe6A0qlq+DKtx0mC0XwUn0mJ3QrHqFzkCK/fXF dESEfh/Y7ZDDftbMBqx7O9ZFkOhKaOQVhiGJtxlHlLnRFQ+/nCJfMRRDs9WAGs1LjEpk cKBA== 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=jGLMgatw8+YPeZ8gLExrPIHr/pPSgzJ2R4w/NAyNuAQ=; b=UqU2nTV6xo3gNxZegpjTwz0LPynM8O04okfQbCm/uFuGkQN7UxnGGmbJ+NmSXmUSGA 7wyTOS9OOArldFXdugBlneRU2T5pqpIJU7gZEZY21QhHqF/rul4jhX1zW2LkOAlLrb2d mgKxlA2RZqDAR6TIyJbsynAaE/I8WQwayyqwcKEFyR3rsF1Rg7k3SXYI3gM+OhtzKeyN +WWO2Xz/Okcgoze1N1Ov0BzSeSxNyRLLU4OB2LQT3azE7tijaz9JyqVlalu3WdmUCa5W Fwcn2onRT/J7So6vfSDeTAtSVogX3PncqtLoVkDKXWiSHYEAXv7bANCANLs/TaoG8n/Z 4IHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=rfUpjTHv; 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 y20si2556367ejj.185.2020.10.04.23.19.33; Sun, 04 Oct 2020 23:20:07 -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=rfUpjTHv; 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 S1725867AbgJEGTa (ORCPT + 99 others); Mon, 5 Oct 2020 02:19:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48238 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725267AbgJEGTa (ORCPT ); Mon, 5 Oct 2020 02:19:30 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 020D0C0613CE; Sun, 4 Oct 2020 23:19:29 -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=jGLMgatw8+YPeZ8gLExrPIHr/pPSgzJ2R4w/NAyNuAQ=; b=rfUpjTHvULZcKWcUmjU3yIa0C0 UywruIXCF3IxGM+3Remk7eb4rOvPqJhbo8qPSVY5hYoUOT6YlbtvnV8QPM6uIK0dpHia6mcjKxqe0 SnjVnL3FChJeffK69Pj1Ccl2YmE1eZThAvMvJPY4fsKiHSF0KhDpbOrLhVzNqDMeyILvoQZF67mPy zlXm26GavxK/1S1tPViAMQCmRB0dEICTOOTGyyb9zy5XgbbbOHQLJDrk391roHsf7xYBjLw/qOkW9 xZ6qTheN13371BAIuMUx7mUvXXLpb0rUU6zx9Jbw3nlwn/u0C8MrU7YGCAQRkMj3AKuC/W4TyyMVw zgXQPpTA==; Received: from hch by casper.infradead.org with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1kPJqA-0000j1-K8; Mon, 05 Oct 2020 06:19:18 +0000 Date: Mon, 5 Oct 2020 07:19:18 +0100 From: Christoph Hellwig To: Ard Biesheuvel Cc: Stephan M??ller , Palmer Dabbelt , Christoph Hellwig , 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 Message-ID: <20201005061918.GB1856@infradead.org> References: <20200930065617.934638-1-palmerdabbelt@google.com> <20201002064905.GA27115@infradead.org> <5692716.lOV4Wx5bFT@positron.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 Sun, Oct 04, 2020 at 11:16:10PM +0200, Ard Biesheuvel wrote: > On Sun, 4 Oct 2020 at 20:48, Stephan M??ller wrote: > > > > 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? get_cycles is a low-level time keeping detail that really should not be exported, and at least for RISC-V this would be the only modular user. Once that is sorted out I'll audit other common architectures to drop the export, as it isn't something that should be used in ramdom driver code.