[Devel] [PATCH 3/4] kasan: always taint kernel on report.
Andrey Ryabinin
aryabinin at odin.com
Fri Sep 4 07:06:15 PDT 2015
This is usefull for automated testing.
https://jira.sw.ru/browse/PSBM-39339
Signed-off-by: Andrey Ryabinin <aryabinin at odin.com>
---
mm/kasan/report.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/mm/kasan/report.c b/mm/kasan/report.c
index ad69bac..17af572 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);
}
--
2.4.6
More information about the Devel
mailing list