Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp35154ybl; Thu, 9 Jan 2020 16:31:18 -0800 (PST) X-Google-Smtp-Source: APXvYqwgbfFA8r4MLJoEdJj306I7b4QmIa706oGGrV8e1UE9FiMVTpbk1Irc2t2ycMrSnUvI9/3I X-Received: by 2002:aca:815:: with SMTP id 21mr140998oii.52.1578616278755; Thu, 09 Jan 2020 16:31:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578616278; cv=none; d=google.com; s=arc-20160816; b=iCnfChTTODeONr8KzgRKYF+v6lbaHOjtgU1fSa+WvA+J0N21yc/xbyNUJPW00za53J oJ9QjQq+ZivW3CAvA8gWv2ko1LXfp/qSG/eJLTAGZdYpf3yL/dTb8g6M+UVB+7Ak7BNW hNMd8Kb+9wUnruoRvJXpp6c6mio469Q932zSzwpjPt7UZvZESJt8M9HhF1kp3gajlXqy gLuiQ8OYiW8e4w5Jzzsq3bgbsvG7nl0DfzgC2QSlt6yCRF+cPNypPJAIpUNqTHvDcfIj jJ1UKIe8qFUCh2ChaIb8JcsECdc0BumLVKTe0Y24PMBRFaQXofm33dEcresX2mcosj6h 85lg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:in-reply-to:cc:references:message-id :date:subject:mime-version:from:content-transfer-encoding :dkim-signature; bh=WU93w3AtbVDPqYWtjAM3MuAwVxoBZV4OjJfby5UWG0k=; b=CXLgjzbkzCvEhZl5G5I9JOQ8lJ9nEJ3EdaCqk3RzuTTbys/0ggh1N6uc+sy/LDSvxJ 41FXyjI0vMAt2yv/NIqrf4rui51EgkY7vnBu1K5PmlgG/lG3DygyoqUxljbY4CNg3CU7 T8608bVPx1YqeyFi3j3WYKEUwaUPOhInXaM7h2e2aVftIw/HLHIAuwWrvduPGlRxRX30 ajyhScVQPDH7UjMRbdL1qCP+nU5JxENL0HIYDcfMvB6VzK7VyLeVV4FfNyNCNdDjjC4M 74mIlxM8SzGCIzcxCkdrXyY1KaVg6XQap6DMD9J7eHyiQB0HzBZBYhIB5vDMDGh/UyEP 7tJw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amacapital-net.20150623.gappssmtp.com header.s=20150623 header.b=1tZqDa5G; spf=pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q9si84760oij.125.2020.01.09.16.30.56; Thu, 09 Jan 2020 16:31:18 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@amacapital-net.20150623.gappssmtp.com header.s=20150623 header.b=1tZqDa5G; spf=pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730298AbgAJAax (ORCPT + 99 others); Thu, 9 Jan 2020 19:30:53 -0500 Received: from mail-pj1-f66.google.com ([209.85.216.66]:37354 "EHLO mail-pj1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730248AbgAJAaw (ORCPT ); Thu, 9 Jan 2020 19:30:52 -0500 Received: by mail-pj1-f66.google.com with SMTP id m13so222528pjb.2 for ; Thu, 09 Jan 2020 16:30:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amacapital-net.20150623.gappssmtp.com; s=20150623; h=content-transfer-encoding:from:mime-version:subject:date:message-id :references:cc:in-reply-to:to; bh=WU93w3AtbVDPqYWtjAM3MuAwVxoBZV4OjJfby5UWG0k=; b=1tZqDa5G0PuPlzu1UjJOEgvTaHSV+roJwZ7hvUYGjH6N+5+UZ75ROicgm6XrVTC01k OMn6l5Gm1UNk3V4jMxJBS3RxSWRzp4+OmamHgL56pd4uQMxR7dPLcH/PYEijw9pJXMpF BylAvmBwoL9jvFw4t1L6iApg5dOlUoTP9Td6VkEZKd7Cb+qcBRTDCHT0XP/o+PGXeQ+M aoVUsJMunUjg7ZjguTqJbaK+ZuZYUrkIlqiUcW4p/YIGQqAJKPejy+NqofKOApJrZIcV V1peHznnppNnEpDN4/cbmUJzqIIVRCz1bfjQ9lTtQC1Sk1kurVw8HhffEOWTivtlRze7 eHVQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:content-transfer-encoding:from:mime-version :subject:date:message-id:references:cc:in-reply-to:to; bh=WU93w3AtbVDPqYWtjAM3MuAwVxoBZV4OjJfby5UWG0k=; b=ooE2liprL7+lmHNB0CsmpsgdO7S2xx8HpoqeLqWh3cRhD4W5mgiOKf/nDa4OEI2KcM bCiEUvJxuJm+UKtn1c+oAi9wWauPJT7/ZphdbrAdKzHh7F8AsWg2LfgyhbyaHtFfVRDY o4Oawi7srUJAVT3fvVByRxOhOceOi+dw4e1HEshsWPGVyGi6JuPNK9xm2FYHb31TG4GR N4fnPgPfiW2CeFK7sFYmWVt0ui34IHN2Ii/eMYN00JqBEwR1iYoaUpQ/noZ+JMxVRMZH XkdCSoZkq+E1liEEe32TDbA8nfa87yXCrJiFPONKeVxHLtaxDnbeAipOqlcucjvgpb4K k71g== X-Gm-Message-State: APjAAAVMEY2MJfFG6YksiNXNvCmtUBHP35OsG7a2lch1cZC+2qMHXJFl p5Ki3vo2p+rPHO+9rlhi9nRC3/ZjGAQ= X-Received: by 2002:a17:90a:778a:: with SMTP id v10mr1029789pjk.26.1578616251644; Thu, 09 Jan 2020 16:30:51 -0800 (PST) Received: from [10.197.30.113] ([139.104.2.240]) by smtp.gmail.com with ESMTPSA id 83sm121404pgh.12.2020.01.09.16.30.50 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 09 Jan 2020 16:30:50 -0800 (PST) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable From: Andy Lutomirski Mime-Version: 1.0 (1.0) Subject: Re: [PATCH v3 0/8] Rework random blocking Date: Thu, 9 Jan 2020 14:30:48 -1000 Message-Id: <99CB981B-752C-449B-98BE-A4DF80D25A26@amacapital.net> References: <20200109220230.GA39185@roeckx.be> Cc: "Theodore Y. Ts'o" , Stephan Mueller , Andy Lutomirski , LKML , Linux API , Kees Cook , "Jason A. Donenfeld" , "Ahmed S. Darwish" , Lennart Poettering , "Eric W. Biederman" , "Alexander E. Patrakov" , Michael Kerrisk , Willy Tarreau , Matthew Garrett , Ext4 Developers List , linux-man In-Reply-To: <20200109220230.GA39185@roeckx.be> To: Kurt Roeckx X-Mailer: iPhone Mail (17C54) Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org > On Jan 9, 2020, at 12:02 PM, Kurt Roeckx wrote: >=20 >=20 > If the kernel provides a good RNG, the only reason I can see why > you would like to have direct access to a hwrng is to verify that > it's working correctly. That might mean that you put it in some > special mode where it returns raw unprocessed values. If the device > is in such a mode, it's output will not provide the same entropy > per bit, and so I would expect the kernel to stop using it directly. I disagree. If I buy a ChaosKey or a fancy EAL4FIPSOMG key, I presumably have it for a r= eason and I want to actually use the thing for real. Maybe it=E2=80=99s for s= ome certification reason and maybe it=E2=80=99s just because it=E2=80=99s re= ally cool. As for =E2=80=9Cdirect=E2=80=9D access, I think AMD provides an interface t= o read raw output from the on-die entropy source. Exposing this to user spac= e is potentially quite useful for anyone who wants to try to characterize it= . I don=E2=80=99t really think people should use a raw sample interface as a= source of production random numbers, though.