summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric W. Biederman <ebiederm@xmission.com>2018-09-22 10:47:54 +0200
committerEric W. Biederman <ebiederm@xmission.com>2018-09-27 21:55:08 +0200
commit2627f0347c682d03e8594a81083557d3d798f58f (patch)
treeeabb7e522cac73b86a2119862f62a15defce4599
parentsignal/arm64: Remove arm64_force_sig_info (diff)
downloadlinux-2627f0347c682d03e8594a81083557d3d798f58f.tar.xz
linux-2627f0347c682d03e8594a81083557d3d798f58f.zip
signal/arm64: In ptrace_hbptriggered name the signal description string
This will let the description be reused shortly. Reviewed-by: Catalin Marinas <catalin.marinas@arm.com> Tested-by: Catalin Marinas <catalin.marinas@arm.com> Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
-rw-r--r--arch/arm64/kernel/ptrace.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/arm64/kernel/ptrace.c b/arch/arm64/kernel/ptrace.c
index 7ab75e78aa08..921267f59d0d 100644
--- a/arch/arm64/kernel/ptrace.c
+++ b/arch/arm64/kernel/ptrace.c
@@ -182,6 +182,7 @@ static void ptrace_hbptriggered(struct perf_event *bp,
struct pt_regs *regs)
{
struct arch_hw_breakpoint *bkpt = counter_arch_bp(bp);
+ const char *desc = "Hardware breakpoint trap (ptrace)";
#ifdef CONFIG_COMPAT
if (is_compat_task()) {
@@ -206,7 +207,7 @@ static void ptrace_hbptriggered(struct perf_event *bp,
#endif
arm64_force_sig_fault(SIGTRAP, TRAP_HWBKPT,
(void __user *)(bkpt->trigger),
- "Hardware breakpoint trap (ptrace)");
+ desc);
}
/*