Re: [PATCH v3 0/3] powerpc: fix preempt_count imbalances in perf and kexec paths
From: Madhavan Srinivasan <maddy@linux.ibm.com>
Date: 2026-06-19 21:59:46
Also in:
lkml
From: Madhavan Srinivasan <maddy@linux.ibm.com>
Date: 2026-06-19 21:59:46
Also in:
lkml
On Fri, 05 Jun 2026 13:59:09 +0530, Aboorva Devarajan wrote:
This patch series fixes some minor preempt_count bookkeeping issues in arch/powerpc/ found during a preemption leak audit prompted by the lazy/full preemption model changes. These are get_cpu/put_cpu and get_cpu_var/put_cpu_var pairing errors that leave preempt_count incorrectly elevated or underflowed. v2 -> v3: - Patches 2 and 3: use raw_smp_processor_id() instead of smp_processor_id(). Both paths run with interrupts disabled, so the plain accessor is sufficient. [...]
Applied to powerpc/next.
[1/3] powerpc/perf: fix preempt count underflow in fsl_emb_pmu_del
https://git.kernel.org/powerpc/c/81e3a86030462824a67d697739cf3f387f4ba350
[2/3] powerpc/powernv: fix preempt count leak in pnv_kexec_wait_secondaries_down
https://git.kernel.org/powerpc/c/0ecd26e93e698c8327521910fc6296f5b84a4b92
[3/3] powerpc/kexec: fix double get_cpu() imbalance in kexec_prepare_cpus
https://git.kernel.org/powerpc/c/5c86f1c1f972761a04bf22f4c0618d1aa714185b
cheers