From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51437) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gVD4h-0004pB-6v for qemu-devel@nongnu.org; Fri, 07 Dec 2018 05:09:36 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gVD4d-0006Rd-TO for qemu-devel@nongnu.org; Fri, 07 Dec 2018 05:09:35 -0500 Received: from mail-wm1-f68.google.com ([209.85.128.68]:54082) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gVD4d-0006RL-Lm for qemu-devel@nongnu.org; Fri, 07 Dec 2018 05:09:31 -0500 Received: by mail-wm1-f68.google.com with SMTP id y1so3751259wmi.3 for ; Fri, 07 Dec 2018 02:09:31 -0800 (PST) References: <20181116190211.17622-1-remy.noel@blade-group.com> From: =?UTF-8?Q?Philippe_Mathieu-Daud=c3=a9?= Message-ID: Date: Fri, 7 Dec 2018 11:09:29 +0100 MIME-Version: 1.0 In-Reply-To: <20181116190211.17622-1-remy.noel@blade-group.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] aio_poll race condition. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: remy.noel@blade-group.com, qemu-devel@nongnu.org Cc: Fam Zheng , Stefan Hajnoczi , Kevin Wolf , Max Reitz Hi Remy, On 11/16/18 8:02 PM, remy.noel@blade-group.com wrote: > From: Remy Noel > > It is possible for an io_poll callback to be concurrently executed along > with an aio_set_fd_handlers. This can cause all sorts of problems, like > a NULL callback or a bad opaque pointer. > We fixes that by using an remove/insert RCU scheme. You forgot to Cc the relevant maintainers, that's probably why your series went unnoticed. >>From the wiki: https://wiki.qemu.org/Contribute/SubmitAPatch#CC_the_relevant_maintainer $ ./scripts/get_maintainer.pl -f include/block/aio.h util/aio-posix.c util/aio-win32.c util/async.c Stefan Hajnoczi (supporter:Block I/O path) Fam Zheng (supporter:Block I/O path) Kevin Wolf (supporter:Block layer core) Max Reitz (supporter:Block layer core) Stefan Weil (maintainer:W32, W64) qemu-block@nongnu.org (open list:Block I/O path) qemu-devel@nongnu.org (open list:All patches CC here) Please Cc them in your v2. (Note Fam has a new email: Fam Zheng ) Regards, Phil. > > Please note that i did not test the win32 version. > > Remy Noel (3): > aio-posix: Fix concurrent aio_poll/set_fd_handler. > util/aio-posix: Use RCU for handler insertion. > aio: Do not use list_lock as a sync mechanism for aio_handlers > anymore. > > include/block/aio.h | 4 +- > util/aio-posix.c | 148 ++++++++++++++++++++------------------------ > util/aio-win32.c | 82 +++++++++--------------- > util/async.c | 7 ++- > 4 files changed, 103 insertions(+), 138 deletions(-) >