Zhenzhong Duan
24db040f7e
x86/speculation/mds: Apply more accurate check on hypervisor platform
...
commit 517c3ba00916383af6411aec99442c307c23f684 upstream.
X86_HYPER_NATIVE isn't accurate for checking if running on native platform,
e.g. CONFIG_HYPERVISOR_GUEST isn't set or "nopv" is enabled.
Checking the CPU feature bit X86_FEATURE_HYPERVISOR to determine if it's
running on native platform is more accurate.
This still doesn't cover the platforms on which X86_FEATURE_HYPERVISOR is
unsupported, e.g. VMware, but there is nothing which can be done about this
scenario.
Fixes: 8a4b06d391b0 ("x86/speculation/mds: Add sysfs reporting for MDS")
Signed-off-by: Zhenzhong Duan <zhenzhong.duan@oracle.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: stable@vger.kernel.org
Link: https://lkml.kernel.org/r/1564022349-17338-1-git-send-email-zhenzhong.duan@oracle.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-08-04 09:33:43 +02:00
..
alpha
alpha: Fix Eiger NR_IRQS to 128
2019-02-20 10:18:32 +01:00
arc
ARC: hide unused function unw_hdr_alloc
2019-07-21 09:06:07 +02:00
arm
ARM: dts: imx6ul: fix PWM[1-4] interrupts
2019-07-21 09:06:07 +02:00
arm64
arm64: tegra: Fix AGIC register range
2019-08-04 09:33:28 +02:00
avr32
Merge branch 'akpm' (patches from Andrew)
2016-10-07 21:38:00 -07:00
blackfin
pinctrl: adi2: Fix Kconfig build problem
2017-12-20 10:07:32 +01:00
c6x
c6x/ptrace: Remove useless PTRACE_SETREGSET implementation
2017-03-31 10:31:46 +02:00
cris
cris: Only build flash rescue image if CONFIG_ETRAX_AXISFLASHMAP is selected
2017-01-12 11:39:24 +01:00
frv
futex: Remove duplicated code and fix undefined behaviour
2018-05-19 10:27:00 +02:00
h8300
h8300: use cc-cross-prefix instead of hardcoding h8300-unknown-linux-
2019-04-05 22:29:05 +02:00
hexagon
hexagon: modify ffs() and fls() to return int
2018-10-10 08:53:21 +02:00
ia64
bug.h: work around GCC PR82365 in BUG()
2019-07-10 09:55:44 +02:00
m32r
mm: replace access_process_vm() write parameter with gup_flags
2016-10-19 08:31:25 -07:00
m68k
bug.h: work around GCC PR82365 in BUG()
2019-07-10 09:55:44 +02:00
metag
metag/uaccess: Check access_ok in strncpy_from_user
2017-05-25 15:44:46 +02:00
microblaze
microblaze: Fix simpleImage format generation
2018-08-03 07:55:25 +02:00
mips
MIPS: fix build on non-linux hosts
2019-08-04 09:33:14 +02:00
mn10300
mn10300/misalignment: Use SIGSEGV SEGV_MAPERR to report a failed user copy
2018-02-17 13:21:20 +01:00
nios2
nios2: reserve boot memory for device tree
2017-04-12 12:41:14 +02:00
openrisc
kthread: fix boot hang (regression) on MIPS/OpenRISC
2018-09-19 22:47:11 +02:00
parisc
parisc: Fix kernel panic due invalid values in IAOQ0 or IAOQ1
2019-08-04 09:33:31 +02:00
powerpc
powerpc/eeh: Handle hugepages in ioremap space
2019-08-04 09:33:41 +02:00
s390
s390: fix stfle zero padding
2019-07-21 09:06:08 +02:00
score
Merge branch 'gup_flag-cleanups'
2016-10-19 08:39:47 -07:00
sh
sh: prevent warnings when using iounmap
2019-08-04 09:33:41 +02:00
sparc
bug.h: work around GCC PR82365 in BUG()
2019-07-10 09:55:44 +02:00
tile
futex: Remove duplicated code and fix undefined behaviour
2018-05-19 10:27:00 +02:00
um
um: Silence lockdep complaint about mmap_sem
2019-08-04 09:33:39 +02:00
unicore32
unicore32: use simpler API for random address requests
2016-10-11 15:06:32 -07:00
x86
x86/speculation/mds: Apply more accurate check on hypervisor platform
2019-08-04 09:33:43 +02:00
xtensa
xtensa: fix return_address
2019-04-17 08:36:47 +02:00
.gitignore
Kconfig
cpu/hotplug: Provide knobs to control SMT
2018-08-15 18:14:46 +02:00