Home
last modified time | relevance | path

Searched defs:ptr (Results 1 – 23 of 23) sorted by relevance

/mm/kasan/
Dkasan_test.c128 char *ptr; in kmalloc_oob_right() local
157 char *ptr; in kmalloc_oob_left() local
170 char *ptr; in kmalloc_node_oob_right() local
189 char *ptr; in kmalloc_pagealloc_oob_right() local
205 char *ptr; in kmalloc_pagealloc_uaf() local
219 char *ptr; in kmalloc_pagealloc_invalid_free() local
232 char *ptr; in pagealloc_oob_right() local
254 char *ptr; in pagealloc_uaf() local
268 char *ptr; in kmalloc_large_oob_right() local
456 char *ptr; in kmalloc_oob_memset_2() local
[all …]
Dcommon.c244 static inline bool ____kasan_kfree_large(void *ptr, unsigned long ip) in ____kasan_kfree_large()
264 void __kasan_kfree_large(void *ptr, unsigned long ip) in __kasan_kfree_large()
269 void __kasan_slab_free_mempool(void *ptr, unsigned long ip) in __kasan_slab_free_mempool()
379 void * __must_check __kasan_kmalloc_large(const void *ptr, size_t size, in __kasan_kmalloc_large()
Dreport_tags.c34 void *ptr; in kasan_complete_mode_report_info() local
Dreport.c464 void kasan_report_invalid_free(void *ptr, unsigned long ip, enum kasan_report_type type) in kasan_report_invalid_free()
506 void *ptr = (void *)addr; in kasan_report() local
Dkasan_test_module.c81 struct kasan_rcu_info *ptr; in kasan_rcu_uaf() local
Dinit.c82 void *ptr = memblock_alloc_try_nid(size, size, __pa(MAX_DMA_ADDRESS), in early_alloc() local
Dkasan.h281 void *ptr; member
/mm/
Dkmemleak.c285 const u8 *ptr = (const u8 *)object->pointer; in hex_dump_object() local
351 void *ptr = (void *)object->trace[i]; in print_unreferenced() local
381 static struct kmemleak_object *lookup_object(unsigned long ptr, int alias) in lookup_object()
518 static struct kmemleak_object *find_and_get_object(unsigned long ptr, int alias) in find_and_get_object()
551 static struct kmemleak_object *find_and_remove_object(unsigned long ptr, int alias) in find_and_remove_object()
577 static struct kmemleak_object *create_object(unsigned long ptr, size_t size, in create_object()
689 static void delete_object_full(unsigned long ptr) in delete_object_full()
709 static void delete_object_part(unsigned long ptr, size_t size) in delete_object_part()
756 static void paint_ptr(unsigned long ptr, int color) in paint_ptr()
776 static void make_gray_object(unsigned long ptr) in make_gray_object()
[all …]
Dusercopy.c103 static bool overlaps(const unsigned long ptr, unsigned long n, in overlaps()
117 static inline void check_kernel_text_object(const unsigned long ptr, in check_kernel_text_object()
147 static inline void check_bogus_address(const unsigned long ptr, unsigned long n, in check_bogus_address()
160 static inline void check_page_span(const void *ptr, unsigned long n, in check_page_span()
223 static inline void check_heap_object(const void *ptr, unsigned long n, in check_heap_object()
256 void __check_object_size(const void *ptr, unsigned long n, bool to_user) in __check_object_size()
Dpercpu.c122 #define __pcpu_ptr_to_addr(ptr) \ argument
130 #define __pcpu_ptr_to_addr(ptr) (void __force *)(ptr) argument
525 static void pcpu_mem_free(void *ptr) in pcpu_mem_free()
1734 void __percpu *ptr; in pcpu_alloc() local
2264 void free_percpu(void __percpu *ptr) in free_percpu()
2444 void *ptr; in pcpu_alloc_alloc_info() local
3063 void *ptr; in pcpu_embed_first_chunk() local
3104 void *ptr = areas[group]; in pcpu_embed_first_chunk() local
3203 void *ptr; in pcpu_page_first_chunk() local
3288 static void __init pcpu_dfl_fc_free(void *ptr, size_t size) in pcpu_dfl_fc_free()
Dhugetlb_cgroup.c232 struct hugetlb_cgroup **ptr, in __hugetlb_cgroup_charge_cgroup()
275 struct hugetlb_cgroup **ptr) in hugetlb_cgroup_charge_cgroup()
281 struct hugetlb_cgroup **ptr) in hugetlb_cgroup_charge_cgroup_rsvd()
Ddebug_vm_pgtable.c98 unsigned long val = idx, *ptr = &val; in pte_basic_tests() local
194 unsigned long val = idx, *ptr = &val; in pmd_basic_tests() local
329 unsigned long val = idx, *ptr = &val; in pud_basic_tests() local
Dlist_lru.c61 list_lru_from_kmem(struct list_lru_node *nlru, void *ptr, in list_lru_from_kmem()
106 list_lru_from_kmem(struct list_lru_node *nlru, void *ptr, in list_lru_from_kmem()
Dpage_alloc.c163 #define pcpu_spin_lock(type, member, ptr) \ argument
172 #define pcpu_spin_lock_irqsave(type, member, ptr, flags) \ argument
181 #define pcpu_spin_trylock_irqsave(type, member, ptr, flags) \ argument
193 #define pcpu_spin_unlock(member, ptr) \ argument
199 #define pcpu_spin_unlock_irqrestore(member, ptr, flags) \ argument
206 #define pcp_spin_lock(ptr) \ argument
209 #define pcp_spin_lock_irqsave(ptr, flags) \ argument
212 #define pcp_spin_trylock_irqsave(ptr, flags) \ argument
215 #define pcp_spin_unlock(ptr) \ argument
218 #define pcp_spin_unlock_irqrestore(ptr, flags) \ argument
[all …]
Dzswap.c1056 static int zswap_is_page_same_filled(void *ptr, unsigned long *value) in zswap_is_page_same_filled()
1070 static void zswap_fill_page(void *ptr, unsigned long value) in zswap_fill_page()
Ddmapool.c501 struct dma_pool **ptr, *pool; in dmam_pool_create() local
Dslab.c248 #define MAKE_ALL_LISTS(cachep, ptr, nodeid) \ argument
1168 struct kmem_cache_node *ptr; in init_list() local
3216 void *ptr; in slab_alloc_node() local
4186 void __check_heap_object(const void *ptr, unsigned long n, struct page *page, in __check_heap_object()
Dsparse-vmemmap.c433 void *ptr; in vmemmap_alloc_block_buf() local
Dmemblock.c813 void __init_memblock memblock_free_ptr(void *ptr, size_t size) in memblock_free_ptr()
1591 void *ptr; in memblock_alloc_try_nid() local
Dslab.h403 static inline struct mem_cgroup *memcg_from_slab_obj(void *ptr) in memcg_from_slab_obj()
Dsparse.c481 void *ptr = NULL; in sparse_buffer_alloc() local
Dslub.c309 static inline void *freelist_ptr(const struct kmem_cache *s, void *ptr, in freelist_ptr()
1674 static inline void *kmalloc_large_node_hook(void *ptr, size_t size, gfp_t flags) in kmalloc_large_node_hook()
4433 void *ptr = NULL; in kmalloc_large_node() local
4487 void __check_heap_object(const void *ptr, unsigned long n, struct page *page, in __check_heap_object()
/mm/kfence/
Dkfence_test.c215 static __always_inline void test_free(void *ptr) in test_free()