Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp786012imm; Wed, 18 Jul 2018 10:37:00 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfChQwfht4x0aNSDZyPaqkp/k6yVl0m0g9w7+6D1BL3UVkjlbhiPong4fmzM7+dZg+uqsx0 X-Received: by 2002:a17:902:9690:: with SMTP id n16-v6mr6774274plp.94.1531935420414; Wed, 18 Jul 2018 10:37:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531935420; cv=none; d=google.com; s=arc-20160816; b=epat033w+3cEg01fIvt4WTs0N0f6Uy+pY1lIrW7vP/HfnxjOF223p+g0lfD+qwPlnf TOw55U53y24IaAuH3MC75HMufcPZ7raWkUrcZ/oy/v6jxh5BkwO0AMutG8llzkSnBGwO nS+qYt76fLWtl6Edw78Tgwq6/IrZQPck56VyLcQM7cE7//PjyyLZfyC3mtz5f6Hb5XbA j0GtE5Zd9OXLXEfzwqFFtzgDR+eqSJ90M6XFfFi4KOnxeQYAwAI4A5D72wA/JSKKlQPN m9Bg8tHTW1iMxC9MNc7ExBmYmV3G72pTsyFKQdPvx8tdzYp0NPeAQV5+z77MCVI0ScJO GxMg== 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:to:subject :message-id:date:from:references:in-reply-to:mime-version :dkim-signature:arc-authentication-results; bh=FGK/ZoAFfyL0Roxt3qwwrCKC+MZZbpLflgiJfbRVq9E=; b=m0Iuq4IVuIDtIYdV01gfgcjdI0DcpvfQ8XnisPeTfABE28leXF7ZI+USYEl8mRsdTu IOpvT7MkPCYwVfppkVrJVFUeyXz4DvbPUIPPrM99GjEa3fA4LXlgBFCUiuCb4G4D8ZeP EL5FACmkFF0A1B2CIVehFezEpzSOWIXvNdmtHBFhOXYu1osuLqJFs+59MtkSXuOjrfzw eJ8Anoc2KkORMQVCbgieE07rRNo2T2AYwomvx9ADlTC2rX6IRQhrk+0p7R+bgk3sDP/H AFR82FXDjL0iW1Rtj6ZtlywCnX76g2PfL12cfQM5a2EUPE7YJ4t6VebjvlOBEbfck/LC so0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@googlemail.com header.s=20161025 header.b=O3i1u5Ha; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=googlemail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w24-v6si3465654plp.386.2018.07.18.10.36.45; Wed, 18 Jul 2018 10:37:00 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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=@googlemail.com header.s=20161025 header.b=O3i1u5Ha; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=googlemail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731282AbeGRSPG (ORCPT + 99 others); Wed, 18 Jul 2018 14:15:06 -0400 Received: from mail-vk0-f66.google.com ([209.85.213.66]:44479 "EHLO mail-vk0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730319AbeGRSPF (ORCPT ); Wed, 18 Jul 2018 14:15:05 -0400 Received: by mail-vk0-f66.google.com with SMTP id 125-v6so2926691vke.11; Wed, 18 Jul 2018 10:36:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-transfer-encoding; bh=FGK/ZoAFfyL0Roxt3qwwrCKC+MZZbpLflgiJfbRVq9E=; b=O3i1u5Ha28JuBidX3wiyUzNfY0F5n/exoEAA9OmlzGkFyObkZnEsH9PumZ8uShuTLV KTxRp6bRxlKdP4sYewYE9Rad/i0kTLxDyW9MKa9TBB6iSxxYK4ImtsiQERobZsssDdyu EguJI2JoHWai3cGqzqWYr4Nl5YKoU1OChxlLv5JSn8qMTegUL02FXdYvsczIYBK27ji1 XUjinG6O3Wkm9pjJ3uUk5xWFVYSCrgfhFyPoXC2hT775ckvE40wdiqTUkIHxhyExrYgM dna543IXkcjonq7hzaMKvJfLQPTTUdaNP1qRf+mdt43kPqjqU4FH3hVn4w5k6OfofAQO tK9w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-transfer-encoding; bh=FGK/ZoAFfyL0Roxt3qwwrCKC+MZZbpLflgiJfbRVq9E=; b=G+jG1dqMtGw5A4LAHVSH3ivTVz/KZJeGUwszl2bc0ET0poicy1wOqO0suITIBP/oqg maV2R8gmtliXshqJXLJkVnyqzZDueLji3frlPySbSKRd3BgMdfaQiZupHjzDhnKB1yJ4 OFggAH5okA/IzogXanXfE1RtRHwiskLJOPVet/CGBI8uNjNx66KirLFoVdwIjIZa8pNK S2ta0zmwmokZSP6nDJW8muC8pKVfJAQHN/UdLwWItXToMgzWlAps7S9+3I3blQI08IvX oDFdjmQZA4RbQJMLhkaO8bwY3FRgRk5jG89DrvYgkkKUbE2m0XZOtX7tO079tOls12PD 0Fcg== X-Gm-Message-State: AOUpUlErgmykMSpho7guxK+HkgrvGcd/Fe++2haGT707/2mUuZ+L8EoP WLaOHA5jQhwa1VJZaamGmcqELCUUQGv3kcQMnac= X-Received: by 2002:a1f:19c8:: with SMTP id 191-v6mr3897430vkz.162.1531935369433; Wed, 18 Jul 2018 10:36:09 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a67:d012:0:0:0:0:0 with HTTP; Wed, 18 Jul 2018 10:36:08 -0700 (PDT) In-Reply-To: <20180718015154.GE3489@thunk.org> References: <20180718014344.1309-1-tytso@mit.edu> <20180718015154.GE3489@thunk.org> From: Ken Moffat Date: Wed, 18 Jul 2018 18:36:08 +0100 Message-ID: Subject: Re: [PATCH] random: add a config option to trust the CPU's hwrng To: "Theodore Y. Ts'o" , linux-crypto@vger.kernel.org, Linux Kernel Developers List , labbott@redhat.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 18 July 2018 at 02:51, Theodore Y. Ts'o wrote: > On Tue, Jul 17, 2018 at 09:43:44PM -0400, Theodore Ts'o wrote: >> This gives the user building their own kernel (or a Linux >> distribution) the option of deciding whether or not to trust the CPU's >> hardware random number generator (e.g., RDRAND for x86 CPU's) as being >> correctly implemented and not having a back door introduced (perhaps >> courtesy of a Nation State's law enforcement or intelligence >> agencies). >> >> This will prevent getrandom(2) from blocking, if there is a >> willingness to trust the CPU manufacturer. >> >> Signed-off-by: Theodore Ts'o (Apologies if this is a duplicate reply, I misread the tiny text in gmail a= sking me if it was ok to send non plain text (dunno what caused that), so I guess the first version went to /dev/null, at least as far as the list is concern= ed.) On my haswell, since 4.16.4 and the corresponding 4.17-rc. my (sysv) bootscript to start unbound hangs for a couple of minutes unless I use the keyboard. Same on my kaveri. Those both lack spinning rust, but on two other SSD-only machines (ryzen, phenom) the security fix did not slow down the boot. So, since I've got better things to do than _worry_ about than whether my government, or yours, is spying on me, I would prefer to have the option to take the risk on the machines that will then boot faster. =C4=B8en