diff options
author | Geert Uytterhoeven <geert+renesas@glider.be> | 2024-01-22 14:43:38 +0100 |
---|---|---|
committer | Geert Uytterhoeven <geert+renesas@glider.be> | 2024-01-31 11:26:54 +0100 |
commit | 3803584a4e9b65bb5b013f862f55c5055aa86c25 (patch) | |
tree | 3bfdb6b21a57b4984d3fff9cba58e76828303455 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 68540257cdf1d07ff8a649aa94c21c5804bbb9b0 (diff) |
pinctrl: renesas: checker: Limit cfg reg enum checks to provided IDs
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
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions