kasan: disable freed user page poisoning with HW tags
[linux-2.6-microblaze.git] / include / linux / page-flags.h
index 04a34c0..40e2c50 100644 (file)
@@ -137,6 +137,9 @@ enum pageflags {
 #endif
 #ifdef CONFIG_64BIT
        PG_arch_2,
+#endif
+#ifdef CONFIG_KASAN_HW_TAGS
+       PG_skip_kasan_poison,
 #endif
        __NR_PAGEFLAGS,
 
@@ -443,6 +446,12 @@ TESTCLEARFLAG(Young, young, PF_ANY)
 PAGEFLAG(Idle, idle, PF_ANY)
 #endif
 
+#ifdef CONFIG_KASAN_HW_TAGS
+PAGEFLAG(SkipKASanPoison, skip_kasan_poison, PF_HEAD)
+#else
+PAGEFLAG_FALSE(SkipKASanPoison)
+#endif
+
 /*
  * PageReported() is used to track reported free pages within the Buddy
  * allocator. We can use the non-atomic version of the test and set