Re: [PATCH] chardev: avoid use-after-free when client disconnect

2022-04-18 Thread Hogan Wang via
> Hi > > On Mon, Mar 28, 2022 at 12:22 PM Hogan Wang via wrote: > > IOWatchPoll object did not hold the @ioc and @src objects reference, > > then io_watch_poll_prepare execute in IO thread, if IOWatchPoll > > removed by mian thread, io_watch_poll_prepare may execute at last > > chance and access

Re: [PATCH] chardev: avoid use-after-free when client disconnect

2022-03-29 Thread Marc-André Lureau
Hi On Mon, Mar 28, 2022 at 12:22 PM Hogan Wang via wrote: > IOWatchPoll object did not hold the @ioc and @src objects reference, > then io_watch_poll_prepare execute in IO thread, if IOWatchPoll > removed by mian thread, io_watch_poll_prepare may execute at last > chance and access the freed @io

[PATCH] chardev: avoid use-after-free when client disconnect

2022-03-28 Thread Hogan Wang via
IOWatchPoll object did not hold the @ioc and @src objects reference, then io_watch_poll_prepare execute in IO thread, if IOWatchPoll removed by mian thread, io_watch_poll_prepare may execute at last chance and access the freed @ioc or @src object. In IO thread monitor scene, the IO thread used to