[Devel] [PATCH RHEL7 COMMIT] kasan: always taint kernel on report.

Vladimir Davydov vdavydov at virtuozzo.com
Tue Sep 8 08:30:58 PDT 2015


The commit is pushed to "branch-rh7-3.10.0-229.7.2-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git
after rh7-3.10.0-229.7.2.vz7.6.8
------>
commit f20d28e970bb8080cbaa934f6a305911a166d9ce
Author: Andrey Ryabinin <aryabinin at odin.com>
Date:   Tue Sep 8 19:30:58 2015 +0400

    kasan: always taint kernel on report.
    
    This is usefull for automated testing.
    
    https://jira.sw.ru/browse/PSBM-39339
    
    Signed-off-by: Andrey Ryabinin <aryabinin at odin.com>
    Reviewed-by: Vladimir Davydov <vdavydov at parallels.com>
---
 mm/kasan/report.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/mm/kasan/report.c b/mm/kasan/report.c
index ad69bac8aa45..17af572c233c 100644
--- a/mm/kasan/report.c
+++ b/mm/kasan/report.c
@@ -212,6 +212,7 @@ static void kasan_report_error(struct kasan_access_info *info)
 	}
 	pr_err("================================="
 		"=================================\n");
+	add_taint(TAINT_BAD_PAGE, LOCKDEP_NOW_UNRELIABLE);
 	spin_unlock_irqrestore(&report_lock, flags);
 }
 



More information about the Devel mailing list