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 state.o transition.o
|
/kernel/ |
D | cfi.c | 49 shadow_t shadow[1]; member 64 #define SHADOW_ARR_SIZE (SHADOW_SIZE - offsetof(struct cfi_shadow, shadow)) 104 if (unlikely(s->shadow[index] == SHADOW_INVALID)) in shadow_to_check_fn() 108 return (s->base + s->shadow[index]) << PAGE_SHIFT; in shadow_to_check_fn() 117 memset(next->shadow, 0xFF, SHADOW_ARR_SIZE); in prepare_next_shadow() 124 memcpy(next->shadow, prev->shadow, SHADOW_ARR_SIZE); in prepare_next_shadow() 130 if (prev->shadow[i] == SHADOW_INVALID) in prepare_next_shadow() 138 shadow_to_check_fn(prev, prev->shadow[i])); in prepare_next_shadow() 142 next->shadow[index] = (shadow_t)check; in prepare_next_shadow() 168 WARN_ON_ONCE(s->shadow[index] != SHADOW_INVALID); in add_module_to_shadow() [all …]
|