Home
last modified time | relevance | path

Searched refs:kfence_metadata (Results 1 – 3 of 3) sorted by relevance

/linux-6.1.9/mm/kfence/
Dkfence.h46 struct kfence_metadata { struct
97 extern struct kfence_metadata kfence_metadata[CONFIG_KFENCE_NUM_OBJECTS]; argument
99 static inline struct kfence_metadata *addr_to_metadata(unsigned long addr) in addr_to_metadata()
117 return &kfence_metadata[index]; in addr_to_metadata()
130 const struct kfence_metadata *meta, enum kfence_error_type type);
132 void kfence_print_object(struct seq_file *seq, const struct kfence_metadata *meta);
Dcore.c120 struct kfence_metadata kfence_metadata[CONFIG_KFENCE_NUM_OBJECTS]; variable
243 static inline unsigned long metadata_to_pageaddr(const struct kfence_metadata *meta) in metadata_to_pageaddr()
245 unsigned long offset = (meta - kfence_metadata + 1) * PAGE_SIZE * 2; in metadata_to_pageaddr()
251 if (KFENCE_WARN_ON(meta < kfence_metadata || in metadata_to_pageaddr()
252 meta >= kfence_metadata + CONFIG_KFENCE_NUM_OBJECTS)) in metadata_to_pageaddr()
270 metadata_update_state(struct kfence_metadata *meta, enum kfence_object_state next, in metadata_update_state()
311 struct kfence_metadata *meta; in check_canary_byte()
328 static __always_inline void for_each_canary(const struct kfence_metadata *meta, bool (*fn)(u8 *)) in for_each_canary()
359 struct kfence_metadata *meta = NULL; in kfence_guarded_alloc()
370 meta = list_entry(kfence_freelist.next, struct kfence_metadata, list); in kfence_guarded_alloc()
[all …]
Dreport.c106 static void kfence_print_stack(struct seq_file *seq, const struct kfence_metadata *meta, in kfence_print_stack()
130 void kfence_print_object(struct seq_file *seq, const struct kfence_metadata *meta) in kfence_print_object()
139 seq_con_printf(seq, "kfence-#%td unused\n", meta - kfence_metadata); in kfence_print_object()
144 meta - kfence_metadata, (void *)start, (void *)(start + size - 1), in kfence_print_object()
160 const struct kfence_metadata *meta) in print_diff_canary()
187 const struct kfence_metadata *meta, enum kfence_error_type type) in kfence_report_error()
190 const ptrdiff_t object_index = meta ? meta - kfence_metadata : -1; in kfence_report_error()
296 struct kfence_metadata *meta = addr_to_metadata((unsigned long)object); in __kfence_obj_info()