Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a3c13904 authored by Vinayak Menon's avatar Vinayak Menon
Browse files

arm64: kpti: force off kpti



Since most of the CPUs aren't prone to meltdown,
force off the kpti feature. Enable on required
targets.

Change-Id: If78c70bcaeac2b157a901e5036190aaf9e5aabf6
Signed-off-by: default avatarVinayak Menon <vinmenon@codeaurora.org>
parent 52c9eb46
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -891,7 +891,8 @@ static bool has_cache_dic(const struct arm64_cpu_capabilities *entry,
}

static bool __meltdown_safe = true;
static int __kpti_forced; /* 0: not forced, >0: forced on, <0: forced off */
/* 0: not forced, >0: forced on, <0: forced off */
static int __kpti_forced = -1;

static bool unmap_kernel_at_el0(const struct arm64_cpu_capabilities *entry,
				int scope)