Lines Matching refs:stack_entries
206 static u32 get_alloc_stack_hash(unsigned long *stack_entries, size_t num_entries) in get_alloc_stack_hash() argument
209 num_entries = filter_irq_stacks(stack_entries, num_entries); in get_alloc_stack_hash()
210 return jhash(stack_entries, num_entries * sizeof(stack_entries[0]), stack_hash_seed); in get_alloc_stack_hash()
289 unsigned long *stack_entries, size_t num_stack_entries) in metadata_update_state() argument
300 if (stack_entries) { in metadata_update_state()
301 memcpy(track->stack_entries, stack_entries, in metadata_update_state()
302 num_stack_entries * sizeof(stack_entries[0])); in metadata_update_state()
308 num_stack_entries = stack_trace_save(track->stack_entries, KFENCE_STACK_DEPTH, 1); in metadata_update_state()
414 unsigned long *stack_entries, size_t num_stack_entries, in kfence_guarded_alloc() argument
477 metadata_update_state(meta, KFENCE_OBJECT_ALLOCATED, stack_entries, num_stack_entries); in kfence_guarded_alloc()
1067 unsigned long stack_entries[KFENCE_STACK_DEPTH]; in __kfence_alloc() local
1119 num_stack_entries = stack_trace_save(stack_entries, KFENCE_STACK_DEPTH, 0); in __kfence_alloc()
1130 alloc_stack_hash = get_alloc_stack_hash(stack_entries, num_stack_entries); in __kfence_alloc()
1136 return kfence_guarded_alloc(s, size, flags, stack_entries, num_stack_entries, in __kfence_alloc()