Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp3761379ybb; Tue, 31 Mar 2020 11:27:40 -0700 (PDT) X-Google-Smtp-Source: ADFU+vvVfwshFZZ0WiB1TRfekL6MYlz+cwP6WaremsDabeN5ANi+V/fz9BwoCVL5guJ7FuQP3mO+ X-Received: by 2002:a05:6830:4025:: with SMTP id i5mr14686145ots.203.1585679260328; Tue, 31 Mar 2020 11:27:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585679260; cv=none; d=google.com; s=arc-20160816; b=g62wM0qDlrRump/eewW1BHUA6zEqQ3U+7GQWfbeYEA4Hk3hZcsVoNRWqMgf7b7/xj9 cSn5g4R8xiqz7OVGrnuEfBTu8iqEOUNwu9gsGXGznZEYYsTBPzud/XdaZCjTzUy6xR1c QGlFSfUN0MxCIepmYs7fhuxLui+mLXtptaaiZXGhxHu39dowya5t+zJW+sTWqMVdd5NJ QgzSj+Ta5ZAnDW8KtOo9YDw+Vq4Hr8+b/7o78ioUlbPGTS6n6uHrcnjDZP1U4+sayYnq 9dlthtT0qbG9m21zbjivEUwlbJw23iRLYmCn9GU3EI2ZmYLMr/z9BZ8Jzp8bzYGu9rQt 1sLA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=64CGxkVCN+tpcc5h0TLuNJ8a0+sAEqYpYu5ixxZ2mkg=; b=lBvpX0PPGCH4aAhWYH1FyslLUz6X3y+EUiHV45fgzAkcjkrp5fqkbctVdTCKSNJKMh Ipzv/5O0+MHbODt5fhz6Iooh2r8OtgzrCCJnMlTOmiUGWEZGb7SZNcKUsfYTDBMGUet9 PcJ3LhnHtRcgCzG4ea4VIPob0o2NMrwvefumHL7x7266qT21ztffSd51S3tkf1joDnG7 QjwFXQ88EAhc2/B6d1VA/I6R1XuZE+0voqvgjfEac70g8KbqBh4nrvsTsjxm10j2ZQQ7 XrxIV+nFbfetZeRwhZIErH1QSauozR/NnKYU+01gzdJzLfOc6JJrrQC5fxDi16F06noY mFuA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=LPlrAqLP; 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=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w15si6002139otl.260.2020.03.31.11.27.28; Tue, 31 Mar 2020 11:27:40 -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; dkim=pass header.i=@chromium.org header.s=google header.b=LPlrAqLP; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727020AbgCaS0z (ORCPT + 99 others); Tue, 31 Mar 2020 14:26:55 -0400 Received: from mail-pj1-f67.google.com ([209.85.216.67]:53247 "EHLO mail-pj1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726000AbgCaS0y (ORCPT ); Tue, 31 Mar 2020 14:26:54 -0400 Received: by mail-pj1-f67.google.com with SMTP id ng8so1431095pjb.2 for ; Tue, 31 Mar 2020 11:26:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=64CGxkVCN+tpcc5h0TLuNJ8a0+sAEqYpYu5ixxZ2mkg=; b=LPlrAqLP/r1SwN4Ni33l2KQkmUbmZQ5e2B8/T0hekORvqd7ZHsRdfVBuFJ+71qMGlI iNcSc7h4BDQPrR6lBAbeSfC2UjMpqitCX+rfJozQiFTo44sIVa9v3gYfOM6/hxSNwtAc SVRlyESM7ogE4R8gp9eKC7Bd4vn/+TDLdg1jM= 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; bh=64CGxkVCN+tpcc5h0TLuNJ8a0+sAEqYpYu5ixxZ2mkg=; b=WBB7acxBYBls+SyKNGlTGcjsfhxV0eLN/qoKJ3uk92UxTyuWBuTYQHXGq/VGkRaRZR DqCOcfVtyGNIpqO1aBh861UPoX17X4d8gzHOYUVqnAyfvYH5ryXj6Woz7OT+vm734Yh0 wiV1miaX11uByNhaAs9iUpGqJHMlcGiL2IPzoN0qIqn8JCxWP4KUSBEg5jkswBbmHsy3 O8kqmV2WO2v0sZ+9AravoJFpFM8TnGTHMVdgMDgDP07NRVS7P36rJ1Wv7rwKbcYS38ml RXc3XubUy8kkrj8+QHHl0neDqpniMUWOGWcEbXAtjBkXeJNGk6xfvPHZ49ZQuK74nbSG dWtw== X-Gm-Message-State: AGi0Pua5thXRA9XbvPJ4dMUEkljipIqfgud+BmOpHkRA7FteSFeSw76b csP7y0G3GgaSbWsmcp6+OxLG7w== X-Received: by 2002:a17:90a:3606:: with SMTP id s6mr172866pjb.195.1585679213559; Tue, 31 Mar 2020 11:26:53 -0700 (PDT) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id r9sm8228895pfg.2.2020.03.31.11.26.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 31 Mar 2020 11:26:52 -0700 (PDT) Date: Tue, 31 Mar 2020 11:26:51 -0700 From: Kees Cook To: Michal Hocko Cc: Vlastimil Babka , Luis Chamberlain , Iurii Zaikin , linux-kernel@vger.kernel.org, linux-api@vger.kernel.org, linux-mm@kvack.org, Ivan Teterevkov , 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: <202003311125.939F851A6@keescook> 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> <20200331074836.GB30449@dhcp22.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200331074836.GB30449@dhcp22.suse.cz> 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:48:36AM +0200, Michal Hocko wrote: > On Tue 31-03-20 09:42:46, Vlastimil Babka wrote: > [...] > > > Should we not do this, we'll have to live with the consequences of > > > supporting the full swoop of sysctls are boot params, whatever > > > consequences those may be. > > > > Of course when the first user tries to set some particular sysctl as boot param > > and finds and reports it doesn't work as intended, then it can be fixed or > > blacklisted and it can't break anyone else? > > Absolutely agreed. I would be really careful to not overengineer this > whole thing. Right -- this is supposed to be _simple_, and I think that's the primary benefit here. If we encounter problems we can fix those cases. The careful place, I think, needs to be with converting existing boot params to be aliases. That's when timing considerations need to be taken into account carefully. -- Kees Cook