Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp1399197rdb; Wed, 20 Sep 2023 08:07:47 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEcbiNcM+YUZg6lTVxVieQmxrbzwINn9FPr94RXZpaxiqfX3evT4wpek++73UIyD+tKVBI1 X-Received: by 2002:a05:6a00:24d5:b0:68e:2d9d:b0cc with SMTP id d21-20020a056a0024d500b0068e2d9db0ccmr3390096pfv.6.1695222467479; Wed, 20 Sep 2023 08:07:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695222467; cv=none; d=google.com; s=arc-20160816; b=nsgMVwlmQPudq0WWwlzzpUZnFlLgeDexq8D+hsJ7UAhBntjlK0UsmEMAKuBY1oPZ2s v+6EZP1sJxkc9+ggzc+vYD/lrP56dc4/HweSGy9PCPopM+Y6yNhsXSuifCX2epDbGslb dpJqp5uMI25UxNHUFgdI7HBZT8S3IgsOhFzVp5G80gshIXXtQOEWhfyt9M6nVz9fHHbn 4QjaaK6UPRf7i6TGSLSRpZyBsxTqgAIQ25PjxfHFm24YfO6FUmEk0EdwPyoL19+ROu+F W5kpl1zErSXZzwem1+VRYw8MLg5Yn1rAhxPfaKK6D7c+D1SWoQyUH9Z3CbnLpZtnXoKe GXgQ== 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=s8g2A2LZRQL6dBcydX6TAfasCK7PsFk/rGscxHMHPa0=; fh=Ay1l8Ls/wIWwtGwgmxN5WZmTfZwKSFhtvpFlGLBUeWA=; b=MLsrSdAp+EIjmz8WSi+6CoT9DO5SBzx7uCyB1vAbdnzbVJI7gYTzrtqvGe1jm7WoE2 AkzNA1hMpvTrANgOi3cTkLw44askXQjLqi5YfXU5xCnYxYSVJLHqHXJnEetSlt73/o+C N2FPCwLZ7Z2urCovvKrzSKh6qircCwuLrv6Jhw5z0feJnL6T6RSr7fBSyvqf1x+x0qD8 MfZcUbJX9MEB03ZqehlGsCf1JbBJMhNWnXMs8+6UgzdtgrVUdiG90gdCB6QH40HbXxXh rBcpqRy9YoEDWz8Qm00UnxZI1EBUV5BTVhiv61xuAG0160pgrfAyENUDDP8pccoyoAad Vfrw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=NvoSEPef; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id g16-20020a056a0023d000b00690f8063627si1115940pfc.38.2023.09.20.08.07.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Sep 2023 08:07:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=NvoSEPef; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 3067A80AE806; Wed, 20 Sep 2023 02:26:05 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233877AbjITJZx (ORCPT + 99 others); Wed, 20 Sep 2023 05:25:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55684 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234071AbjITJZu (ORCPT ); Wed, 20 Sep 2023 05:25:50 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 60EDA12F; Wed, 20 Sep 2023 02:25:13 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BF0BEC433C9; Wed, 20 Sep 2023 09:25:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1695201910; bh=+Vx4pZyRUu1fyYPhOi72zytZP5DFTTN2SI/8tCaJRjg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=NvoSEPeffyivIH5CT28GoxlHRWvGT8nI6rZcrGnSCP6Lnm79ksnS8+6TA8PxN+yi3 0KQ5ntj66H6wThAh66/jNwsM7jK10nRNss2HY4PTf1Zz8rlT8jUkwcY1pywD/KVdw0 2pxPMqnHxiFvS8l7uCnCacHDJvfR0m35IK2MZ7lM= Date: Wed, 20 Sep 2023 11:25:08 +0200 From: Greg Kroah-Hartman To: Michal Hocko , Jeremi Piotrowski Cc: 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: <2023092032-applied-gave-0bff@gregkh> 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: X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email 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 (lipwig.vger.email [0.0.0.0]); Wed, 20 Sep 2023 02:26:05 -0700 (PDT) On Wed, Sep 20, 2023 at 10:43:56AM +0200, Michal Hocko wrote: > 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. That will just postpone the breakage, we really shouldn't break userspace. That being said, having userspace "break" because a file is no longer present is not good coding style on the userspace side at all. That's why we have sysfs and single-value-files now, if the file isn't present, then userspace instantly notices and can handle it. Much easier than the old-style multi-fields-in-one-file problem. > > > Address this by wiping out the file completely and effectively get back to > > > pre 4.5 era and CONFIG_MEMCG_KMEM=n configuration. The fact that this is a valid option (i.e. no file) with that config option disabled makes me want to keep this as well, as how does userspace handle this option disabled at all? Or old kernels? I can drop this from stable kernels, but again, this feels like the runc developers are just postponing the problem... thanks, greg k-h