WSL2-Linux-Kernel/drivers
Gustavo A. R. Silva de916736aa misc: hmc6352: fix potential Spectre v1
val is indirectly controlled by user-space, hence leading to a
potential exploitation of the Spectre variant 1 vulnerability.

This issue was detected with the help of Smatch:

drivers/misc/hmc6352.c:54 compass_store() warn: potential spectre issue
'map' [r]

Fix this by sanitizing val before using it to index map

Notice that given that speculation windows are large, the policy is
to kill the speculation on the first load and not worry if it can be
completed with a dependent load/store [1].

[1] https://marc.info/?l=linux-kernel&m=152449131114778&w=2

Cc: stable@vger.kernel.org
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-09-12 09:31:00 +02:00
..
accessibility
acpi Merge branch 'acpi-bus' 2018-09-07 10:05:20 +02:00
amba
android android: binder: fix the race mmap and alloc_new_buf_locked 2018-09-12 09:18:29 +02:00
ata SCSI fixes on 20180905 2018-09-05 09:17:20 -07:00
atm
auxdisplay
base memory_hotplug: fix kernel_panic on offline page processing 2018-09-04 16:45:02 -07:00
bcma
block Two rbd patches to complete support for images within namespaces that 2018-09-07 10:57:59 -07:00
bluetooth
bus
cdrom
char Fix things so the choice of whether or not to trust RDRAND to 2018-09-09 05:54:05 -07:00
clk
clocksource
connector
cpufreq
cpuidle
crypto
dax drivers/dax/device.c: convert variable to vm_fault_t type 2018-09-04 16:45:02 -07:00
dca
devfreq
dio
dma
dma-buf
edac
eisa
extcon
firewire
firmware firmware: arm_scmi: fix divide by zero when sustained_perf_level is zero 2018-09-06 09:59:40 -07:00
fmc
fpga
fsi
gnss
gpio
gpu drm/i915/dp_mst: Fix enabling pipe clock for all streams 2018-09-03 21:34:36 -07:00
hid
hsi
hv
hwmon ARM: SoC fixes 2018-09-08 15:38:57 -07:00
hwspinlock
hwtracing
i2c i2c: xiic: Make the start and the byte count write atomic 2018-09-06 20:49:09 +02:00
ide
idle
iio
infiniband
input
iommu
ipack
irqchip irqchip/gic-v3-its: Cap lpi_id_bits to reduce memory footprint 2018-09-06 20:31:59 +02:00
isdn
leds
lightnvm
macintosh
mailbox
mcb
md
media
memory memory: ti-aemif: fix a potential NULL-pointer dereference 2018-09-06 10:04:07 -07:00
memstick
message
mfd
misc misc: hmc6352: fix potential Spectre v1 2018-09-12 09:31:00 +02:00
mmc
mtd
mux
net net: phy: sfp: Handle unimplemented hwmon limits and alarms 2018-09-04 12:22:41 -07:00
nfc
ntb
nubus
nvdimm
nvme
nvmem
of dma-mapping fixes for 4.19-rc2 2018-09-02 20:09:36 -07:00
opp
oprofile
parisc
parport
pci
pcmcia
perf
phy
pinctrl
platform
pnp
power
powercap
pps
ps3
ptp
pwm
rapidio
ras
regulator
remoteproc
reset
rpmsg
rtc
s390
sbus
scsi
sfi
sh
siox
slimbus
sn
soc
soundwire
spi
spmi
ssb
staging
target
tc
tee
thermal
thunderbolt
tty
uio
usb
uwb
vfio
vhost
video
virt
virtio
visorbus
vlynq
vme
w1
watchdog
xen
zorro
Kconfig
Makefile