Re: Issue: padata: UAF in padata_serial_worker reproduce

From: Wang Jinchao
Date: Wed Sep 20 2023 - 20:52:56 EST


On Mon, Sep 18, 2023 at 09:21:59AM -0400, Daniel Jordan wrote:
> Hi,
>
> On Mon, Sep 18, 2023 at 02:27:34PM +0800, Wang Jinchao wrote:
> > Hello, I have reproduced the issue mentioned by Nicolai Stange on an arm64 server.
> > After applying Nicolai Stange's patch, the issue did not reoccur even after running for two days.
> > The test tools used were ltp20220121 and stress-ng-0.15.06.tar.gz.
> >
> > refurl: https://lore.kernel.org/all/20221028160401.cccypv4euxikusiq@parnassus.localdomain/T/#u
>
> Yeah, this series seems close to being finished, just hasn't made it
> over the finish line quite yet. I wonder if Nicolai has plans to
> ressurect or whether someone else should take it over.

Hello, I'd like to inquire about something:

Since users of padata_free_shell need to ensure that all tasks in padata_shell have completed,
how can they confirm this when they are uncertain? Would it be better if Padata provided a mechanism,
such as padata_shell_status(), to maintain statistics like the number of tasks?

Thanks