Lines Matching refs:stack_entries
202 static u32 get_alloc_stack_hash(unsigned long *stack_entries, size_t num_entries) in get_alloc_stack_hash() argument
205 num_entries = filter_irq_stacks(stack_entries, num_entries); in get_alloc_stack_hash()
206 return jhash(stack_entries, num_entries * sizeof(stack_entries[0]), stack_hash_seed); in get_alloc_stack_hash()
278 unsigned long *stack_entries, size_t num_stack_entries) in metadata_update_state() argument
285 if (stack_entries) { in metadata_update_state()
286 memcpy(track->stack_entries, stack_entries, in metadata_update_state()
287 num_stack_entries * sizeof(stack_entries[0])); in metadata_update_state()
293 num_stack_entries = stack_trace_save(track->stack_entries, KFENCE_STACK_DEPTH, 1); in metadata_update_state()
391 unsigned long *stack_entries, size_t num_stack_entries, in kfence_guarded_alloc() argument
454 metadata_update_state(meta, KFENCE_OBJECT_ALLOCATED, stack_entries, num_stack_entries); in kfence_guarded_alloc()
1049 unsigned long stack_entries[KFENCE_STACK_DEPTH]; in __kfence_alloc() local
1099 num_stack_entries = stack_trace_save(stack_entries, KFENCE_STACK_DEPTH, 0); in __kfence_alloc()
1110 alloc_stack_hash = get_alloc_stack_hash(stack_entries, num_stack_entries); in __kfence_alloc()
1116 return kfence_guarded_alloc(s, size, flags, stack_entries, num_stack_entries, in __kfence_alloc()