diff options
Diffstat (limited to 'include/linux/page-flags-layout.h')
-rw-r--r-- | include/linux/page-flags-layout.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/linux/page-flags-layout.h b/include/linux/page-flags-layout.h index 7ec86bf31ce4..1dda31825ec4 100644 --- a/include/linux/page-flags-layout.h +++ b/include/linux/page-flags-layout.h | |||
@@ -82,6 +82,16 @@ | |||
82 | #define LAST_CPUPID_WIDTH 0 | 82 | #define LAST_CPUPID_WIDTH 0 |
83 | #endif | 83 | #endif |
84 | 84 | ||
85 | #ifdef CONFIG_KASAN_SW_TAGS | ||
86 | #define KASAN_TAG_WIDTH 8 | ||
87 | #if SECTIONS_WIDTH+NODES_WIDTH+ZONES_WIDTH+LAST_CPUPID_WIDTH+KASAN_TAG_WIDTH \ | ||
88 | > BITS_PER_LONG - NR_PAGEFLAGS | ||
89 | #error "KASAN: not enough bits in page flags for tag" | ||
90 | #endif | ||
91 | #else | ||
92 | #define KASAN_TAG_WIDTH 0 | ||
93 | #endif | ||
94 | |||
85 | /* | 95 | /* |
86 | * We are going to use the flags for the page to node mapping if its in | 96 | * We are going to use the flags for the page to node mapping if its in |
87 | * there. This includes the case where there is no node, so it is implicit. | 97 | * there. This includes the case where there is no node, so it is implicit. |