linux-stable/drivers/soc
Jason A. Donenfeld 1630498660 ARM: ux500: do not directly dereference __iomem
commit 65b0e307a1 upstream.

Sparse reports that calling add_device_randomness() on `uid` is a
violation of address spaces. And indeed the next usage uses readl()
properly, but that was left out when passing it toadd_device_
randomness(). So instead copy the whole thing to the stack first.

Fixes: 4040d10a3d ("ARM: ux500: add DB serial number to entropy pool")
Cc: Linus Walleij <linus.walleij@linaro.org>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/all/202210230819.loF90KDh-lkp@intel.com/
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Link: https://lore.kernel.org/r/20221108123755.207438-1-Jason@zx2c4.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-01-12 11:58:50 +01:00
..
actions
amlogic soc: amlogic: Fix refcount leak in meson-secure-pwrc.c 2022-08-17 14:23:06 +02:00
aspeed
atmel ARM: at91: fix soc detection for SAM9X60 SiPs 2022-07-12 16:35:15 +02:00
bcm soc: brcmstb: pm-arm: Fix refcount leak and __iomem leak bugs 2022-09-15 11:30:04 +02:00
canaan
dove
fsl soc: fsl: select FSL_GUTS driver for DPIO 2022-09-20 12:39:46 +02:00
gemini
imx soc: imx8m: Enable OCOTP clock before reading the register 2022-11-26 09:24:39 +01:00
ixp4xx soc: ixp4xx/npe: Fix unused match warning 2022-07-21 21:24:40 +02:00
lantiq
litex
mediatek soc: mediatek: pm-domains: Fix the power glitch issue 2022-12-31 13:14:38 +01:00
qcom soc: qcom: Select REMAP_MMIO for LLCC driver 2023-01-12 11:58:49 +01:00
renesas soc: renesas: r8a779a0-sysc: Fix A2DP1 and A2CV[2357] PDR values 2022-08-17 14:23:06 +02:00
rockchip soc: rockchip: Fix refcount leak in rockchip_grf_init 2022-06-14 18:36:07 +02:00
samsung
sifive
sunxi soc: sunxi: sram: Fix debugfs info for A64 SRAM C 2022-10-05 10:39:41 +02:00
tegra soc/tegra: fuse: Drop Kconfig dependency on TEGRA20_APB_DMA 2022-10-26 12:35:00 +02:00
ti soc: ti: smartreflex: Fix PM disable depth imbalance in omap_sr_probe 2022-12-31 13:13:58 +01:00
ux500 ARM: ux500: do not directly dereference __iomem 2023-01-12 11:58:50 +01:00
versatile
xilinx
Kconfig
Makefile