Home
last modified time | relevance | path

Searched refs:alloc_stack_hash (Results 1 – 2 of 2) sorted by relevance

/linux/mm/kfence/
H A Dcore.c217 static void alloc_covered_add(u32 alloc_stack_hash, int val) in alloc_covered_add() argument
222 atomic_add(val, &alloc_covered[alloc_stack_hash & ALLOC_COVERED_MASK]); in alloc_covered_add()
223 alloc_stack_hash = ALLOC_COVERED_HNEXT(alloc_stack_hash); in alloc_covered_add()
231 static bool alloc_covered_contains(u32 alloc_stack_hash) in alloc_covered_contains() argument
236 if (!atomic_read(&alloc_covered[alloc_stack_hash & ALLOC_COVERED_MASK])) in alloc_covered_contains()
238 alloc_stack_hash = ALLOC_COVERED_HNEXT(alloc_stack_hash); in alloc_covered_contains()
415 u32 alloc_stack_hash) in kfence_guarded_alloc() argument
481 meta->alloc_stack_hash = alloc_stack_hash; in kfence_guarded_alloc()
484 alloc_covered_add(alloc_stack_hash, 1); in kfence_guarded_alloc()
550 alloc_covered_add(meta->alloc_stack_hash, -1); in kfence_guarded_free()
[all …]
H A Dkfence.h100 u32 alloc_stack_hash; member