Searched refs:shadow_size (Results 1 - 2 of 2) sorted by relevance
/third_party/musl/ldso/linux/ |
H A D | cfi.c | 88 static uintptr_t shadow_size = 0; variable 217 if (offset > shadow_size) { in cfi_slowpath_common() 218 LD_LOGE("[CFI] set value to sv_invalid because offset(%{public}x) > shadow_size(%{public}x), " in cfi_slowpath_common() 220 offset, shadow_size, func_ptr, __builtin_return_address(0)); in cfi_slowpath_common() 324 prctl(PR_SET_VMA, PR_SET_VMA_ANON_NAME, cfi_shadow_start, shadow_size, "cfi_shadow:musl"); in map_dso_to_cfi_shadow() 331 prctl(PR_SET_VMA, PR_SET_VMA_ANON_NAME, cfi_shadow_start, shadow_size, "cfi_shadow:musl"); in map_dso_to_cfi_shadow() 366 prctl(PR_SET_VMA, PR_SET_VMA_ANON_NAME, cfi_shadow_start, shadow_size, "cfi_shadow:musl"); in unmap_dso_from_cfi_shadow() 376 * value is uint16_t. The size passed to mmap() should be aligned with 4096, so shadow_size should be aligned. */ in create_cfi_shadow() 377 shadow_size = ALIGN_UP(((max_target_addr >> shadow_granularity) << 1), PAGE_SIZE); in create_cfi_shadow() 379 uintptr_t *mmap_addr = mmap(NULL, shadow_size, PROT_NON in create_cfi_shadow() [all...] |
/third_party/musl/porting/linux/user/ldso/ |
H A D | cfi.c | 84 static uintptr_t shadow_size = 0; variable 209 if (offset > shadow_size) { in cfi_slowpath_common() 305 prctl(PR_SET_VMA, PR_SET_VMA_ANON_NAME, cfi_shadow_start, shadow_size, "cfi_shadow:musl"); in map_dso_to_cfi_shadow() 310 prctl(PR_SET_VMA, PR_SET_VMA_ANON_NAME, cfi_shadow_start, shadow_size, "cfi_shadow:musl"); in map_dso_to_cfi_shadow() 337 prctl(PR_SET_VMA, PR_SET_VMA_ANON_NAME, cfi_shadow_start, shadow_size, "cfi_shadow:musl"); in unmap_dso_from_cfi_shadow() 347 * value is uint16_t. The size passed to mmap() should be aligned with 4096, so shadow_size should be aligned. */ in create_cfi_shadow() 348 shadow_size = ALIGN_UP(((max_target_addr >> shadow_granularity) << 1), PAGE_SIZE); in create_cfi_shadow() 350 uintptr_t *mmap_addr = mmap(NULL, shadow_size, PROT_READ, MAP_PRIVATE | MAP_ANONYMOUS | MAP_NORESERVE, -1, 0); in create_cfi_shadow()
|
Completed in 2 milliseconds