linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/3] arm64 live patching
@ 2018-08-17 10:25 Torsten Duwe
  2018-08-17 10:27 ` [PATCH v2 1/3] arm64: implement ftrace with regs Torsten Duwe
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Torsten Duwe @ 2018-08-17 10:25 UTC (permalink / raw)
  To: Will Deacon, Catalin Marinas, Julien Thierry, Steven Rostedt,
	Josh Poimboeuf, Ingo Molnar, Ard Biesheuvel, Arnd Bergmann,
	AKASHI Takahiro
  Cc: linux-arm-kernel, linux-kernel, live-patching

Hi all!

Here's v2; I hope I have incorporated all feedback properly.
Julien: #S_X28 + 8 is in, but ftrace_modify_call() is referenced
from generic code: kernel/trace/ftrace.c __ftrace_replace_code()

And I'd *really* like some feedback from ARM/Linaro/... on the stack
unwinder!

[Changes from v1]:

* Missing compiler support is now a Makefile error, instead
  of a warning. This will keep the compile log shorter and
  it will thus be easier to spot the problem.

* A separate ftrace_regs_caller. Only that one will write out
  a complete pt_regs, for efficiency.

* Replace the use of X19 with X28 to remember the old PC during
  live patch detection, as only that is saved&restored now for
  non-regs ftrace.

* CONFIG_DYNAMIC_FTRACE_WITH_REGS and CC_USING_PATCHABLE_FUNCTION_ENTRY
  are currently synonymous on arm64, but differentiate better for
  the future when this is no longer the case.

* Clean up "old"/"new" insn value setting vs. #ifdefs.

* #define a INSN_MOV_X9_X30 with suggested aarch64_insn_gen call
  and use that instead of an immediate hex value.

	Torsten

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

end of thread, other threads:[~2018-08-29  7:11 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-08-17 10:25 [PATCH v2 0/3] arm64 live patching Torsten Duwe
2018-08-17 10:27 ` [PATCH v2 1/3] arm64: implement ftrace with regs Torsten Duwe
2018-08-17 17:20   ` Julien Thierry
2018-08-20  6:55   ` Ard Biesheuvel
2018-08-29  7:11   ` AKASHI Takahiro
2018-08-17 10:27 ` [PATCH v2 2/3] arm64: implement live patching Torsten Duwe
2018-08-17 10:27 ` [PATCH v2 3/3] arm64: reliable stacktraces Torsten Duwe
2018-08-20  8:28   ` Julien Thierry

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).