mbox series

[5.10.y,0/2] disable ftrace of sbi functions

Message ID 20210818123406.197638-1-dimitri.ledkov@canonical.com
Headers show
Series disable ftrace of sbi functions | expand

Message

Dimitri John Ledkov Aug. 18, 2021, 12:34 p.m. UTC
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(-)

Comments

Greg KH Sept. 1, 2021, 9:19 a.m. UTC | #1
On Wed, Aug 18, 2021 at 01:34:04PM +0100, Dimitri John Ledkov wrote:
> 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

> 


Now queued up, thanks.

greg k-h