linux/arch/arm
Alexander Sverdlin 3b68b08885
ep93xx: clock: Fix UAF in ep93xx_clk_register_gate()
arch/arm/mach-ep93xx/clock.c:154:2: warning: Use of memory after it is freed [clang-analyzer-unix.Malloc]
arch/arm/mach-ep93xx/clock.c:151:2: note: Taking true branch
if (IS_ERR(clk))
^
arch/arm/mach-ep93xx/clock.c:152:3: note: Memory is released
kfree(psc);
^~~~~~~~~~
arch/arm/mach-ep93xx/clock.c:154:2: note: Use of memory after it is freed
return &psc->hw;
^ ~~~~~~~~

Fixes: 9645ccc7bd ("ep93xx: clock: convert in-place to COMMON_CLK")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Alexander Sverdlin <alexander.sverdlin@gmail.com>
Cc: stable@vger.kernel.org
Link: https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org/thread/B5YCO2NJEXINCYE26Y255LCVMO55BGWW/
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
2022-04-07 13:55:52 +02:00
..
boot ARM fixes for 5.18-rc1: 2022-04-03 10:17:48 -07:00
common
configs ARM: SoC updates for 5.18 2022-03-23 18:20:09 -07:00
crypto This push fixes the following issues: 2022-03-31 11:17:39 -07:00
include Merge branch 'work.misc' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs 2022-04-01 19:57:03 -07:00
kernel ARM fixes for 5.18-rc1: 2022-04-03 10:17:48 -07:00
lib asm-generic updates for 5.18 2022-03-23 18:03:08 -07:00
mach-actions
mach-airoha ARM: Add basic support for Airoha EN7523 SoC 2022-03-01 09:02:01 +01:00
mach-alpine
mach-artpec
mach-asm9260
mach-aspeed
mach-at91 ARM: at91: Kconfig: select PM_OPP 2022-02-25 12:36:26 +01:00
mach-axxia
mach-bcm ARM: SoC updates for 5.18 2022-03-23 18:20:09 -07:00
mach-berlin
mach-clps711x
mach-cns3xxx
mach-davinci ARM: davinci: da850-evm: Avoid NULL pointer dereference 2022-04-04 16:31:40 +02:00
mach-digicolor
mach-dove
mach-ep93xx ep93xx: clock: Fix UAF in ep93xx_clk_register_gate() 2022-04-07 13:55:52 +02:00
mach-exynos ARM: SoC updates for 5.18 2022-03-23 18:20:09 -07:00
mach-footbridge ARM: SoC updates for 5.18 2022-03-23 18:20:09 -07:00
mach-gemini
mach-highbank
mach-hisi
mach-imx
mach-integrator ARM: remove support for NOMMU ARMv4/v5 2022-03-17 09:13:13 +01:00
mach-iop32x ARM: iop32x: include iop3xx.h header where needed 2022-04-04 17:42:59 +02:00
mach-ixp4xx
mach-keystone
mach-lpc18xx
mach-lpc32xx
mach-mediatek
mach-meson
mach-milbeaut
mach-mmp ARM: mmp: Fix failure to remove sram device 2022-02-25 16:38:34 +01:00
mach-moxart
mach-mstar ARM: SoC updates for 5.18 2022-03-23 18:20:09 -07:00
mach-mv78xx0
mach-mvebu
mach-mxs
mach-nomadik
mach-npcm
mach-nspire ARM: remove support for NOMMU ARMv4/v5 2022-03-17 09:13:13 +01:00
mach-omap1
mach-omap2 ARM: OMAP2+: Fix regression for smc calls for vmap stack 2022-03-31 22:41:27 +02:00
mach-orion5x ARM: remove support for NOMMU ARMv4/v5 2022-03-17 09:13:13 +01:00
mach-oxnas
mach-pxa ARM: SoC updates for 5.18 2022-03-23 18:20:09 -07:00
mach-qcom
mach-rda
mach-realtek
mach-realview
mach-rockchip
mach-rpc
mach-s3c ARM fixes for 5.18-rc1: 2022-04-03 10:17:48 -07:00
mach-s5pv210
mach-sa1100
mach-shmobile ARM: remove support for NOMMU ARMv4/v5 2022-03-17 09:13:13 +01:00
mach-socfpga
mach-spear ARM: spear: fix typos in comments 2022-03-19 22:33:59 +01:00
mach-sti
mach-stm32
mach-sunxi
mach-tegra
mach-uniphier
mach-ux500 ARM: remove support for NOMMU ARMv4/v5 2022-03-17 09:13:13 +01:00
mach-versatile
mach-vexpress
mach-vt8500
mach-zynq
mm Merge branches 'fixes' and 'misc' into for-linus 2022-04-01 16:12:31 +01:00
net bpf, arm: Fix various typos in comments 2022-03-21 16:20:26 +01:00
nwfpe
plat-omap
plat-orion
plat-pxa
plat-versatile
probes ARM development updates for 5.18: 2022-03-23 17:35:57 -07:00
tools arch: syscalls: simplify uapi/kapi directory creation 2022-03-31 12:03:46 +09:00
vdso ARM: 9181/1: vdso: remove -nostdlib compiler flag 2022-02-28 13:59:45 +00:00
vfp
xen
Kbuild
Kconfig dma-mapping updates for Linux 5.18 2022-03-29 08:50:14 -07:00
Kconfig-nommu
Kconfig.assembler
Kconfig.debug ARM development updates for 5.18: 2022-03-23 17:35:57 -07:00
Makefile ARM: DT updates for 5.18 2022-03-23 18:37:22 -07:00