Re: [PATCH v1] rust: hrtimer: Remove HrTimer::expires()

From: Andreas Hindborg

Date: Thu Nov 12 2026 - 07:57:42 EST



On Mon, 02 Nov 2026 09:01:02 +0900, FUJITA Tomonori wrote:
> HrTimer::expires() reads node.expires without the base lock. The
> hrtimer core writes node.expires in hrtimer_start() and
> hrtimer_forward(). A timer started through Arc<T> or Pin<&T> can be
> started or forwarded while expires() runs. The read then races with
> the write. That is a data race, which is undefined behavior in Rust.
> The volatile read does not help.
>
> [...]

Applied, thanks!

[1/1] rust: hrtimer: Remove HrTimer::expires()
commit: 6b391eec2ddeb3ab2681cc5dee16d29e00202438

Best regards,
--
Andreas Hindborg <a.hindborg@xxxxxxxxxx>