linux-stable/drivers
Ard Biesheuvel ac35d1449a efi: random: reduce seed size to 32 bytes
commit 161a438d73 upstream.

We no longer need at least 64 bytes of random seed to permit the early
crng init to complete. The RNG is now based on Blake2s, so reduce the
EFI seed size to the Blake2s hash size, which is sufficient for our
purposes.

While at it, drop the READ_ONCE(), which was supposed to prevent size
from being evaluated after seed was unmapped. However, this cannot
actually happen, so READ_ONCE() is unnecessary here.

Cc: <stable@vger.kernel.org> # v4.14+
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Reviewed-by: Jason A. Donenfeld <Jason@zx2c4.com>
Acked-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-11-10 18:17:34 +01:00
..
accessibility
acpi ACPI: NUMA: Add CXL CFMWS 'nodes' to the possible nodes set 2022-11-10 18:17:31 +01:00
amba
android
ata
atm
auxdisplay
base
bcma
block ublk_drv: return flag of UBLK_F_URING_CMD_COMP_IN_TASK in case of module 2022-11-10 18:17:29 +01:00
bluetooth
bus
cdrom
char hwrng: bcm2835 - use hwrng_msleep() instead of cpu_relax() 2022-11-10 18:17:24 +01:00
clk clk: renesas: r8a779g0: Add SASYNCPER clocks 2022-11-10 18:17:30 +01:00
clocksource
comedi
connector
counter
cpufreq
cpuidle
crypto
cxl cxl/region: Fix 'distance' calculation with passthrough ports 2022-11-10 18:17:32 +01:00
dax
dca
devfreq
dio
dma
dma-buf
edac
eisa
extcon
firewire
firmware efi: random: reduce seed size to 32 bytes 2022-11-10 18:17:34 +01:00
fpga
fsi
gnss
gpio
gpu drm/i915: stop abusing swiotlb_max_segment 2022-11-10 18:17:28 +01:00
greybus
hid HID: saitek: add madcatz variant of MMO7 mouse device ID 2022-11-10 18:17:25 +01:00
hsi
hte
hv
hwmon
hwspinlock
hwtracing
i2c i2c: piix4: Fix adapter not be removed in piix4_remove() 2022-11-10 18:17:30 +01:00
i3c
idle
iio
infiniband
input
interconnect
iommu
ipack
irqchip
isdn
leds
macintosh
mailbox
mcb
md
media media: platform: cros-ec: Add Kuldax to the match table 2022-11-10 18:17:23 +01:00
memory
memstick
message
mfd
misc
mmc
most
mtd
mux
net
nfc
ntb
nubus
nvdimm
nvme nvme-pci: disable write zeroes on various Kingston SSD 2022-11-10 18:17:26 +01:00
nvmem
of
opp
parisc
parport
pci
pcmcia
peci
perf
phy
pinctrl
platform
pnp
power
powercap
pps
ps3
ptp
pwm
rapidio
ras
regulator
remoteproc
reset
rpmsg
rtc
s390
sbus
scsi scsi: core: Restrict legal sdev_state transitions via sysfs 2022-11-10 18:17:25 +01:00
sh
siox
slimbus
soc
soundwire
spi
spmi
ssb
staging media: hantro: HEVC: Fix chroma offset computation 2022-11-10 18:17:24 +01:00
target
tc
tee
thermal
thunderbolt
tty
ufs
uio
usb
vdpa
vfio
vhost
video
virt
virtio
vlynq
w1
watchdog
xen
zorro
Kconfig
Makefile