openwrt/target/linux
Jonas Gorski ac52e2013a x86: geode: fix hwrng register accesses
When the membase and pci_dev pointer were moved to a new struct in priv,
the actual membase users were left untouched, and they started reading
out arbitrary memory behind the struct instead of registers. This
unfortunately turned the RNG into a constant number generator, depending
on the content of what was at that offset.

To fix this, update geode_rng_data_{read,present}() to also get the
membase via amd_geode_priv, and properly read from the right addresses
again.

Closes #13417.

Reported-by: Timur I. Davletshin <timur.davletshin@gmail.com>
Tested-by: Timur I. Davletshin <timur.davletshin@gmail.com>
Suggested-by: Jo-Philipp Wich <jo@mein.io>
Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
(cherry picked from commit 09d13cd8d8)
2023-09-14 11:36:57 +02:00
..
apm821xx kernel: bump 5.4 to 5.4.238 2023-03-29 16:31:21 +02:00
arc770 arc770: set device vendor and model variables 2021-05-26 23:36:40 +02:00
archs38 kernel: Add missing kernel config options 2021-09-13 18:49:15 +02:00
armvirt kernel: move some disabled symbols to generic 2021-04-11 16:54:22 +02:00
at91 treewide: make AddDepends/usb-serial selective 2021-06-08 22:50:32 +02:00
ath25 kernel: bump 5.4 to 5.4.211 2022-09-04 15:32:22 +02:00
ath79 kernel: bump 5.4 to 5.4.234 2023-03-27 18:42:03 +02:00
bcm27xx kernel: bump 5.4 to 5.4.238 2023-03-29 16:31:21 +02:00
bcm47xx bcm47xx: fix bgmac regression present in 5.4 kernel 2023-07-10 18:47:41 +02:00
bcm53xx bcm53xx: backport more DT changes queued for v6.6 2023-07-29 21:00:07 +02:00
bcm63xx bcm63xx: fix NETGEAR DGND3700v2 boot loop 2023-06-15 12:01:32 +02:00
bcm4908 bcm4908: include usbport trigger 2023-03-27 09:36:04 +02:00
gemini kernel: bump 5.4 to 5.4.150 2021-10-02 16:05:34 +02:00
generic kernel: bgmac: fix regressed support for BCM53573 SoCs 2023-07-10 18:47:41 +02:00
imx6 kernel: bump 5.4 to 5.4.231 2023-02-18 19:18:13 +01:00
ipq40xx ipq40xx: Linksys MR8300: fix the USB port power 2023-03-29 22:19:27 +02:00
ipq806x kernel: bump 5.4 to 5.4.231 2023-02-18 19:18:13 +01:00
kirkwood kirkwood: increase kernel partition of Linksyses 2021-09-13 15:24:35 +02:00
lantiq kernel: bump 5.4 to 5.4.238 2023-03-29 16:31:21 +02:00
layerscape kernel: bump 5.4 to 5.4.238 2023-03-29 16:31:21 +02:00
malta target: use SPDX license identifiers on Makefiles 2021-02-10 15:47:18 +01:00
mediatek kernel: bump 5.4 to 5.4.238 2023-03-29 16:31:21 +02:00
mpc85xx mpc85xx: Drop pci aliases to avoid domain changes 2023-02-08 09:40:05 +01:00
mvebu kernel: bump 5.4 to 5.4.230 2023-01-28 19:26:47 +01:00
mxs target: use SPDX license identifiers on scripts 2021-02-10 15:47:23 +01:00
octeon kernel: bump 5.4 to 5.4.211 2022-09-04 15:32:22 +02:00
octeontx kernel: bump 5.4 to 5.4.238 2023-03-29 16:31:21 +02:00
omap kernel: move some disabled symbols to generic 2021-04-11 16:54:22 +02:00
oxnas kernel: bump 5.4 to 5.4.224 2022-11-13 01:06:12 +01:00
pistachio kernel: bump 5.4 to 5.4.230 2023-01-28 19:26:47 +01:00
ramips kernel: bump 5.4 to 5.4.238 2023-03-29 16:31:21 +02:00
realtek realtek: update rtl83xx switch driver to the updated DSA API 2023-01-02 17:43:31 +01:00
rockchip kernel: bump 5.4 to 5.4.230 2023-01-28 19:26:47 +01:00
sunxi sunxi: fix wifi connection for Banana Pi M2 Berry 2023-02-17 19:32:16 +01:00
tegra kernel: move some disabled symbols to generic 2021-04-11 16:54:22 +02:00
uml target: use SPDX license identifiers on Makefiles 2021-02-10 15:47:18 +01:00
x86 x86: geode: fix hwrng register accesses 2023-09-14 11:36:57 +02:00
zynq kernel: move some disabled symbols to generic 2021-04-11 16:54:22 +02:00
Makefile target: use SPDX license identifiers on Makefiles 2021-02-10 15:47:18 +01:00