aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/scripting-engines/trace-event-python.c
diff options
context:
space:
mode:
authorNikita Zhandarovich <[email protected]>2023-04-18 06:07:43 -0700
committerRafael J. Wysocki <[email protected]>2023-05-24 18:37:28 +0200
commite5d1c8722083f0332dcd3c85fa1273d85fb6bed8 (patch)
tree4b865e8ab31375dd133cac616453871a09cd6e24 /tools/perf/util/scripting-engines/trace-event-python.c
parent44c026a73be8038f03dbdeef028b642880cf1511 (diff)
PM: domains: fix integer overflow issues in genpd_parse_state()
Currently, while calculating residency and latency values, right operands may overflow if resulting values are big enough. To prevent this, albeit unlikely case, play it safe and convert right operands to left ones' type s64. Found by Linux Verification Center (linuxtesting.org) with static analysis tool SVACE. Fixes: 30f604283e05 ("PM / Domains: Allow domain power states to be read from DT") Signed-off-by: Nikita Zhandarovich <[email protected]> Acked-by: Ulf Hansson <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions