summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorLiu Jing <liujing@cmss.chinamobile.com>2026-09-03 16:28:17 +0800
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>2026-10-13 12:01:23 +0300
commitcd0342cbad708845f90a153979082f6d558f1677 (patch)
tree5ae0fe9fea7dfaecde2938a941e1fb73127c0ca3 /tools/perf/scripts/python/stackcollapse.py
parente31e445b6ca1038136e5745e51d843780241d07c (diff)
tools/power/x86/intel-speed-select: Fix signed shift UB in BIT() macro
The BIT() macro is defined as `(1 << (x))` with a signed integer 1. When x >= 31, this causes signed integer overflow which is undefined behavior in C. This macro is used with BIT(31) in isst-core.c and isst-core-mbox.c. Fix it by using `1U` instead of `1` to perform an unsigned shift, matching the kernel's own BIT() definition which uses unsigned. [ span: Change header ] Signed-off-by: Liu Jing <liujing@cmss.chinamobile.com> Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com> Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions