projects/linux·commit 31408fbe

Merge branch 'parisc-5.4-3' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux

31408fbe · Linus Torvalds <[email protected]> · 2019-11-01 15:16:25 -07:00

Pull parisc fix from Helge Deller:
 "Fix a parisc kernel crash with ftrace functions when compiled without
  frame pointers"

* 'parisc-5.4-3' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux:
  parisc: fix frame pointer in ftrace_regs_caller()
Commit
31408fbe33d1d5e6209fa89fa5b45459197b8970
Parents
0dbe6cb8 · 3d252454

Merge commit. Changes below are compared with the first parent: 0dbe6cb8.

Changes

1 files changed · +1 −1

FileStatusAddDelContent
arch/parisc/kernel/entry.Smodified+1−1View file

arch/parisc/kernel/entry.S

View file
diff --git a/arch/parisc/kernel/entry.S b/arch/parisc/kernel/entry.S
index 1d1d748..b96d744 100644
--- a/arch/parisc/kernel/entry.S
+++ b/arch/parisc/kernel/entry.S
@@ -2125,7 +2125,7 @@ ftrace_regs_caller:
copy %rp, %r26
LDREG -FTRACE_FRAME_SIZE-PT_SZ_ALGN(%sp), %r25
ldo -8(%r25), %r25
- copy %r3, %arg2
+ ldo -FTRACE_FRAME_SIZE(%r1), %arg2
b,l ftrace_function_trampoline, %rp
copy %r1, %arg3 /* struct pt_regs */