From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.3 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 33884C433E0 for ; Fri, 15 May 2020 09:39:51 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 024C0206B6 for ; Fri, 15 May 2020 09:39:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728027AbgEOJju (ORCPT ); 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