Re: [PATCH v3] iio: trigger: fix use-after-free in current_trigger_store() on concurrent writers

From: Jonathan Cameron

Date: Sat Nov 28 2026 - 20:23:00 EST


On Sun, 15 Nov 2026 14:23:43 +1000
Yu Zhang <yuz08559@xxxxxxxxx> wrote:

> On Sat, 14 Nov 2026 23:51:18 +0000, Jonathan Cameron wrote:
> > Probably goes back a long way but please check and reply to this
> > thread with a suitable tag.
>
> It goes back to the original trigger code: the mlock drop before
> reading oldtrig and putting it is already there in
>
> Fixes: 1637db44413e ("Staging: IIO: Trigger support added to core.")
>
> Thanks,
> Yu

Thanks. Applied to the fixes-togreg branch of iio.git