Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp2541640rdb; Fri, 22 Sep 2023 01:22:15 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGVZ5/HFwL+rhZ2SWtQWAgv2Aq+xEHxmhk3HQIbS0c3Yt3kgDd3gnHPVCusitGjwrCpHNvl X-Received: by 2002:a05:6870:b150:b0:1d4:dcbe:51fd with SMTP id a16-20020a056870b15000b001d4dcbe51fdmr8184148oal.54.1695370935512; Fri, 22 Sep 2023 01:22:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695370935; cv=none; d=google.com; s=arc-20160816; b=mUwDTNCcO5K0LL/oViJyytXeu49mQPeEVS+UUeB/VC+obCnmFxcuwd533LEvJBXijT q6z2nRKPlxkXQbxfvA97UOWDPfHR/sq5CbO9195y+f3RSP3aWxo6CGWN2wmlOYU48ROx sNK9bqyfF6DLnCUQxESkTFnnBj1f9jdRoX802Hk4ROboIDR72RtjpvHmlDdOH7PbT2mu jiCYySCB94/C5ee1nGjKliCuo56bIh+uMnGn0w4cDRpwfoiHuKOJBEbRC4Djtdfmhnu0 /B2IUAhSb3LySYDEXpqtlJPRq5aGq5uSkj5y02W0tBWNcMKNOdK8omp6yKyTWnG03oN1 XDBA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=YiqU/9ssWfMxfP4dNAqymHEQv/dS6E87hgjMCflMSo4=; fh=NPrseGB++IlbYHjwaU8zb4VGAaf/wofIm604Kgg3SbM=; b=RILkNOjfavngdwmuiB+RELojxmUekLAYaHNhOKT2tveTDuwde7TAAKY30dwLodt+So t+PG3L4/3aj31z8YjuKE74qfjsF/4CYit4fQOAcYgmrl+NCu9eKP0IXBalb9nB6UQA1q tjqFh0/n56zLdlph2v6OOhZIRVzlBlXlCzOE0gtyBMtqEtQLD8O0MoUkp09K/jnqWNrQ PWoJRL8nMQJ/M52DWi77XKnSWwfpz2u1YRbNSs+6afkuMwxlNv8xh0uhVqFUotM6v52Z 6gCZEvXnswDI5MVmsEmSlfOSUqOHWgRs72TelT8GqJz9uiUYx73QvwjtKltmdFSMKSaI +V7Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=UVH7BLlM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id i67-20020a639d46000000b0057c3103bf15si2452312pgd.277.2023.09.22.01.22.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Sep 2023 01:22:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=UVH7BLlM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 9F983831F243; Fri, 22 Sep 2023 01:09:10 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231676AbjIVIIt (ORCPT + 99 others); Fri, 22 Sep 2023 04:08:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36334 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231888AbjIVIIr (ORCPT ); Fri, 22 Sep 2023 04:08:47 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BF2011A5; Fri, 22 Sep 2023 01:08:41 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4F92BC433C7; Fri, 22 Sep 2023 08:08:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1695370121; bh=EFZdZuA1bgAXV5AvWlugKRnoAhOxAfKWHVnlSpBHmsk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=UVH7BLlMFJgfpXuwIOQyMJKeDa7uMySj42MzRYs1UY/wWNQ2tuCTY/wOvIpDlq/k/ O35vjFv3Yg8edSeTIZQWm4omxME67E3ctvgOJgleY9P2/RG6T3SmHoHJJLFdS3ctLw tr+HovOZyeqp6y/RbkZWtFyISCuaGDTWGchtjioQAqmGIRSFVaTEvqbg75apFUYJEI MUx0sNMMPHgoBDjiaK74rvSf8gZDxPTpkO3CGVuUrCF2l0RfTu6HqfzL2Rtk7xvGnr tXBX2aDMNbxaUNn9fdJwLUEj27V3FxJqxpAMBw5eW10kSI/WMEeTGGifAkd5jq2JTo jRhhF49G7kqfw== Date: Fri, 22 Sep 2023 10:08:36 +0200 From: Christian Brauner To: Cai Xinchen Cc: Tejun Heo , Zefan Li , Johannes Weiner , cgroups@vger.kernel.org, Alexander Viro , linux-fsdevel@vger.kernel.org, dhowells@redhat.com, linux-kernel@vger.kernel.org Subject: Re: [BUG?] fsconfig restart_syscall failed Message-ID: <20230922-drillen-muschel-c9bd03acfe00@brauner> References: <84e5fb5f-67c5-6d34-b93b-b307c6c9805c@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <84e5fb5f-67c5-6d34-b93b-b307c6c9805c@huawei.com> X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Fri, 22 Sep 2023 01:09:10 -0700 (PDT) On Fri, Sep 22, 2023 at 10:18:24AM +0800, Cai Xinchen wrote: > Hello: >   I am doing some test for kernel 6.4, util-linux version:2.39.1. > Have you encountered similar problems? If there is a fix, please > let me know. > Thank you very much > > -------------------------------------------------- > > util-linux version 2.39.1 call mount use fsopen->fsconfig->fsmount->close > instead of mount syscall. > > And use this shell test: > > #!/bin/bash > mkdir -p /tmp/cgroup/cgrouptest > while true > do >         mount -t cgroup -o none,name=foo cgroup /tmp/cgroup/cgrouptest > in mount syscall, no function will check fs->phase, and fc is recreate > in monnt syscall. However, in fdconfig syscall, fc->phase is not initial as > FS_CONTEXT_CREATE_PARAMS, restart_syscall will return -EBUSY. fc is created > in fsopen syscall. Mount api system calls aren't restartable so that doesn't work. cgroup2 doesn't have this issue, only cgroup1 has. So cgroup1_get_tree() should probably be fixed if anyone cares.