Received: from eggs.gnu.org ([2001:4830:134:3::10]:35474) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YuN7P-0001AU-6v for qemu-devel@nongnu.org; Mon, 18 May 2015 11:38:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YuN7K-0002fh-SQ for qemu-devel@nongnu.org; Mon, 18 May 2015 11:38:15 -0400 Date: Mon, 18 May 2015 17:38:08 +0200 From: Kevin Wolf Message-ID: <20150518153808.GJ5999@noname.str.redhat.com> References: <1431446962-9860-1-git-send-email-berrange@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1431446962-9860-1-git-send-email-berrange@redhat.com> Subject: Re: [Qemu-devel] [PATCH 0/5] Misc fixes and testing of qcow[2] encryption List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Daniel P. Berrange" Cc: qemu-devel@nongnu.org, qemu-block@nongnu.org Am 12.05.2015 um 18:09 hat Daniel P. Berrange geschrieben: > I realize that qcow[2] encryption is a feature we have deprecated > and will remove support for running it with the QEMU system > emulators in this cycle. We do still need to make sure it continues > to work for the sake of letting people run qemu-img convert to > retrieve their data though. > > Some of the other patches I'm working on which introduce a cypto > cipher API touch this qcow2 code, thus I wanted to be able to test > that it doesn't break anything. > > I found that qemu-iotests didn't have any coverage of the qcow2 > encryption code. For added fun, I then discovered that qemu-io > doesn't check if an encryption key is required, so ends up > writing plain text to the files instead of cipher, and returning > cipher text for reads, instead of plain text. IOW qemu-io will > corrupt encrypted qcow2 files on write. > > This series adds some asserts that will protect against this kind > of mistake, adds support for getting passwords to qemu-io (in the > same manner that qemu-img supports), and finally adds a test case > for reading/writing encrypted qcow2. Thanks, applied to the block branch. Kevin