[HACK] Make kernel panic when verity error is detected for debugging
authorHyeyeon Chung <hyeon.chung@samsung.com>
Thu, 16 Aug 2018 10:16:26 +0000 (19:16 +0900)
committerCosmin Tanislav <demonsingur@gmail.com>
Mon, 22 Apr 2024 17:22:58 +0000 (20:22 +0300)
Change-Id: If35e3c21cdbe8fe314dc4f1df878f31a3e0e3924
Signed-off-by: Hyeyeon Chung <hyeon.chung@samsung.com>
drivers/md/dm-verity-target.c

index 383249c1a5ed596bb2bd8cefe279abc7011ee4d6..64d556a83e2584a6b5f3bb48acdc6662e99468aa 100644 (file)
@@ -279,6 +279,7 @@ static int verity_handle_err(struct dm_verity *v, enum verity_block_type type,
 
        DMERR_LIMIT("%s: %s block %llu is corrupted", v->data_dev->name,
                    type_str, block);
+       panic("DM_VERITY_CORRUPTED");
 
        if (v->corrupted_errs == DM_VERITY_MAX_CORRUPTED_ERRS)
                DMERR("%s: reached maximum errors", v->data_dev->name);