Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp37738rbb; Fri, 23 Feb 2024 10:55:13 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVjSU8etXJMDrjJfI1ZXMy3xnQn1q798AeKg8jvRzH1AcGhV8C8WEMrgnQFvtN3VCSh9Qrj6rOQ+mAlA+VBuFbmLOwgzIjpEQ29Sqz3MQ== X-Google-Smtp-Source: AGHT+IGvkkEcnk0F10q4K2avwk0jnHV/yUIs80+ElmcAYHGm/jrC8vEeSDBqaZ8DHRXw7QwwEpBR X-Received: by 2002:a05:6359:4c03:b0:17b:62ac:1ddb with SMTP id kj3-20020a0563594c0300b0017b62ac1ddbmr771278rwc.23.1708714513084; Fri, 23 Feb 2024 10:55:13 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708714513; cv=pass; d=google.com; s=arc-20160816; b=c+C5MXDy++zbmkE0yq2skONDb7xwPT8z+8Ys1YXH5NUpno9w8Vp4Drb6dhfn+ECd45 vrZFz45EO+ERQQMN6yJYcbdK7ftMvsvtEEmsX66MbWQitn3FVHKI8pYAtl/YzkKS1vB3 dnymNV2r7KgVsnfEwZlujl+8HBRtMAlISFkW2JndiK6fvF9dI8m9zRbzR//Y8e1CXoII uXZEXp//ousHjtAgv6RJ3A1y/gMK3yn+Ebc++N6MgzDsjgCqpdHkWFePVavsFpgT3BSg 4CrJVEsJSuo3fXAVJlGjqq8hy8kR1xGQ9yrEDBO+Zb/h6nrtatxsVann7IuMO+edYUhI ZOZg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender: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=MF3Qgk7knpbBl0mbT42qZNN0FOGek89e7NBszsKaFPE=; fh=e8b04I+u0yohI+75VuayC3l/cS4gePzir/sfMRdf5gc=; b=w/Qs83DWT8BjQNoPzFhvpOZXrRX8mLtS0crkAGE2/SzA3sBiUwI3+7X6bNrqLvAWqq KDpJJbK6KVoA50Dz4gV/ui0vYGNa0xqbtUOGGS3BDury1Xqmu7BsJGGmrEmN9jN+iD/H zOzdTHEIiWFUubsCOvVUHRZGGsfzYhclAnlO/hBiM5qAT1nKd7LTcJXopg11Yz/gvcf6 iKq5ezYkE782RVHzIAHre6qJHhVzGbniHuT3oARR+D5Ht6nmSw2T6HnwC5cV285kgoPJ poaxXBJoBgbc85uDUVxZYajg5Kwv8mwozASYI8FvSumyH+XJ4JEWKOVf/pBz22TJU41C vkqw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=MgzcAiwp; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-kernel+bounces-78586-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-78586-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id m4-20020a63f604000000b005cfb2c44526si12591742pgh.862.2024.02.23.10.55.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Feb 2024 10:55:13 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-78586-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=MgzcAiwp; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-kernel+bounces-78586-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-78586-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 07C7C2870CC for ; Fri, 23 Feb 2024 15:18:15 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B3239823BE; Fri, 23 Feb 2024 15:18:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="MgzcAiwp" 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 AE8A21DFF9; Fri, 23 Feb 2024 15:18:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.137.202.133 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708701484; cv=none; b=aUYAHmxtUOtuHzdLAT6NnYvUQBfH1YpewNGzM6/U4INcHz7sXccVFtF3cmqMY3Cr3OmA877I6XdIuIVJSigyuH+0Rj9U1zGVSPZVm/zg9mgwZZkR1RlLcj/MNxS0wUluN4hzXxu2ITgzakwiaBaJ0DaQxbJZoIldsguILDnd/6U= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708701484; c=relaxed/simple; bh=snju8i8I0RUYEXzKnwVKNgI1aVi68jifWTXjYWifv94=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=hbxnSOtq9Ey/uMkZmGgR8qofhC07LaXtNu+I+dwuaxrEza0vYOUs8wYf2V5lsolIKYWIDrUs3FAd4caxsIN7HSSyp3081e64jSiCoY5N89RBZeMwnKHEYx9Wx0Szz3cJeZUZGxUqwuobxUb2Grq3SYvexjvR7NcfFHKfyqvMEBA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org; spf=none smtp.mailfrom=infradead.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b=MgzcAiwp; arc=none smtp.client-ip=198.137.202.133 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-Transfer-Encoding:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description; bh=MF3Qgk7knpbBl0mbT42qZNN0FOGek89e7NBszsKaFPE=; b=MgzcAiwp1JBNPUtRGATGvBwx+M CStp1G0L26HISpEujYZl8RH7p6ABrTnlmhGF3oUfZlMGyGMEf4TwTa9fIjM34FKpNQie3gi/ITMJW zb2dvQnScrw2SYhq1KFB7xafji1jJ0GB3zwbOup+k59cRgqWuCkXQyB5mHTytDVgDxEA5P7KwkeeK NtjodihCG9x1D4+aYPwsKl7luGw7UkBp00vu4bKQslPDyEXZKQWKr0XObJB3OVXOYmKv6ksSMs7wO Bq4eigHgYsN6ovmdfSxJjMexA3n1R91EfB/jWyhanDUW8sbmu4L8LHj4gBkcNCp36oIVGG2bt8gBv xQ/pnzJQ==; Received: from mcgrof by bombadil.infradead.org with local (Exim 4.97.1 #2 (Red Hat Linux)) id 1rdXJ8-00000009wbh-16HU; Fri, 23 Feb 2024 15:17:52 +0000 Date: Fri, 23 Feb 2024 07:17:50 -0800 From: Luis Chamberlain To: Thomas =?iso-8859-1?Q?Wei=DFschuh?= 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: References: <20231226-sysctl-const-ownership-v1-1-d78fdd744ba1@weissschuh.net> <23edfaea-fcee-4151-bfa8-d71d11a24401@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=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <23edfaea-fcee-4151-bfa8-d71d11a24401@t-8ch.de> Sender: Luis Chamberlain On Fri, Feb 23, 2024 at 02:16:15PM +0100, Thomas Wei?schuh wrote: > 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. Oh wow. > Do you prefer to drop it completely? Absolutely. Luis