Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp3441904ybb; Mon, 6 Apr 2020 09:01:10 -0700 (PDT) X-Google-Smtp-Source: APiQypJYVmZu58EcuGfBnhamCFheiTHjWRLskyD1idrJShFlhkwYwjYoU2AgVf25WoxDB/CEnXe6 X-Received: by 2002:a9d:7a9:: with SMTP id 38mr17937270oto.60.1586188870001; Mon, 06 Apr 2020 09:01:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586188869; cv=none; d=google.com; s=arc-20160816; b=CGpFhsWjZLQTMVT4ajZLP6Lzw9psFvFivqIW3QJ9AIQyrIBia5fhTgVV61ergTe6m8 lWxS/PuYyk7QxLUN8EXs+9tnIyJOXLIclTHXctfuopN4zboWcSochHDbBctuSOjgTElv d/q7lVwB+SYWyO4tC5eQ2iCOgWirCPM+qJIg9P5YR5pwBeO6thO6soVP8N+sWIS4p8W3 EhiLRP30bdGZby0cWDiom/uAxlkVBAOqj2zUF3NdAwphk+oIcJIDQ2x4+3sbJkh0k1RS 00jiAk8vMLyinbOe/B2EPlbkeVEufbH5OrPbRPA6rDLFoLiAiw7wgNeMKJG/7cAhG9sh fWSw== 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=WhhzEvhj7V6SaqGfbxM9gAfOTnFcEdBBvYMHzIDChN4=; b=Hyja6Wd9ZxPYCvLOoyba3vi1BUQVPR4Hf69RYqraMY8Kb8qQ/FqXVxEGMyStsCYDpS uNe8o4iVVTqeY4oRKRGZGOFURDyo0/jArmOsIkzRq4Ng1kLg9bLX4fNIIGbkbIl9nC9F esbYp8A2rbbCpTfcLVVWu1HNkxSO5/U3GQYZRkyW3hQEQklPsqmCAw2w7Ei6+FbPiXH0 F6YXrbreSbCVRiXAt5hGXiRbVxcAuy/WrGbXXxt0sgvD+hat+tPYotKMl3ZDFi8yW7hS TSWMt0kpawAfRHzBNw+12ksV8YE04TXH3UWxb/63VAPf/JkcVzLVRmZ7eW42wxx6AdbC 0uag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=LmMhIiHB; 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 s13si8339271otg.35.2020.04.06.09.00.54; Mon, 06 Apr 2020 09:01:09 -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=LmMhIiHB; 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 S1729258AbgDFP6z (ORCPT + 99 others); Mon, 6 Apr 2020 11:58:55 -0400 Received: from mail-pl1-f193.google.com ([209.85.214.193]:40710 "EHLO mail-pl1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729202AbgDFP6z (ORCPT ); Mon, 6 Apr 2020 11:58:55 -0400 Received: by mail-pl1-f193.google.com with SMTP id h11so6079141plk.7 for ; Mon, 06 Apr 2020 08:58:53 -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=WhhzEvhj7V6SaqGfbxM9gAfOTnFcEdBBvYMHzIDChN4=; b=LmMhIiHBv8JKUwBK1L17Slsqu3pI1ZCj3WAAiYxR/QFR1qVVAz4IYPwxfWMPMZ7zXm 9Wax7svqkeAr2xHTEIyNbAJ/iUo4weccl0+nxbm3QSdyRtI1nG9no3Rpx1h0oKuXEq2s oLCH+OVR+6Db2zO7UsCV6KbjY1WiOXXI8xjXQ= 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=WhhzEvhj7V6SaqGfbxM9gAfOTnFcEdBBvYMHzIDChN4=; b=UsxkLupsopQywb+dzz4gzaZRrEynRqEGYoHYN8TqTSYqRliUmdE7yHEEDdtw1rgJSM on/ZkTw6uc1LzEagxeQ+KmWlKN3isIDclcaC4Ak8TdOwCMVt9Yy4u6aLLqCvjR8oi0GL TofXBngQ2q2SHdn01VFIlMTd/1PhVqiLEU+2utW8LAdsgRpeVuYYr2In+hEr/zKqC+Gr +PS0qOquceTHUUGS7MOeOM7MZ7AHfta+vndQrwAR8y54BIyMS2LgH4qDU8dZ2i6ttz+M TdcsYkO9xOg9lXLg07XJs5jUE9UoJE2bYOCL6eAmyQ4BsgG777lmfMSGSPGtuQc/M9Z3 I3VQ== X-Gm-Message-State: AGi0PuYppslLuYww8rKbK5FQ4QXZkPSXXLYMpxwJX4W+GRehIiq2dEHN 8oCw38ZFAKeA7NyHPSbBk0h++A== X-Received: by 2002:a17:902:7203:: with SMTP id ba3mr20816991plb.37.1586188732549; Mon, 06 Apr 2020 08:58:52 -0700 (PDT) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id r64sm24942pjb.15.2020.04.06.08.58.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Apr 2020 08:58:51 -0700 (PDT) Date: Mon, 6 Apr 2020 08:58:50 -0700 From: Kees Cook To: Luis Chamberlain Cc: Vlastimil Babka , 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: <202004060856.6BC17C5C99@keescook> 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200406140836.GA11244@42.do-not-panic.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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). Can you send a patch for what you think this should look like? Perhaps I'm not correctly imagining what you're describing? Regardless of testing, I think this series is ready for -mm. -- Kees Cook