Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp608902ybz; Wed, 15 Apr 2020 15:04:39 -0700 (PDT) X-Google-Smtp-Source: APiQypJ5rmsePimspkJQqzIrnvpRiHr48VHW35Ni1A9v9Gn/ePpE5V4UY3Wrga1E/CgzTR/eQw1L X-Received: by 2002:aa7:c701:: with SMTP id i1mr19875200edq.184.1586988279559; Wed, 15 Apr 2020 15:04:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586988279; cv=none; d=google.com; s=arc-20160816; b=cSko88SeYuXSJ2MqzQaQB9jed+x8+kjZerH3SIYUM5HlmbOtFXOKpavyx+mpl5iWHW 6WCNiYggSFuUuDO7oS49F4QxRhb9zBS/dvoTt9B69eOFIBQIeIpg8GHiDF3iwV4lvdv1 ueaBogxyej4Xhu02OQBALKN91XBhYDL07K/+fm1J19oiX/nW8xxPLzqsYLdqbOUiUHNp DLiErdBHt6HwGsiHb7Yzm6ZII4g2BRfEsEvqFjTgCa1gHm59r5IkhPvIIJ1AKujcMQ+t UPYMMykBp/yZsVlKOTtZTVA8zIS/TcAUeAQ/rAu47DZJqJno9pAEi4J2vTtZJuVfXaqM NATw== 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=jLo/ssJpJiBqS2F6uEtOJNWt991OqiHGHTtxemNpQ6c=; b=Ch3/hFv+bB8oBahw/GicgWhs8AgntfzecYqQoaCTN2Dsm8WbEhvLe7yZc72nGz9QQ+ aX/lfW1NezIQQ/xuBuDMA/RjX9tbKSoa2NBau+Eq8X9SweSfuw73m9QGlYBPI3RUpMDF HZMgnRGFVlwEuHesYTdwwHdQGZp0DxgZ6HALTo8pEUZ/9UJ9JroRGcRTy7QX8U8a3818 8BuUpZ50al5ePWrU58RFZstYPdDqkVLXplZKD1XVx6T7hF2rvtC3+sJPXuFKHXE7xKIl D85W66JELL8UUtm6DLOxYYWEmPPmvOBLM0tobppwGIqer+qsB9CdQvY62o3who4pcMPe CEMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=0K6+eu09; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id b7si5758240eju.8.2020.04.15.15.04.15; Wed, 15 Apr 2020 15:04:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=0K6+eu09; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1729026AbgDODX2 (ORCPT + 99 others); Tue, 14 Apr 2020 23:23:28 -0400 Received: from mail.kernel.org ([198.145.29.99]:37624 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727924AbgDODX2 (ORCPT ); Tue, 14 Apr 2020 23:23:28 -0400 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 C4E902076C; Wed, 15 Apr 2020 03:23:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1586921007; bh=E+A8GbmRdkiChcOTscbAJQjnd5pGOJMNuDZNPxk7gQI=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=0K6+eu09mA4b4Wx8yvMa9i30yk8a4a1FWzBnikHTYAuTjvN9GNyB+1uNW4FFziyrc Jw7OYfxnTK0ZEPbPSRcTyCp2gZkbQVh46FTxNtmcoQbnaNGpHzZHmU60FBJv4TSaYf lANGZhUhbaY2ogdN5qlLEFGKQ/OTJZvBk1gNx8P8= Date: Wed, 15 Apr 2020 12:23:20 +0900 From: Masami Hiramatsu To: Vlastimil Babka Cc: Luis Chamberlain , 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 , Masami Hiramatsu Subject: Re: [PATCH 1/3] kernel/sysctl: support setting sysctl parameters from kernel command line Message-Id: <20200415122320.70668776379706323bbc752e@kernel.org> In-Reply-To: <7585f0b0-c5d2-b527-aac7-eeafdd15ffad@suse.cz> References: <20200330115535.3215-1-vbabka@suse.cz> <20200330115535.3215-2-vbabka@suse.cz> <20200330224422.GX11244@42.do-not-panic.com> <287ac6ae-a898-3e68-c7d8-4c1d17a40db9@suse.cz> <20200402160442.GA11244@42.do-not-panic.com> <202004021017.3A23B759@keescook> <20200402205932.GM11244@42.do-not-panic.com> <202004031654.C4389A04EF@keescook> <20200406140836.GA11244@42.do-not-panic.com> <202004060856.6BC17C5C99@keescook> <20200406170822.GE11244@42.do-not-panic.com> <7585f0b0-c5d2-b527-aac7-eeafdd15ffad@suse.cz> 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 On Tue, 14 Apr 2020 13:25:07 +0200 Vlastimil Babka wrote: > On 4/6/20 7:08 PM, Luis Chamberlain wrote: > > On Mon, Apr 06, 2020 at 08:58:50AM -0700, Kees Cook wrote: > >> On Mon, Apr 06, 2020 at 02:08:36PM +0000, Luis Chamberlain wrote: > >> > > Yes. Doing an internal extension isn't testing the actual code. > >> > > >> > But it would. > >> > > >> > [...] > >> > > I don't think anything is needed for this series. It can be boot tested > >> > > manually. > >> > > >> > Why test it manually when it could be tested automatically with a new kconfig? > >> > >> So, my impression is that adding code to the internals to test the > >> internals isn't a valid test (or at least makes it fragile) because the > >> test would depend on the changes to the internals (or at least depend on > >> non-default non-production CONFIGs). > > > > The *internal* aspect here is an extension to boot params under a > > kconfig which would simply append to it, as if the user would have > > So there's no such kconfig yet to apply boot parameters specified by configure, > right? That would itself be a new feature. Or could we use bootconfig? (CC Masami) Yes, I think you can use bootconfig to add this feature more flexibly. I think your patch is easily modified to use bootconfig. :) Thank you, -- Masami Hiramatsu