Re: [PATCH] clockevents: Match the CPU when unbinding devices via sysfs

From: Frederic Weisbecker

Date: Tue Nov 03 2026 - 12:12:30 EST


Le Sun, Nov 01, 2026 at 04:11:20PM +0200, Avi Weiss a écrit :
> Clockevent devices belonging to different CPUs can share the same
> name. The sysfs unbind handler selects the first matching name from
> the global device list, which can cause a request for one CPU to
> unbind another CPU's device or incorrectly return -EBUSY.
>
> Check the device's CPU mask when selecting the clockevent to unbind
> so that the request targets a device eligible for the specified CPU.
>
> Fixes: 03e13cf5ee60 ("clockevents: Implement unbind functionality")
> Signed-off-by: Avi Weiss <thnkslprpt@xxxxxxxxx>

Reviewed-by: Frederic Weisbecker <frederic@xxxxxxxxxx>

--
Frederic Weisbecker
SUSE Labs