[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20210110171443.GC1914459@tassilo.jf.intel.com>
Date: Sun, 10 Jan 2021 09:14:43 -0800
From: Andi Kleen <ak@...ux.intel.com>
To: Miaohe Lin <linmiaohe@...wei.com>
Cc: akpm@...ux-foundation.org, tglx@...utronix.de,
dave.hansen@...el.com, jpoimboe@...hat.com, linux-mm@...ck.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] mm: Fix potential pte_unmap_unlock pte error
On Sat, Jan 09, 2021 at 03:01:18AM -0500, Miaohe Lin wrote:
> Since commit 42e4089c7890 ("x86/speculation/l1tf: Disallow non privileged
> high MMIO PROT_NONE mappings"), when the first pfn modify is not allowed,
> we would break the loop with pte unchanged. Then the wrong pte - 1 would
> be passed to pte_unmap_unlock.
Thanks.
While the fix is correct, I'm not sure if it actually is a real bug. Is there
any architecture that would do something else than unlocking the underlying
page? If it's just the underlying page then it should be always the same
page, so no bug.
That said of course the change is the right thing for main line, but probably doesn't
need to be backported.
-Andi
Powered by blists - more mailing lists