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

From: Charan Teja Kalla
Date: Mon Aug 29 2022 - 06:45:12 EST


Hi Andrew,

On 8/27/2022 8:49 AM, Andrew Morton wrote:
> On Fri, 26 Aug 2022 12:26:33 +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.
>
> What are people's thoughts on a -stable backport? It looks like the
> bug has been there for years and the means of hitting it are obscure
> and the patch isn't minor, so I'm thinking no?

Michal also said no to back port and I also agree with.

https://lore.kernel.org/all/YvNc8vuinnddc78j@xxxxxxxxxxxxxx/#t
https://lore.kernel.org/all/3aab7518-ff57-abdb-8bab-ea581197a07e@xxxxxxxxxxx/


Thanks,
Charan


>