Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp862041ybv; Fri, 7 Feb 2020 09:49:25 -0800 (PST) X-Google-Smtp-Source: APXvYqwumpsZ1gu3JKu+H9XDedu9UyAGxtTKcia5e5Qtzs3PK2uh/8JOWmCSHUWTbeyZKJpSTAld X-Received: by 2002:a05:6808:319:: with SMTP id i25mr2890175oie.128.1581097765698; Fri, 07 Feb 2020 09:49:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581097765; cv=none; d=google.com; s=arc-20160816; b=iaB7Mqy96U7a5Irj1jdHu61hMYAET0+1tsXoxNlnCuMfOOb62myim3pFyYr4Ykid38 iSkprr2Np9OEEklVLG2Q/YNLB/pLo7M4qCA5jm9mz2/kHiL51HI9Vxxmxu9XeL7aQVXM FrnEDAviln8R+MprlhZgNvOr9pUBhobYPjd9p/qcQSuz3cIVv2ruPyyiQaxKqhrYfRBI sNaMPBB6lLhXOrC/XWjwgabt4wA3X8UaHc25tFuqeAI9E0RVKib89NFF4C9ER9Y9Wad2 ADLsTjqxk/r2YQioDY12vkMoTKpLIMqnmQqgoZazNGlTfv08Y2AXJ4gheHwdqvD2xiuQ YQpw== 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; bh=M58dL8a8Kl/uyigc4q1hKRpWQyD0fEO53hEVXQqFs5Y=; b=AIMToHQrOYtJmK4O38Xj7Qr5+E+6G36GOeDewn5Sh59LBNiGam7xr5gIviaYta/ywv fhG+Rpn3z3SQDUORC0AQWvhBtCTqoyuYiHIv8uRy/lFLNp4cFD6tCmVTvzy8LGlk2Kfm SUCHFQB0M8IcqYY1L5iF2GnOxjkl4ie/zzHFpEhRp/Sv3TtSBco/TnJpMrwLnZqqb2YH YDQLYXkXwCQHrepwnwi4PVIXFMPAKunI3+zHv8mr3i7tbmux7dmfaeQs1ftJm773FNV7 me0BV5hVmygwq1XZQ8a/XE9pBtGqpr166XVjZwj6PzzxXGMdkoCUusNGx88mr7cpwgH4 tbCA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m4si1969592otr.268.2020.02.07.09.49.13; Fri, 07 Feb 2020 09:49:25 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727075AbgBGRrs (ORCPT + 99 others); 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