Lines Matching refs:stack_entries
176 static u32 get_alloc_stack_hash(unsigned long *stack_entries, size_t num_entries) in get_alloc_stack_hash() argument
179 num_entries = filter_irq_stacks(stack_entries, num_entries); in get_alloc_stack_hash()
180 return jhash(stack_entries, num_entries * sizeof(stack_entries[0]), stack_hash_seed); in get_alloc_stack_hash()
273 unsigned long *stack_entries, size_t num_stack_entries) in metadata_update_state() argument
280 if (stack_entries) { in metadata_update_state()
281 memcpy(track->stack_entries, stack_entries, in metadata_update_state()
282 num_stack_entries * sizeof(stack_entries[0])); in metadata_update_state()
288 num_stack_entries = stack_trace_save(track->stack_entries, KFENCE_STACK_DEPTH, 1); in metadata_update_state()
358 unsigned long *stack_entries, size_t num_stack_entries, in kfence_guarded_alloc() argument
418 metadata_update_state(meta, KFENCE_OBJECT_ALLOCATED, stack_entries, num_stack_entries); in kfence_guarded_alloc()
849 unsigned long stack_entries[KFENCE_STACK_DEPTH]; in __kfence_alloc() local
892 num_stack_entries = stack_trace_save(stack_entries, KFENCE_STACK_DEPTH, 0); in __kfence_alloc()
903 alloc_stack_hash = get_alloc_stack_hash(stack_entries, num_stack_entries); in __kfence_alloc()
909 return kfence_guarded_alloc(s, size, flags, stack_entries, num_stack_entries, in __kfence_alloc()