android_kernel_samsung_univ.../arch/x86/kernel/cpu
Kees Cook b6f4a6285d nospec: Allow getting/setting on non-current task
commit 7bbf1373e228840bb0295a2ca26d548ef37f448e upstream

Adjust arch_prctl_get/set_spec_ctrl() to operate on tasks other than
current.

This is needed both for /proc/$pid/status queries and for seccomp (since
thread-syncing can trigger seccomp in non-current threads).

Signed-off-by: Kees Cook <keescook@chromium.org>
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:26 +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 nospec: Allow getting/setting on non-current task 2018-07-25 10:18:26 +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_cacheinfo.c x86/cpufeature: Carve out X86_FEATURE_* 2018-07-17 11:31:44 +02:00
intel_pt.h
intel.c x86/bugs/intel: Set proper CPU features and setup RDS 2018-07-25 10:18:24 +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
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_amd.c x86/cpufeature: Remove unused and seldomly used cpu_has_xx macros 2018-06-16 09:54:24 +02:00
perf_event_intel_bts.c
perf_event_intel_cqm.c
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
perf_event_intel_lbr.c
perf_event_intel_pt.c
perf_event_intel_rapl.c
perf_event_intel_uncore_nhmex.c
perf_event_intel_uncore_snb.c
perf_event_intel_uncore_snbep.c
perf_event_intel_uncore.c
perf_event_intel_uncore.h
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_knc.c
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
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
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