Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp675293rwd; Thu, 25 May 2023 02:11:59 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6Mkej25baK0gu5uhWHFZbXwzgX/ekJw5lJqXV8vH125TaD36rJMS4JVIyJKOqKmVM0DQtD X-Received: by 2002:a05:6a21:339a:b0:100:5851:d4ba with SMTP id yy26-20020a056a21339a00b001005851d4bamr22535603pzb.54.1685005918863; Thu, 25 May 2023 02:11:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685005918; cv=none; d=google.com; s=arc-20160816; b=Bxs8V2pNtXNlu9G1rR4Z8srfZDal8DaNHg3Qpxnb9niLv7VYsRWLYsq/eltGcSMIls TAkAFsfZ/2g9hhgOmdXUQqOMsoi1oX6qthCCOwui385VYZ7rubGAmrxrcAkjDyZd3ZwH +HbCK0WMV4upSv+m3l2CQhQgCtuQKCG44biRS1ayzuo6OYZOV7CIFYKeUyYipgMXDLB/ niwe14XNKFO6NBGjJFnIJNITTHHDzKjsLqrkjBJxLBVfKz5Z/qwagLa+yF2CdUwuOMyE /hcfL1PPOf4NY0ilNPYg5plSCe2bSvgDFa+4L9olLPePP3S/jE72rcFV6hhEJcpdHc9j 4rVg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=NXlTQR3mkNIo3HOsZ1H2pP7ShXmOplvHz6L0vbceCUg=; b=DlFpe+OR2C6giNRw6H5FEZU6pMJ0MeNVvifR/Y7qdD5G1G/vfb499L0l4SBZ2jipV8 lrtbvA8urVM9fXAR0L3ecZa8JcmJwLLaPXwY+QuVdVSS0M7DbkfJYvQKxthyIVh/OMsp wCoNwFv+TV28PSISaOc/xjgKeZgRJXXYNcZh72qu76FlZZnxvcQ1xx87/NhdaPEyUB7i 9PTPtkbi4lRncnNJHZQLIvsT3PGAkA2tvZ60ztVo/FONqI6JAQM6EFrMcB222E8rqLlA rskuHryBHq0hC0Kb3IdnQBbLo+7Ae//nb6AHKS9virzgnCSdfybjC/HIxMXI7BiwEjGD 1wIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="qu/k/5Dq"; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e2-20020a636902000000b0051b13a071a8si678080pgc.575.2023.05.25.02.11.44; Thu, 25 May 2023 02:11:58 -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=@linaro.org header.s=google header.b="qu/k/5Dq"; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240028AbjEYIic (ORCPT + 99 others); Thu, 25 May 2023 04:38:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32988 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239928AbjEYIi3 (ORCPT ); Thu, 25 May 2023 04:38:29 -0400 Received: from mail-wm1-x32e.google.com (mail-wm1-x32e.google.com [IPv6:2a00:1450:4864:20::32e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5F286E7C for ; Thu, 25 May 2023 01:37:59 -0700 (PDT) Received: by mail-wm1-x32e.google.com with SMTP id 5b1f17b1804b1-3f623adec61so3312765e9.0 for ; Thu, 25 May 2023 01:37:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1685003872; x=1687595872; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=NXlTQR3mkNIo3HOsZ1H2pP7ShXmOplvHz6L0vbceCUg=; b=qu/k/5DqECU9IbtboDrmFdRe89GYbH/trzXYk46C81yh5N44aQ5AB8n1P9VgUTF2jr Pkzkz8LEDnbGKS4sBH4ih5c2wyA2YC9PKKmd2wKx5pAFDuDf4b2oDg1CS1zTaDgucn6m ON8DlaOXjbGcWZW7MNN4yXRY1wvMjUSZNW/RjnKstC/e/lBFrkbd8OOzXkrEzJxmYGDr o+TK08/PDV/2z/066/yeCOWiiLxoJanzMAtkAFwHW+O0KFadXb5bRzKrPDb2QwvameTt nFXPvrFBszyWzQahUYcz9VEtD+pxWmCaNPOGFkidZtfcwylEwyMAm4xbeUjXcScQqKpG If0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685003872; x=1687595872; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=NXlTQR3mkNIo3HOsZ1H2pP7ShXmOplvHz6L0vbceCUg=; b=POLoXv3hjHCCpF5lUeL2sP5oAUVpDwaT3RUmNitk6ZB6Hg+U9S918DjTrSTSMAmovi vG9o/Cf8gCa/XuXUzyuWmy6+pXmKGXN/H3J2fs4vRt38LIPMYB3S95xPfKrHTRdYSHkh xvZ5AIaNR5ZpyLmvnMmTmeh416p924xYOpDNE8Kv619btut2jQTfTn9O0WvG1i46heyk uZMLOWm2tbbSRlYmppJ9sDLLWFbAYTsy/PJbXh6yusIwt9vxJJt6jixDem/DTAaqgVfI EAakz/CbFjkuBMCJKd4JsG+YXFkNFygNZf38hFNXn1XGV3sq2N+h16f1tJRYTjjXcRNX L8uw== X-Gm-Message-State: AC+VfDzh3NNFe4gvxsnXmDCZwINlmnHco08qlLLNQChPl1pUmdxIdrt7 YtqhzNDta6YpNMz1/o9LqX1yyg== X-Received: by 2002:adf:f84c:0:b0:307:8694:44e0 with SMTP id d12-20020adff84c000000b00307869444e0mr1764181wrq.55.1685003872049; Thu, 25 May 2023 01:37:52 -0700 (PDT) Received: from localhost ([102.36.222.112]) by smtp.gmail.com with ESMTPSA id x4-20020a5d54c4000000b002c70ce264bfsm976048wrv.76.2023.05.25.01.37.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 May 2023 01:37:50 -0700 (PDT) Date: Thu, 25 May 2023 11:37:47 +0300 From: Dan Carpenter To: Joel Granados Cc: mcgrof@kernel.org, Christian Brauner , Kees Cook , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, Iurii Zaikin , Alexander Viro , Sudip Mukherjee Subject: Re: [PATCH v4 7/8] sysctl: Refactor base paths registrations Message-ID: References: <20230523122220.1610825-1-j.granados@samsung.com> <20230523122220.1610825-8-j.granados@samsung.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230523122220.1610825-8-j.granados@samsung.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=unavailable 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:19PM +0200, Joel Granados wrote: > This is part of the general push to deprecate register_sysctl_paths and > register_sysctl_table. The old way of doing this through > register_sysctl_base and DECLARE_SYSCTL_BASE macro is replaced with a > call to register_sysctl_init. The 5 base paths affected are: "kernel", > "vm", "debug", "dev" and "fs". > > We remove the register_sysctl_base function and the DECLARE_SYSCTL_BASE > macro since they are no longer needed. > > In order to quickly acertain that the paths did not actually change I > executed `find /proc/sys/ | sha1sum` and made sure that the sha was the > same before and after the commit. > > We end up saving 563 bytes with this change: > > ./scripts/bloat-o-meter vmlinux.0.base vmlinux.1.refactor-base-paths > add/remove: 0/5 grow/shrink: 2/0 up/down: 77/-640 (-563) > Function old new delta > sysctl_init_bases 55 111 +56 > init_fs_sysctls 12 33 +21 > vm_base_table 128 - -128 > kernel_base_table 128 - -128 > fs_base_table 128 - -128 > dev_base_table 128 - -128 > debug_base_table 128 - -128 > Total: Before=21258215, After=21257652, chg -0.00% > > Signed-off-by: Joel Granados > [mcgrof: modified to use register_sysctl_init() over register_sysctl() > and add bloat-o-meter stats] > Signed-off-by: Luis Chamberlain > Tested-by: Stephen Rothwell This needs a Fixes tag so it doesn't get backported by some weird fluke. Or you could just fold it in with the original patch which introduced the bug. Probably add a copy of the output from dmesg? Maybe add some Reported-by tags? regards, dan carpenter >