Received: by 2002:ab2:6991:0:b0:1f7:f6c3:9cb1 with SMTP id v17csp642640lqo; Wed, 8 May 2024 10:12:04 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXx4OPymy6AM4P1OsOifpu4+6/KaLxRlckjS7xQMDaMyWNhgKr/C6Dus9I2PbWjlQ63bd/5FVfMVRQpge4Zoc+B46PVdjLPVdz7UBwrfQ== X-Google-Smtp-Source: AGHT+IETh5URhOYibVMQ9bkxGpWliBUKMDLuSd7ZrmHn6n+QE1fDJDbYHBVqX0AxZl4lcIsUlAP8 X-Received: by 2002:a17:903:2292:b0:1e9:4f9:8478 with SMTP id d9443c01a7336-1eeb05a1705mr40080635ad.42.1715188324192; Wed, 08 May 2024 10:12:04 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715188324; cv=pass; d=google.com; s=arc-20160816; b=SO8pHKe37Udw502wAM1t2nyMncMZrowmoLRakVv4mNYiqASbDc1ixLV30niwQoCPRG nF4St5ETE15MvWBEqP7GgGhBxJDp6iYryXNNXx0hIeWxrgAGkGt1eZetTh/qmEcP070o SvVPmYP6L475O0aGezT7j+3AqeQkUOZ/8SucLArLTSbAAkAfpNZKMpUx3Rgf+nD+z79H 5qwDgvjxVNanNMf7ijumFsoupR4j7F9A5KYiEUGN+JFIQ+tW7CVXWpn/cSBFSTxxH+yQ ijjHuXRxqYkWGAYCtjs2gJ3OMvITt6nUBGfGfthU1hV4v8UeVkAr3X2/4EP6Er3FOT0C FKaQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=tSmrj41Qt+Se2fdGi7WeozvVj6AfH//AS3pb2zkquGg=; fh=bOjTS/YZvGe7OH6tVrYtpqb24QOADAItRGi2hmZ+Wrw=; b=T9EpR1CqhvJBcyL9ljL+D06sYJ/rFj2kHMGa+9pNYiiJdB+6NvL+73A2K4Y8/SEvt1 Sio5PBYx8D2ce1o3x/GBqfwUGQO7X+gwFewqup7vGa0X8OYI9x3+o7Dal3wvk8+CN1UG UkY1kH2/8TocLSOmsQMp75KL2hE4ziyYTNtGJtA72OM3NZBmIXT8K4zlOKF6awn+e8q2 5QD4CrtoWkoPMTzYMyLjPmXLShKX9BpKsFnyKlq79qGuQmkCop5RePO1mSQvH3Fy4Lz7 ip8i3OyjAC1P/OWpWt+oxuHvPfmZQmkfAP+eXQu4NIhx24CTplN2txZ0NhooBmzBfPCf bYYg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="e/7av/64"; arc=pass (i=1 spf=pass spfdomain=chromium.org dkim=pass dkdomain=chromium.org dmarc=pass fromdomain=chromium.org); spf=pass (google.com: domain of linux-nfs+bounces-3210-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-nfs+bounces-3210-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id b4-20020a170902d50400b001e23ce121cbsi13353624plg.610.2024.05.08.10.12.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 May 2024 10:12:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs+bounces-3210-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="e/7av/64"; arc=pass (i=1 spf=pass spfdomain=chromium.org dkim=pass dkdomain=chromium.org dmarc=pass fromdomain=chromium.org); spf=pass (google.com: domain of linux-nfs+bounces-3210-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-nfs+bounces-3210-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 3CCA9284D41 for ; Wed, 8 May 2024 17:12:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8650512AAD1; Wed, 8 May 2024 17:11:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="e/7av/64" X-Original-To: linux-nfs@vger.kernel.org Received: from mail-pf1-f176.google.com (mail-pf1-f176.google.com [209.85.210.176]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AD5EA2E401 for ; Wed, 8 May 2024 17:11:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.176 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715188300; cv=none; b=uNURUrES1SKoVFAYHLHBTKRKjg15Bk4fEG2MxOjpWx55Cewq2TQhyK7E/sYQx3tQNbwqtXZAxd9tJDRZnf9Xy4BLvW4Q7n0BDehnraxHcsR8fWIBfttTfh+4HpVuHqyfXNqBDptyExh4Z7spVP2LrfpI47gg3aAA4gdoXl47kZo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715188300; c=relaxed/simple; bh=3H2Ex21607oQUraLy4a6ZebeomrW6qImqDFNkYN7KH4=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=hdW/B/ljd1F8YmV1XAVcCfguoE7zoTU9yZR5TRUsqMyJOg+ETq/+qxQ6PeA1wJ3570m0Q/nHBjiCM8noODBhPTQowV6BgqKlsjTmYr/cZ5gAyPbPE8Tgw61V2XVuTodJmR459TpPQIYyhCuvHLuruVreeNBJrAHdSonb3xNlfTw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org; spf=pass smtp.mailfrom=chromium.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b=e/7av/64; arc=none smtp.client-ip=209.85.210.176 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=chromium.org Received: by mail-pf1-f176.google.com with SMTP id d2e1a72fcca58-6f489e64eb3so18478b3a.1 for ; Wed, 08 May 2024 10:11:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1715188297; x=1715793097; darn=vger.kernel.org; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=tSmrj41Qt+Se2fdGi7WeozvVj6AfH//AS3pb2zkquGg=; b=e/7av/64Dcgf3OMhlc/3aG68Cv9i0FKAXx1yap6cSbdW0nsJbcNd95Yo1lRWM4CXEO StJJA023SDun4hdxa5p+ZL91TWCTjhJqbT/I8537Y89y8wwXzIEuISflNf2v2IqVxAlb rwDXFcNsSy0ds4FxqMQiDgXwqp7u78CH/UbW0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715188297; x=1715793097; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=tSmrj41Qt+Se2fdGi7WeozvVj6AfH//AS3pb2zkquGg=; b=eFH4Jg39iyZGtVEjfuu1kOOCssHMKT/QKBM9qw1cbS1m1Xmx7hgVtT9iP5AmbQ60G7 Honsoy1Cx/GAuQddGysCc1a2vtRGoV5xT1Z9nfTDEg0qMD3CfRC/nQVW3A4lyNruKJan Jr/cf5IUQpEvOLLUwBGaj0XxU4Z6tGb8lkNttZ0iU+GHOi0P0Cz2ifFMmnVqfu233sNX nGUNAXg0hKsJEDGJIM3WUMr5OyvtOrC2QR+AnM6+zReJ5CYv4wIPNsesjS/2ei/Fy76f Grkvlac6tQB5dvC42MUrAQNpbemnO5BCZTVcAVwgV5UUosRgWXJZqD8l9Y6dt9aYvKTr ltwg== X-Forwarded-Encrypted: i=1; AJvYcCU2XaxCvjsgY+GukpdccWEvcJWCjcgyz+waGSxR0bDY0PA4wHOKfWBeVgf+V3TJgwXz+R+MTJD0qGf3FKrawfLYkuDXz/dUBN0t X-Gm-Message-State: AOJu0Yy11e6GiVL6MZMwAV+dw8i0vQyYxw44jpRSp8RXEmnALreCPHwn rZwn4IfXjR/tfS5sqjOV8DefVh2C/g2IovSSel3LKY4yawhXPtM0Bj+7izixpw== X-Received: by 2002:a05:6a20:c88b:b0:1a5:6a85:8ce9 with SMTP id adf61e73a8af0-1afc8d1b02amr3543639637.12.1715188296881; Wed, 08 May 2024 10:11:36 -0700 (PDT) Received: from www.outflux.net ([198.0.35.241]) by smtp.gmail.com with ESMTPSA id lp9-20020a056a003d4900b006f44ed124dfsm9245352pfb.160.2024.05.08.10.11.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 May 2024 10:11:36 -0700 (PDT) Date: Wed, 8 May 2024 10:11:35 -0700 From: Kees Cook To: Jakub Kicinski Cc: Thomas =?iso-8859-1?Q?Wei=DFschuh?= , Luis Chamberlain , Joel Granados , Eric Dumazet , Dave Chinner , linux-fsdevel@vger.kernel.org, netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-s390@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, linux-mm@kvack.org, linux-security-module@vger.kernel.org, bpf@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-xfs@vger.kernel.org, linux-trace-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, netfilter-devel@vger.kernel.org, coreteam@netfilter.org, kexec@lists.infradead.org, linux-hardening@vger.kernel.org, bridge@lists.linux.dev, lvs-devel@vger.kernel.org, linux-rdma@vger.kernel.org, rds-devel@oss.oracle.com, linux-sctp@vger.kernel.org, linux-nfs@vger.kernel.org, apparmor@lists.ubuntu.com Subject: Re: [PATCH v3 00/11] sysctl: treewide: constify ctl_table argument of sysctl handlers Message-ID: <202405080959.104A73A914@keescook> References: <20240423-sysctl-const-handler-v3-0-e0beccb836e2@weissschuh.net> <20240424201234.3cc2b509@kernel.org> Precedence: bulk X-Mailing-List: linux-nfs@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20240424201234.3cc2b509@kernel.org> On Wed, Apr 24, 2024 at 08:12:34PM -0700, Jakub Kicinski wrote: > On Tue, 23 Apr 2024 09:54:35 +0200 Thomas Wei?schuh wrote: > > The series was split from my larger series sysctl-const series [0]. > > It only focusses on the proc_handlers but is an important step to be > > able to move all static definitions of ctl_table into .rodata. > > Split this per subsystem, please. I've done a few painful API transitions before, and I don't think the complexity of these changes needs a per-subsystem constification pass. I think this series is the right approach, but that patch 11 will need coordination with Linus. We regularly do system-wide prototype changes like this right at the end of the merge window before -rc1 comes out. The requirements are pretty simple: it needs to be a obvious changes (this certainly is) and as close to 100% mechanical as possible. I think patch 11 easily qualifies. Linus should be able to run the same Coccinelle script and get nearly the same results, etc. And all the other changes need to have landed. This change also has no "silent failure" conditions: anything mismatched will immediately stand out. So, have patches 1-10 go via their respective subsystems, and once all of those are in Linus's tree, send patch 11 as a stand-alone PR. (From patch 11, it looks like the seccomp read/write function changes could be split out? I'll do that now...) -Kees -- Kees Cook