hrtimer: Select housekeeping CPU during migration
authorCosta Shulyupin <costa.shul@redhat.com>
Thu, 22 Feb 2024 20:08:56 +0000 (22:08 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 22 Feb 2024 21:18:21 +0000 (22:18 +0100)
commit56c2cb10120894be40c40a9bf0ce798da14c50f6
tree45321068344164befe88639a54e09c949cb8ef02
parentb2cf7507e18649a30512515ec0ca89f26b2c2d0f
hrtimer: Select housekeeping CPU during migration

During CPU-down hotplug, hrtimers may migrate to isolated CPUs,
compromising CPU isolation.

Address this issue by masking valid CPUs for hrtimers using
housekeeping_cpumask(HK_TYPE_TIMER).

Suggested-by: Waiman Long <longman@redhat.com>
Signed-off-by: Costa Shulyupin <costa.shul@redhat.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Waiman Long <longman@redhat.com>
Link: https://lore.kernel.org/r/20240222200856.569036-1-costa.shul@redhat.com
kernel/time/hrtimer.c