Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp1578641ybj; Fri, 8 May 2020 04:50:25 -0700 (PDT) X-Google-Smtp-Source: APiQypJt0K5nGdXbEe4F2RbuHbr716LoW1ABQG2t1j0Sgb53HhwWavi/hf26mDyhOLjiHPnQ9Dp5 X-Received: by 2002:a05:6402:712:: with SMTP id w18mr1799309edx.386.1588938625248; Fri, 08 May 2020 04:50:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588938625; cv=none; d=google.com; s=arc-20160816; b=QJT8n+DJfKCakwD1Tf5G7uUuN7ikA912iJXMG3QKUFUKHvMK3utJQ1DG27hH4QdGXu N8UidC0lXl/xL8j3gjEwYcTSJb3DEfB/R7lPthQAtAMaKNbf+xxH6F0Yk6peYerVTz9u 9/mig/k03uxwRUyKm0WDngdejR+0c1H35ZhcQB17LB4AaFjY3naSW5cwyyXzkmX3/zRM o6wb+bqnlfbIpU9Z5u07XoBCCe1MZmX4eHfKUP+HxKlUwG0bfPZbCIRiksmFLbG6Wl81 gpoHpl6UQuqNWwI0B3Z2uDPZwVLfHfAhv61qr+rKtjMTr/VkEXlU1QK9OIJR/MoioZAL jJVw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:message-id:date :subject:cc:to:from; bh=tVrGmxD8E3eKlAQqfnQW6ECDLcKR447mq+M0QnLa3JM=; b=oeetumLueMcZu7YFAbkIjh/UKJXkjn05nKZ4Di5IhoZ4SidziZjryPPGFuw1NUXroK AbNxYnaKmglSl5eif9b9xVNF4DvSPAOuzkv12fvftTohQkBTmFKRLvRehaxsUigp+T1W V6kKx+RHxdho9DsgS5my3boYYIVpaWFn5eomMPMTR/uiknXw5Bu3jqNy6rzqG8KFJZyq jjM5JwwpIpEuk4vwFNQLD7YnsuhkLuTgjt3oHU7tsnGIGII5sK1luLz8pkCs61T+kcz8 vTBjCJE0Wvv2wyBeUOcKcPQiZr3Guk4Yj3rb/pBmoil5UUlffHT1uaAOPhPfFZCZeI0F 0fqg== ARC-Authentication-Results: i=1; mx.google.com; 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 h10si848055edw.542.2020.05.08.04.49.47; Fri, 08 May 2020 04:50:25 -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; 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 S1726636AbgEHLtm (ORCPT + 99 others); Fri, 8 May 2020 07:49:42 -0400 Received: from mail.thorsis.com ([92.198.35.195]:59647 "EHLO mail.thorsis.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726618AbgEHLtm (ORCPT ); Fri, 8 May 2020 07:49:42 -0400 X-Greylist: delayed 563 seconds by postgrey-1.27 at vger.kernel.org; Fri, 08 May 2020 07:49:41 EDT Received: from localhost (localhost [127.0.0.1]) by mail.thorsis.com (Postfix) with ESMTP id CA36D2A4F for ; Fri, 8 May 2020 13:40:16 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mail.thorsis.com Received: from mail.thorsis.com ([127.0.0.1]) by localhost (mail.thorsis.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id wqVJSZUIiQHo for ; Fri, 8 May 2020 13:40:12 +0200 (CEST) Received: by mail.thorsis.com (Postfix, from userid 109) id A1BDD29B3; Fri, 8 May 2020 13:40:12 +0200 (CEST) X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,NO_RECEIVED, NO_RELAYS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 From: Alexander Dahl To: linux-crypto@vger.kernel.org Cc: Stephan =?ISO-8859-1?Q?M=FCller?= Subject: jitterentropy_rng on armv5 embedded target Date: Fri, 08 May 2020 13:40:08 +0200 Message-ID: <2567555.LKkejuagh6@ada> Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="iso-8859-1" Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org Hello, after upgrading OpenSSL to 1.1.1g on an armv5 based embedded target I had a= =20 deeper look into entropy generation for that device and stumbled over the i= n=20 kernel 'jitterentropy_rng' module. As far as I understood it's supposed to do the same as the well known=20 'haveged' or the userspace daemon 'jitterentropy-rngd' by Stephan M=FCller = [1],=20 right? (Although those daemons would solve my problem, I currently try to=20 avoid them, because memory on my platform is very restricted and every=20 additional running userspace process costs at least around 1 MB.) If so, then how is it supposed to be set up? I built it for 4.9.x LTS, but= =20 after loading it with 'modprobe' I see nothing in the kernel log and there'= s=20 no significant change in /proc/sys/kernel/random/entropy_avail (stays well= =20 below 100 most of the time). Isn't that module supposed to gather entropy f= rom=20 cpu timing jitter? Puzzled Alex [1] https://www.chronox.de/jent.html