Alex Sverdlin
f91d25a7c8
ARM: 9079/1: ftrace: Add MODULE_PLTS support
commit 79f32b221b18c15a98507b101ef4beb52444cc6f 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
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-09-26 14:08:56 +02:00
..
2020-07-21 16:33:41 +01:00
2020-10-25 14:51:49 -07:00
2020-08-06 10:57:30 +02:00
2020-10-04 18:41:33 -05:00
2020-03-24 10:56:05 +00:00
2019-06-25 19:49:18 +02:00
2019-06-19 17:09:07 +02:00
2021-03-17 17:06:26 +01:00
2020-07-29 16:14:18 +02:00
2015-03-27 22:20:45 +00:00
2019-02-01 22:05:50 +00:00
2018-07-30 11:45:53 +01:00
2017-11-02 11:10:55 +01:00
2019-06-19 17:09:55 +02:00
2020-06-09 09:39:10 -07:00
2019-06-19 17:09:55 +02:00
2020-10-25 14:51:49 -07:00
2020-06-08 11:05:58 -07:00
2017-11-02 11:10:55 +01:00
2020-08-20 15:45:16 -04:00
2020-03-21 15:23:54 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2020-03-21 15:24:03 +01:00
2019-06-19 17:09:55 +02:00
2019-06-19 17:09:55 +02:00
2021-06-16 12:01:44 +02:00
2019-01-02 10:37:05 +00:00
2017-11-02 11:10:55 +01:00
2019-06-05 17:36:37 +02:00
2017-11-02 11:10:55 +01:00
2020-06-30 11:59:48 +02:00
2017-11-02 11:10:55 +01:00
2020-09-25 06:15:32 +02:00
2020-10-06 07:07:05 +02:00
2020-10-06 07:07:05 +02:00
2017-11-02 11:10:55 +01:00
2019-06-19 17:09:55 +02:00
2019-10-10 22:23:19 +01:00
2017-11-02 11:10:55 +01:00
2019-05-30 11:29:52 -07:00
2020-09-16 18:53:42 +03: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
2019-06-19 17:09:55 +02:00
2021-05-19 10:13:18 +02:00
2020-05-12 19:34:52 +03:00
2019-06-05 17:37:06 +02:00
2019-06-19 17:09:55 +02:00
2021-09-26 14:08:56 +02:00
2020-05-07 00:41:47 +02:00
2019-06-19 17:09:55 +02:00
2019-06-19 17:09:55 +02:00
2019-06-19 17:09:55 +02:00
2019-06-19 17:09:55 +02:00
2019-06-19 17:09:55 +02:00
2017-11-02 11:10:55 +01:00
2020-09-17 16:37:28 +01:00
2020-06-04 19:06:22 -07:00
2019-06-05 17:37:06 +02:00
2020-06-03 20:09:46 -07:00
2019-11-15 22:21:08 +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
2017-11-02 11:10:55 +01:00
2020-10-25 14:51:49 -07:00
2021-09-26 14:08:56 +02:00
2020-01-06 09:45:59 +01:00
2017-11-02 11:10:55 +01:00
2019-02-01 21:54:49 +00:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2021-01-12 20:18:16 +01:00
2021-02-17 11:02:24 +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-10-27 12:11:51 +00:00
2018-10-17 13:14:33 -07:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2019-06-19 17:09:55 +02:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2021-05-19 10:13:18 +02:00
2019-06-19 17:09:55 +02:00
2017-11-16 12:50:35 -08:00
2021-09-26 14:08:56 +02:00
2020-09-25 00:36:41 +09:00
2018-05-19 11:53:46 +01:00
2019-06-19 17:09:55 +02:00
2019-06-19 17:09:55 +02:00
2020-03-18 12:27:04 +01:00
2019-05-30 11:26:41 -07:00
2019-05-21 11:28:39 +02:00
2019-06-19 17:09:55 +02:00
2019-06-05 17:37:06 +02:00
2019-06-19 17:09:55 +02:00
2020-04-10 15:36:21 -07:00
2018-09-03 16:50:35 +02:00
2017-11-02 11:10:55 +01:00
2019-10-27 21:14:40 +00:00
2020-07-30 13:01:04 -07:00
2019-06-19 17:09:55 +02:00
2020-08-07 11:33:26 -07:00
2019-06-19 17:09:55 +02:00
2019-06-05 17:37:06 +02:00
2020-11-16 16:57:18 +01:00
2019-06-05 17:37:06 +02:00
2019-06-05 17:37:06 +02:00
2020-11-16 16:57:18 +01:00
2019-06-19 17:09:55 +02:00
2020-06-09 09:39:14 -07:00
2020-06-09 09:39:14 -07:00
2019-05-30 11:26:41 -07:00
2019-06-19 17:09:55 +02:00
2020-03-21 15:24:03 +01:00
2019-06-19 17:09:55 +02:00
2021-05-19 10:13:18 +02:00
2019-05-30 11:26:41 -07:00
2019-06-03 15:49:07 +02:00
2019-06-19 17:09:55 +02:00
2020-03-24 10:56:05 +00:00
2018-05-08 14:50:42 +02:00
2019-06-19 17:09:55 +02:00
2020-10-25 14:51:49 -07: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
2019-02-01 21:44:10 +00:00
2020-10-25 14:51:49 -07:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2019-02-01 21:44:15 +00:00
2018-12-12 13:20:07 -08:00
2017-11-02 11:10:55 +01:00
2018-01-21 15:37:56 +00:00
2019-02-26 11:32:54 +00:00
2017-11-02 11:10:55 +01:00
2019-12-08 14:37:32 +01:00
2017-11-02 11:10:55 +01:00
2019-05-07 19:06:04 -07:00
2017-11-02 11:10:55 +01:00
2019-02-07 23:10:45 +01:00
2020-10-25 14:51:49 -07:00
2017-11-02 11:10:55 +01:00
2020-07-10 12:00:02 +02:00
2019-06-19 17:09:55 +02:00
2019-06-19 17:09:55 +02:00
2020-10-13 18:38:31 -07:00
2019-06-19 17:09:55 +02:00
2017-11-02 11:10:55 +01:00
2020-10-08 17:17:27 +02:00
2020-06-09 09:39:10 -07:00
2020-05-03 17:30:27 +01:00
2020-08-12 10:57:58 -07:00
2017-11-16 12:50:35 -08:00
2017-10-24 10:33:23 +01:00
2019-06-05 17:37:06 +02:00
2019-07-11 10:09:44 -07:00
2020-06-09 09:39:10 -07:00
2019-06-19 17:09:55 +02:00
2017-11-02 11:10:55 +01:00
2019-02-01 21:44:19 +00:00
2019-11-15 22:21:12 +00:00
2018-03-24 14:27:49 +00:00
2020-04-23 10:50:26 +09:00
2020-07-21 16:33:39 +01:00
2020-07-21 16:33:39 +01:00
2017-11-02 11:10:55 +01:00
2020-03-24 10:56:05 +00:00
2019-12-10 10:12:55 +01:00
2020-09-01 10:03:18 +02:00
2017-11-02 11:10:55 +01:00
2019-06-19 17:09:55 +02:00