android_kernel_oneplus_msm8998/arch/x86/kernel/cpu
Thomas Gleixner 9237a1b082 seccomp: Move speculation migitation control to arch code
commit 8bf37d8c067bb7eb8e7c381bdadf9bd89182b6bc upstream

The migitation control is simpler to implement in architecture code as it
avoids the extra function call to check the mode. Aside of that having an
explicit seccomp enabled mode in the architecture mitigations would require
even more workarounds.

Move it into architecture code and provide a weak function in the seccomp
code. Remove the 'which' argument as this allows the architecture to decide
which mitigations are relevant for seccomp.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: David Woodhouse <dwmw@amazon.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Srivatsa S. Bhat <srivatsa@csail.mit.edu>
Reviewed-by: Matt Helsley (VMware) <matt.helsley@gmail.com>
Reviewed-by: Alexey Makhalov <amakhalov@vmware.com>
Reviewed-by: Bo Gan <ganb@vmware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-07-25 10:18:27 +02:00
..
mcheck x86/MCE: Remove min interval polling limitation 2018-07-25 10:18:15 +02:00
microcode x86/microcode/AMD: Change load_microcode_amd()'s param to bool to fix preemptibility bug 2018-02-25 11:03:51 +01:00
mtrr x86/cpufeature: Carve out X86_FEATURE_* 2018-07-17 11:31:44 +02:00
.gitignore
amd.c x86/speculation: Create spec-ctrl.h to avoid include hell 2018-07-25 10:18:25 +02:00
bugs.c seccomp: Move speculation migitation control to arch code 2018-07-25 10:18:27 +02:00
centaur.c x86/cpufeature: Carve out X86_FEATURE_* 2018-07-17 11:31:44 +02:00
common.c x86/bugs/AMD: Add support to disable RDS on Fam[15, 16, 17]h if requested 2018-07-25 10:18:25 +02:00
cpu.h x86/bugs/intel: Set proper CPU features and setup RDS 2018-07-25 10:18:24 +02:00
cyrix.c x86/cpufeature: Carve out X86_FEATURE_* 2018-07-17 11:31:44 +02:00
hypervisor.c
intel.c x86/bugs/intel: Set proper CPU features and setup RDS 2018-07-25 10:18:24 +02:00
intel_cacheinfo.c x86/cpufeature: Carve out X86_FEATURE_* 2018-07-17 11:31:44 +02:00
intel_pt.h perf/x86/intel/pt: Clean up files of Intel Processor Trace 2015-08-12 11:43:22 +02:00
Makefile x86/cpufeature: Carve out X86_FEATURE_* 2018-07-17 11:31:44 +02:00
match.c x86/cpufeature: Carve out X86_FEATURE_* 2018-07-17 11:31:44 +02:00
mkcapflags.sh x86/cpufeature: Carve out X86_FEATURE_* 2018-07-17 11:31:44 +02:00
mshyperv.c x86/hyperv: Handle unknown NMIs on one CPU when unknown_nmi_panic 2017-03-30 09:35:19 +02:00
perf_event.c perf/x86: Fix possible Spectre-v1 indexing for x86_pmu::event_map() 2018-05-16 10:06:52 +02:00
perf_event.h perf/x86/intel: Fix PEBS data source interpretation on Nehalem/Westmere 2016-04-12 09:09:06 -07:00
perf_event_amd.c x86/cpufeature: Remove unused and seldomly used cpu_has_xx macros 2018-06-16 09:54:24 +02:00
perf_event_amd_ibs.c
perf_event_amd_iommu.c
perf_event_amd_iommu.h
perf_event_amd_uncore.c x86/cpufeature: Remove unused and seldomly used cpu_has_xx macros 2018-06-16 09:54:24 +02:00
perf_event_intel.c perf/x86/intel: Don't accidentally clear high bits in bdw_limit_period() 2018-03-28 18:40:16 +02:00
perf_event_intel_bts.c kaiser: fix intel_bts perf crashes 2018-02-03 17:04:25 +01:00
perf_event_intel_cqm.c perf/x86/cqm: Fix CQM memory leak and notifier leak 2016-09-15 08:27:46 +02:00
perf_event_intel_cstate.c perf/x86/cstate: Fix possible Spectre-v1 indexing for pkg_msr 2018-05-16 10:06:52 +02:00
perf_event_intel_ds.c KPTI: Rename to PAGE_TABLE_ISOLATION 2018-01-05 15:44:26 +01:00
perf_event_intel_lbr.c perf/x86: Fix LBR related crashes on Intel Atom 2017-08-24 17:02:36 -07:00
perf_event_intel_pt.c perf/x86/intel/pt: Generate PMI in the STOP region as well 2016-06-01 12:15:47 -07:00
perf_event_intel_rapl.c perf/x86/intel/rapl: Remove the unused RAPL_EVENT_DESC() macro 2015-11-12 09:44:25 +01:00
perf_event_intel_uncore.c perf/x86/intel/uncore: Fix multi-segment problem of perf_event_intel_uncore 2015-10-06 17:31:51 +02:00
perf_event_intel_uncore.h perf/x86/intel/uncore: Fix multi-segment problem of perf_event_intel_uncore 2015-10-06 17:31:51 +02:00
perf_event_intel_uncore_nhmex.c
perf_event_intel_uncore_snb.c perf/x86/intel/uncore: Fix multi-segment problem of perf_event_intel_uncore 2015-10-06 17:31:51 +02:00
perf_event_intel_uncore_snbep.c perf/x86/intel/uncore: Fix multi-segment problem of perf_event_intel_uncore 2015-10-06 17:31:51 +02:00
perf_event_knc.c perf/x86/intel: Fix PEBS warning by only restoring active PMU in pmi 2016-04-12 09:09:06 -07:00
perf_event_msr.c perf/x86/msr: Fix possible Spectre-v1 indexing in the MSR driver 2018-05-16 10:06:52 +02:00
perf_event_p4.c
perf_event_p6.c
perfctr-watchdog.c
powerflags.c
proc.c x86/cpu: Change type of x86_cache_size variable to unsigned int 2018-02-22 15:44:59 +01:00
rdrand.c
scattered.c x86/cpufeature: Move some of the scattered feature bits to x86_capability 2018-07-17 11:31:44 +02:00
topology.c
transmeta.c x86/cpufeature: Carve out X86_FEATURE_* 2018-07-17 11:31:44 +02:00
umc.c
vmware.c