CHROMIUM: dm-verity: initial cut
authorWill Drewry <wad@chromium.org>
Wed, 9 Jun 2010 22:06:22 +0000 (17:06 -0500)
committerOlof Johansson <olof@lixom.net>
Fri, 1 Jun 2012 06:59:28 +0000 (23:59 -0700)
commite9064cbac555a9cb0d4ab8c80427338c3b764bc1
tree835cb8c466e380485c63842e7fb13b8145438478
parent67f552bfc4d9b3b0ab1de8f54ba9cc1682c76313
CHROMIUM: dm-verity: initial cut

First cut of dm-verity and dm-bht.  This implements a hash-based block
device verification dm module.

[It still needs work, but I'd love to be able to start doing iterative changes and not working on big, unchecked in blobs :)]

BUG=327
TESTS=automated:
      - dm-bht are coming in the verity cl
      - autotests need to be written for testing live
      manual:
      - by mounting /dev/sda5 with a rootfs on it and using a loop device with the hashes;
      - ran with slub debug FPZ: discovered dm-io bug which is no longer used in the code
      - ran dd on the raw device with block sizes from 4k - 1M and counts from 1 to full disk, skip as well
        - uncovered lock-ups in io_populate loop and oom conditions with initial dm_bht_populate flood of
          I/O requests (max_bios)
      - base tests on ref show ~25mb/s.  autotests to follow

Signed-off-by: Will Drewry <wad@chromium.org>
Review URL: http://codereview.chromium.org/1921007
Documentation/device-mapper/dm-bht.txt [new file with mode: 0644]
Documentation/device-mapper/dm-verity.txt [new file with mode: 0644]
drivers/md/Kconfig
drivers/md/Makefile
drivers/md/dm-bht.c [new file with mode: 0644]
drivers/md/dm-verity.c [new file with mode: 0644]
include/linux/dm-bht.h [new file with mode: 0644]