diff options
| author | Waiman Long <longman@redhat.com> | 2026-08-30 19:41:24 -0400 |
|---|---|---|
| committer | Wei Liu <wei.liu@kernel.org> | 2026-09-13 22:33:47 +0000 |
| commit | 32ea0a33e3a0fb7c10c601b43e1b2f6c06a3f5fd (patch) | |
| tree | ddcab6c1c8b2d778e10cc5655d68f66763723459 /tools/lib/python/kdoc/python_version.py | |
| parent | df2908090cda368b01ff43709f51890076c56157 (diff) | |
| download | linux-next-32ea0a33e3a0fb7c10c601b43e1b2f6c06a3f5fd.tar.gz linux-next-32ea0a33e3a0fb7c10c601b43e1b2f6c06a3f5fd.zip | |
Drivers: hv: Avoid infinite retry loop in init_vp_index()
There is a retry loop in init_vp_index() where the CPUs from a certain
node are stripped out if they have already been in the allocated cpumask
or not in HK_TYPE_MANAGED_IRQ housekeeping cpumask. If there is no
CPU left, the allocated cpumask is ignored and the process is retried
again. However, if the HK_TYPE_MANAGED_IRQ housekeeping cpumask turns
out not to contain any CPU in that particular node, that will become an
infinite retry loop. This particular problem was reported by sashiko
[1]. This should rarely happen, but we still need to guard against this.
Fix this infinite loop problem by also skipping NUMA node that has no
housekeeping CPU in the inner while loop of init_vp_index(). Also update
the early abort check to check for the absence of online housekeeping
CPUs instead of just the emptiness of the cpumask. As the outer for
loop will only be reached if the housekeeping cpumask has at least one
online CPU, a NUMA node with housekeeping CPUs will eventually be found.
Link: https://sashiko.dev/#/message/20260422030903.E1BFCC2BCB0%40smtp.kernel.org [1]
Fixes: 6640b5df1a38 ("Drivers: hv: vmbus: Don't assign VMbus channel interrupts to isolated CPUs")
Signed-off-by: Waiman Long <longman@redhat.com>
Reviewed-by: Michael Kelley <mhkelley@outlook.com>
Signed-off-by: Wei Liu <wei.liu@kernel.org>
Diffstat (limited to 'tools/lib/python/kdoc/python_version.py')
0 files changed, 0 insertions, 0 deletions
