summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorBorislav Petkov <bp@suse.de>2022-08-19 20:47:44 +0300
committerBorislav Petkov <bp@suse.de>2022-09-28 19:35:37 +0300
commitdf5b035b5683d6a25f077af889fb88e09827f8bc (patch)
tree15b64f4c405a91cf8952b34f47851a10ac3baff8 /net
parentefd608fa7403ba106412b437f873929e2c862e28 (diff)
downloadlinux-df5b035b5683d6a25f077af889fb88e09827f8bc.tar.xz
x86/cacheinfo: Add a cpu_llc_shared_mask() UP variant
On a CONFIG_SMP=n kernel, the LLC shared mask is 0, which prevents __cache_amd_cpumap_setup() from doing the L3 masks setup, and more specifically from setting up the shared_cpu_map and shared_cpu_list files in sysfs, leading to lscpu from util-linux getting confused and segfaulting. Add a cpu_llc_shared_mask() UP variant which returns a mask with a single bit set, i.e., for CPU0. Fixes: 2b83809a5e6d ("x86/cpu/amd: Derive L3 shared_cpu_map from cpu_llc_shared_mask") Reported-by: Saurabh Sengar <ssengar@linux.microsoft.com> Signed-off-by: Borislav Petkov <bp@suse.de> Cc: <stable@vger.kernel.org> Link: https://lore.kernel.org/r/1660148115-302-1-git-send-email-ssengar@linux.microsoft.com
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions