Re: [PATCH V3] mm: fix use-after free of page_ext after race with memory-offline

From: Andrew Morton
Date: Tue Aug 09 2022 - 21:58:07 EST


On Tue, 9 Aug 2022 20:16:43 +0530 Charan Teja Kalla <quic_charante@xxxxxxxxxxx> wrote:

> The below is one path where race between page_ext and offline of the
> respective memory blocks will cause use-after-free on the access of
> page_ext structure.

Has this race ever been observed at runtime?

Given the size of the fix, I'm looking for excuses to not backport it
into -stable kernels!