Received: by 2002:a05:7208:3188:b0:7e:5202:c8b4 with SMTP id r8csp837415rbd; Fri, 23 Feb 2024 05:16:45 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCV5dM7Msfx3IRMJLWCyC8RQLT28D0/DL73U5n70zb9PyRGWqDABq7cFNUWFPBEBPZq+SORjA36R8Y3szFFUGmNR8GkpXM1A4+V5PamLDg== X-Google-Smtp-Source: AGHT+IEUHXa5JwpMgqq1gPNvXUnnUABht7mjXDmxXQKAgET20a4QzfzM+qYVuFM94dO4GHXXd6X5 X-Received: by 2002:aa7:d64d:0:b0:565:7c8d:5790 with SMTP id v13-20020aa7d64d000000b005657c8d5790mr816534edr.4.1708694205125; Fri, 23 Feb 2024 05:16:45 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708694205; cv=pass; d=google.com; s=arc-20160816; b=jRzk3YpQhC+beg16Tb7fYKmdWN3r1S/2Xrt+V6ieU7QdE1LRs4kcyMzpiqyah18ySP wOXLjntsKkv6/TxppUoXAAXdOaBVCoBT1D+ZBb+c8IN0R5XXZp8mxbAIgpUY0idCR42O kBFvy74nOYSi+l2huQu6ZBQMSiJuaLUu+ALNhX7f/dANN3vs9S3S75z71fsuSGANfEyH 8oc62aOHJV2ZCK5obg3mkNIYMgC+KL5YN6h0+Wy100YHV+SEWT7FUxa2/1LS4ysrCQy+ KaSqNiMNUpr4wzsM9DKHHhQnj2kWxwKcHeGwnT3OX2QJ1LvD8oqUAW2R2XSngwi8D4k0 hEvg== 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=uaWbWLn6reRiAHzshoXpgs13bmle7FeEsH0TOvCpfOM=; fh=PZGCk364KKnm3VNh2usU/j+8VOZ/CBXQCb8Fj/CwJFo=; b=DEK2WSKnvZqK0iyRw3r35dNfBWaYFGia52rE8TUeJyijJGSrtszPUSauue6hURzyhV GgbcQCkWJiB1XHg8YXzIGFlk6XlptjI4HEWWd6PYjZDxJSnE3ZDO32/v2bAEku9CD1N2 M6SifhRAtVccYQDZOGxODbRJXUhain2mphX/3BQs89jiBRd0SZcKptwzBRhdSr9QeT8u +22ddzSC5IOWav9BgT7m0hDCfQIc0+Xy5D5hPMQwJI6E5a0yX/nn8JHzn72VRWeeRwSq lFRcjkIueE4WPJJnlJ3FiYJFzOVUB7i1W9FSDcNjdL0bmWqrb3f9gHDns2YAyiOMFNN8 oj9w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@weissschuh.net header.s=mail header.b=G3cGecz+; arc=pass (i=1 spf=pass spfdomain=weissschuh.net dkim=pass dkdomain=weissschuh.net); spf=pass (google.com: domain of linux-kernel+bounces-78363-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-78363-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id c25-20020a056402121900b00564647b7e30si5029517edw.318.2024.02.23.05.16.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Feb 2024 05:16:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-78363-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@weissschuh.net header.s=mail header.b=G3cGecz+; arc=pass (i=1 spf=pass spfdomain=weissschuh.net dkim=pass dkdomain=weissschuh.net); spf=pass (google.com: domain of linux-kernel+bounces-78363-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-78363-linux.lists.archive=gmail.com@vger.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 C86DE1F2248A for ; Fri, 23 Feb 2024 13:16:41 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3573D7EEEF; Fri, 23 Feb 2024 13:16:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=weissschuh.net header.i=@weissschuh.net header.b="G3cGecz+" Received: from todd.t-8ch.de (todd.t-8ch.de [159.69.126.157]) (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 956787E579; Fri, 23 Feb 2024 13:16:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=159.69.126.157 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708694189; cv=none; b=AmVNSB/2Wr+pbbSixHUXsPIcao9d53Y+px112i7EZISp6Zdrr16PLfyk97NUbtlDowWQCLNWMTJiZWckEtn96vtSwJ4htV/SmWDMZjtJeTUS0xV29BB2cxt6G2eOzvuhYMrT+bEFoa2sTAtOkS4bCsAPQGcObSfwn4yweqAXQOg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708694189; c=relaxed/simple; bh=kcmFiuh1OodqGBqsxi0kGV358x2J36gONeQPxC2Zzyk=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=iFG+0xR3yTfY59Rf+dRd9n3MEyIATRlDzkEa9vmH3xLdiVqxlzeEx/IbxIWWLTx2r4C/FjZTi+wzHWj8s0zzhaf9OC+79YELuSylUqdFW/G4MM6ZWzwPnv887RuOTmcPgXtvqmjkKIf1lUml3XzvSvfBjnimUpLUk+g1/5Squ3A= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=weissschuh.net; spf=pass smtp.mailfrom=weissschuh.net; dkim=pass (1024-bit key) header.d=weissschuh.net header.i=@weissschuh.net header.b=G3cGecz+; arc=none smtp.client-ip=159.69.126.157 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=weissschuh.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=weissschuh.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=weissschuh.net; s=mail; t=1708694175; bh=kcmFiuh1OodqGBqsxi0kGV358x2J36gONeQPxC2Zzyk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=G3cGecz+zi5TgbKcScNvRye+hvdd0inPLd1s30zbvM1+ZdhnHxr0VYCaUCKKgZSIw mb5662UbE19iha5IwvKpqJiwVIIUHBrKCtviPLBcwcZ7G6rhQ6FOs4B7av96SjEMqw XQocmnlgXbDy1O8Yfrm+56oF5ue9dJT/BA3xAk5w= Date: Fri, 23 Feb 2024 14:16:15 +0100 From: Thomas =?utf-8?Q?Wei=C3=9Fschuh?= To: Luis Chamberlain Cc: Kees Cook , Joel Granados , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, netdev@vger.kernel.org Subject: Re: [PATCH] sysctl: treewide: constify ctl_table_root::set_ownership Message-ID: <23edfaea-fcee-4151-bfa8-d71d11a24401@t-8ch.de> References: <20231226-sysctl-const-ownership-v1-1-d78fdd744ba1@weissschuh.net> 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=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: On 2023-12-28 05:22:56-0800, Luis Chamberlain wrote: > On Tue, Dec 26, 2023 at 01:32:42PM +0100, Thomas Weißschuh wrote: > > The set_ownership callback is not supposed to modify the ctl_table. > > Enforce this expectation via the typesystem. > > > > The patch was created with the following coccinelle script: > > > > virtual patch > > virtual context > > virtual report > > If you remove this virtual stuff and mention how we verify manually > through the build how users do not exits which rely on modifying the the > table I thinkt these two patches are ready, thanks for doing this in > Coccinelle it helps me review this faster! Actually the 'table' parameter is never even used. Do you prefer to drop it completely? Thomas