Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp1291177rdb; Wed, 20 Sep 2023 05:25:17 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGniOS3MhgosJ9F0STzl8uj9p3iMGbmuyZ7hTNtoyBO7bOxRjR+hTwayVEmyi1luVKm1ob0 X-Received: by 2002:a05:6358:2624:b0:143:26ab:1ee9 with SMTP id l36-20020a056358262400b0014326ab1ee9mr2734786rwc.32.1695212716762; Wed, 20 Sep 2023 05:25:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695212716; cv=none; d=google.com; s=arc-20160816; b=cJyBJXKniYGC+V+43ZuidGwvTIfswVEYEFFtgtU//KA51y3yN7UAg/4evqCydWWy2Z lqRareGV5KZWIZktiDmA1+XyEjD5Odhcfbiy0+6aHMmO4/FeKMbtVqzkgOVhx9yxM4+t 8Q7S4m+2IvhxDHJnnG/ZXYrFuqlSe+u0mU3dpUSLWGT4LJHvRIwODFx3x/84pexy8chl pEkFLykrsJf+7wSSIoMxVzNCDuJBZUGgF58wa6uRNO6YWHbzFUDj3SQl4vk0x9oOA2/s 6MWw6AEP2OcYY5NSIV7vR4TxN2YawGmcZ+B8gYelczVSMk6rTQP1BdKDON6cJuCSSmLX xLew== 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:dkim-signature; bh=GjxBNZGORuJZTEppU8GKxjtCs5dciR43Qw/lEOGS50I=; fh=NmIHMeSBFNQzQMP8Q8nMyPOIuXY7RsTh/cJt+6Z5+mU=; b=w1PZZWSLmcG6tL6bb/E1XreVzhTVmtc6k0S5yqZXEhzCvNBaKc2qJL9jTzRftKJFu0 KZvAvocuQ/xPtgJykAuZjb3aNO8V9gByp34ypxT8rkEjoH7aJJjDawYx3F31WIGQ/fe8 nijghKfmvEi9h69jf8DGO6QdG93W0We84A3c8SeyCTltvjD5DuDq5zsqTVRHFbPaPdXf JIjQ/SmQhN1Y1v86A38fLcmnSUubh3cyUguzknxGoX7KQiwBB52cZP0T+LtwT7YII0MS keSflWhRkGvVWNAjAcMTmf1o1V8JF1THF/vxJDPqI/5tETT7Oq9/LltZGqasF1Y3O3kL b4PA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b="EQnrAlU/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id bg26-20020a056a02011a00b00578889362a7si5415675pgb.5.2023.09.20.05.25.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Sep 2023 05:25:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b="EQnrAlU/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id E54F482A8557; Wed, 20 Sep 2023 01:44:05 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232618AbjITIoG (ORCPT + 99 others); Wed, 20 Sep 2023 04:44:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42246 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231269AbjITIoE (ORCPT ); Wed, 20 Sep 2023 04:44:04 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [IPv6:2001:67c:2178:6::1d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 16C7994; Wed, 20 Sep 2023 01:43:59 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id A55041FDDA; Wed, 20 Sep 2023 08:43:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1695199437; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=GjxBNZGORuJZTEppU8GKxjtCs5dciR43Qw/lEOGS50I=; b=EQnrAlU/3fuFatTWKEmawTXMpJeQzH/U6qvScECWhU41Pu6gX6JI12bG3Nr+YOhd9n7IOo q8G2eBepsmnJIuhaaiZ09mWIDB/3QPPqGQwfCCcOqZZEnyN5J9MY7jj18kpt1ks8tb3pEO K+ubfa53ezr2wkkyOZuUPYWxTXmLf34= Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 7EDBD132C7; Wed, 20 Sep 2023 08:43:57 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id ZkT2G82wCmWvXQAAMHmgww (envelope-from ); Wed, 20 Sep 2023 08:43:57 +0000 Date: Wed, 20 Sep 2023 10:43:56 +0200 From: Michal Hocko To: Jeremi Piotrowski Cc: Greg Kroah-Hartman , stable@vger.kernel.org, patches@lists.linux.dev, Shakeel Butt , Johannes Weiner , Roman Gushchin , Muchun Song , Tejun Heo , Andrew Morton , linux-kernel@vger.kernel.org, regressions@lists.linux.dev, mathieu.tortuyaux@gmail.com Subject: Re: [REGRESSION] Re: [PATCH 6.1 033/219] memcg: drop kmem.limit_in_bytes Message-ID: References: <20230917191040.964416434@linuxfoundation.org> <20230917191042.204185566@linuxfoundation.org> <20230920081101.GA12096@linuxonhyperv3.guj3yctzbm1etfxqx2vob5hsef.xx.internal.cloudapp.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230920081101.GA12096@linuxonhyperv3.guj3yctzbm1etfxqx2vob5hsef.xx.internal.cloudapp.net> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS autolearn=ham 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Wed, 20 Sep 2023 01:44:06 -0700 (PDT) On Wed 20-09-23 01:11:01, Jeremi Piotrowski wrote: > On Sun, Sep 17, 2023 at 09:12:40PM +0200, Greg Kroah-Hartman wrote: > > 6.1-stable review patch. If anyone has any objections, please let me know. > > > > ------------------ > > Hi Greg/Michal, > > This commit breaks userspace which makes it a bad commit for mainline and an > even worse commit for stable. > > We ingested 6.1.54 into our nightly testing and found that runc fails to gather > cgroup statistics (when reading kmem.limit_in_bytes). The same code is vendored > into kubelet and kubelet fails to start if this operation fails. 6.1.53 is > fine. Could you expand some more on why is the file read? It doesn't support writing to it for some time so how does reading it helps in any sense? Anyway, I do agree that the stable backport should be reverted. > > Address this by wiping out the file completely and effectively get back to > > pre 4.5 era and CONFIG_MEMCG_KMEM=n configuration. > > On reads, the runc code checks for MEMCG_KMEM=n by checking > kmem.usage_in_bytes. If it is present then runc expects the other cgroup files > to be there (including kmem.limit_in_bytes). So this change is not effectively > the same. > > Here's a link to the PR that would be needed to handle this change in userspace > (not merged yet and would need to be propagated through the ecosystem): > > https://github.com/opencontainers/runc/pull/4018. Thanks. Does that mean the revert is still necessary for the Linus tree or do you expect that the fix can be merged and propagated in a reasonable time? -- Michal Hocko SUSE Labs