Re: [PATCH] iio: imu: kmx61: Fix TOCTOU race condition
From: Andy Shevchenko
Date: Tue May 12 2026 - 11:29:02 EST
On Tue, May 12, 2026 at 6:17 PM Maxwell Doose <m32285159@xxxxxxxxx> wrote:
>
> On Tue May 12, 2026 at 7:03 AM CDT, Maxwell Doose wrote:
> > A Time-of-check to Time-of-use race condition is present in
> > kmx61_write_event_config(). Move the mutex_lock() call above it to fix
> > it.
I think you want to elaborate a bit more on this. Id est explain why
ev_enable_state needs to be protected. Not everybody is willing to go
to some site to read some AI reports and interpreted them.
> Reported-by: sashiko <sashiko-bot@xxxxxxxxxx>
> Closes: https://sashiko.dev/#/patchset/20260507223337.48437-1-m32285159%40gmail.com
--
With Best Regards,
Andy Shevchenko