[COMMON] scsi: ufs: Add reset for PA_ERROR interrupt storming control.
[GitHub/MotorolaMobilityLLC/kernel-slsi.git] / mm / page_poison.c
index e83fd44867deff2bdcdf953329445441eff40f5f..a7ba9e315a1287050e5f193de1ee89d88d099857 100644 (file)
@@ -6,6 +6,7 @@
 #include <linux/page_ext.h>
 #include <linux/poison.h>
 #include <linux/ratelimit.h>
+#include <linux/kasan.h>
 
 static bool want_page_poisoning __read_mostly;
 
@@ -34,7 +35,10 @@ static void poison_page(struct page *page)
 {
        void *addr = kmap_atomic(page);
 
+       /* KASAN still think the page is in-use, so skip it. */
+       kasan_disable_current();
        memset(addr, PAGE_POISON, PAGE_SIZE);
+       kasan_enable_current();
        kunmap_atomic(addr);
 }