Received: by 10.192.165.148 with SMTP id m20csp860827imm; Fri, 27 Apr 2018 08:40:19 -0700 (PDT) X-Google-Smtp-Source: AB8JxZq8U8c2gedL9CkEacFwGtu93feYC+ohdVdd/0uCrA6FPU5xyY8iZdfZxZtlKZKMVVVSvcN5 X-Received: by 10.98.118.130 with SMTP id r124mr2642848pfc.80.1524843619893; Fri, 27 Apr 2018 08:40:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524843619; cv=none; d=google.com; s=arc-20160816; b=at4Grv3bnYZj//t4RlHLzd+RFP17Gbxzh71Llxe6Hc1zwILw0x8lyLX9WyGgbkB2Cf TdAm365wceAqPXakNkX+pvvQW4kHq7KgfwMrT8JMAQRukQ8mMxnwCljzy3S5CKxkmqYi kiqMLOg5z7NhMaWYv6EpxsIWvvx5hWnd0ztaqoCaHMtkNIgTh6pp9mr0slaMB2UAUZTl HnwioMBLJUn2QwkSPDKs5zK3UMFZOZ+kdDmu20gLwul48Rsr3WN+thxYeUckLkwx0GnM j6y/S8COSa+QrRVncVpkOp1lm4qYIyBil1H3hSLH1f0XqLmdTesqlXIWL7zI0kqqF7gM SCBw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=z8qCxrJ+l34TsDtKr7nytFwFPkRJVpmvBHtoGoLazII=; b=NZgAV87x8GH96XkcZLT78S76bJTSFjffUcw81Hbltzlh/tX9I1X0+PdxUogGbRLL4j BdsakFHDmsNNTCjOenn3bJ3J19TcCkq0a3lAd9jHLN25d/Dx0C9BtoDGmOP15g7R/Quz 1y3z1VyhZXS5F2S/gGuoeiLtAxfvu5linXwt1Z4lsTe6mGRyhxskDMWMNpZvlmdRcPps 5achHEL94yywwFg76SXNMm5eulMEs2jD+8J0oILmNIkl1qhLHltoy5MF7KJ8tGb11o5Y EAHz8O1FLSmObJaKp0IrVa8iOTzeFmgjDoE8PXhpYamZ4zQ1XUhl2Nh4cMRPTuO3EfCf 0Jdg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@zx2c4.com header.s=mail header.b=vGFt7UHW; 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=NONE sp=NONE dis=NONE) header.from=zx2c4.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t24si191246pfj.231.2018.04.27.08.40.05; Fri, 27 Apr 2018 08:40:19 -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=@zx2c4.com header.s=mail header.b=vGFt7UHW; 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=NONE sp=NONE dis=NONE) header.from=zx2c4.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932949AbeD0Pi7 (ORCPT + 99 others); Fri, 27 Apr 2018 11:38:59 -0400 Received: from frisell.zx2c4.com ([192.95.5.64]:42891 "EHLO frisell.zx2c4.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932455AbeD0Pi5 (ORCPT ); Fri, 27 Apr 2018 11:38:57 -0400 Received: by frisell.zx2c4.com (ZX2C4 Mail Server) with ESMTP id 83164d39 for ; Fri, 27 Apr 2018 15:14:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=zx2c4.com; h=mime-version :in-reply-to:references:from:date:message-id:subject:to :content-type; s=mail; bh=b2lM7Le8NrmMF7gqJYT4a/EBs2o=; b=vGFt7U HW353ru39iBBLEJY93+0WwP0iVvm6rVO2eTocvs+1wLShPsMrHrHXJwDPBsrfrGq ouelZ4nMk2Al6yymiV7M+bfuPXwukzJBsbPQFXQ2RsRzufI+CUNwTjJLAPmcOEGN kluMX6xHshuhVsCyISD8Fueds01Ut8/HEVv3UigxjIKaqsBaWKJ08ED5Bv+XUyky 2srVHqW5xMUMKByZ1/EjdNaSdR+STN0ibgzMZauxH2Tk1YA/1W4oLT9ZVdqJpy3f mwrabm4b9gZtGGgpLvXyC3BeE32RMjUT6ywceGQbNs4t+aG+/7NMMCuvGO1GGp4x gDf2uWhGHMLhZ4VA== Received: by frisell.zx2c4.com (ZX2C4 Mail Server) with ESMTPSA id 6a893389 (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128:NO) for ; Fri, 27 Apr 2018 15:14:07 +0000 (UTC) Received: by mail-oi0-f48.google.com with SMTP id f63-v6so1953023oic.4 for ; Fri, 27 Apr 2018 08:38:55 -0700 (PDT) X-Gm-Message-State: ALQs6tCn81GWbFUbM7aig1+SQZkAt49K4sOVkM4yEG7zTNRKGoBsQQT3 45V2oxiIpb/r39xOPXL3Ku4Hc5Zj29p6AJ6H9oA= X-Received: by 2002:aca:1c0f:: with SMTP id c15-v6mr1174865oic.243.1524843533241; Fri, 27 Apr 2018 08:38:53 -0700 (PDT) MIME-Version: 1.0 Received: by 10.74.95.155 with HTTP; Fri, 27 Apr 2018 08:38:52 -0700 (PDT) In-Reply-To: <20180427000013.GH5965@thunk.org> References: <20180426050056.GF18803@thunk.org> <20180426073255.GH18803@thunk.org> <20180426192524.GD5965@thunk.org> <2add15cb-2113-0504-a732-81255ea61bf5@gmail.com> <20180426204748.GA7540@gmail.com> <20180427000013.GH5965@thunk.org> From: "Jason A. Donenfeld" Date: Fri, 27 Apr 2018 17:38:52 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Linux messages full of `random: get_random_u32 called from` To: "Theodore Y. Ts'o" , Christian Brauner , Sultan Alsawaf , LKML , Jann Horn Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Ted, Please correct me if I'm wrong, but my present understanding of this is that crng readiness used to be broken, meaning people would have a seeded rng without it actually being seeded. You fixed this bug, and now people are discovering that they don't have crng readiness during a late stage of their init, which is breaking all sorts of entirely reasonable and widely deployed userspaces. You could argue that those userspaces were "only designed for machines that have enough [by what measure?] boot time entropy", but obviously they didn't have that in mind. And now here we have an example of an ordinary x86 machine -- not some weird embedded device -- hitting these issues. I'd suspect that the problem here isn't one that we can exclusively punt onto userspace. Sultan mentioned that his machine actually does trigger large quantities of interrupts. Is it possible that the entropy gathering algorithm has some issues, and Sultan's report points to a real bug here? Considering the crng readiness state hasn't been working until your recent fix, I suspect the actual entropy gathering code probably hasn't prompted too many bug reports, until now that is. Jason