All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 5.10.y 0/2] disable ftrace of sbi functions
@ 2021-08-18 12:34 Dimitri John Ledkov
  2021-08-18 12:34 ` [PATCH 5.10.y 1/2] riscv: Fixup wrong ftrace remove cflag Dimitri John Ledkov
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Dimitri John Ledkov @ 2021-08-18 12:34 UTC (permalink / raw)
  To: stable

One cannot ftrace functions used to setup ftrace. Doing so leads to a
racy kernel panic as observed by users on SiFive HiFive Unmatched
boards with Ubuntu kernels.

This has been debugged and fixed in v5.12 kernels by ensuring that all
sbi functions are excluded from ftrace.

Link: https://forums.sifive.com/t/u-boot-says-unhandled-exception-illegal-instruction/4898/12
BugLink: https://bugs.launchpad.net/bugs/1934548

Guo Ren (2):
  riscv: Fixup wrong ftrace remove cflag
  riscv: Fixup patch_text panic in ftrace

 arch/riscv/kernel/Makefile | 5 +++--
 arch/riscv/mm/Makefile     | 3 ++-
 2 files changed, 5 insertions(+), 3 deletions(-)

-- 
2.30.2


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

end of thread, other threads:[~2021-09-01  9:19 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-18 12:34 [PATCH 5.10.y 0/2] disable ftrace of sbi functions Dimitri John Ledkov
2021-08-18 12:34 ` [PATCH 5.10.y 1/2] riscv: Fixup wrong ftrace remove cflag Dimitri John Ledkov
2021-08-18 12:34 ` [PATCH 5.10.y 2/2] riscv: Fixup patch_text panic in ftrace Dimitri John Ledkov
2021-09-01  9:19 ` [PATCH 5.10.y 0/2] disable ftrace of sbi functions Greg KH

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.