mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v3 0/4] Fix objtool issues about do_syscall() and Clang on LoongArch
@ 2024-08-07  8:59 Tiezhu Yang
  2024-08-07  8:59 ` [PATCH v3 1/4] objtool: Handle frame pointer related instructions Tiezhu Yang
                   ` (4 more replies)
  0 siblings, 5 replies; 10+ messages in thread
From: Tiezhu Yang @ 2024-08-07  8:59 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".

Compiled with GCC and Clang, 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 (4):
  objtool: Handle frame pointer related instructions
  LoongArch: Remove STACK_FRAME_NON_STANDARD(do_syscall)
  LoongArch: Set AS_HAS_THIN_ADD_SUB as y if AS_IS_LLVM
  LoongArch: Enable objtool for Clang

 arch/loongarch/Kconfig                |  4 ++--
 arch/loongarch/kernel/syscall.c       |  4 ----
 tools/objtool/arch/loongarch/decode.c | 11 ++++++++++-
 tools/objtool/check.c                 | 23 ++++++++++++++++++++---
 tools/objtool/include/objtool/elf.h   |  1 +
 5 files changed, 33 insertions(+), 10 deletions(-)

-- 
2.42.0


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

end of thread, other threads:[~2024-09-09  6:14 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-08-07  8:59 [PATCH v3 0/4] Fix objtool issues about do_syscall() and Clang on LoongArch Tiezhu Yang
2024-08-07  8:59 ` [PATCH v3 1/4] objtool: Handle frame pointer related instructions Tiezhu Yang
2024-09-09  1:10   ` Jinyang He
2024-08-07  8:59 ` [PATCH v3 2/4] LoongArch: Remove STACK_FRAME_NON_STANDARD(do_syscall) Tiezhu Yang
2024-08-07  8:59 ` [PATCH v3 3/4] LoongArch: Set AS_HAS_THIN_ADD_SUB as y if AS_IS_LLVM Tiezhu Yang
2024-09-08 14:42   ` Xi Ruoyao
2024-09-09  1:04     ` Huacai Chen
2024-09-09  6:13       ` Xi Ruoyao
2024-08-07  8:59 ` [PATCH v3 4/4] LoongArch: Enable objtool for Clang Tiezhu Yang
2024-09-08 12:01 ` [PATCH v3 0/4] Fix objtool issues about do_syscall() and Clang on LoongArch Huacai Chen

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®