Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp3226405rwl; Thu, 13 Apr 2023 18:20:37 -0700 (PDT) X-Google-Smtp-Source: AKy350aViCIBtiTXd2fbEw+5XDC4blWLUq57TeXL/muHCb/QZ/+RYMESjridkfOAceDE5mg0XiFJ X-Received: by 2002:a05:6a00:2190:b0:63b:5f0f:94f1 with SMTP id h16-20020a056a00219000b0063b5f0f94f1mr1919069pfi.4.1681435237152; Thu, 13 Apr 2023 18:20:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681435237; cv=none; d=google.com; s=arc-20160816; b=t6qotzRKdr0iikaTFngVE+9u63F6mNwPtoAW4/mIKoRvQPY5/Ssjpspivn8vi0oEpY GEpy9nEN/N2aPpjxjifR9dnj5lbKLzAxaw5WIX+jDIJW82zP+akQVv94OyA5z1fGjaZj BIDIH4FfuBiYXxFFgiOrJ0y3x+PmC57MGjVAgis/V2a5Bfmj7ZR84vO5wl749jgv+rAz MVxkOwgwljo1/jSKlAoBH+rxxcPPTlmYuz3NZ3zv8WpO9NA0U8kXZjZOf//0soij1Vkj 5U0ctJGmjd7Nb/5fV8opoIDkB3Nd+JpGc/j6GTa+m4TZqDTyguHBeksKTDlu3E9Oy7v8 WFvg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=BmPoRqsYYACdfZ+0Vj+hdJUeKaqRLkFfb0H2I6n18e0=; b=Vt1ZPYDR8skzbyC4a/OBCxRPdKisEYXADtLwBAwpyObGJINV0vlUQWHN6GEQQAEspR yI4JIyynF1Sg01LVXo4PVSyTvCp0sM3jWkFw7s88pD+6X2o/6jRtL4hmKqc7x5pFzg06 Lk/4Ht4liMbpM8ABTztmzKv9B/AUCE9fW9BwuVDEdSyk7ezImC6lc6gV7Vaf9X2EDzv0 iyjY2w+l5mZBVlKhgeCX0hk46lrgVt408WmSCW+OdgpDAu1urMy7XyLlW/4nNIwcsEXX INAGNZfG4fAqcSVmSnR+u402JWQNE9owIt1z57hZPcTT1au2/M9BXesSSSQXzjAdBYdj YEfg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c3-20020a656183000000b0050beec2c6cdsi3197132pgv.238.2023.04.13.18.20.23; Thu, 13 Apr 2023 18:20:37 -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; 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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229450AbjDNBTR (ORCPT + 99 others); Thu, 13 Apr 2023 21:19:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47292 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229732AbjDNBTN (ORCPT ); Thu, 13 Apr 2023 21:19:13 -0400 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2B4154C2C; Thu, 13 Apr 2023 18:19:09 -0700 (PDT) Received: from dggpemm500001.china.huawei.com (unknown [172.30.72.54]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4PyJTf70F8zrZZ5; Fri, 14 Apr 2023 09:17:42 +0800 (CST) Received: from [10.174.177.243] (10.174.177.243) by dggpemm500001.china.huawei.com (7.185.36.107) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.23; Fri, 14 Apr 2023 09:19:07 +0800 Message-ID: <61c62ae1-4c2b-5768-5044-93e43b6585de@huawei.com> Date: Fri, 14 Apr 2023 09:19:07 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.5.1 Subject: Re: [PATCH] fs: fix sysctls.c built Content-Language: en-US To: Luis Chamberlain , Christian Brauner CC: , Andrew Morton , , Alexander Viro References: <20230331084502.155284-1-wangkefeng.wang@huawei.com> <66c0e8b6-64d1-5be6-cd4d-9700d84e1b84@huawei.com> <20230412-sympathie-haltbar-da2d2183067b@brauner> From: Kefeng Wang In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.174.177.243] X-ClientProxiedBy: dggems705-chm.china.huawei.com (10.3.19.182) To dggpemm500001.china.huawei.com (7.185.36.107) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-5.3 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS 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 2023/4/14 3:43, Luis Chamberlain wrote: > On Thu, Apr 13, 2023 at 11:46:24AM -0700, Luis Chamberlain wrote: >> On Thu, Apr 13, 2023 at 10:06:35AM -0700, Luis Chamberlain wrote: >>> On Wed, Apr 12, 2023 at 11:19:56AM +0200, Christian Brauner wrote: >>>> On Tue, Apr 11, 2023 at 12:14:44PM +0800, Kefeng Wang wrote: >>>>> /proc/sys/fs/overflowuid and overflowgid will be lost without >>>>> building this file, kindly ping, any comments, thanks. >>>>> >>>>> ... >>>> >>>> Given the description in >>>> ab171b952c6e ("fs: move namespace sysctls and declare fs base directory") >>>> you probably want to move this earlier. >>> >>> I was being *way* too cautious and I was wrong, so I'll take Kefang's patch as >>> I can verify now that order does not matter and his patch is correct. >>> I've corrected the documentation and clarified this on sysctl-next and >>> so reflected on linux-next too with these two patches: >>> >>> sysctl: clarify register_sysctl_init() base directory order >>> https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux.git/commit/?h=sysctl-next-20230413&id=8ae59580f2b0529b6dd1a1cda6b838cfb268cb87 >>> >>> proc_sysctl: move helper which creates required subdirectories >>> https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux.git/commit/?h=sysctl-next-20230413&id=f4c09b14073513efd581459520a01c4c88cb24d7 >>> >>> proc_sysctl: update docs for __register_sysctl_table() >>> https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux.git/commit/?h=sysctl-next-20230413&id=d59d91edd67ec4cef62f26249510fe08b291ae72 >>> >>> proc_sysctl: enhance documentation >>> https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux.git/commit/?h=sysctl-next-20230413&id=eb472aa0678fd03321093bffeb9c7fd7f5035844 >>> >>> And so something we can do eventually is do away with all the base stuff. >>> For now it's fine, it's not creating an issue. >> >> Come to think of it all the above patches except the one that moves code >> ("proc_sysctl: move helper which creates required subdirectories") are >> stable fix candidates prior to Kefeng's patch. I'll also update Kefeng's >> patch to mention stable down to v5.17 and update the other patches with >> the respective stable tag as well. Thanks for your detail explanation. > > OK pushed to sysctl-next and updated the patches above also to refer to > stable and Cc you guys. Finally, a good reason or value to having Cc on > the commit log. It just tmeans you (Christian and Kefeng) will be be CC'd > once this trickles to stable kernel trees too. > > Luis