From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.2 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_2 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2C06AC2BA83 for ; Fri, 7 Feb 2020 17:47:49 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 1114121775 for ; Fri, 7 Feb 2020 17:47:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727123AbgBGRrs (ORCPT ); Fri, 7 Feb 2020 12:47:48 -0500 Received: from mail.kernel.org ([198.145.29.99]:37610 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726900AbgBGRrs (ORCPT ); Fri, 7 Feb 2020 12:47:48 -0500 Received: from oasis.local.home (unknown [12.174.139.122]) (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 1C8C021741; Fri, 7 Feb 2020 17:47:46 +0000 (UTC) Date: Fri, 7 Feb 2020 12:47:44 -0500 From: Steven Rostedt To: Kees Cook Cc: Mark Salyzyn , linux-kernel@vger.kernel.org, kernel-team@android.com, Theodore Ts'o , Arnd Bergmann , Greg Kroah-Hartman , Richard Henderson , Mark Brown , 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: <20200207124744.08a2f4d5@oasis.local.home> In-Reply-To: <202002070850.BD92BDCA@keescook> References: <20200207150809.19329-1-salyzyn@android.com> <202002070850.BD92BDCA@keescook> X-Mailer: Claws Mail 3.17.3 (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 On Fri, 7 Feb 2020 09:28:27 -0800 Kees Cook wrote: > > static void __init setup_command_line(char *command_line) > > { > > size_t len, xlen = 0, ilen = 0; > > + static const char argsep_str[] __initconst = " -- "; > > + static const char alloc_fail_msg[] __initconst = > > + "%s: Failed to allocate %zu bytes\n"; > > There's some refactoring in this patch unrelated to the seed logic. Can > you split that out? (I think these changes are good.) > > > > > if (extra_command_line) > > xlen = strlen(extra_command_line); > > Unrelated note: whoa this is based on linux-next which has a massive > change to the boot command line handling and appears to be doing some > bad things. I need to go find that thread... This would be Masami's bootconfig work which Linus already pulled in. What bad things are there? You can see the thread here: http://lore.kernel.org/r/157867220019.17873.13377985653744804396.stgit@devnote2 http://lore.kernel.org/r/CAHk-=wjfjO+h6bQzrTf=YCZA53Y3EDyAs3Z4gEsT7icA3u_Psw@mail.gmail.com -- Steve