Re: [PATCH] perf: arm_spe: Make wakeup range check overflow safe

From: Will Deacon

Date: Sat Aug 01 2026 - 07:33:21 EST


On Thu, 02 Jul 2026 18:05:21 +0100, Leo Yan wrote:
> The current code checks whether the wakeup point is in the current
> writable range by comparing it with handle->head + handle->size.
>
> The perf AUX head is a monotonically increasing index, so that addition
> can overflow when head is close to ULONG_MAX. In that case, a wakeup
> point which is still inside the free space range can be missed.
>
> [...]

Applied to arm64 (for-next/perf), thanks!

[1/1] perf: arm_spe: Make wakeup range check overflow safe
https://git.kernel.org/arm64/c/fcc5eaea2d23

Cheers,
--
Will

https://fixes.arm64.dev
https://next.arm64.dev
https://will.arm64.dev