Re: [PATCH] LoongArch: mm: Refactor TLB handlers

From: Xi Ruoyao
Date: Sun Oct 09 2022 - 06:37:38 EST


On Sun, 2022-10-09 at 14:13 +0800, Huacai Chen wrote:
> Queued for loongarch-next, thanks.

> And fixes the concurrent modification issue of fast path for huge
> pages.
> This issue will occur in the following steps:
>
> CPU-1 (In TLB exception) CPU-2 (In THP)
> 1: Load PMD entry (HUGE=1)
> 2: Goto huge path
> 3: Store PMD entry (HUGE=0)
> 4: Reload PMD entry (HUGE=0)
> 5: Fill TLB entry (PA is incorrect)

Is this issue causing problems in practice? If true should we pick this
for loongarch-fixes and backport into 5.19 & 6.0 too?

--
Xi Ruoyao <xry111@xxxxxxxxxxx>
School of Aerospace Science and Technology, Xidian University