Searched refs:kfence_pool (Results 1 – 4 of 4) sorted by relevance
/linux/arch/loongarch/include/asm/ |
H A D | kfence.h | 21 char *kfence_pool = __kfence_pool; in arch_kfence_init_pool() local 33 virt_to_phys((void *)kfence_pool), PAGE_KERNEL); in arch_kfence_init_pool() 36 __kfence_pool = kfence_pool; in arch_kfence_init_pool() 40 kaddr = kfence_pool; in arch_kfence_init_pool() 42 while (kaddr < kfence_pool + KFENCE_POOL_SIZE) { in arch_kfence_init_pool()
|
/linux/arch/powerpc/mm/book3s64/ |
H A D | radix_pgtable.c | 380 phys_addr_t kfence_pool; in alloc_kfence_pool() local 396 kfence_pool = memblock_phys_alloc(KFENCE_POOL_SIZE, PAGE_SIZE); in alloc_kfence_pool() 397 if (!kfence_pool) in alloc_kfence_pool() 400 memblock_mark_nomap(kfence_pool, KFENCE_POOL_SIZE); in alloc_kfence_pool() 401 return kfence_pool; in alloc_kfence_pool() 408 static inline void map_kfence_pool(phys_addr_t kfence_pool) in map_kfence_pool() argument 410 if (!kfence_pool) in map_kfence_pool() 413 if (create_physical_mapping(kfence_pool, kfence_pool + KFENCE_POOL_SIZE, in map_kfence_pool() 417 memblock_clear_nomap(kfence_pool, KFENCE_POOL_SIZE); in map_kfence_pool() 418 __kfence_pool = __va(kfence_pool); in map_kfence_pool() [all …]
|
/linux/arch/arm64/mm/ |
H A D | mmu.c | 586 phys_addr_t kfence_pool; in arm64_kfence_alloc_pool() local 591 kfence_pool = memblock_phys_alloc(KFENCE_POOL_SIZE, PAGE_SIZE); in arm64_kfence_alloc_pool() 592 if (!kfence_pool) { in arm64_kfence_alloc_pool() 599 memblock_mark_nomap(kfence_pool, KFENCE_POOL_SIZE); in arm64_kfence_alloc_pool() 601 return kfence_pool; in arm64_kfence_alloc_pool() 604 static void __init arm64_kfence_map_pool(phys_addr_t kfence_pool, pgd_t *pgdp) in arm64_kfence_map_pool() argument 606 if (!kfence_pool) in arm64_kfence_map_pool() 610 __map_memblock(pgdp, kfence_pool, kfence_pool + KFENCE_POOL_SIZE, in arm64_kfence_map_pool() 613 memblock_clear_nomap(kfence_pool, KFENCE_POOL_SIZE); in arm64_kfence_map_pool() 614 __kfence_pool = phys_to_virt(kfence_pool); in arm64_kfence_map_pool() [all …]
|
/linux/arch/riscv/mm/ |
H A D | init.c | 1264 phys_addr_t kfence_pool __maybe_unused; in create_linear_mapping_page_table() 1284 kfence_pool = memblock_phys_alloc(KFENCE_POOL_SIZE, PAGE_SIZE); in create_linear_mapping_page_table() 1285 BUG_ON(!kfence_pool); in create_linear_mapping_page_table() 1287 memblock_mark_nomap(kfence_pool, KFENCE_POOL_SIZE); in create_linear_mapping_page_table() 1288 __kfence_pool = __va(kfence_pool); in create_linear_mapping_page_table() 1311 create_linear_mapping_range(kfence_pool, kfence_pool + KFENCE_POOL_SIZE, PAGE_SIZE, NULL); in create_linear_mapping_page_table() 1313 memblock_clear_nomap(kfence_pool, KFENCE_POOL_SIZE); in create_linear_mapping_page_table()
|