Alex Sverdlin
8113e62292
ARM: 9079/1: ftrace: Add MODULE_PLTS support
commit 79f32b221b upstream
Teach ftrace_make_call() and ftrace_make_nop() about PLTs.
Teach PLT code about FTRACE and all its callbacks.
Otherwise the following might happen:
------------[ cut here ]------------
WARNING: CPU: 14 PID: 2265 at .../arch/arm/kernel/insn.c:14 __arm_gen_branch+0x83/0x8c()
...
Hardware name: LSI Axxia AXM55XX
[<c0314a49>] (unwind_backtrace) from [<c03115e9>] (show_stack+0x11/0x14)
[<c03115e9>] (show_stack) from [<c0519f51>] (dump_stack+0x81/0xa8)
[<c0519f51>] (dump_stack) from [<c032185d>] (warn_slowpath_common+0x69/0x90)
[<c032185d>] (warn_slowpath_common) from [<c03218f3>] (warn_slowpath_null+0x17/0x1c)
[<c03218f3>] (warn_slowpath_null) from [<c03143cf>] (__arm_gen_branch+0x83/0x8c)
[<c03143cf>] (__arm_gen_branch) from [<c0314337>] (ftrace_make_nop+0xf/0x24)
[<c0314337>] (ftrace_make_nop) from [<c038ebcb>] (ftrace_process_locs+0x27b/0x3e8)
[<c038ebcb>] (ftrace_process_locs) from [<c0378d79>] (load_module+0x11e9/0x1a44)
[<c0378d79>] (load_module) from [<c037974d>] (SyS_finit_module+0x59/0x84)
[<c037974d>] (SyS_finit_module) from [<c030e981>] (ret_fast_syscall+0x1/0x18)
---[ end trace e1b64ced7a89adcc ]---
------------[ cut here ]------------
WARNING: CPU: 14 PID: 2265 at .../kernel/trace/ftrace.c:1979 ftrace_bug+0x1b1/0x234()
...
Hardware name: LSI Axxia AXM55XX
[<c0314a49>] (unwind_backtrace) from [<c03115e9>] (show_stack+0x11/0x14)
[<c03115e9>] (show_stack) from [<c0519f51>] (dump_stack+0x81/0xa8)
[<c0519f51>] (dump_stack) from [<c032185d>] (warn_slowpath_common+0x69/0x90)
[<c032185d>] (warn_slowpath_common) from [<c03218f3>] (warn_slowpath_null+0x17/0x1c)
[<c03218f3>] (warn_slowpath_null) from [<c038e87d>] (ftrace_bug+0x1b1/0x234)
[<c038e87d>] (ftrace_bug) from [<c038ebd5>] (ftrace_process_locs+0x285/0x3e8)
[<c038ebd5>] (ftrace_process_locs) from [<c0378d79>] (load_module+0x11e9/0x1a44)
[<c0378d79>] (load_module) from [<c037974d>] (SyS_finit_module+0x59/0x84)
[<c037974d>] (SyS_finit_module) from [<c030e981>] (ret_fast_syscall+0x1/0x18)
---[ end trace e1b64ced7a89adcd ]---
ftrace failed to modify [<e9ef7006>] 0xe9ef7006
actual: 02:f0:3b:fa
ftrace record flags: 0
(0) expected tramp: c0314265
[florian: resolved merge conflict with struct
dyn_arch_ftrace::old_mcount]
Signed-off-by: Alexander Sverdlin <alexander.sverdlin@nokia.com>
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-10-06 15:31:26 +02:00
..
2018-01-21 15:38:10 +00:00
2018-08-13 18:28:19 -07:00
2017-11-02 11:10:55 +01:00
2018-03-22 13:46:18 +00:00
2017-11-15 10:56:56 -08:00
2020-06-03 08:19:34 +02:00
2018-06-21 14:25:24 +02:00
2019-04-05 22:33:12 +02:00
2018-07-30 11:45:53 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-05-31 10:39:29 +01:00
2017-11-02 11:10:55 +01:00
2018-06-15 18:10:01 -03:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2019-05-31 06:46:11 -07:00
2017-11-02 11:10:55 +01:00
2019-02-20 10:25:38 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-03-20 10:01:59 +01:00
2017-11-15 18:21:04 -08:00
2018-01-15 09:35:06 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-07-22 14:13:43 +02:00
2017-11-16 12:50:35 -08:00
2017-11-02 11:10:55 +01:00
2017-12-17 22:14:21 +00:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2021-10-06 15:31:26 +02:00
2020-05-27 17:37:35 +02:00
2017-12-17 22:15:35 +00:00
2017-11-02 11:10:55 +01:00
2019-06-15 11:54:00 +02:00
2017-11-16 12:50:35 -08:00
2018-06-26 09:07:58 +02:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2021-10-06 15:31:26 +02:00
2017-11-02 11:10:55 +01:00
2019-03-23 20:09:48 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-04-19 13:28:51 +02:00
2021-02-23 15:00:57 +01:00
2017-11-02 11:10:55 +01:00
2018-05-19 11:53:46 +01:00
2017-11-02 11:10:55 +01:00
2020-11-18 19:18:46 +01:00
2017-11-29 16:46:18 +01:00
2018-06-05 10:03:27 +01:00
2020-10-01 13:14:54 +02:00
2021-05-22 10:59:50 +02:00
2018-03-19 10:53:21 +00:00
2020-02-11 04:33:58 -08:00
2019-05-04 09:20:13 +02:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-04-11 10:28:38 -07:00
2017-11-16 12:50:35 -08:00
2021-10-06 15:31:26 +02:00
2018-05-19 11:53:46 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-05-07 07:15:41 +02:00
2020-08-07 09:36:20 +02:00
2017-11-15 18:21:04 -08:00
2018-12-29 13:37:57 +01:00
2018-06-07 17:34:35 -07:00
2018-01-08 15:20:45 +01:00
2018-06-21 12:33:07 +02:00
2019-02-20 10:25:38 +01:00
2019-04-05 22:33:12 +02:00
2018-01-21 15:32:20 +00:00
2017-10-24 13:17:32 +02:00
2017-12-17 22:14:21 +00:00
2018-05-08 14:50:42 +02:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-16 14:05:12 -08:00
2017-11-02 11:10:55 +01:00
2017-10-23 16:58:59 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-07 10:32:44 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-01-21 15:37:56 +00:00
2020-01-27 14:50:28 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-05-31 10:40:32 +01:00
2017-11-02 11:10:55 +01:00
2019-02-20 10:25:36 +01:00
2018-07-25 12:09:09 +02:00
2017-11-02 11:10:55 +01:00
2017-11-13 01:34:49 +01:00
2017-12-17 22:14:21 +00:00
2020-06-03 08:19:35 +02:00
2019-12-13 08:51:10 +01:00
2017-11-16 12:50:35 -08:00
2017-10-24 10:33:23 +01:00
2017-12-17 22:14:21 +00:00
2017-11-02 11:10:55 +01:00
2019-04-05 22:33:12 +02:00
2018-03-24 14:27:49 +00:00
2017-11-02 11:10:55 +01:00
2020-06-03 08:19:34 +02:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00