]> git.baikalelectronics.ru Git - kernel.git/commit
parisc: fix frame pointer in ftrace_regs_caller()
authorSven Schnelle <svens@stackframe.org>
Wed, 30 Oct 2019 08:17:18 +0000 (09:17 +0100)
committerHelge Deller <deller@gmx.de>
Wed, 30 Oct 2019 20:24:40 +0000 (21:24 +0100)
commit6ca200f4fb70f7a53eead4631caf8a35659705b3
tree251da25272b1694124dc2a7ec2dd98e0dbf6544f
parenta4fdac1767d851c63e26e39ee7545df802a2952f
parisc: fix frame pointer in ftrace_regs_caller()

The current code in ftrace_regs_caller() doesn't assign
%r3 to contain the address of the current frame. This
is hidden if the kernel is compiled with FRAME_POINTER,
but without it just crashes because it tries to dereference
an arbitrary address. Fix this by always setting %r3 to the
current stack frame.

Signed-off-by: Sven Schnelle <svens@stackframe.org>
Signed-off-by: Helge Deller <deller@gmx.de>
arch/parisc/kernel/entry.S