From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f51.google.com (mail-wr1-f51.google.com [209.85.221.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CD25C350298 for ; Thu, 26 Mar 2026 08:18:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.51 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774513095; cv=none; b=EnibvahIViL6JKIDDAHe0hXGL6Tz9b8n55tRqSFc2t7qbzkgfXQSYA8KVTXpgnYPUQ3qKfZTAnAVHTLTUQ+q0RGHe7xvXJ9L0eX50DOUR9IffM/kl/SOsHjpIaZLfBqcoLUt4yJo0483GmNUfZC9Ghlzk6W8eEndkylp1lIw8OE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774513095; c=relaxed/simple; bh=r9OvURbXLxYgPf/WVXmKDB0FD+Vyp8ag7ofrVW9d4kE=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=LgXzeUXzHz/LJqDOCRRqDs6xFRjY8pURSjaxP+FBNJWpIDpefbnlewRKmibC+vPgtRYcCe01nnLUKi9NzBvD4KkIP5FP2S9tiXV3waal1loRp6XlbHKimH00DDudrHZG478Jxqp0gXMFgCPVTYTLKLMGuxYZ/60XeZetg7/MSSo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com; spf=pass smtp.mailfrom=suse.com; dkim=pass (2048-bit key) header.d=suse.com header.i=@suse.com header.b=GcrcIO2B; arc=none smtp.client-ip=209.85.221.51 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=suse.com header.i=@suse.com header.b="GcrcIO2B" Received: by mail-wr1-f51.google.com with SMTP id ffacd0b85a97d-43b983bb07eso62351f8f.0 for ; Thu, 26 Mar 2026 01:18:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=google; t=1774513092; x=1775117892; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=vuszBhP5EPCTmqOQyNyEH1Awc6FBRdrN/KwuvW52PDo=; b=GcrcIO2BIFmXBy9ok6oFzcdhGMRYwx1pKk+ehqO2elXnw1y/NClVCZcuTEQrjsgsut +/2j3sYSWgoCeq5Wiamtom4SBYcGc6o2HqTPQ9K3NOGS/7b9J5uL5dtlqso0pFbALSDE XUUQvSxQhzCPD0zF7jkY8mOMuQoUyeEozIqtsqYLpfJ4RJvXwAl7qn+SnJ2BvwFfgGXr z1uQItV9gF25/6ufGF+SBDjBGB0ji/XyIEIeCEEb2F22Go5UMzfpT+0K/FhNA92/hImH L+HJIAsccBY9gmCYXDL80rfjwcSJrAHH/xIjtdijHT6WK4oaIcxzHgg63xqjxOFiBgy4 f4EA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1774513092; x=1775117892; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=vuszBhP5EPCTmqOQyNyEH1Awc6FBRdrN/KwuvW52PDo=; b=qNpWLxJUiaZ+RsLRtFJjkKQrlLd8znXLNEy5CjfhA2xc6N1CtfB8P7YMxgqunYoob/ iNaIm1jmXLNcBrM2jo9prPyBP9O3Pqj8VKlJzdHyIU7H9eQYRYycyuSyeHXHvOwy8oLF AJsbNjpN0UIhrIWTJuAR1Nsxdsybgz4kabS/kRV06PL11x9/SefzaCI7A8je6y+xTRKK AqC50fHddpk07JB7FBsTHsZz+NB6QsmD0jv1O2VTpRHvjZwE5QRwsZ//q+JHYJEN73DK pvtsCuaftbWYvChaGqFvBmgX4UtFGVrqnCJrEJznEgpkh/L9hQS8VxX/g5anWtdMPKzT RBYg== X-Forwarded-Encrypted: i=1; AJvYcCXnmly3WUqg9pRlOEdRuVKQq1zhFv0+2x8dfuPrPxo8Jgch60elOi7G2x18BgMtRj+BIqGcKlJRUHruMCU=@vger.kernel.org X-Gm-Message-State: AOJu0Yzrm8YBx2LBkd16FsoBGjxm9VgOhW+2LMkre2ZMJsZ2/0QwC35y +nDoBLtWVof/O7RENHucyp7zq7u/GrCBcy3N3MTKFEMG3Xd1Qb771AOQ4cR3nXD/mKI= X-Gm-Gg: ATEYQzzsbFRVOdqoa0XCbb0oA7aLsFPxExvljUIm6ucUbdFpeemcrW9Ju42qSGqRmIH X+HQlD1JAzRj+6+9hv34nZ43aGPKw6DvAOa0ImECYCWqlS7OsgGziRkykUOSJi4gFE154Kh43H+ d8xjNxI9vToj6py5I1Vlhap7Gei/kHH5PJrftO0Ifr6A8saj+8Uh7tCMoxhYlVglwkHy8fDnvrA eUUTMNechvwHY+RxYT3hauChxvnBzILmtXiAtj0BJxWOIb+8wXp22RkSFg8okA6MWLmc+6cmUVP mhoBwk4S+xMy/1DDn/Gtk0r8778YUvPUqO4zccLaFmOIvQdgw2dk/54DAM+p+gPZojdW2eZ3gHg H9luNc5dqYfJCsjNBVLqfFxFFiWRA+YuwVR6pZ5k1XQ6Qcd6BOjlz52goh3AYYRBOt425U9eLzY VD2Oj+ArRyizY5sUBjdwrpMgOF46phiyxM5zG6/Q6rNqPB5Cg= X-Received: by 2002:a05:6000:2892:b0:43b:50d6:4f00 with SMTP id ffacd0b85a97d-43b88a0d20fmr9477723f8f.30.1774513092147; Thu, 26 Mar 2026 01:18:12 -0700 (PDT) Received: from localhost (109-81-31-149.rct.o2.cz. [109.81.31.149]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-43b919cf1c4sm6189811f8f.23.2026.03.26.01.18.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Mar 2026 01:18:11 -0700 (PDT) Date: Thu, 26 Mar 2026 09:18:10 +0100 From: Michal Hocko To: "Harry Yoo (Oracle)" Cc: Qi Zheng , hannes@cmpxchg.org, hughd@google.com, roman.gushchin@linux.dev, shakeel.butt@linux.dev, muchun.song@linux.dev, david@kernel.org, ljs@kernel.org, ziy@nvidia.com, yosry.ahmed@linux.dev, imran.f.khan@oracle.com, kamalesh.babulal@oracle.com, axelrasmussen@google.com, yuanchu@google.com, weixugc@google.com, chenridong@huaweicloud.com, mkoutny@suse.com, akpm@linux-foundation.org, hamzamahfooz@linux.microsoft.com, apais@linux.microsoft.com, lance.yang@linux.dev, bhe@redhat.com, usamaarif642@gmail.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org, Qi Zheng Subject: Re: [PATCH v2 0/4] fix unexpected type conversions and potential overflows Message-ID: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Thu 26-03-26 16:51:44, Harry Yoo (Oracle) wrote: > On Thu, Mar 26, 2026 at 08:14:36AM +0100, Michal Hocko wrote: > > On Wed 25-03-26 22:13:21, Qi Zheng wrote: > > > From: Qi Zheng > > > > > > Hi all, > > > > > > As Harry Yoo pointed out [1], in scenarios where massive state updates occur > > > (e.g., during the reparenting of LRU folios), the values passed to memcg stat > > > update functions can accumulate and exceed the upper limit of a 32-bit integer. > > > > Is this a real problem without reparenting? In other words is this a > > follow up for that work or something that we need on its own? > > This is not a problem (as discussed in [1]) without reparenting. > [1] https://lore.kernel.org/linux-mm/138d9363-ab0c-4f5c-bedc-b326f5aaee91@linux.dev Please make it explicit in the changelogs and/or make them part of the series. Thanks! -- Michal Hocko SUSE Labs