From: Hyeyeon Chung Date: Thu, 16 Aug 2018 10:16:26 +0000 (+0900) Subject: [HACK] Make kernel panic when verity error is detected for debugging X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b9fa4c1375e374cf3836f53fdf1cc69063178795;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [HACK] Make kernel panic when verity error is detected for debugging Change-Id: If35e3c21cdbe8fe314dc4f1df878f31a3e0e3924 Signed-off-by: Hyeyeon Chung --- diff --git a/drivers/md/dm-verity-target.c b/drivers/md/dm-verity-target.c index 383249c1a5ed..64d556a83e25 100644 --- a/drivers/md/dm-verity-target.c +++ b/drivers/md/dm-verity-target.c @@ -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);