Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp428914rwd; Wed, 7 Jun 2023 01:46:27 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ63GIWhqaTFPbsBIWjLH/DIwqdVor2MCxMBU+/ka+UyT/KCdiQ9Tj4bO2dnB/8qYaL0pCzI X-Received: by 2002:a17:902:efd1:b0:1b2:1b20:c45b with SMTP id ja17-20020a170902efd100b001b21b20c45bmr2729075plb.54.1686127586811; Wed, 07 Jun 2023 01:46:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686127586; cv=none; d=google.com; s=arc-20160816; b=BY3Vvk64p1mewN1GffcEE1CiOGOQcpjecq/xb87FC4Hs9vB8KtvdESj8ZkGidRPEY5 QGZA8Yaz2O6vpYWXdAEk8txvTH21GKZdakarD7KcbGzKDaXN6uQHn4+5q1/iFzaNR5ZM 1fZh1LuFBSQwUpwKYteNgu3KKfaKJdiHdWKDwxfJEMBm8FSYqYlhKwtgEF4hLb1WJURM 0ZHUmbhPjxbEiextOYAD2tSLBjexRNrzlaHMva/LPcDWNKoYvUVAwugDYrpg97UBRjcj NXWjyDrffJg+Y7g+oqlqG7U+piUlP6MqmSIyqN+1DvdISCd/eidEqLXMsOzW/NcTBhK8 GAhw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:content-id:mime-version:subject :cc:to:references:in-reply-to:from:organization:dkim-signature; bh=CGNGuZdb3YfUa/RgZYBAS20b4KQ6QaroF4WQ7qei7lo=; b=YFQ4D3S5Nfx2WqOfBhcjwPrbHlLcTzcwTYetR+CH+mYtfv9Dghircb5l0PPwrny4dc BJckpHa1ANQKkHtnyIkoniwLua2EonMV4Nvt8iBi14b6KhauUXXgD/QmCjg0e7sLtsLK zegtXQTRpPIDoobEjZfJoNVeZy03fqAImIBeyDwX0hBeRID86mSIhyYYcC49IRU1pHaz yQ6GeFzxducvXyQH1uTMbC5bRCsIG1rLuo++df/pa1FU114gcl1oucUoX0a4+Nn3ajKl l+wP94LmOTJ/g6JRdVnLI0/5vXigHNQnLTcD6ZVjd/n7BwluZ/TFouJsFrf3zaUkF94T AxlQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=g5ioPnQQ; 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=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q16-20020a17090311d000b001a94b91f412si8690778plh.164.2023.06.07.01.46.11; Wed, 07 Jun 2023 01:46: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=@redhat.com header.s=mimecast20190719 header.b=g5ioPnQQ; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232094AbjFGIhv (ORCPT + 99 others); Wed, 7 Jun 2023 04:37:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42908 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234162AbjFGIhr (ORCPT ); Wed, 7 Jun 2023 04:37:47 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C6E23172E for ; Wed, 7 Jun 2023 01:37:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1686127020; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=CGNGuZdb3YfUa/RgZYBAS20b4KQ6QaroF4WQ7qei7lo=; b=g5ioPnQQ1hiX5qzgybMvDUvrYABzXSTttBExtem8anLCaX6F5FCdwwiTRlR/xPDxvrjd65 20L7RgY4Pi2rfH18XPdGYFRIENUQHgqyXPfHLnLYk7/uMBMKmO9pmVD0dpqxAiBeI4dhTV 9aG0nw7CENkWXSQphjxqSZoQpm9Fi1A= Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-321-GM9I-4gjMCKvH9c3tuCwwQ-1; Wed, 07 Jun 2023 04:36:54 -0400 X-MC-Unique: GM9I-4gjMCKvH9c3tuCwwQ-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.rdu2.redhat.com [10.11.54.8]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 9674D3801FF5; Wed, 7 Jun 2023 08:36:53 +0000 (UTC) Received: from warthog.procyon.org.uk (unknown [10.42.28.182]) by smtp.corp.redhat.com (Postfix) with ESMTP id 10C6EC1603B; Wed, 7 Jun 2023 08:36:49 +0000 (UTC) Organization: Red Hat UK Ltd. Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SI4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 3798903 From: David Howells In-Reply-To: <20230530232914.3689712-3-mcgrof@kernel.org> References: <20230530232914.3689712-3-mcgrof@kernel.org> <20230530232914.3689712-1-mcgrof@kernel.org> To: Luis Chamberlain Cc: dhowells@redhat.com, keescook@chromium.org, yzaikin@google.com, jarkko@kernel.org, paul@paul-moore.com, jmorris@namei.org, serge@hallyn.com, j.granados@samsung.com, brauner@kernel.org, ebiederm@xmission.com, patches@lists.linux.dev, linux-fsdevel@vger.kernel.org, keyrings@vger.kernel.org, linux-security-module@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/2] sysctl: move security keys sysctl registration to its own file MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2003476.1686127009.1@warthog.procyon.org.uk> Date: Wed, 07 Jun 2023 09:36:49 +0100 Message-ID: <2003477.1686127009@warthog.procyon.org.uk> X-Scanned-By: MIMEDefang 3.1 on 10.11.54.8 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE 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 Luis Chamberlain wrote: > The security keys sysctls are already declared on its own file, > just move the sysctl registration to its own file to help avoid > merge conflicts on sysctls.c, and help with clearing up sysctl.c > further. > > This creates a small penalty of 23 bytes: > > ./scripts/bloat-o-meter vmlinux.1 vmlinux.2 > add/remove: 2/0 grow/shrink: 0/1 up/down: 49/-26 (23) > Function old new delta > init_security_keys_sysctls - 33 +33 > __pfx_init_security_keys_sysctls - 16 +16 > sysctl_init_bases 85 59 -26 > Total: Before=21256937, After=21256960, chg +0.00% > > But soon we'll be saving tons of bytes anyway, as we modify the > sysctl registrations to use ARRAY_SIZE and so we get rid of all the > empty array elements so let's just clean this up now. > > Signed-off-by: Luis Chamberlain Acked-by: David Howells