mirror of
https://github.com/torvalds/linux.git
synced 2026-07-27 17:47:41 +02:00
riscv/ptrace: Use USER_REGSET_NOTE_TYPE for REGSET_CFI
Fixes a warning while dumping core:
[54983.546369][ C7] WARNING: [!note_name] fs/binfmt_elf.c:1771 at elf_core_dump+0x910/0xf68, CPU#7: abort01/31982
Fixes: 2af7c9cf02 ("riscv/ptrace: expose riscv CFI status and state via ptrace and in core files")
Signed-off-by: Andreas Schwab <schwab@suse.de>
Link: https://patch.msgid.link/87y0hcxuh5.fsf@igel.home
Signed-off-by: Paul Walmsley <pjw@kernel.org>
This commit is contained in:
parent
5200f5f493
commit
e3573f739e
|
|
@ -413,7 +413,7 @@ static struct user_regset riscv_user_regset[] __ro_after_init = {
|
|||
#endif
|
||||
#ifdef CONFIG_RISCV_USER_CFI
|
||||
[REGSET_CFI] = {
|
||||
.core_note_type = NT_RISCV_USER_CFI,
|
||||
USER_REGSET_NOTE_TYPE(RISCV_USER_CFI),
|
||||
.align = sizeof(__u64),
|
||||
.n = sizeof(struct user_cfi_state) / sizeof(__u64),
|
||||
.size = sizeof(__u64),
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user