kernel_samsung_a53x/drivers/pinctrl/renesas
Geert Uytterhoeven b928bf4d0d pinctrl: renesas: checker: Limit cfg reg enum checks to provided IDs
[ Upstream commit 3803584a4e9b65bb5b013f862f55c5055aa86c25 ]

If the number of provided enum IDs in a variable width config register
description does not match the expected number, the checker uses the
expected number for validating the individual enum IDs.

However, this may cause out-of-bounds accesses on the array holding the
enum IDs, leading to bogus enum_id conflict warnings.  Worse, if the bug
is an incorrect bit field description (e.g. accidentally using "12"
instead of "-12" for a reserved field), thousands of warnings may be
printed, overflowing the kernel log buffer.

Fix this by limiting the enum ID check to the number of provided enum
IDs.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://lore.kernel.org/r/c7385f44f2faebb8856bcbb4e908d846fc1531fb.1705930809.git.geert+renesas@glider.be
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-19 09:23:14 +01:00
..
core.c pinctrl: renesas: checker: Limit cfg reg enum checks to provided IDs 2024-11-19 09:23:14 +01:00
core.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
gpio.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Kconfig pinctrl: renesas: rzn1: Enable missing PINMUX 2024-11-08 11:25:46 +01:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pfc-emev2.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pfc-r8a73a4.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pfc-r8a7740.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pfc-r8a7778.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pfc-r8a7779.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pfc-r8a7790.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pfc-r8a7791.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pfc-r8a7792.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pfc-r8a7794.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pfc-r8a7796.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pfc-r8a77470.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pfc-r8a77950.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pfc-r8a77951.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pfc-r8a77965.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pfc-r8a77970.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pfc-r8a77980.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pfc-r8a77990.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pfc-r8a77995.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pfc-sh73a0.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pfc-sh7203.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pfc-sh7264.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pfc-sh7269.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pfc-sh7720.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pfc-sh7722.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pfc-sh7723.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pfc-sh7724.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pfc-sh7734.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pfc-sh7757.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pfc-sh7785.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pfc-sh7786.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pfc-shx3.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pinctrl-rza1.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pinctrl-rza2.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pinctrl-rzn1.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pinctrl.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sh_pfc.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00