mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v2 0/3] Fix objtool warning about do_syscall() on LoongArch
@ 2024-08-05  3:26 Tiezhu Yang
  2024-08-05  3:26 ` [PATCH v2 1/3] objtool/LoongArch: Decode secondary stack instruction Tiezhu Yang
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Tiezhu Yang @ 2024-08-05  3:26 UTC (permalink / raw)
  To: Josh Poimboeuf, Peter Zijlstra, Huacai Chen; +Cc: loongarch, linux-kernel

With this series, there is no objtool warning about do_syscall() and
there is handle_syscall() which is the previous frame of do_syscall()
in the call trace when running "echo l > /proc/sysrq-trigger", tested
with the following two configs:

(1) CONFIG_RANDOMIZE_KSTACK_OFFSET=y &&
    CONFIG_RANDOMIZE_KSTACK_OFFSET_DEFAULT=n
(2) CONFIG_RANDOMIZE_KSTACK_OFFSET=y &&
    CONFIG_RANDOMIZE_KSTACK_OFFSET_DEFAULT=y

Tiezhu Yang (3):
  objtool/LoongArch: Decode secondary stack instruction
  objtool: Handle secondary stack related instructions
  LoongArch: Remove STACK_FRAME_NON_STANDARD(do_syscall)

 arch/loongarch/kernel/syscall.c         |  4 ----
 tools/arch/loongarch/include/asm/inst.h | 12 ++++++++++
 tools/objtool/arch/loongarch/decode.c   | 29 ++++++++++++++++++++++++-
 tools/objtool/check.c                   | 22 +++++++++++++++++++
 tools/objtool/include/objtool/elf.h     |  1 +
 5 files changed, 63 insertions(+), 5 deletions(-)

-- 
2.42.0


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2024-08-05 10:15 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-08-05  3:26 [PATCH v2 0/3] Fix objtool warning about do_syscall() on LoongArch Tiezhu Yang
2024-08-05  3:26 ` [PATCH v2 1/3] objtool/LoongArch: Decode secondary stack instruction Tiezhu Yang
2024-08-05  3:26 ` [PATCH v2 2/3] objtool: Handle secondary stack related instructions Tiezhu Yang
2024-08-05  6:37   ` Tiezhu Yang
2024-08-05  9:03   ` kernel test robot
2024-08-05 10:15   ` Jinyang He
2024-08-05  3:27 ` [PATCH v2 3/3] LoongArch: Remove STACK_FRAME_NON_STANDARD(do_syscall) Tiezhu Yang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®