aboutsummaryrefslogtreecommitdiffstats
path: root/tools/lib/bpf/bpf_prog_linfo.c
diff options
context:
space:
mode:
authorNuno Das Neves <[email protected]>2025-07-03 22:44:34 +0000
committerWei Liu <[email protected]>2025-07-09 23:49:25 +0000
commitbb169f80ed5a156ec3405e0e49c6b8e9ae264718 (patch)
tree68828d8eb9344e7ddac993347e0c12443a856f5b /tools/lib/bpf/bpf_prog_linfo.c
parentPCI: hv: Don't load the driver for baremetal root partition (diff)
downloadkernel-bb169f80ed5a156ec3405e0e49c6b8e9ae264718.tar.gz
kernel-bb169f80ed5a156ec3405e0e49c6b8e9ae264718.zip
x86/hyperv: Fix usage of cpu_online_mask to get valid cpu
Accessing cpu_online_mask here is problematic because the cpus read lock is not held in this context. However, cpu_online_mask isn't needed here since the effective affinity mask is guaranteed to be valid in this callback. So, just use cpumask_first() to get the cpu instead of ANDing it with cpus_online_mask unnecessarily. Fixes: e39397d1fd68 ("x86/hyperv: implement an MSI domain for root partition") Reported-by: Michael Kelley <[email protected]> Closes: https://lore.kernel.org/linux-hyperv/SN6PR02MB4157639630F8AD2D8FD8F52FD475A@SN6PR02MB4157.namprd02.prod.outlook.com/ Suggested-by: Thomas Gleixner <[email protected]> Signed-off-by: Nuno Das Neves <[email protected]> Reviewed-by: Michael Kelley <[email protected]> Link: https://lore.kernel.org/r/1751582677-30930-4-git-send-email-nunodasneves@linux.microsoft.com Signed-off-by: Wei Liu <[email protected]> Message-ID: <1751582677-30930-4-git-send-email-nunodasneves@linux.microsoft.com>
Diffstat (limited to 'tools/lib/bpf/bpf_prog_linfo.c')
0 files changed, 0 insertions, 0 deletions