Re: [PATCH v2 4/4] mm: memcontrol: fix unexpected massive positive number in memcg_state_val_in_pages()

From: Lorenzo Stoakes (Oracle)

Date: Fri Mar 27 2026 - 03:52:29 EST


On Thu, Mar 26, 2026 at 08:13:49PM -0700, Andrew Morton wrote:
> On Fri, 27 Mar 2026 10:42:52 +0800 Qi Zheng <qi.zheng@xxxxxxxxx> wrote:
>
> > > a) Redo this "fix unexpected ..." series on top of "Eliminate ..."
> > > and tolerate the bisection hole (easiest).
> >
> > From my personal perspective, I prefer this approach. The issues fixed
> > by this patchset aren't too critical; it's just that the counter might
> > overflow (and only with CONFIG_MEMCG_V1). If it can be included in
> > v7.1-rcX along with "Eliminate ...", I think it's acceptable.
>
> Cool, thanks.
>
> I've dropped "fix unexpected type conversions and potential overflows
> v2" from mm.git to give you a clean mm-unstable to work against. I
> expect to be pushing this a couple of hours from now.
>

Yeah this works for me too, I think given low chance of hitting we can tolerate
a small bisection hole!