Searched refs:shadow (Results 1 – 3 of 3) sorted by relevance
/kernel/livepatch/ |
D | shadow.c | 70 static inline bool klp_shadow_match(struct klp_shadow *shadow, void *obj, in klp_shadow_match() argument 73 return shadow->obj == obj && shadow->id == id; in klp_shadow_match() 85 struct klp_shadow *shadow; in klp_shadow_get() local 89 hash_for_each_possible_rcu(klp_shadow_hash, shadow, node, in klp_shadow_get() 92 if (klp_shadow_match(shadow, obj, id)) { in klp_shadow_get() 94 return shadow->data; in klp_shadow_get() 234 static void klp_shadow_free_struct(struct klp_shadow *shadow, in klp_shadow_free_struct() argument 237 hash_del_rcu(&shadow->node); in klp_shadow_free_struct() 239 dtor(shadow->obj, shadow->data); in klp_shadow_free_struct() 240 kfree_rcu(shadow, rcu_head); in klp_shadow_free_struct() [all …]
|
D | Makefile | 4 livepatch-objs := core.o patch.o shadow.o transition.o
|
/kernel/ |
D | cfi.c | 55 u16 shadow[SHADOW_SIZE]; member 83 if (unlikely(s->shadow[index] == SHADOW_INVALID)) in shadow_to_ptr() 86 return (s->r.min_page + s->shadow[index]) << PAGE_SHIFT; in shadow_to_ptr() 104 memset(next->shadow, 0xFF, sizeof(next->shadow)); in prepare_next_shadow() 111 memcpy(next->shadow, prev->shadow, sizeof(next->shadow)); in prepare_next_shadow() 117 if (prev->shadow[i] == SHADOW_INVALID) in prepare_next_shadow() 125 shadow_to_ptr(prev, prev->shadow[i])); in prepare_next_shadow() 129 next->shadow[index] = (u16)check; in prepare_next_shadow() 158 WARN_ON(s->shadow[index] != SHADOW_INVALID); in add_module_to_shadow() 159 s->shadow[index] = (u16)check_index; in add_module_to_shadow() [all …]
|