[dm-devel] dm-verity: Verification fails but do not see Input/Output Error on read

Chaitra Bhat Chaitra.Bhat at VERIFONE.com
Thu Aug 8 13:47:15 UTC 2013


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Hi Mikulas,

I get 'Invalid argument' with 'iflag=direct' option when I try to read from a verity device using dd. Before I read from the device, I also did 'echo 3 > /proc/sys/vm/drop_caches' to make sure caches are dropped.

But as I said before, some locations always fail with I/O error when read and others don't.

Regards,
Chaitra
________________________________________
From: dm-devel-bounces at redhat.com [dm-devel-bounces at redhat.com] on behalf of Mikulas Patocka [mpatocka at redhat.com]
Sent: 08 August 2013 13:52
To: device-mapper development
Cc: Alasdair G Kergon
Subject: Re: [dm-devel] dm-verity: Verification fails but do not see Input/Output Error on read

On Thu, 8 Aug 2013, Chaitra Bhat wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA512
>
> Hi Alasdair,
>
> Thanks for your response.
>
> But I am not convinced. Here is why...
>
> 1. I tried a bit-more and I was able to get Input/Output Error on
> certain locations - everytime - I read that location. (But I still have
> an open question that on some locations, though the verify reports
> failure, I do not get an IO Error on read)
>
> 2. I do not understand when you say device is live - do you mean
> mounted? Because I thought that the whole idea of dm-verity was that
> once the verity device is set-up, it would return EIO when something
> gets corrupted in the data or hash partitions when that invalid data is
> read.
>
> Chaitra

It is possible that you are reading data from the buffer cache and not
from the underlying device.

To not use the buffer cache, use iflag=direct parameter to dd.

Mikulas

- --
dm-devel mailing list
dm-devel at redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel

________________________________
This electronic message, including attachments, is intended only for the use of the individual or company named above or to which it is addressed. The information contained in this message shall be considered confidential and proprietary, and may include confidential work product. If you are not the intended recipient, please be aware that any unauthorized use, dissemination, distribution or copying of this message is strictly prohibited. If you have received this email in error, please notify the sender by replying to this message and deleting this email immediately.

-----BEGIN PGP SIGNATURE-----
Version: PGP Universal 3.2.0 (Build 2599)
Charset: us-ascii

wsFVAwUBUgOhd/oDVUR++NlrAQqnvRAAuAbHC7T53cO0nrh9/TlAt0GGuwWNP38G
+Aq0V8688jILCjca8pnMfnzgKlOMV26cTihbw2yhNG4O1+SuXp7Do21kv3VleW7o
fZxPSHoYcdBiJFj4dfGtZjpbECte0nE5xuFpgP18YD5jctixSvpGhQoxaJaWGfcU
lq88sDc5ixygu1f6eFheBZ1pdJJQnJygvMYC+tf1fJm/5rtYlIBRDqQ+L7V359vn
2/10EJE9TIZI4gPaVdJpzyft8pSNj1FKEUynBTZCCx9LuQ0iiC2M9aoMjdV6qXgW
7cACU2EkV+697BFamCLvQ6ZS1C6rWd6Ua5TffNBUon8wsSH2E0PzDRxLPhdPBRr/
wjoWaYz0DBJaCG7szCr0fjY54qX9Mrlc9Q8NMHxl7yCGiMC7rcrFU03/gtngUv+K
Ws6BlBtoy67nJOozaFQ+l5agI4Ces0SYHDebDmBFNBRee3WTHTXdWvJ0v8/sHIhR
cqlKrVqTShjAvWFqnIb8ryfkS8V2bBMp1AgeHHVoSVi+vY0LF4Tg0yDx1MNzPihd
BLGIZxZ6nC/uco6WZK3fMMQjAr/qbAt/VFKkQ7quo7BmNBJA6CnBZMzXV8dj4Gbf
ozaIt1CYlBo+7npfAkP2u7dZU4J0AZ0M9/Q2gMKe1YSf/F1qeaRJ9Je2ItguLrYV
6Y0pNBE5L+E=
=Ld/X
-----END PGP SIGNATURE-----





More information about the dm-devel mailing list