Thread (61 messages) 61 messages, 5 authors, 2023-12-14

Re: [PATCH v3 05/25] arm64: context switch POR_EL0 register

From: Catalin Marinas <catalin.marinas@arm.com>
Date: 2023-12-07 13:55:36
Also in: kvmarm, linux-fsdevel, linux-kselftest, linux-mm

On Sat, Nov 25, 2023 at 12:02:49PM +0000, Mark Brown wrote:
On Fri, Nov 24, 2023 at 04:34:50PM +0000, Joey Gouly wrote:
quoted
+static void flush_poe(void)
+{
+	if (system_supports_poe())
+		write_sysreg_s(POR_EL0_INIT, SYS_POR_EL0);
+}
Here we have no isb()...
My immediate thought was that we'd not care about the ISB here since
we'll have an ERET before getting to EL0. However, we may have some
LDTR/STTR populating the new process args page on exec which may, in
theory, pick up a stale POR_EL0.

-- 
Catalin

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help