Martin Schwidefsky 6cf09958f3 s390: correct module section names for expoline code revert
The main linker script vmlinux.lds.S for the kernel image merges
the expoline code patch tables into two section ".nospec_call_table"
and ".nospec_return_table". This is *not* done for the modules,
there the sections retain their original names as generated by gcc:
".s390_indirect_call", ".s390_return_mem" and ".s390_return_reg".

The module_finalize code has to check for the compiler generated
section names, otherwise no code patching is done. This slows down
the module code in case of "spectre_v2=off".

Cc: stable@vger.kernel.org # 4.16
Fixes: f19fbd5ed6 ("s390: introduce execute-trampolines for branches")
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
2018-04-23 07:57:17 +02:00
..
2012-05-16 14:42:41 +02:00
2018-04-16 09:10:22 +02:00
2018-04-10 07:38:54 +02:00
2017-11-24 14:28:34 +01:00
2018-04-16 09:10:23 +02:00
2018-04-16 09:10:23 +02:00
2018-04-05 21:36:27 -07:00
2018-04-16 09:10:23 +02:00
2018-04-10 07:38:59 +02:00
2018-04-05 21:36:27 -07:00
2018-02-27 08:05:23 +01:00
2018-01-09 16:33:31 +01:00