Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp439709ybv; Thu, 13 Feb 2020 03:26:15 -0800 (PST) X-Google-Smtp-Source: APXvYqy7enHR+P03VKze690yZR/2aXlsDIajbk8hb2bdCZamQlpE5jVJLTikbEHqyge+x8ZZpm4a X-Received: by 2002:a9d:51ca:: with SMTP id d10mr12841430oth.76.1581593175741; Thu, 13 Feb 2020 03:26:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581593175; cv=none; d=google.com; s=arc-20160816; b=svgDWkfFkGmZPqfb+8PlNT0jCdgEhXhl3WBmxKRhwkzG8FvvO7NKBlKUv35U9ILjVi iqiWRBTGAuQrDbGPuwiRLLJNHqVLf/kre7wV/wHEQdZYHKGy9bgA3FBbt5txBS9nTAxT Ik+DXoMuEYvaaHHon8ZLEG4LXf0/kIQWi8Ci7EXwJMFFuCK3T9DJJsMUh6tC6XGDnT8g IKVg91ZRezDN33ZWY/0y9lghtEs2bbIb7q3k1nCa5lZYqYsjUE+o5qU/EdagWSd1bhr8 w0lj4EDNV4M2Er/VB6X5yALyDL6H7bjbdcyBUkqUtjWV8Xy1omWa1PPmDRIf/b/a+qJB 6PrQ== 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:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=lZmRUhv6qhwtM/TAuvDR5SU8FsvqkY+m6DvfCFUjFac=; b=EQboCnzZE0q2Jdca4HEV7XX4nl79Aj4/hT0QXHAfjv/DNf/YgZTu5jjiI0a/nsVEIr IlbJXYulXHgCoO3em0xfHcMOmlfWOXWL7uXBRcuKqC16/ItadfWnnMh1cV9HX0sE3Paa K5LGFG7kztip2j7Bzxp3c01UEomOFExN31taCc3rI9XK3W1YJ3HqUYe3iQj41VweoPmh OWm5TMvLXAcDF9VE9NwDIbj6QT2V+BS6siU8KV/KWsQr4ZSZ5+tSIDq4WvdweSkqF+Cl reWfV7PUQEyMjPDE5rZg7OJsgyJK9j54JEChiin9gDpiy9xraN44bPOqsC8Udkzz+XHF B4Iw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="IaWD/klx"; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u79si1145999oia.11.2020.02.13.03.26.02; Thu, 13 Feb 2020 03:26:15 -0800 (PST) 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=@kernel.org header.s=default header.b="IaWD/klx"; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729588AbgBMLZC (ORCPT + 99 others); Thu, 13 Feb 2020 06:25:02 -0500 Received: from mail.kernel.org ([198.145.29.99]:46774 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729428AbgBMLZC (ORCPT ); Thu, 13 Feb 2020 06:25:02 -0500 Received: from devnote2 (NE2965lan1.rev.em-net.ne.jp [210.141.244.193]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 77BEA2073C; Thu, 13 Feb 2020 11:24:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1581593101; bh=u89RHGxbm9J5ipnJ2KrUaoYIGThv2G7lF8zGF6Beppk=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=IaWD/klxAnWV6lF4Cy+Rne9otNMrgt2GLA+FMZLnyrBVczVf+28JPuV5cZiQnGwbc 1HkL4xhMzJVhlee33uIiEB4XnqW3nato4XVe7JwC+kCDJg3uIr73rreQJ6Y9olfJ10 k+ujksx5S6FonNv7BA4aaXNo5QkqkrB5znZW+5kg= Date: Thu, 13 Feb 2020 20:24:54 +0900 From: Masami Hiramatsu To: Steven Rostedt Cc: "Theodore Y. Ts'o" , Mark Salyzyn , linux-kernel@vger.kernel.org, kernel-team@android.com, Arnd Bergmann , Greg Kroah-Hartman , Richard Henderson , Mark Brown , Kees Cook , Hsin-Yi Wang , Vasily Gorbik , Andrew Morton , Masami Hiramatsu , Mike Rapoport , Arvind Sankar , Dominik Brodowski , Thomas Gleixner , Alexander Potapenko Subject: Re: [PATCH] random: add rng-seed= command line option Message-Id: <20200213202454.f1bb0e65ccc429bde039111b@kernel.org> In-Reply-To: <20200207195326.0344ef82@oasis.local.home> References: <20200207150809.19329-1-salyzyn@android.com> <20200207155828.GB122530@mit.edu> <20200208004922.GE122530@mit.edu> <20200207195326.0344ef82@oasis.local.home> X-Mailer: Sylpheed 3.5.1 (GTK+ 2.24.32; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Fri, 7 Feb 2020 19:53:26 -0500 Steven Rostedt wrote: > On Fri, 7 Feb 2020 19:49:22 -0500 > "Theodore Y. Ts'o" wrote: > > > > My preference would be to pass in the random seed *not* on the > > command-line at all, but as a separate parameter which is passed to > > the bootloader, just as we pass in the device-tree, the initrd and the > > command-line as separate things. The problem is that how we pass in > > extra boot parameters is architecture specific, and how we might do it > > for x86 is different than for arm64. So yeah, it's a bit more > > inconvenient to do things that way; but I think it's also much > > cleaner. > > Hmm, if the boot loader could add on to the bootconfig that Masami just > added, then it could add some "random" seed for each boot! The > bootconfig is just an appended file at the end of the initrd. Yeah, it is easy to add bootconfig support to a bootloader. It can add a entropy number as "rng.seed=XXX" text after initrd image with size and checksum. That is architecutre independent way to pass such hidden parameter. (hidden key must be filtered out when printing out the /proc/bootconfig, but that is very easy too, just need a strncmp) Thank you, -- Masami Hiramatsu