Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp361893ybk; Fri, 15 May 2020 02:41:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwdXpATTSMOm14IHfM8KU8p8DX/2Oe3Wyw8DV0sVm7UwAFrpuUl9TVbeWGNB3A9O2T84fdP X-Received: by 2002:a05:6402:8c7:: with SMTP id d7mr1884673edz.113.1589535715487; Fri, 15 May 2020 02:41:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589535715; cv=none; d=google.com; s=arc-20160816; b=eurw+PjHRt1TChOeuqWXig7W1+hzFx9Z3n5J8s0VmzKxden36BxUMeY/fnzsdmBIdw q3se0eqjnKbcnw1yE6qVDHuulIeWgtwWO2uCiipCyGTD6DG+pjOjAEETVarQRdKFzekY 4h9MOh5PLamesJJh37Aex9Jh08CiKvYjTV8JKnLJYvcREzv1Sy4hOBGa0Sf2NMP8wnnG 7kzbHm61pvUll/wxtDQc6+63CSgkUvVpEUHiKESn2bXVRUofwGYF7xtCYpI+jCTQVbpV Yn77S9lYD3RN0G5hqL6s8i2Z2ChmpEfN+mCbp7EB/paAV1Nl2K4oNy0xu764n65Bc3qN CwZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:references:cc:to :subject; bh=e1Hta9jzw8IA9Z+BQadG3KE2cakZMlXZvWscCvzEP8s=; b=pbH2ZO+NOLIEuSQOlrIJojgDE+hvObV5qjS/UOLK7mL2hUSxSuqjF7WfHYbcApN82r WJRfY1ACb7Q/qiRr4y9aPUT2KVu1uS5MpPrF5Llncd4bmws5bdrxr2Ke6RMkgce6Aer6 kSFxW05QqHtfucI9bs4V3ZCqlSIb3wUVQJkuQFNvA+Gpc61t/NCcIjiNIgGafc4aSLUa 0Wc73FuLiiH8qZn1J5M7CulComq+NXV8UMIpxuYrts3ag302Z47kYfXUbO5UOx5LPpbc VbIe1XrZXnbPod6EF22aseoazMqrLB5UY1cfhitUarwIP2wrXYqoAzY/s7dbBhnJvBti xXdw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i3si838616eds.277.2020.05.15.02.41.31; Fri, 15 May 2020 02:41:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727977AbgEOJju (ORCPT + 99 others); Fri, 15 May 2020 05:39:50 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:38702 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727785AbgEOJjt (ORCPT ); Fri, 15 May 2020 05:39:49 -0400 Received: from DGGEMS401-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 6FBF7C70F08E624CB061; Fri, 15 May 2020 17:39:47 +0800 (CST) Received: from [127.0.0.1] (10.67.102.197) by DGGEMS401-HUB.china.huawei.com (10.3.19.201) with Microsoft SMTP Server id 14.3.487.0; Fri, 15 May 2020 17:39:38 +0800 Subject: Re: [PATCH 4/4] sysctl: Add register_sysctl_init() interface To: Kees Cook CC: , , , , , , , , , , , , , , , , , , , References: <1589517224-123928-1-git-send-email-nixiaoming@huawei.com> <1589517224-123928-5-git-send-email-nixiaoming@huawei.com> <202005150110.988A691@keescook> From: Xiaoming Ni Message-ID: Date: Fri, 15 May 2020 17:39:37 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.1.2 MIME-Version: 1.0 In-Reply-To: <202005150110.988A691@keescook> Content-Type: text/plain; charset="gbk"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.67.102.197] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020/5/15 16:10, Kees Cook wrote: > On Fri, May 15, 2020 at 12:33:44PM +0800, Xiaoming Ni wrote: >> In order to eliminate the duplicate code for registering the sysctl >> interface during the initialization of each feature, add the >> register_sysctl_init() interface > > I think this should come before the code relocations. > Thanks for your guidance, I will adjust it in v2 version. Thanks Xiaoming Ni