Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp3942890rdb; Thu, 28 Dec 2023 05:23:17 -0800 (PST) X-Google-Smtp-Source: AGHT+IECI7y+oEFMQ2ZQget6ydWJFikf/IE9fgKP1Qpkp7zd7ZlmIzEEirqsw201jw09O7YlwlMg X-Received: by 2002:a17:907:800a:b0:a26:ecf7:80ba with SMTP id ft10-20020a170907800a00b00a26ecf780bamr1801462ejc.58.1703769796909; Thu, 28 Dec 2023 05:23:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703769796; cv=none; d=google.com; s=arc-20160816; b=nQ4uGhWik1LFS3SpcrtOVHG6sgG/DOEcFlRp0dWYrCf989+16TvEhQzrJwR7/LYU+8 +y0RX4w+oA4HiFuBKusf9w/PEDWm+2Bm8Ty18yEtVVWjRWHhkTIsB31BX/NhI5W/pcNH ckUUozcUaKTERHGhIwLLz90XBur4e9we6Fg2bPZEwLq1b3IAv71G8a4oJJxnHOASOB+/ TG1elvV4/prUGzoyW61ozTnOCRRGR1Sq/aOsFo1iMtx7Mgx3PAjU9IF2BrunNqiJO+eh 7taUANfuqsGceqvgFW2fXgInkvtX7eaN5hmtJm3XV63x5BJnF+nVxoQhgyju07ygvKZ+ 46vw== ARC-Message-Signature: i=1; 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=SKnhnxQ3SKksZObvbGWia/kMA4sV8PCdLCik9kiibwc=; fh=e8b04I+u0yohI+75VuayC3l/cS4gePzir/sfMRdf5gc=; b=mpiZxbQ905kQbFS17ItCXRlW1yA6O1jA4OApqs0vTb3dTwpiI1DhueKwvirnQGQv+O 614LxSanonSvA/cLroUz5M9egjEuKQyH4xWb0stroz51j1WFYnlWNQ2PLItKc9GNnCLJ ml0swnMHxAK4odCYsG75pfnb9u69DJ/l0lL5mrm/bCmEjgbdi2YQAGRjx0K4xrVfaUd9 Rm+7TzM86CXmaJvoFTjp3RdZTnNVW8VQiQykib8RrGVlnDy0FBB1zJNC8as0R5ooExbo i+pDTbbZJtVSwCIdgRq9ohrJtAgmH58pRWLMZJAnCXBQrrHD6v8nlUnZL5EcR3o4p8c1 /Ztw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=hxvOFu0r; spf=pass (google.com: domain of linux-kernel+bounces-12679-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-12679-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. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id p16-20020a170906935000b00a2770784ef3si336819ejw.637.2023.12.28.05.23.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Dec 2023 05:23:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-12679-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=@infradead.org header.s=bombadil.20210309 header.b=hxvOFu0r; spf=pass (google.com: domain of linux-kernel+bounces-12679-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-12679-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 93F521F21673 for ; Thu, 28 Dec 2023 13:23:16 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 005A58820; Thu, 28 Dec 2023 13:23:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="hxvOFu0r" 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 219968465; Thu, 28 Dec 2023 13:23:00 +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-Transfer-Encoding:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description; bh=SKnhnxQ3SKksZObvbGWia/kMA4sV8PCdLCik9kiibwc=; b=hxvOFu0rb3hufv/+M4NNENJZEp IXHxqrpv/kghs1Fzqtv08DpFbNljJcInJl1mGDA6avysjr1SrNNv9Vwsv4TUicL3JQikdSSpXHH9Y upyFLNrDcoETSRKokwRvqHSY3/WLm1n5b1grLP6UvoMzqzgGylLvp0UNWtRRURltk/OnPnUE52zU3 svyFeOhX3CVlI7F/K5p9HdzSqpMw5RLBv6OtIei/N9Vya/QMf3CPmFEjrIESseAX4lKnuXUcex90X q025HzhYg6QV8WqQJ8m1rGaHT+cXOITAGt1vSdfr4Pl/I3JIiP3eLiX16mS1gu4rn+sxtJvk+umfP +EDb5eVg==; Received: from mcgrof by bombadil.infradead.org with local (Exim 4.96 #2 (Red Hat Linux)) id 1rIqLg-00Gvfy-09; Thu, 28 Dec 2023 13:22:56 +0000 Date: Thu, 28 Dec 2023 05:22:56 -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> 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: <20231226-sysctl-const-ownership-v1-1-d78fdd744ba1@weissschuh.net> Sender: Luis Chamberlain 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! Luis