Re: [PATCH] perf: arm_spe: Make wakeup range check overflow safe
Will Deacon <[email protected]> Sat, 1 Aug 2026 12:28:30 +0100
| Newsgroups | org.kernel.vger.linux-perf-users,org.infradead.lists.linux-arm-kernel,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <[email protected]> |
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