Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp1236672rwi; Mon, 10 Oct 2022 13:16:28 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6eZXtn+G+TGuZ87yi6rzR5Y7PWuoqzfK3h5Mnz2mZKtTBjmc4ATuO49u8Q8TMiV+iHw9N5 X-Received: by 2002:a05:6402:114a:b0:454:85e4:2295 with SMTP id g10-20020a056402114a00b0045485e42295mr19454108edw.348.1665432987896; Mon, 10 Oct 2022 13:16:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665432987; cv=none; d=google.com; s=arc-20160816; b=EnMruJKZrnjwVgBVgNDQO+yKB/RNfOsQkcwqS3HTIUVtPKBGV/zRTXK2+RHeiM6bzt gMX707L15w6oTymM6VlfWAhtSIDcl+98RFrIjI+3n3IlFIiPe7bf4UoOSOF+cJoWRAYz VpB8wVQU0RaQNsEJoV/SQjazS1BWtbrrEXnuIUXErj2rGR/VENgp50kifv/tgzAwKsY2 bNQzLFLIKQgocM9ZOQRwG+5aHlg1soxg7woOMeMyW4flyporV4tXPHMtVS/MtUlDO4Jp YDC+i+FdCZwebHYBa7OrvpWQB+RWMs8PLQD7z8fam7FGQW9jWmDhsTmce2JsywwlR+/F HL0w== 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-disposition:mime-version :references:message-id:subject:cc:to:from:date:sender:dkim-signature; bh=nNCg1vG/TpDaFFOERkcuISZd2SrHkdu8vq5Ds7eoy/k=; b=dtTGSIM4rMHjcnl3/AYhuX6NTRTTLSyvOWUHAU68CWBl3HehEb71nGT234AErdOlDH bYNBvPMHf3UfoolR9YEaGclQzuDfji7yr33I3XvFm4l+TdEse9re1cNMxCPG9yZGS7gG QybO6l+uSNe0Dq7A10UMYYwNUjeeu/zYmkU5+t853h5Zl9gDPldSLVyie/XC5E2cLTEi boz8yir/kHqoNiocbPaYwl9w7M7N3fkLXOA0oscIVfpJyw+BlBzaIz3owEpM4l7mGp4u ebUYvLDqCYHQ5I82TtOhX73+8JuCDXKDkOAh1+jsvoiXGx8zPqS8rDbB6z9UjmI/ChMW hXOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=aQSEQa8S; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id jg9-20020a170907970900b0078c5f3569a8si11745479ejc.459.2022.10.10.13.16.01; Mon, 10 Oct 2022 13:16:27 -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; dkim=pass header.i=@gmail.com header.s=20210112 header.b=aQSEQa8S; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229624AbiJJUHb (ORCPT + 99 others); Mon, 10 Oct 2022 16:07:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33894 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229607AbiJJUHF (ORCPT ); Mon, 10 Oct 2022 16:07:05 -0400 Received: from mail-pg1-x530.google.com (mail-pg1-x530.google.com [IPv6:2607:f8b0:4864:20::530]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 26E3C15A3C for ; Mon, 10 Oct 2022 13:07:04 -0700 (PDT) Received: by mail-pg1-x530.google.com with SMTP id q9so11091125pgq.8 for ; Mon, 10 Oct 2022 13:07:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:from:to:cc:subject:date:message-id :reply-to; bh=nNCg1vG/TpDaFFOERkcuISZd2SrHkdu8vq5Ds7eoy/k=; b=aQSEQa8S6ut5Et5WaqN9RZRvdifpoAnGd2VM6ccY1LlCosHu7rgwJd/IYBEK98avrq HXQtKvpnJoAdcnSbNZfCshUCMl4Y5l5Pmqk6zxou4XyUtDjeobQpIsIwNxvAzdN1T5XK 61UJ4niywv5iAJqDkXXjVO5z3UXvT2jrVNmFRyiAABs6dJmev0SkjH2JeEg8wh2OS+RR GjcjSsyJW1M8BT0uY104FbDl9sigW1+1PK/IWi/HoGKqiimR00//L/WE+Md0wSYDuDes eQO+FspTud1TgoaUmQDutAQoap7gd1zZ2Rz0Jtp1wktejb3av6Fak8ub6bPxusl0pWDn xDGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=nNCg1vG/TpDaFFOERkcuISZd2SrHkdu8vq5Ds7eoy/k=; b=HOEfLjCWUm7XCgrrB7KXNpVl4By+7ccco22PAHmEz2eNze0WtKc6BBcUm9KvzSmpdY mxhhjaGz3hrp+BHlH08Z3L8vTjHwfNNhMd/nFhHjIIWLp/8OD6LOdOYlCm4nq1R89bFu TDnn8w3kNKInrQK4nQPwD7k4Kr+3BRPjqYH4phjQlT4uJ08Xw9ODxgrZ984MIfHcctW6 eslbnQUFvFyemjiKbP95J9Swkle9jvIFdG7ng1scGHCBR6ob5Gcu8uBHJTh5xOBe4vq4 MIx9uirk9yUF2o2tDDT/rDyGvT5VoJZuj2mxKEURU6rN8E4YO3FfrnMBdRGnQS9xN5xG nKqw== X-Gm-Message-State: ACrzQf0AuL4EEXAZReOTmN/Vu0EYtCz0jpqwGwJesG8xumpPp7hvrYiI A2DgrDvZSQ8wY2LjmSlPIvs= X-Received: by 2002:a63:e14c:0:b0:439:2e24:e014 with SMTP id h12-20020a63e14c000000b004392e24e014mr17591574pgk.173.1665432423538; Mon, 10 Oct 2022 13:07:03 -0700 (PDT) Received: from localhost (2603-800c-1a02-1bae-a7fa-157f-969a-4cde.res6.spectrum.com. [2603:800c:1a02:1bae:a7fa:157f:969a:4cde]) by smtp.gmail.com with ESMTPSA id h25-20020a633859000000b004351358f056sm6709343pgn.85.2022.10.10.13.07.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Oct 2022 13:07:02 -0700 (PDT) Sender: Tejun Heo Date: Mon, 10 Oct 2022 10:07:01 -1000 From: Tejun Heo To: Yosry Ahmed Cc: "Christian A. Ehrhardt" , Christian Brauner , syzbot , gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com, Martin KaFai Lau Subject: Re: [PATCH] cgroup: Fix crash with CLONE_INTO_CGROUP and v1 cgroups Message-ID: References: <000000000000385cbf05ea3f1862@google.com> <00000000000028a44005ea40352b@google.com> <20221009084039.cw6meqbvy4362lsa@wittgenstein> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE, SPF_PASS autolearn=no 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 Hello, On Mon, Oct 10, 2022 at 12:57:34PM -0700, Yosry Ahmed wrote: > Any suggestions for the new names though? Given that the new ones > would be the ones that will support both versions, I am not sure how > to name them differently in a meaningful way. Maybe something like > cgroup_get_all_from_[fd/file]() ? idk, cgroup12_get_from_[fd/file]()? > IMO, we can rename the current versions to > cgroup_get_dfl_from_[fd/file](), and the new ones (which support both) > as cgroup_get_from_fd/file(). In this case it's obvious that one > version specifically works on "dfl", aka cgroup2. It's kinda confusing because we've been assuming that these lookup functions are all cgroup2 only. Thanks. -- tejun