From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 69AC9C433FE for ; Sun, 9 Oct 2022 18:17:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230287AbiJISRQ (ORCPT ); Sun, 9 Oct 2022 14:17:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37744 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230284AbiJISQy (ORCPT ); Sun, 9 Oct 2022 14:16:54 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 56BCC2CE00 for ; Sun, 9 Oct 2022 11:15:48 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id AB03F60C38 for ; Sun, 9 Oct 2022 18:15:47 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6FEACC433D7; Sun, 9 Oct 2022 18:15:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1665339347; bh=dIhWemmhcrJkEADi3PjUFTm4lR2Lw6gcZBBCTCbrmH0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=o6zh19Z/xp2MfjX73mR8DSMb3M8LuCfWKR1yM147gYran8K+l8G/D/M5OKo+5Y/jF okm7hvGpCZcjAS2bvg///YvLVRcAcu036rFvxmMNazU4JB4gdekgjDIOjBGyOBw8HG PASVT6GVDXw4eSg0fAwl7h6VqP099Ph4MfIg9LqU= Date: Sun, 9 Oct 2022 20:16:29 +0200 From: Greg KH To: Christian Brauner Cc: "Christian A. Ehrhardt" , Tejun Heo , 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: <20221009173519.jwuissylg5haicie@wittgenstein> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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? :(