Received: by 2002:a05:7412:d008:b0:f9:6acb:47ec with SMTP id bd8csp256176rdb; Tue, 19 Dec 2023 16:09:43 -0800 (PST) X-Google-Smtp-Source: AGHT+IE0TlqdmOM6CPDYpLBvXUH4FH3EADWroAqN9wz8mhHm3gPTl4y5nNyuUa29z0uLzU+6HetA X-Received: by 2002:a17:906:234c:b0:a23:5140:dd98 with SMTP id m12-20020a170906234c00b00a235140dd98mr1880853eja.2.1703030983272; Tue, 19 Dec 2023 16:09:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703030983; cv=none; d=google.com; s=arc-20160816; b=i+mpfWKDyu3g4EEQMiYcAO3egGPOzWd6LbwXf+2QqvImxHTNFiMznisDeJksXQdg55 1wrfRc3/V+wHX8ZLMAE6WDkKfFCsfxlVvoVegZWeLXf3qnVVzbfYgU9vQBU0qLpL0s2h Zyv6UtlJagye1/EpKtdhgYVe3uAsMNZJJ0g/xTkwwemyhs91xIuHGSFK6AlPoxAziAO5 bq9rChwx8CVvM7GCdphgjTvnUhXDRgMTyUlGgUA/X7y21gQyk0RaiBr2TBZQ0cCxyJ9c 2pQUJnMsC9GMvEJ600fl551b4y2Gqg1Mbm58hOuReXgnYjNocVHkI1V5tPdmkCbckOzq oyzw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:in-reply-to:content-disposition:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:references :message-id:subject:cc:to:from:date:dkim-signature; bh=SOfn9nF2j9WVhkT4iazg2mOWZYi27n9v0LAXi5A+lGI=; fh=S+eOhpqTqkHAKjvvZ7rz7D9uWWrAXszYcKDmphbolqE=; b=qbZMU4/oAGWO9i4xSnSsvssoZ4LD3Mc52r/5K4Oc5iVbMO0VCY/95BSsxl2AvYJJab A/2rS/sRXH+JCYSzprjJPuGrufpQQ8IoIXyqyU1m7MxX1TZlGfr+l81dC61WxBu6HIle SjjU4W5rDeOhuKgcUNFOzhmLCbExRR+vvE6yLPosAMD8zfH/m0Hn1edAq3j6NrnzXF08 rAxn9jplU++xd+avcHdGfhlD8lOJsWiauhhUnqk3GvGgzZpXrdkNujESYUAPK7Si7M/1 +RL/l5pQUG170nuX/pbyDxeWiSrySxU0ozdo7McJ/Iy3GOlRDBV0byQQGvTrXEsAkafP /n9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=WFFjoKNd; spf=pass (google.com: domain of linux-kernel+bounces-6129-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-6129-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id i26-20020a17090639da00b00a22dc850f3asi7288270eje.62.2023.12.19.16.09.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Dec 2023 16:09:43 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-6129-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=WFFjoKNd; spf=pass (google.com: domain of linux-kernel+bounces-6129-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-6129-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.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 am.mirrors.kernel.org (Postfix) with ESMTPS id 07F1E1F25500 for ; Wed, 20 Dec 2023 00:09:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 18BF64421; Wed, 20 Dec 2023 00:09:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="WFFjoKNd" X-Original-To: linux-kernel@vger.kernel.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 226DE28EA; Wed, 20 Dec 2023 00:09:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=SOfn9nF2j9WVhkT4iazg2mOWZYi27n9v0LAXi5A+lGI=; b=WFFjoKNdluVrShYbfz6lNh4XvZ +sNCv0vXzmnqkuXmVLhCUV8i5eZGHhOaQKPUFOJiOu7ch4s9YSURPGie2d3Mi3OvGnNGP2xNfA/MV ui20waemijB/Kjk2U7dXWnTb1i3MmIJlcOeEk6yKN+/7HzDRQaZE40yYvFBEHr+G0VdCyrthY0oYk CPjltBrYyhIgq+d1jp57Bbk2md+Yzl4nhkfV5dH3bk9G7zltvynZfoMFopz8DI11NCAwXPeRsUNQz MLAOmvNnCGYsUNuMWH1ENx5cQRBr7f3d2iQkCUIi9iR/4RFU56lDMFuA5Iwd7QsvibV4wgCjzK5Mk 23xmTl7A==; Received: from mcgrof by bombadil.infradead.org with local (Exim 4.96 #2 (Red Hat Linux)) id 1rFk96-00Fk2R-2s; Wed, 20 Dec 2023 00:09:08 +0000 Date: Tue, 19 Dec 2023 16:09:08 -0800 From: Luis Chamberlain To: Julia Lawall Cc: Thomas =?iso-8859-1?Q?Wei=DFschuh?= , Joel Granados , Dan Carpenter , Kees Cook , "Gustavo A. R. Silva" , Iurii Zaikin , Greg Kroah-Hartman , linux-hardening@vger.kernel.org, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org Subject: Re: [PATCH v2 00/18] sysctl: constify sysctl ctl_tables Message-ID: References: <20231208095926.aavsjrtqbb5rygmb@localhost> <8509a36b-ac23-4fcd-b797-f8915662d5e1@t-8ch.de> <20231212090930.y4omk62wenxgo5by@localhost> <20231217120201.z4gr3ksjd4ai2nlk@localhost> <908dc370-7cf6-4b2b-b7c9-066779bc48eb@t-8ch.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: Luis Chamberlain On Tue, Dec 19, 2023 at 10:21:25PM +0100, Julia Lawall wrote: > > As I noted, I think this is a generically neat endeavor and so I think > > it would be nice to shorthand *any* member of the struct. ctl->any. > > Julia, is that possible? > > What do you mean by *any* member? I meant when any code tries to assign a new variable to any of the members of the struct ctl_table *foo, so any foo->*any* > If any is an identifier typed > metavariable then that would get any immediate member. But maybe you want > something like > > <+...ctl->any...+> > > that will match anything that has ctl->any as a subexpression? If as just an expression, then no, we really want this to be tied to the data struture in question we want to modify. Luis