Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp659411imm; Fri, 21 Sep 2018 06:19:05 -0700 (PDT) X-Google-Smtp-Source: ANB0VdapthDmDwEY1HJo4F18o0YlDet0mKHtLMcg+3G3xBOf21/hJYl/Sx7NmvpEVjMAXEWcr2i1 X-Received: by 2002:a62:4808:: with SMTP id v8-v6mr46882343pfa.89.1537535945324; Fri, 21 Sep 2018 06:19:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537535945; cv=none; d=google.com; s=arc-20160816; b=zpEPD9vNk9qN4OlexSwFg07vldYL+Pmi3+TP3/AhE5FFbjPskMsEXdih6piQhGE8i5 tJLOmfdCKead23TA8oNNhZQNz1p+WbGcnhzTSvELvduHkWxd7TE+qR6+G0zzQEebrNmK fjWvHwr/kWx0K18ZLAkYaD5i6NtT32NvoHlv6zJkwByUkA8fxq5jSzYcnXw5fpsK567N ma6kiAsbrdXxqCZVjzkuXAfp0AXYYnHq39MWnwFjwP4UTaLwjeoFuZEiMY3sPGqJNNPV sL4ipYRMUszzNJlya9MvZgV/m6ZhmAA2rHzK32HxDLoreABmbms7dLdmOkfS2Vk6yd3X wrXg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :reply-to:mime-version:dkim-signature; bh=fSRwvwhOM0DKy71IgTaPgffXf+6iMoKDxt2k6I15FTE=; b=fVDAuiAvGIwG31vFG+2q54jS7V91+5CtnGADOBH3bte52NpbZpLG4+yziN619bOVfx yQslE0M0i3fW3gnh7Heoj+XDM3di3JFS4ACA4Z/HExd05SHg2Hs5goDtWvOPwgwTRjm8 x1wnEJXIzvZhddUd5R2gXxMmh/nIJajDeTicESA3YBTcyQ3moMBtNLVZsjo4PoKfHFgt q7SsVI/lx5jsmUFS3NczxwPqI8/IVew/f7QYrpnxwWmeb6pRq66tPscOt6yU0DvzuFb8 qeG4hcQ+A7AkOcgTPCv8+XVQsn6+WshGtCEmk8/Mz1YZQyT7Iz6LRh8HmD0BR/GRfMsj 6kMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=AEcfrXbn; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 37-v6si27949860plq.316.2018.09.21.06.18.49; Fri, 21 Sep 2018 06:19:05 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=AEcfrXbn; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389870AbeIUTH0 (ORCPT + 99 others); Fri, 21 Sep 2018 15:07:26 -0400 Received: from mail-ed1-f66.google.com ([209.85.208.66]:41743 "EHLO mail-ed1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728098AbeIUTH0 (ORCPT ); Fri, 21 Sep 2018 15:07:26 -0400 Received: by mail-ed1-f66.google.com with SMTP id f38-v6so10699572edd.8; Fri, 21 Sep 2018 06:18:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:reply-to:from:date:message-id:subject:to:cc; bh=fSRwvwhOM0DKy71IgTaPgffXf+6iMoKDxt2k6I15FTE=; b=AEcfrXbnBy5AUFvarIpUgzacXp5/YWqVxLVHnBaQZaroY7uOKKAVi5dTAVD35ZqQuJ 9ZQ7b1xtjdiWy6A3f5ec7vqorFfJsFW1xQQYfQtiiUsaZRiE1NrgVez4B3vO+Wzke8Dz JUiH8j9e0yfsbxMHrUgy2R9b+QzxtTQYUqC/SyXKjXU1u05RV2fNhkkOu7+KYncb1X6o Ww6Zl8IXJdhXI1Ane3EU/xysqamiY3YkkGNsr7XqgzZfXrncerW/q4Ga57TrYixFmZf1 qGvDSIv2cLTOAYPEazqj3/cqGnqP8694+S2qq4eBSUYCevJOJei5fGG5dwwSx3h3YXEi poZg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:reply-to:from:date:message-id :subject:to:cc; bh=fSRwvwhOM0DKy71IgTaPgffXf+6iMoKDxt2k6I15FTE=; b=MZ98LoAGcepa9fzBqpDWoGT5Mleugd9uzt4rNHob2DVmEZehcvQX5IjLoFzb/1aCt/ yR+i8bj+NGvptu8T35X5PvMoy9Un57a4ZnfQOnqfbfS5sMoF7RW4BqsDjWJXBOzaOydw y44Nf4a/dfuEpqswHmgK9rpBAsG4LrmYz98SM0ArUsJNCpcwO5mkSAO86//BQ1kXvB4w WXYqViQOF8FFgcikdKxkQTJK8IGEkdn9Z+BOfpswCfV/12QVGbjMRj6F9DJ0WhFnUGzV +EsO0GCeMyVYH2EcLIjx6TimiJ+/8n80YdeNwUi9zvFo0Px2DJilNVRfS1L5AzYbACxq OjYw== X-Gm-Message-State: APzg51AY6qqCh6hZ5ld0O0vCeknU8dII0ehqSs+g6VQvL1Pse0tFj0BJ qNHE9CYEClyULuR9bhHiXPnqp/Y4HvnPQIiNLa/JnSAT X-Received: by 2002:a50:baae:: with SMTP id x43-v6mr11836545ede.65.1537535914805; Fri, 21 Sep 2018 06:18:34 -0700 (PDT) MIME-Version: 1.0 Reply-To: mtk.manpages@gmail.com From: "Michael Kerrisk (man-pages)" Date: Fri, 21 Sep 2018 15:18:23 +0200 Message-ID: Subject: Cgroup v2 bug: "domain invalid" node can't be converted to "threaded" To: Tejun Heo Cc: lkml , "open list:CONTROL GROUP (CGROUP)" , "Serge E. Hallyn" , Amin Jamali , Joao De Almeida Pereira Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello Tejun, While experimenting with cgroups, we've found what looks to be a bug. I eventually simplified this to what I think are the minimum steps to demonstrate the issue. The following shell session demonstrates the issue: [Kernel was booted with cgroup_no_v1=all] # cd /sys/fs/cgroup/unified # cat cgroup.subtree_control # show that no controllers are enabled # mkdir -p mycgrp/a/b/c # echo threaded > mycgrp/a/b/cgroup.type At this point, the hierarchy looks as follows: mycgrp [d] a [dt] b [t] c [inv] Now let's make node "a" threaded (and thus "mycgrp" s made "domain threaded"): # echo threaded > mycgrp/a/cgroup.type By this point, we now have a hierarchy that looks as follows: mycgrp [dt] a [t] b [t] c [inv] But, when we try to convert the node "c" from "domain invalid" to "threaded", we get ENOTSUP on the write(): # echo threaded > mycgrp/a/b/c/cgroup.type sh: echo: write error: Operation not supported Your thoughts? Thanks, Michael -- Michael Kerrisk Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/ Linux/UNIX System Programming Training: http://man7.org/training/