summaryrefslogtreecommitdiff
path: root/drivers/acpi
diff options
context:
space:
mode:
authorYong-Xuan Wang <yongxuan.wang@sifive.com>2023-01-17 13:51:33 +0300
committerSudeep Holla <sudeep.holla@arm.com>2023-01-18 12:58:40 +0300
commit198102c9103fc78d8478495971947af77edb05c1 (patch)
treedc235c9f049b878a843da2bbefa92e1a54fb4e6e /drivers/acpi
parent5944ce092b97caed5d86d961e963b883b5c44ee2 (diff)
downloadlinux-198102c9103fc78d8478495971947af77edb05c1.tar.xz
cacheinfo: Fix shared_cpu_map to handle shared caches at different levels
The cacheinfo sets up the shared_cpu_map by checking whether the caches with the same index are shared between CPUs. However, this will trigger slab-out-of-bounds access if the CPUs do not have the same cache hierarchy. Another problem is the mismatched shared_cpu_map when the shared cache does not have the same index between CPUs. CPU0 I D L3 index 0 1 2 x ^ ^ ^ ^ index 0 1 2 3 CPU1 I D L2 L3 This patch checks each cache is shared with all caches on other CPUs. Reviewed-by: Pierre Gondois <pierre.gondois@arm.com> Signed-off-by: Yong-Xuan Wang <yongxuan.wang@sifive.com> Link: https://lore.kernel.org/r/20230117105133.4445-2-yongxuan.wang@sifive.com Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
Diffstat (limited to 'drivers/acpi')
0 files changed, 0 insertions, 0 deletions