From 1a1ec102045b22ccb9abd6da3ec42776a70d63fb Mon Sep 17 00:00:00 2001 From: Wei Li Date: Sat, 4 May 2019 19:04:11 +0800 Subject: [PATCH] arm64: nmi: fix using wrong offset to get priority hulk inclusion category: bugfix bugzilla: NA CVE: NA ------------------------------------------------- We used wrong offset to get the priority of sgi, then rewrite the sgi prio to the wrong value by mistake. Fixes: dec86aedbc8b("arm64: Add support for on-demand backtrace of other CPUs") Signed-off-by: Wei Li Reviewed-by: Yang Yingliang Signed-off-by: Yang Yingliang --- arch/arm64/kernel/smp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/kernel/smp.c b/arch/arm64/kernel/smp.c index 3a689f4b024e..e6723a0e9355 100644 --- a/arch/arm64/kernel/smp.c +++ b/arch/arm64/kernel/smp.c @@ -1092,7 +1092,7 @@ void ipi_set_nmi_prio(void __iomem *base, u8 prio) u32 offset = (IPI_CPU_BACKTRACE / 4) * 4; u32 shift = (IPI_CPU_BACKTRACE % 4) * 8; - u32 prios = readl_relaxed(base + offset); + u32 prios = readl_relaxed(base + GICR_IPRIORITYR0 + offset); /* clean old priority */ prios &= ~(0xff << shift); -- GitLab