Received: from eggs.gnu.org ([2001:4830:134:3::10]:35293) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1adkM7-0001TH-4Z for qemu-devel@nongnu.org; Wed, 09 Mar 2016 15:05:15 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1adkM3-0004cd-T8 for qemu-devel@nongnu.org; Wed, 09 Mar 2016 15:05:14 -0500 Received: from mx1.redhat.com ([209.132.183.28]:32987) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1adkM3-0004cY-OI for qemu-devel@nongnu.org; Wed, 09 Mar 2016 15:05:11 -0500 From: Markus Armbruster References: <1457378754-21649-1-git-send-email-armbru@redhat.com> <1457378754-21649-4-git-send-email-armbru@redhat.com> Date: Wed, 09 Mar 2016 21:05:07 +0100 In-Reply-To: (=?utf-8?Q?=22Marc-Andr=C3=A9?= Lureau"'s message of "Wed, 9 Mar 2016 13:44:05 +0100") Message-ID: <87twkf2z9o.fsf@blackfin.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH v2 03/42] target-ppc: Document TOCTTOU in hugepage support List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?utf-8?Q?Marc-Andr=C3=A9?= Lureau Cc: QEMU , Claudio Fontana , Michael Roth , David Marchand , Paolo Bonzini , cam Marc-Andr=C3=A9 Lureau writes: > Hi > > On Mon, Mar 7, 2016 at 8:25 PM, Markus Armbruster wro= te: >> +/* > > nitpick, extra space here Will fix, thanks! >> + * FIXME TOCTTOU: this iterates over memory backends' mem-path, which >> + * may or may not name the same files / on the same filesystem now as >> + * when we actually open and map them. Iterate over the file >> + * descriptors instead, and use qemu_fd_getpagesize(). >> + */