Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp3554505ybb; Tue, 31 Mar 2020 07:33:49 -0700 (PDT) X-Google-Smtp-Source: ADFU+vvgpPU4M9GWEzdqrnu/e+BiKBsD2dLjQKrmuxe1qEeD8zfey3KNGmy/3sXmL0MMdxr3PTgQ X-Received: by 2002:aca:d7c3:: with SMTP id o186mr2322188oig.147.1585665228992; Tue, 31 Mar 2020 07:33:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585665228; cv=none; d=google.com; s=arc-20160816; b=O3ym8enOTQlytxDJ2KHikr/qN4o7P64ZdeT30Pzj9BzfYLs6WKJzPmmOktTpjwvu18 bnNBQzDFrrpW1Dky2iPGWDcBt/3zcwD5BzSoABd00aaUvk1s6TtcrLC9zMeCKO8Xk6UB B/z74CC9rTU90EssDD6kHE4GXxxLsKk1pqx0ZOoQyjQs8AtHg2FrBc7MXxW2sMPBdW9q N3nLsy0B/UiuhZjCQ4YPNDSGmhT451fsNo4eic72SVE7ChxE/2u+Y2NvCkphp6/x8AgQ rCummCjQgoDGT1dUuqfvfatcTOPBd+GczDA0T0GYMp3tNpP+YCs2aiAT4vmTyvzKYlz2 EKMw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=ZV1KfwgGLtoEiy3TkAg/zZ6KIB+b40AZeOP0Q0XHWHU=; b=TxCxewREJNBRYrwEOFVMms7j/b9YpZPgwReyCKPsSFh3c3XJrShgs4o3smUfPuf/lh OHtGQ6C6vZmXeap94n6JjG6NGWH9DCxiJK5ARAJq70pcLNMYRiPr26UBHC2DcMVC/PNE 08cDmeutqnIeCi4F3ei0nusvO+MZvIqi7pe2cq9dfwQe89FNaC3tzAtjeXRxjUSlbgXm 11wdGGUgdPupC76FOAVsDohjaF+9uOTbQ6xFFFwr4CDT6eiP6IPXRv6xnvD2vKuPzOYb /ZLfTpdWcYjcZALO3gK8JDMT4pbxjjC2N/6QaWYetcfsKgyGOunbuHFVQdd/p7cZ59nf fxWQ== 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; dmarc=fail (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 m12si7518846ooe.71.2020.03.31.07.33.35; Tue, 31 Mar 2020 07:33:48 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731054AbgCaObk (ORCPT + 99 others); Tue, 31 Mar 2020 10:31:40 -0400 Received: from mail-pf1-f196.google.com ([209.85.210.196]:42322 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730810AbgCaObk (ORCPT ); Tue, 31 Mar 2020 10:31:40 -0400 Received: by mail-pf1-f196.google.com with SMTP id 22so10398519pfa.9; Tue, 31 Mar 2020 07:31:39 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=ZV1KfwgGLtoEiy3TkAg/zZ6KIB+b40AZeOP0Q0XHWHU=; b=V/ckHBGkUv+faIurBZm6aWkZw8kSgZv/W32v4KnRdHa3ae4XdBHYzRPzrKlm7N82wq 6tazVl/vkU+thJE5va34cOiRLqXI+R3LequulATdCwnwje5A/mPVtrJnOyq4p3pf+N9S 6uWJsnj/KTpQ1pK/7N4Q+NxBYqFyKHZkQdcOF0mhY4JoKZyZWXFW2Ndgx2WFDfwdP7BJ MWVTD+PhVu28Po06FEONOF8zzI2Aj4+b5+JgzeW01tA5XH5tqXtmeLUAUSeVh5znX8tv nuwpsyj7NAZxrbSl1bRHfMPNFXEo8WFUJSSR/58GUmp2BhDV82HXg3nLf+31df9865qf SKrg== X-Gm-Message-State: ANhLgQ32zP88vMIDbn+syR3TVqKLMyTETGr3z6aXJ7+BTrJztNOUYEjX VrYUXRNssY1JKm3NBQ5+tmA= X-Received: by 2002:a63:7e10:: with SMTP id z16mr18195431pgc.412.1585665098929; Tue, 31 Mar 2020 07:31:38 -0700 (PDT) Received: from 42.do-not-panic.com (42.do-not-panic.com. [157.230.128.187]) by smtp.gmail.com with ESMTPSA id 184sm469375pge.71.2020.03.31.07.31.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 31 Mar 2020 07:31:35 -0700 (PDT) Received: by 42.do-not-panic.com (Postfix, from userid 1000) id 0DA0940277; Tue, 31 Mar 2020 14:31:35 +0000 (UTC) Date: Tue, 31 Mar 2020 14:31:35 +0000 From: Luis Chamberlain To: Vlastimil Babka Cc: Kees Cook , Iurii Zaikin , linux-kernel@vger.kernel.org, linux-api@vger.kernel.org, linux-mm@kvack.org, Ivan Teterevkov , Michal Hocko , David Rientjes , Matthew Wilcox , "Eric W . Biederman" , "Guilherme G . Piccoli" , Alexey Dobriyan , Thomas Gleixner , Greg Kroah-Hartman , Christian Brauner Subject: Re: [PATCH 1/3] kernel/sysctl: support setting sysctl parameters from kernel command line Message-ID: <20200331143134.GY11244@42.do-not-panic.com> References: <20200330115535.3215-1-vbabka@suse.cz> <20200330115535.3215-2-vbabka@suse.cz> <20200330224422.GX11244@42.do-not-panic.com> <8146e3d0-89c3-7f79-f786-084c58282c85@suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <8146e3d0-89c3-7f79-f786-084c58282c85@suse.cz> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 31, 2020 at 09:42:46AM +0200, Vlastimil Babka wrote: > On 3/31/20 12:44 AM, Luis Chamberlain wrote: > > > > This is wonderful when we think about existing sysctls which have > > corresponding silly boot params that do the same thing. However, shoving > > a boot param capability down every possible built-in sysctl brings > > forward support considerations we should take serious, as this would > > add a new user interface and we'll have to support it. > > Hmm, if I boot with an initramfs with init process that does mount /proc and set > some sysctl there as the very first thing, then this will be almost the same > moment as my patch does it. There is no further kernel initialization in > between. So with your logic we already do support all non-modular sysctls to be > set so early. Yes, true. Then by all means: Reviewed-by: Luis Chamberlain Luis