Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp61592ybe; Wed, 18 Sep 2019 12:59:01 -0700 (PDT) X-Google-Smtp-Source: APXvYqygbNkTt+4rnJygOo8Y8AxIJVbIRHIsndPbwniffFmH23rXnWEPGkrcERBNXL8X7gR1x6K8 X-Received: by 2002:a50:93a4:: with SMTP id o33mr12575245eda.0.1568836741605; Wed, 18 Sep 2019 12:59:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568836741; cv=none; d=google.com; s=arc-20160816; b=hm3CU44dhD582YQAJCthxk+Dc+XEmExKF6pDQodzyhRDCBzjO08evQb/4gZfSoz0Jr UPpw9M6vxpybKy5xsmxCzU5G4LDj/kIDeveaJbDLS1hT18/vppElJklE6VNCLGiCTDRV YZDYi+21owpfiIf+94xrUq8Z9w93fdq2EgdjW1Tq6zH6E5PnovlYInnlY/g5Dt5H3Spq BieJsLTjJ1V6avLUBo6L7X5gTMe7Bt3X26Yu/eNHMdHz0EJclwM54Q4u6/QZ9RDAkBy1 NfNAzUMGV+KRTB/qydwf+iNqhXOBMjHZhZBYQBMUmpaeCL6dCqyo3DGE/o+X6/e4csBW 1rtA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=qvhEddV5arJ7kaE02ns4J/avAB+kinH7CQEi/JKElsk=; b=PFUCO1s01kSseFQF2ANO5Zbb+6C35VsWEOaoI8tL/gbR8V/qRd4UDq4mxkZefOC5H2 9AFLS5oXq/Wxnuyi7dJ+9H6tTY53Ut6XJK7vd7P+YzZIROm3kCUg/1WHPRJ0CbZTZtRd VXTlUbHTSOlZ6qmxkBPCEHv+R4DyQwXv6dtUNlAN+XxtfXhIiEXbkaKfwVeu3H/kmmLe nlx8RvFf7qSehwGJXbrvqhZdXMtEDtGW1UUg5DOU2ePEaWurfp5Bb55GxLmGu5HXApqi 9BraivpFijMSp9P6FvV4yD06Tr9FUm6UnQkrLB5zwV/T4UYO/I5lkX6K6mFxqv6WWE4a oo3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=hyt7b1C+; 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 k9si3251914ejj.256.2019.09.18.12.58.22; Wed, 18 Sep 2019 12:59:01 -0700 (PDT) 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=@linux-foundation.org header.s=google header.b=hyt7b1C+; 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 S1731630AbfIRTjE (ORCPT + 99 others); Wed, 18 Sep 2019 15:39:04 -0400 Received: from mail-lf1-f52.google.com ([209.85.167.52]:42788 "EHLO mail-lf1-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727648AbfIRTjD (ORCPT ); Wed, 18 Sep 2019 15:39:03 -0400 Received: by mail-lf1-f52.google.com with SMTP id c195so520521lfg.9 for ; Wed, 18 Sep 2019 12:39:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=qvhEddV5arJ7kaE02ns4J/avAB+kinH7CQEi/JKElsk=; b=hyt7b1C+ejKMUOkm3wdH5sM3HZ0Yx3jENhtBKmZzMXUDrLLnMX0hYCGd4/JdZv8YEE TyVAlXluZqwjYt7TpfNih3FI/oO6rDGTrPOj8NLmh/zNBX46U2iKHHALvbYoY65a8plv eQvWR+ESaaepqApPmlM6BFf/L6h5y1J1D9bNs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=qvhEddV5arJ7kaE02ns4J/avAB+kinH7CQEi/JKElsk=; b=LcMnf164CuqUqAx0WhQvRioFq3rTVwS8wWzwVuMS0I8nDSRryUEBTzP7ovsK8YpVs5 0UsV0bE6AYShCvt569p2wfSsTHStLl+dIZWYPdV2Kee3fzr+WF+faR2+VmkCvLzoh0i9 mIRnNIE0eSLPCjPr5vmz+5JWITykVmd5196C9tDs9tAGULd53EiEjD4E60sx68WVnWgx dRRqmrXDGWiKLOdygHag65PLc/MFFDp98vqpP6sRb/DrT/xKh+FM+wJ7oTkP25g9ZEwW 8xIe8BJG/mSIysBTZNxoZft7QdfBrBg9JRXZdEE2MtjoURPkD8QSEL/Xmw35nnG2Za3T LgSg== X-Gm-Message-State: APjAAAXhbqUeuasD1OAntfzRifLlaPU5M9gjJ3WOLDppeEoZzFcCt21d 7VzrZ40Xn1J6wXeAGxGQ2IWuexiUK3g= X-Received: by 2002:ac2:4424:: with SMTP id w4mr1379756lfl.65.1568835541105; Wed, 18 Sep 2019 12:39:01 -0700 (PDT) Received: from mail-lj1-f173.google.com (mail-lj1-f173.google.com. [209.85.208.173]) by smtp.gmail.com with ESMTPSA id j22sm1184443lja.4.2019.09.18.12.39.00 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 18 Sep 2019 12:39:00 -0700 (PDT) Received: by mail-lj1-f173.google.com with SMTP id v24so1148147ljj.3 for ; Wed, 18 Sep 2019 12:39:00 -0700 (PDT) X-Received: by 2002:a2e:1208:: with SMTP id t8mr1170191lje.84.1568835100782; Wed, 18 Sep 2019 12:31:40 -0700 (PDT) MIME-Version: 1.0 References: <20190917052438.GA26923@1wt.eu> <2508489.jOnZlRuxVn@merkaba> <20190917121156.GC6762@mit.edu> <20190917123015.sirlkvy335crozmj@debian-stretch-darwi.lab.linutronix.de> <20190917160844.GC31567@gardel-login> <20190917174219.GD31798@gardel-login> <89aeae9d-0bca-2a59-5ce2-1e18f6479936@rasmusvillemoes.dk> In-Reply-To: <89aeae9d-0bca-2a59-5ce2-1e18f6479936@rasmusvillemoes.dk> From: Linus Torvalds Date: Wed, 18 Sep 2019 12:31:24 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Linux 5.3-rc8 To: Rasmus Villemoes Cc: Lennart Poettering , "Ahmed S. Darwish" , "Theodore Y. Ts'o" , Willy Tarreau , Matthew Garrett , Vito Caputo , Andreas Dilger , Jan Kara , Ray Strode , William Jon McCann , "Alexander E. Patrakov" , zhangjs , linux-ext4@vger.kernel.org, lkml Content-Type: text/plain; charset="UTF-8" Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Wed, Sep 18, 2019 at 2:33 AM Rasmus Villemoes wrote: > > And unrelated to the non-use of the RTC (which I agree seems weird), but > because there's no better place in this thread: How "random" is the > contents of RAM after boot? It varies all over the place. Some machines will most definitely clear it at each boot. Others will clear it on cold boots but not warm boots. Yet other environments never clear it at all, or leave it with odd patterns. So it _could_ be useful as added input to the initial random state, but it equally well might be totally pointless. It's really hard to even guess. There would be nothing wrong by trying to do add_device_randomness() from some unused-at-boot memory area, but it's unclear what memory area you should even attempt to use. Certainly not beginning of RAM or end of RAM, which are both special and more likely to have been used by the boot sequence even if it is then marked as unused in the memory maps. And if you do it, it's not clear it will add any noise at all. It _might_. But it might equally well not. Linus