Re: another use-after-free in ep_remove_wait_queue()

From: Munehisa Kamata
Date: Thu Jan 19 2023 - 20:45:30 EST


On Thu, 2023-01-19 21:01:42 +0000, Suren Baghdasaryan <surenb@xxxxxxxxxx> wrote:
>
> Munehisha, if Tejun confirms this is all valid, could you please post
> a patch replacing wake_up_interruptible() with wake_up_pollfree()? We
> don't need to worry about wake_up_all() because we have a limitation
> of one trigger per file descriptor:
> https://elixir.bootlin.com/linux/latest/source/kernel/sched/psi.c#L1419,
> so there can be only one waiter.

Yes, will do (and will CC stable).


Regards,
Munehisa