summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorZijun Hu <quic_zijuhu@quicinc.com>2024-12-09 16:24:59 +0300
committerRob Herring (Arm) <robh@kernel.org>2024-12-10 19:52:45 +0300
commitfec3edc47d5cfc2dd296a5141df887bf567944db (patch)
treeafd678c11173ed64811e5bc63283eeb06202057e /tools/perf/scripts/python/stackcollapse.py
parent5d009e024056ded20c5bb1583146b833b23bbd5a (diff)
downloadlinux-fec3edc47d5cfc2dd296a5141df887bf567944db.tar.xz
of/irq: Fix interrupt-map cell length check in of_irq_parse_imap_parent()
On a malformed interrupt-map property which is shorter than expected by 1 cell, we may read bogus data past the end of the property instead of returning an error in of_irq_parse_imap_parent(). Decrement the remaining length when skipping over the interrupt parent phandle cell. Fixes: 935df1bd40d4 ("of/irq: Factor out parsing of interrupt-map parent phandle+args from of_irq_parse_raw()") Cc: stable@vger.kernel.org Signed-off-by: Zijun Hu <quic_zijuhu@quicinc.com> Link: https://lore.kernel.org/r/20241209-of_irq_fix-v1-1-782f1419c8a1@quicinc.com [rh: reword commit msg] Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions