This source file includes following definitions.
- kasan_init
- kasan_copy_shadow
1
2 #ifndef __ASM_KASAN_H
3 #define __ASM_KASAN_H
4
5 #ifndef __ASSEMBLY__
6
7 #include <linux/linkage.h>
8 #include <asm/memory.h>
9 #include <asm/pgtable-types.h>
10
11 #define arch_kasan_set_tag(addr, tag) __tag_set(addr, tag)
12 #define arch_kasan_reset_tag(addr) __tag_reset(addr)
13 #define arch_kasan_get_tag(addr) __tag_get(addr)
14
15 #ifdef CONFIG_KASAN
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33 #define _KASAN_SHADOW_START(va) (KASAN_SHADOW_END - (1UL << ((va) - KASAN_SHADOW_SCALE_SHIFT)))
34 #define KASAN_SHADOW_START _KASAN_SHADOW_START(vabits_actual)
35
36 void kasan_init(void);
37 void kasan_copy_shadow(pgd_t *pgdir);
38 asmlinkage void kasan_early_init(void);
39
40 #else
41 static inline void kasan_init(void) { }
42 static inline void kasan_copy_shadow(pgd_t *pgdir) { }
43 #endif
44
45 #endif
46 #endif