[<prev] [next>] [day] [month] [year] [list]
Message-ID: <tencent_4B60C577479F735A75E6459B9AEAB3F54A05@qq.com>
Date: Sat, 11 Jan 2025 17:56:32 +0800
From: 1534428646@...com
To: catalin.marinas@....com,
will@...nel.org
Cc: mark.rutland@....com,
kristina.martsenko@....com,
liaochang1@...wei.com,
linux-arm-kernel@...ts.infradead.org,
linux-kernel@...r.kernel.org,
stable@...r.kernel.org,
"Yiren.Xie" <1534428646@...com>
Subject: [PATCH] arm64: kprobe: fix an error in single stepping support
From: "Yiren.Xie" <1534428646@...com>
It is obvious a conflict between the code and the comment.
And verified that with this modification it can read the DAIF status.
Signed-off-by: Yiren.Xie <1534428646@...com>
---
arch/arm64/kernel/probes/decode-insn.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm64/kernel/probes/decode-insn.c b/arch/arm64/kernel/probes/decode-insn.c
index 6438bf62e753..22383eb1c22c 100644
--- a/arch/arm64/kernel/probes/decode-insn.c
+++ b/arch/arm64/kernel/probes/decode-insn.c
@@ -40,7 +40,7 @@ static bool __kprobes aarch64_insn_is_steppable(u32 insn)
*/
if (aarch64_insn_is_mrs(insn))
return aarch64_insn_extract_system_reg(insn)
- != AARCH64_INSN_SPCLREG_DAIF;
+ == AARCH64_INSN_SPCLREG_DAIF;
/*
* The HINT instruction is steppable only if it is in whitelist
--
2.34.1
Powered by blists - more mailing lists