Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp577151ybz; Wed, 15 Apr 2020 14:23:49 -0700 (PDT) X-Google-Smtp-Source: APiQypJ67OotxGnzQh6GYTd4XX8BJ4uTz+ADI+Lwu95UawX/3XEg/9ecfJZiDI0ZA9uk6mjbICKE X-Received: by 2002:a50:cf8a:: with SMTP id h10mr8303362edk.142.1586985829223; Wed, 15 Apr 2020 14:23:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586985829; cv=none; d=google.com; s=arc-20160816; b=IYgN+JzBhVmVCuW//DPuDkMhh5ieqQshulxKEG+EOGaM/1X9u9TxReVU/xfmC7bvBp 93ZRo9k2U+uOEdJLJ6lHMBmXjSlqA+hiLlBlqCiOkSgctjAEqjW7LSqV0XQU8uHX8gcv xiCZNLg6YD3sV7W0SYIzLBe9i2jA2EIGkTGz5VN19T/N+TyYiY0D9PqwFM0gzqk4vrs9 CTL8UMPU+BcW+PwZT88YuKEmauhyE6KG9+k8BRAWMu09jJHBQz1S4Ex0hEJGAqcRX/E5 6/3Q+gcJp/DjvgInCyPMHiuZ39vHXsmDekFhTTFY28o9DgVpN5VL9hxg1qIQwmrckKcy vRng== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=j0wHwy9bSkt7NlHa2PExyScwb6WEOd7j8gBdNibzfMc=; b=O98b4KrQDA36+CRFgwYRbeatC97vu1vmTyoJ9Ww74f0gRJ6sy17THr2snWZViMuWHu SO6o2n6ohq0sXZ3mL6Q6fFV7wv4fecYUdtsS2g16k0paiZc0fz663NjP5aPow5yr/TbI 3zTBmD529ZIxSdXfq0ui8BxVLu6FlJY9WwhXvoWXff7MKBGMtn41mUoUxNwMF8Y20ikP vdRmOML7aK8oOKsGmN94DPBhBlANdTRQTjNlZ2YPod/CChZIO0rvUrhzkNUZ8RaYE734 962FaL1vHFaQkvsOIw5okQzt14+hBthHo+l8PFuUx6o2yCHZjpSwd+TB2C4GXJa95V3F NUcg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w11si11479611edf.135.2020.04.15.14.23.25; Wed, 15 Apr 2020 14:23:49 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2439028AbgDNLZM (ORCPT + 99 others); Tue, 14 Apr 2020 07:25:12 -0400 Received: from mx2.suse.de ([195.135.220.15]:44198 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2438988AbgDNLZL (ORCPT ); Tue, 14 Apr 2020 07:25:11 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 053E6AC61; Tue, 14 Apr 2020 11:25:07 +0000 (UTC) Subject: Re: [PATCH 1/3] kernel/sysctl: support setting sysctl parameters from kernel command line To: Luis Chamberlain , Kees Cook Cc: 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 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> From: Vlastimil Babka Message-ID: <7585f0b0-c5d2-b527-aac7-eeafdd15ffad@suse.cz> Date: Tue, 14 Apr 2020 13:25:07 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 MIME-Version: 1.0 In-Reply-To: <20200406170822.GE11244@42.do-not-panic.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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) > added some more params. Since we already have test sysctl params the > only one we'd need to add on the test driver would be a dummy one which > tests the alias, on the second patch. We should have enough sysctls to > already test dummy values. Right. > Nothing else would be needed as the sysctl test driver would just need > to test that the values expected when this is enabled is set. > >> Can you send a patch for what you think this should look like? Perhaps >> I'm not correctly imagining what you're describing? > > I rather get the person involved in the changes to do the testing so > as they're the ones designing the feature. If however it is not clear > what I mean I'm happy to elaborate. > > Vlastimil do you get what I mean? Hopefully :) >> Regardless of testing, I think this series is ready for -mm. > > I'm happy for it to go in provided we at least devise a follow up plan > for testing. Otherwise -- like other things, it won't get done. OK I'll send a v2 and we can discuss the test driver details. I don't want to neglect testing, but also not block the new functionality, in case it means testing means adding another new functionality. Thanks, Vlastimil > Luis >