Lines Matching refs:stack_entries
207 static u32 get_alloc_stack_hash(unsigned long *stack_entries, size_t num_entries) in get_alloc_stack_hash() argument
210 num_entries = filter_irq_stacks(stack_entries, num_entries); in get_alloc_stack_hash()
211 return jhash(stack_entries, num_entries * sizeof(stack_entries[0]), stack_hash_seed); in get_alloc_stack_hash()
290 unsigned long *stack_entries, size_t num_stack_entries) in metadata_update_state() argument
301 if (stack_entries) { in metadata_update_state()
302 memcpy(track->stack_entries, stack_entries, in metadata_update_state()
303 num_stack_entries * sizeof(stack_entries[0])); in metadata_update_state()
309 num_stack_entries = stack_trace_save(track->stack_entries, KFENCE_STACK_DEPTH, 1); in metadata_update_state()
415 unsigned long *stack_entries, size_t num_stack_entries, in kfence_guarded_alloc() argument
478 metadata_update_state(meta, KFENCE_OBJECT_ALLOCATED, stack_entries, num_stack_entries); in kfence_guarded_alloc()
1068 unsigned long stack_entries[KFENCE_STACK_DEPTH]; in __kfence_alloc() local
1121 num_stack_entries = stack_trace_save(stack_entries, KFENCE_STACK_DEPTH, 0); in __kfence_alloc()
1132 alloc_stack_hash = get_alloc_stack_hash(stack_entries, num_stack_entries); in __kfence_alloc()
1138 return kfence_guarded_alloc(s, size, flags, stack_entries, num_stack_entries, in __kfence_alloc()