Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp1149378rwi; Mon, 10 Oct 2022 11:56:13 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7pScm6nxAdEp4WoU7zI5/BogrcVYYRGOws3CzuZGGowZr1vg9mt3OSVJ2E6fdrOGbwlTty X-Received: by 2002:a05:6402:26cf:b0:459:d119:5728 with SMTP id x15-20020a05640226cf00b00459d1195728mr18936300edd.424.1665428173237; Mon, 10 Oct 2022 11:56:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665428173; cv=none; d=google.com; s=arc-20160816; b=sKM5THiwuEoR4FJXi/9Ch/UsVJPuuaejuoapF5dyCqsG4ZNrX1rgxW/8e5zVIkXfaA lmS90t1bynw4BBBIUIhs3QHtAUD1+Usr7h7qguMxjeEkQJKVu0aFAODvqIYxqJNSaQOa 2/bFgr8bOCmns5fVaORRthRaIF4JQdN1jBI4X7h10AmIDOMpRA48rO3DWwvE+FCT/tG/ 9dUKkc7LA4XSpzYJGffXcHIv2EFquTNjq3/vZfi6CnDtLU6kmDlleFNaoPkuA/GW7anA yOJnyznbNNO8Hhm8xjgJygXrLfrGb+mumPIsteBU8v+BBWvt5BbIfS+/ecJ1KonX8zfu hmRw== 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=8YgEsyw1oPncWuVxvOwqKuezQ0g/Bo0t0qbIS9RYEDE=; b=VKRoqt7FGpi2qiIhhG/qN2vR+LceWCdmkArsArUs8a8b9ZK/51dkrkm8jmI4TMI35G hnzxQP7R7bgJJFoQyIer52Z+8mjH2J+CGhVA9xy3qgA4mTkdr8Eetp8Pg2Jt71Uq8+aa cvcGdGukIFrQPP1qasLxySrF5uqFRdFJFyzoWLOvwVQ9UtKcYz0z3/+0uc35AFlvfp2K EwNSjT2CTH1+Wo3io1VndHT6J1I2lCMUeqKtV/Kmqr8WKjIRuIx+zl6cywyi9yqx6dyA qf4mrZhTSeZqKmM5H/NkTN4btw684JAeaxAnKP+Wse33tmRSllKeKDBSslQr/BMk/84Z fGFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=GPVQID31; 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 g6-20020a1709061e0600b00781df71dbc1si9309709ejj.174.2022.10.10.11.55.46; Mon, 10 Oct 2022 11:56:13 -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=GPVQID31; 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 S229843AbiJJStS (ORCPT + 99 others); Mon, 10 Oct 2022 14:49:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54160 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229959AbiJJSsy (ORCPT ); Mon, 10 Oct 2022 14:48:54 -0400 Received: from mail-pl1-x629.google.com (mail-pl1-x629.google.com [IPv6:2607:f8b0:4864:20::629]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AC24B753A1 for ; Mon, 10 Oct 2022 11:48:51 -0700 (PDT) Received: by mail-pl1-x629.google.com with SMTP id d24so11158906pls.4 for ; Mon, 10 Oct 2022 11:48:51 -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=8YgEsyw1oPncWuVxvOwqKuezQ0g/Bo0t0qbIS9RYEDE=; b=GPVQID31wrawZK7RErKIZ47VII3yTLH8TTwfo72cNxiEw57BIIAyHAwW/LVQREdvlk bIXVCq51X7hmKqQWMQjTwBaz4Hrurd6n0mGfmqRGZ1bERGCQQDMue5Om06hpS+B8jQtE 4gh0u1AJuTmHbxUldKgPgPSfjG34PIOPMaPmEJih7IaJzGpPgogNpsz/Y7lT6fWEFGVo e5FqXXr5SEYdh+U+TSbDKq3ua5/EEaniEIq/LeKtpQ0VoKtYLLVlV0hgCTSfw7qZpo6Q MYd3SmQfLMUaSuRu7btBcAzxDe2QIiU/w7ob9n0bA6SlUO3LqF/Su+/aBQ2roFBK1tmW XrKA== 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=8YgEsyw1oPncWuVxvOwqKuezQ0g/Bo0t0qbIS9RYEDE=; b=3kf0zJZXfrdEdbab6ykeDOOkK39g2CgVRDkhSDwPCPvq8ofksHfwKixhuD+vMFVR8z QvNTzQHON1ZZijS5SdBgWUk5AHa0HZmH11myOWzzf4eqtuwxVkNQpDSe9Evx+MEpT3d1 CCZ2Zd7V404IX/DKUALuYM749COgl+MItAtrVmoTo1M/DOpuK4x+bR7NLefSKaer5Hq4 HzfTCM76iUJyd5XLUS9lYZJtmtnEOld+4mFzsZ5NMqEM1nlEdmnPqonckq8r9ia7yjoc OeplVWY+VXYmSpfczB3aDkhbAcsTXRRaCWLOzIVlJtA4Dki45COpOE0Wtu/R4JIdmmL4 nyKQ== X-Gm-Message-State: ACrzQf0MBzRiEqYfdhg2BHVP0byRTtblkXjFhDwdrG2mWGidNBKfzHu/ +8LKKJe+5mxhXBNy4VSpTsQ= X-Received: by 2002:a17:902:c412:b0:180:6445:8894 with SMTP id k18-20020a170902c41200b0018064458894mr16625307plk.133.1665427730443; Mon, 10 Oct 2022 11:48:50 -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 z12-20020a1709027e8c00b0016dbaf3ff2esm7011128pla.22.2022.10.10.11.48.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Oct 2022 11:48:50 -0700 (PDT) Sender: Tejun Heo Date: Mon, 10 Oct 2022 08:48:48 -1000 From: Tejun Heo To: Greg KH Cc: Christian Brauner , "Christian A. Ehrhardt" , syzbot , linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com, Yosry Ahmed 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> <20221009173519.jwuissylg5haicie@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 On Sun, Oct 09, 2022 at 08:16:29PM +0200, Greg KH wrote: > On Sun, Oct 09, 2022 at 07:35:19PM +0200, Christian Brauner wrote: > > On Sun, Oct 09, 2022 at 03:10:36PM +0200, Christian A. Ehrhardt wrote: > > > > > > Since commit f3a2aebdd6, Version 1 cgroups no longer cause an > > > error when used with CLONE_INTO_CGROUP. However, the permission > > > checks performed during clone assume a Version 2 cgroup. > > > > > > Restore the error check for V1 cgroups in the clone() path. > > > > > > Reported-by: syzbot+534ee3d24c37c411f37f@syzkaller.appspotmail.com > > > Link: https://lore.kernel.org/lkml/000000000000385cbf05ea3f1862@google.com/ > > > Fixes: f3a2aebdd6 ("cgroup: enable cgroup_get_from_file() on cgroup1") > > > Signed-off-by: Christian A. Ehrhardt > > > --- > > > > Thanks for fixing this, > > Reviewed-by: Christian Brauner (Microsoft) > > No cc: stable? :( This got merged this cycle, so no need for -stable. Thanks. -- tejun