Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1286372

Re: [PATCH v2 0/2] dm verity: add support for error correction

From Sami Tolvanen <samitolvanen@google.com>
Newsgroups linux.kernel
Subject Re: [PATCH v2 0/2] dm verity: add support for error correction
Date 2015-12-08 11:20 +0100
Message-ID <qDnxf-Xg-3@gated-at.bofh.it> (permalink)
References (5 earlier) <qD41A-4Zp-13@gated-at.bofh.it> <qD6wq-6Nn-5@gated-at.bofh.it> <qD6Zs-70P-5@gated-at.bofh.it> <qD8ox-80U-7@gated-at.bofh.it> <qD9kC-bo-15@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Mon, Dec 07, 2015 at 02:07:43PM -0500, Mike Snitzer wrote:
> I'm not seeing any verification of the metadata in fec_read_parity() --
> so it would seem that corrupt RS blocks would result in -EBADMSG being
> returned from decode_rs8() (by virtue of incorrect parity being passed
> to decode_rs8).
> 
> Sami (or others) am I right?

Yes, decode_rs8 failing with -EBADMSG is one option. There are also two
other cases:

 1) If the parity data is only partially corrupted, it may still be
    possible to correct errors, provided that the actual data isn't
    too severely corrupted.

 2) If there's too much corruption for Reed-Solomon to detect, it's
    also possible that decode_rs8 just returns bogus data, which we
    will catch when verifying the hash again. This is why combining
    error correction with integrity checking is essential.

In other words, the worst case is that we cannot correct errors for the
blocks covered by the corrupted parity data.

Sami
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

[PATCH v2 0/2] dm verity: add support for error correction Sami Tolvanen <samitolvanen@google.com> - 2015-12-03 15:30 +0100
  [PATCH v2 2/2] dm verity: ignore zero blocks Sami Tolvanen <samitolvanen@google.com> - 2015-12-03 15:30 +0100
  Re: [PATCH v2 0/2] dm verity: add support for error correction Mike Snitzer <snitzer@redhat.com> - 2015-12-03 21:00 +0100
    Re: [PATCH v2 0/2] dm verity: add support for error correction Mike Snitzer <snitzer@redhat.com> - 2015-12-04 00:10 +0100
      Re: [PATCH v2 0/2] dm verity: add support for error correction Sami Tolvanen <samitolvanen@google.com> - 2015-12-04 11:10 +0100
        Re: [PATCH v2 0/2] dm verity: add support for error correction Mike Snitzer <snitzer@redhat.com> - 2015-12-04 22:10 +0100
          Re: [PATCH v2 0/2] dm verity: add support for error correction Sami Tolvanen <samitolvanen@google.com> - 2015-12-07 14:30 +0100
            Re: [PATCH v2 0/2] dm verity: add support for error correction Mike Snitzer <snitzer@redhat.com> - 2015-12-07 17:10 +0100
              Re: [PATCH v2 0/2] dm verity: add support for error correction Sami Tolvanen <samitolvanen@google.com> - 2015-12-07 17:40 +0100
                Re: [PATCH v2 0/2] dm verity: add support for error correction Milan Broz <mbroz@redhat.com> - 2015-12-07 19:10 +0100
                Re: [PATCH v2 0/2] dm verity: add support for error correction Mike Snitzer <snitzer@redhat.com> - 2015-12-07 20:10 +0100
                Re: [PATCH v2 0/2] dm verity: add support for error correction Sami Tolvanen <samitolvanen@google.com> - 2015-12-08 11:20 +0100

csiph-web