projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9674a1b
)
ARC: ptrace: Use USER_REGSET_NOTE_TYPE() to specify regset note names
author
Dave Martin
<Dave.Martin@arm.com>
Tue, 1 Jul 2025 13:55:57 +0000
(14:55 +0100)
committer
Kees Cook
<kees@kernel.org>
Tue, 15 Jul 2025 05:27:46 +0000
(22:27 -0700)
Instead of having the core code guess the note name for each regset,
use USER_REGSET_NOTE_TYPE() to pick the correct name from elf.h.
Signed-off-by: Dave Martin <Dave.Martin@arm.com>
Cc: Vineet Gupta <vgupta@kernel.org>
Cc: Oleg Nesterov <oleg@redhat.com>
Cc: Kees Cook <kees@kernel.org>
Cc: Akihiko Odaki <akihiko.odaki@daynix.com>
Cc: linux-snps-arc@lists.infradead.org
Reviewed-by: Akihiko Odaki <odaki@rsg.ci.i.u-tokyo.ac.jp>
Link:
https://lore.kernel.org/r/20250701135616.29630-5-Dave.Martin@arm.com
Signed-off-by: Kees Cook <kees@kernel.org>
arch/arc/kernel/ptrace.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/arc/kernel/ptrace.c
b/arch/arc/kernel/ptrace.c
index e0c233c178b1aec3ea5e6fe3be9cac851839684c..cad5367b7c3729cee904e541f690e81d28137c87 100644
(file)
--- a/
arch/arc/kernel/ptrace.c
+++ b/
arch/arc/kernel/ptrace.c
@@
-284,7
+284,7
@@
enum arc_getset {
static const struct user_regset arc_regsets[] = {
[REGSET_CMN] = {
-
.core_note_type = NT_PRSTATUS
,
+
USER_REGSET_NOTE_TYPE(PRSTATUS)
,
.n = ELF_NGREG,
.size = sizeof(unsigned long),
.align = sizeof(unsigned long),
@@
-293,7
+293,7
@@
static const struct user_regset arc_regsets[] = {
},
#ifdef CONFIG_ISA_ARCV2
[REGSET_ARCV2] = {
-
.core_note_type = NT_ARC_V2
,
+
USER_REGSET_NOTE_TYPE(ARC_V2)
,
.n = ELF_ARCV2REG,
.size = sizeof(unsigned long),
.align = sizeof(unsigned long),