Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp5253798rwd; Tue, 23 May 2023 21:54:27 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7t65JsqDGBJln924O9mcbMbnNDBn9hYVdLWFMHtH9FakPOxufTtF4GitdPfXR1IRvdqQuL X-Received: by 2002:a05:6a20:258b:b0:10c:18a3:cbb6 with SMTP id k11-20020a056a20258b00b0010c18a3cbb6mr7068757pzd.10.1684904066723; Tue, 23 May 2023 21:54:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684904066; cv=none; d=google.com; s=arc-20160816; b=GTJXy4A6bsTp/177asf1CrobvTeygZIJXJAQcqxeCPjtbVLgc/T+hkAn2Tj+UY30y/ eBT5Ccelrt7inU95y6g0UrAjj3xbs+71loaPRBFgjcK8oukxnXLcnaT4wlKkbLedkRuP /a/K1V6eHGFAcsQZI8HKIalZL7dixBmgmLQtjFUsBgPRFCX3hNjDIOh0vhYH18RCOSIZ dL1tHsNRXZdAdrzadnZ1fN8Ft3dep/6FlWnGndQbqlXzK9Kb0YAC2nt7j0QHs5MTpsqC wpkoz4DiCuwLqJMZoe9xJmv0nnkn3R+5veMcK6fibqeQMWOZLs200U63VNObjuwJaaMi PhfQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=pw5jtrWc5mlEb+z3kqKdHdl+8xysLiTevuDCKnVl3+g=; b=hJzHewf+8dE2fYXmeWOu3kYZ/9lvrRZdchIY5SfKbhO0u55n6m+iKJ2PSWK3kxq+cN H0uRW8hsAvQYXl8ObtYj/LMVlcmL68o8WIWQf0gFWPViv+anphQMotTj6PElivGkmrf4 5RWE8KtE6Q5Xpe8aC4uOQF6VsfaObqL+o8StzP43A7BLy42KVmlmO4dqXmSvSzupwPld MPj4SmoTPnsBvBTqXMG6HgkloCOtEA8WK7pe0zpqV7t6eYxMb5PBoSFvY2K4xNqI7g8P HBjKoq4NSCLcSWy+F/nahSGEziK4DnQ8lfshE/2vT7scCMySjL3OdOAtjMtpUbyS/lp3 Ij2g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b="TX5p/dGz"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c193-20020a621cca000000b005a8b856ad47si3358814pfc.7.2023.05.23.21.54.11; Tue, 23 May 2023 21:54:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b="TX5p/dGz"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238795AbjEXEpC (ORCPT + 99 others); Wed, 24 May 2023 00:45:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42594 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238735AbjEXEoy (ORCPT ); Wed, 24 May 2023 00:44:54 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E6987184; Tue, 23 May 2023 21:44:52 -0700 (PDT) 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=pw5jtrWc5mlEb+z3kqKdHdl+8xysLiTevuDCKnVl3+g=; b=TX5p/dGzVmaAST7FpCFc/xKhA0 1gKps74vCkoJpNAXl8ge7RzmHhnqWMAON3aHn+yEv2ERxR0rpv4CrrdJReyS/HHYyX/Fu75Pr7lmj nDiBOEygAGuXj1rrotxkqMs4gfKhjm5E5CxqRv7dfJVRjRS6CMYP4fo1nSxqZA16DFW77Q0rbgh7/ hgfE6nW6HHvYTu+B5TmJp+jkACbZYJwFyMazhuNpvOP4QsH47X9i3lpKvKuzP5fQxKcoixTriNvvi OSYF1IorfZnH1mWTOcx29w/wkEuyNT97ca5pnkFfXkj+MrgypNK1ypiwyLeLMeYMuq6EUDxQ+WMRJ /8wBzI0g==; Received: from mcgrof by bombadil.infradead.org with local (Exim 4.96 #2 (Red Hat Linux)) id 1q1gMh-00CL05-09; Wed, 24 May 2023 04:44:47 +0000 Date: Tue, 23 May 2023 21:44:47 -0700 From: Luis Chamberlain To: Joel Granados Cc: Christian Brauner , Kees Cook , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, Iurii Zaikin , Alexander Viro , Sudip Mukherjee Subject: Re: [PATCH v4 0/8] sysctl: Completely remove register_sysctl_table from sources Message-ID: References: <20230523122220.1610825-1-j.granados@samsung.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230523122220.1610825-1-j.granados@samsung.com> Sender: Luis Chamberlain X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 23, 2023 at 02:22:12PM +0200, Joel Granados wrote: > This is part of the general push to deprecate register_sysctl_paths and > register_sysctl_table. It contains 2 patchsets that were originally sent > separately. I have put them together because the second followed the first. > > Parport driver uses the "CHILD" pointer in the ctl_table structure to create > its directory structure. We move to the newer register_sysctl call and remove > the pointer madness. I have separated the parport into 5 patches to clarify the > different changes needed for the 3 calls to register_sysctl_paths. > > We no longer export the register_sysctl_table call as parport was the > last user from outside proc_sysctl.c. Also modified documentation slightly > so register_sysctl_table is no longer mentioned. > > Replace register_sysctl_table with register_sysctl effectively effectively > transitioning 5 base paths ("kernel", "vm", "fs", "dev" and "debug") to the new > call. Besides removing the actual function, I also removed it from the checks > done in check-sysctl-docs. @mcgrof went a bit further and removed 2 more > functions. > > Testing for this change was done in the same way as with previous sysctl > replacement patches: I made sure that the result of `find /proc/sys/ | sha1sum` > was the same before and after the patchset. Thanks! Queued up onto sysctl-next! Luis