Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp2177535rwl; Thu, 13 Apr 2023 02:46:31 -0700 (PDT) X-Google-Smtp-Source: AKy350aQWIIunwSGP+nxa1hV42sdUh81XJw7cOsnKobLRXWOE+aPsqA1C9qDIBmt0H3QsGKh949e X-Received: by 2002:aa7:c7d3:0:b0:502:3376:46bc with SMTP id o19-20020aa7c7d3000000b00502337646bcmr1355537eds.8.1681379190731; Thu, 13 Apr 2023 02:46:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681379190; cv=none; d=google.com; s=arc-20160816; b=QrOkEAbEVAljvQn+Vjp5lJ/8vJi+UUWuxCH4Y1BKK5qBefegnYc5ShVs8g0xVbgxZS 0DnvsjH9hklbR8N+/aU1OS5aUUHglVSWfqClnZ2BVln9SmCWOtOwW0l1BlPMq2zw/sqe az45QuMPYg1giRLc6crDS99G74XFqqbpEDfadmxOHmH4rnfRXYKtot6auy3Aa1K67+Sj 8Eshu+AfggBJvUaNHydItz2B7qJZJak2EDlf6AXB0oPkX/YeboINlRZ1n/usBM+/H5wr D8tJULWfMda0x1+DeXyiUEDZdBdARMylqYSypjIYW5a1ebhwc2r9+h4JjDaWUnec5exH PDWw== 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=+NNMQxe46rMos5+Z2F+lV0Ihck7h6/+lclPJc+m1y+I=; b=K+j5POFOVmjEeA3+5necfK5zCkdD8jHI/psyodOpGkf+ZOAwqfs4P3g9Dd6DeXGPrb pVML6idnjBPHYD2AKVRAkGgUEKsap06njy5CfiiCbTopBCT/Rp28KS+zFoSQlJcITkM1 syZZy1AE5IGKeKNd11hrZ848xINVR1l4vQpXHoqKn9keZHfWVUQ7jAUws495w340tdDd 1gJ7+3duzkn8DYUwJxhTZd8z8XVy4Gg6Ina7j83zLMPzaTMryIxgaUK3DA7HXqP3d01L faW0Cb7Kuvq8VlZWHzSampvCDPXxtuVE1+V4uRZOy9QtcdaCtGMCbtRIUcfY8GU0d/0c HUwg== 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 c22-20020aa7d616000000b00504a9eca82bsi1378492edr.222.2023.04.13.02.46.06; Thu, 13 Apr 2023 02:46:30 -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 S229845AbjDMJpd (ORCPT + 99 others); Thu, 13 Apr 2023 05:45:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37004 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229888AbjDMJp0 (ORCPT ); Thu, 13 Apr 2023 05:45:26 -0400 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4E36F2D40; Thu, 13 Apr 2023 02:45:23 -0700 (PDT) Received: from dggpemm500001.china.huawei.com (unknown [172.30.72.57]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4PxvmF0dNgzrbMR; Thu, 13 Apr 2023 17:43:57 +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; Thu, 13 Apr 2023 17:45:20 +0800 Message-ID: <3c98309c-eb56-1aee-5a6a-8f0a4c84d378@huawei.com> Date: Thu, 13 Apr 2023 17:45:20 +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: Christian Brauner CC: Luis Chamberlain , , Andrew Morton , , Alexander Viro References: <20230331084502.155284-1-wangkefeng.wang@huawei.com> <66c0e8b6-64d1-5be6-cd4d-9700d84e1b84@huawei.com> <20230412-sympathie-haltbar-da2d2183067b@brauner> <20230413-kufen-infekt-02c7eb2a9adc@brauner> From: Kefeng Wang In-Reply-To: <20230413-kufen-infekt-02c7eb2a9adc@brauner> 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/13 16:35, Christian Brauner wrote: > On Thu, Apr 13, 2023 at 09:34:54AM +0800, Kefeng Wang wrote: >> >> >> On 2023/4/12 17:19, 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. >>>> >>>> >>>> On 2023/3/31 16:45, Kefeng Wang wrote: >>>>> 'obj-$(CONFIG_SYSCTL) += sysctls.o' must be moved after "obj-y :=", >>>>> or it won't be built as it is overwrited. >> >> ... >> >>> Given the description in >>> ab171b952c6e ("fs: move namespace sysctls and declare fs base directory") >>> you probably want to move this earlier. >> >> Oh, missing that part, but the /proc/sys/fs/overflowuid and overflowgid are >> lost after it, is it expected? Luis, could you take a look? thanks. > > No, /proc/sys/fs/overflow{g,u}id need to be there of course. What I mean > is something like the following (similar to how net/core/ does it): > Thanks for your explanation, > UNTESTED Will try, > --- > fs/Makefile | 24 +++++++++++++----------- > 1 file changed, 13 insertions(+), 11 deletions(-) > > diff --git a/fs/Makefile b/fs/Makefile > index 05f89b5c962f..dfaea8a28d92 100644 > --- a/fs/Makefile > +++ b/fs/Makefile > @@ -6,17 +6,19 @@ > # Rewritten to use lists instead of if-statements. > # > > -obj-$(CONFIG_SYSCTL) += sysctls.o > - > -obj-y := open.o read_write.o file_table.o super.o \ > - char_dev.o stat.o exec.o pipe.o namei.o fcntl.o \ > - ioctl.o readdir.o select.o dcache.o inode.o \ > - attr.o bad_inode.o file.o filesystems.o namespace.o \ > - seq_file.o xattr.o libfs.o fs-writeback.o \ > - pnode.o splice.o sync.o utimes.o d_path.o \ > - stack.o fs_struct.o statfs.o fs_pin.o nsfs.o \ > - fs_types.o fs_context.o fs_parser.o fsopen.o init.o \ > - kernel_read_file.o mnt_idmapping.o remap_range.o > +obj-y := fs_types.o > +obj-$(CONFIG_SYSCTL) += sysctls.o > +obj-y += open.o read_write.o file_table.o super.o \ > + char_dev.o stat.o exec.o pipe.o namei.o \ > + fcntl.o ioctl.o readdir.o select.o dcache.o \ > + inode.o attr.o bad_inode.o file.o \ > + filesystems.o namespace.o seq_file.o \ > + xattr.o libfs.o fs-writeback.o pnode.o \ > + splice.o sync.o utimes.o d_path.o stack.o \ > + fs_struct.o statfs.o fs_pin.o nsfs.o \ > + fs_types.o fs_context.o fs_parser.o \ drop this fs_types.o ? > + fsopen.o init.o kernel_read_file.o \ > + mnt_idmapping.o remap_range.o > > ifeq ($(CONFIG_BLOCK),y) > obj-y += buffer.o mpage.o > -- > 2.34.1 >