Received: from eggs.gnu.org ([2001:4830:134:3::10]:51850) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g82mE-0000j8-9T for qemu-devel@nongnu.org; Thu, 04 Oct 2018 08:30:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g82lN-0000Sd-Uq for qemu-devel@nongnu.org; Thu, 04 Oct 2018 08:29:54 -0400 Date: Thu, 4 Oct 2018 14:29:40 +0200 From: Kevin Wolf Message-ID: <20181004122940.GB6009@localhost.localdomain> References: <1532433124-25881-1-git-send-email-thuth@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1532433124-25881-1-git-send-email-thuth@redhat.com> Subject: Re: [Qemu-devel] [PATCH v2] block/vvfat: Fix crash when reporting error about too many files in directory List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Thomas Huth Cc: qemu-block@nongnu.org, Max Reitz , qemu-devel@nongnu.org Am 24.07.2018 um 13:52 hat Thomas Huth geschrieben: > When using the vvfat driver with a directory that contains too many files, > QEMU currently crashes. This can be triggered like this for example: > > mkdir /tmp/vvfattest > cd /tmp/vvfattest > for ((x=0;x<=513;x++)); do mkdir $x; done > qemu-system-x86_64 -drive \ > file.driver=vvfat,file.dir=.,read-only=on,media=cdrom > > Seems like read_directory() is changing the mapping->path variable. Make > sure we use the right pointer instead. > > Signed-off-by: Thomas Huth Thanks, applied to the block branch. Kevin