Skip to content

Commit cb32fb7

Browse files
Dave Martinkees
authored andcommitted
xtensa: ptrace: Use USER_REGSET_NOTE_TYPE() to specify regset note names
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: Chris Zankel <chris@zankel.net> Cc: Max Filippov <jcmvbkbc@gmail.com> Cc: Oleg Nesterov <oleg@redhat.com> Cc: Kees Cook <kees@kernel.org> Cc: Akihiko Odaki <akihiko.odaki@daynix.com> Reviewed-by: Akihiko Odaki <odaki@rsg.ci.i.u-tokyo.ac.jp> Link: https://lore.kernel.org/r/20250701135616.29630-23-Dave.Martin@arm.com Signed-off-by: Kees Cook <kees@kernel.org>
1 parent 40d3a88 commit cb32fb7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

arch/xtensa/kernel/ptrace.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,15 +193,15 @@ enum xtensa_regset {
193193

194194
static const struct user_regset xtensa_regsets[] = {
195195
[REGSET_GPR] = {
196-
.core_note_type = NT_PRSTATUS,
196+
USER_REGSET_NOTE_TYPE(PRSTATUS),
197197
.n = sizeof(struct user_pt_regs) / sizeof(u32),
198198
.size = sizeof(u32),
199199
.align = sizeof(u32),
200200
.regset_get = gpr_get,
201201
.set = gpr_set,
202202
},
203203
[REGSET_TIE] = {
204-
.core_note_type = NT_PRFPREG,
204+
USER_REGSET_NOTE_TYPE(PRFPREG),
205205
.n = sizeof(elf_xtregs_t) / sizeof(u32),
206206
.size = sizeof(u32),
207207
.align = sizeof(u32),

0 commit comments

Comments
 (0)