1 /* SPDX-License-Identifier: GPL-2.0 */
3 * arm64 KFENCE support.
5 * Copyright (C) 2020, Google LLC.
11 #include <asm/cacheflush.h>
13 #define KFENCE_SKIP_ARCH_FAULT_HANDLER "el1_sync"
15 static inline bool arch_kfence_init_pool(void) { return true; }
17 static inline bool kfence_protect_page(unsigned long addr, bool protect)
19 set_memory_valid(addr, 1, !protect);
24 #endif /* __ASM_KFENCE_H */