字段 | 内容 |
---|---|
缺陷编号 | 2108303212798 |
缺陷描述 | Out-of-bounds read - Function call "cpumask_next(cpu, (struct cpumask const *)&__cpu_possible_mask)" may return 1024. Overrunning array "__per_cpu_offset" of 1024 8-byte elements at element index 1024 (byte offset 8199) using index "cpu" (which evaluates to 1024) |
缺陷类型 | Memory - illegal accesses |
影响程度 | High |
处理结果 | Unclassfied |
EntryPoint | armpmu_find_irq_ops |
FileName | drivers/perf/arm_pmu.c:644 |
Hi magicyan2023, welcome to the openEuler Community.
I'm the Bot here serving you. You can find the instructions on how to interact with me at
https://gitee.com/openeuler/community/blob/master/en/sig-infrastructure/command.md.
If you have any questions, please contact the SIG: Kernel, and any of the maintainers: @Xie XiuQi, @YangYingliang, @成坚 (CHENG Jian).
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。
PER_CPU变量内存大小由NR_CPUS决定,根据以下相关宏定义:
#define for_each_possible_cpu(cpu) for_each_cpu((cpu), cpu_possible_mask)
#define for_each_cpu(cpu, mask)
for ((cpu) = -1;
(cpu) = cpumask_next((cpu), (mask)),
(cpu) < nr_cpu_ids;)
cpu_possible_mask范围由NR_CPUS决定,在cpu取值范围内不会对PER_CPU地址造成越界访问,即cpu的值不会超过1024
已确认非问题
issue 关闭
登录 后才可以发表评论