linux-bl808/Documentation
Nicholas Piggin 9a32a7e78b powerpc/64s: flush L1D after user accesses
IBM Power9 processors can speculatively operate on data in the L1 cache
before it has been completely validated, via a way-prediction mechanism. It
is not possible for an attacker to determine the contents of impermissible
memory using this method, since these systems implement a combination of
hardware and software security measures to prevent scenarios where
protected data could be leaked.

However these measures don't address the scenario where an attacker induces
the operating system to speculatively execute instructions using data that
the attacker controls. This can be used for example to speculatively bypass
"kernel user access prevention" techniques, as discovered by Anthony
Steinhauser of Google's Safeside Project. This is not an attack by itself,
but there is a possibility it could be used in conjunction with
side-channels or other weaknesses in the privileged code to construct an
attack.

This issue can be mitigated by flushing the L1 cache between privilege
boundaries of concern. This patch flushes the L1 cache after user accesses.

This is part of the fix for CVE-2020-4788.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Daniel Axtens <dja@axtens.net>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
2020-11-19 23:47:18 +11:00
..
ABI docs: ABI: sysfs-class-led-trigger-pattern: remove hw_pattern duplication 2020-10-30 13:15:03 +01:00
accounting
admin-guide powerpc/64s: flush L1D after user accesses 2020-11-19 23:47:18 +11:00
arm
arm64 arm64: Add workaround for Arm Cortex-A77 erratum 1508412 2020-10-29 12:56:01 +00:00
block
bpf
cdrom
core-api
cpu-freq
crypto
dev-tools
devicetree ARM: SoC fixes for v5.10 2020-10-30 13:06:07 -07:00
doc-guide
driver-api
fault-injection
fb
features
filesystems debugfs: remove return value of debugfs_create_devm_seqfile() 2020-10-30 08:37:39 +01:00
firmware-guide
firmware_class
fpga
gpu
hid
hwmon
i2c
ia64
ide
iio
infiniband
input
isdn
kbuild
kernel-hacking
leds docs: ABI: sysfs-class-led-trigger-pattern: remove hw_pattern duplication 2020-10-30 13:15:03 +01:00
litmus-tests
livepatch
locking
m68k
maintainer
mhi
mips
misc-devices misc: mic: remove the MIC drivers 2020-10-28 19:12:03 +01:00
netlabel
networking
nios2
nvdimm
openrisc
parisc
PCI
pcmcia
power
powerpc
process
RCU
riscv
s390
scheduler
scsi
security
sh
sound
sparc
sphinx docs: ABI: make it parse ABI/stable as ReST-compatible files 2020-10-30 13:07:02 +01:00
sphinx-static
spi
staging
target
timers
trace
translations
usb
userspace-api
virt x86/kvm: Reserve KVM_FEATURE_MSI_EXT_DEST_ID 2020-10-28 13:52:05 -04:00
vm
w1
watchdog
x86
xtensa
.gitignore
asm-annotations.rst
atomic_bitops.txt
atomic_t.txt
Changes
CodingStyle
conf.py docs: add ABI documentation to the admin-guide book 2020-10-30 13:07:01 +01:00
COPYING-logo
docutils.conf
dontdiff
index.rst
Kconfig docs: Kconfig/Makefile: add a check for broken ABI files 2020-10-30 13:08:07 +01:00
logo.gif
Makefile docs: Kconfig/Makefile: add a check for broken ABI files 2020-10-30 13:08:07 +01:00
memory-barriers.txt
SubmittingPatches
watch_queue.rst