android_kernel_oneplus_msm8998/arch/arm64/kernel
Srinivas Ramana 21393ff3ea arm64: Add BTAC/LinkStack sanitizations for Kryo cores
Kryo cores are exposed to two vulnerabilities due to subroutine return
(called LINK-STACK) and branch target predictors.
These two issues can be mitigated through software workarounds.

Kernel:
 - Apply LINK-STACK mitigation which is to issue 16 nested BL instructions
   on process context switch 'cpu_do_switch_mm()' where ASID changes.
 - Apply psci based branch predictor invalidation.

use the kryo core detection routine (based on MIDR) from the
commit bb48711800e6d ("arm64: cpu_errata: Add Kryo to Falkor 1003 errata")
by Stephen Boyd <sboyd@codeaurora.org>.

Change-Id: I81e8e72e7fa219f12dfe8ec39836eb8eb3c4c7b0
Signed-off-by: Srinivas Ramana <sramana@codeaurora.org>
2018-02-08 01:50:16 -08:00
..
probes arm64: Remove stack duplicating code from jprobes 2016-10-20 15:38:13 +08:00
vdso UPSTREAM: arm64: vdso: fix clock_getres for 4GiB-aligned res 2017-11-29 20:54:38 +00:00
.gitignore
acpi.c
acpi_parking_protocol.c BACKPORT: arm64: Use __pa_symbol for kernel symbols 2017-11-20 14:19:05 -08:00
alternative.c Merge remote-tracking branch 'msm-4.4/tmp-510d0a3f' into msm-4.4 2016-10-21 18:00:55 -07:00
app_api.c arm64: Modify support for 32bit app specific settings 2017-03-27 03:09:05 -07:00
app_setting.c arm64: Modify support for 32bit app specific settings 2017-03-27 03:09:05 -07:00
arm64ksyms.c ARM: 8480/2: arm64: add implementation for arm-smccc 2017-12-02 06:53:26 +00:00
armv8_deprecated.c Merge branch 'android-4.4@e76c0fa' into branch 'msm-4.4' 2017-06-20 14:55:15 -07:00
asm-offsets.c Merge android-4.4.111 (f851888) into msm-4.4 2018-01-24 12:20:03 +05:30
bpi.S arm64: Implement branch predictor hardening for Falkor 2018-02-08 15:13:20 +05:30
cacheinfo.c
cpu_errata.c arm64: Add BTAC/LinkStack sanitizations for Kryo cores 2018-02-08 01:50:16 -08:00
cpu_ops.c arm64: kernel: implement ACPI parking protocol 2016-11-14 14:39:14 +08:00
cpufeature.c arm64: Add skeleton to harden the branch predictor against aliasing attacks 2018-02-07 17:33:15 +05:30
cpuidle.c
cpuinfo.c Merge remote-tracking branch 'msm4.4/tmp-da9a92f' into msm-4.4 2016-10-28 10:48:35 -07:00
debug-monitors.c arm64: Blacklist non-kprobe-able symbol 2016-10-20 15:38:13 +08:00
efi-entry.S
efi.c UPSTREAM: arm64/efi: refactor EFI init and runtime code for reuse by 32-bit ARM 2016-10-12 17:34:22 +05:30
entry-fpsimd.S arm64: Add support for app specific settings 2017-03-24 11:32:52 +08:00
entry-ftrace.S
entry.S arm64: Add skeleton to harden the branch predictor against aliasing attacks 2018-02-07 17:33:15 +05:30
entry32.S
fpsimd.c Merge android-4.4@a8935c9 (v4.4.87) into msm-4.4 2017-09-21 13:19:38 -07:00
ftrace.c
head.S Merge android-4.4@73a2b70 (v4.4.92) into msm-4.4 2017-10-20 02:11:57 -07:00
hibernate-asm.S arm64: kernel: Add support for hibernate/suspend-to-disk 2016-11-10 16:16:59 +08:00
hibernate.c arm64: hibernate: Refuse to hibernate if the boot cpu is offline 2016-11-10 16:51:47 +08:00
hw_breakpoint.c Merge branch 'android-4.4@e76c0fa' into branch 'msm-4.4' 2017-06-20 14:55:15 -07:00
hyp-stub.S arm64: hyp/kvm: Make hyp-stub reject kvm_call_hyp() 2016-11-17 09:49:38 +08:00
image.h
insn.c Merge android-4.4.100 (482cc74) into msm-4.4 2017-12-26 18:37:32 +05:30
io.c Merge android-4.4.98 (3d4af8) into msm-4.4 2017-12-26 17:29:34 +05:30
irq.c
jump_label.c
kaslr.c arm64: kaslr: Fix up the kernel image alignment 2017-03-22 18:42:11 +05:30
kgdb.c arm64: Blacklist non-kprobe-able symbol 2016-10-20 15:38:13 +08:00
kuser32.S
Makefile arm64: Add skeleton to harden the branch predictor against aliasing attacks 2018-02-07 17:33:15 +05:30
module-plts.c
module.c
module.lds
pci.c
perf_callchain.c
perf_debug.c
perf_regs.c
perf_trace_counters.c Merge android-4.4@4b8fc9f (v4.4.82) into msm-4.4 2017-09-01 11:47:49 -07:00
perf_trace_counters.h Perf: arm64: Use all 6 counters in tracecounters 2017-03-06 15:46:56 -08:00
perf_trace_user.c
perf_trace_user.h
process.c Merge android-4.4.111 (f851888) into msm-4.4 2018-01-24 12:20:03 +05:30
psci.c Merge android-4.4.100 (482cc74) into msm-4.4 2017-12-26 18:37:32 +05:30
ptrace.c Merge branch 'android-4.4@c71ad0f' into branch 'msm-4.4' 2017-04-20 15:19:15 -07:00
return_address.c UPSTREAM: arm64: factor out current_stack_pointer 2017-08-09 15:23:23 +01:00
setup.c Merge android-4.4.107 (79f138a) into msm-4.4 2018-01-18 12:49:58 +05:30
signal.c
signal32.c
sleep.S Merge android-4.4.106 (2fea039) into msm-4.4 2018-01-18 12:45:07 +05:30
smccc-call.S ARM: 8480/2: arm64: add implementation for arm-smccc 2017-12-02 06:53:26 +00:00
smp.c Merge "Merge android-4.4@4b8fc9f (v4.4.82) into msm-4.4" 2017-09-08 22:04:15 -07:00
smp_spin_table.c BACKPORT: arm64: Use __pa_symbol for kernel symbols 2017-11-20 14:19:05 -08:00
stacktrace.c Merge "arm64: stacktrace: avoid listing stacktrace functions in stacktrace" 2017-09-22 09:13:42 -07:00
suspend.c Merge android-4.4@4b8fc9f (v4.4.82) into msm-4.4 2017-09-01 11:47:49 -07:00
sys.c
sys32.c
sys_compat.c
time.c
topology.c Merge branch 'android-4.4@6fc0573' into branch 'msm-4.4' 2017-06-19 16:59:55 -07:00
trace-events-emulation.h
traps.c arm64: issue isb when trapping CNTVCT_EL0 access 2018-01-09 13:35:07 +01:00
vdso.c BACKPORT: time: Clean up CLOCK_MONOTONIC_RAW time handling 2017-11-29 13:37:51 -08:00
vmlinux.lds.S Merge android-4.4.111 (f851888) into msm-4.4 2018-01-24 12:20:03 +05:30