Home
last modified time | relevance | path

Searched refs:kmalloc (Results 1 – 25 of 28) sorted by relevance

12

/lib/
Dtest_kasan.c36 ptr = kmalloc(size, GFP_KERNEL); in kmalloc_oob_right()
52 ptr = kmalloc(size, GFP_KERNEL); in kmalloc_oob_left()
88 ptr = kmalloc(size, GFP_KERNEL); in kmalloc_pagealloc_oob_right()
104 ptr = kmalloc(size, GFP_KERNEL); in kmalloc_pagealloc_uaf()
120 ptr = kmalloc(size, GFP_KERNEL); in kmalloc_pagealloc_invalid_free()
138 ptr = kmalloc(size, GFP_KERNEL); in kmalloc_large_oob_right()
155 ptr1 = kmalloc(size1, GFP_KERNEL); in kmalloc_oob_krealloc_more()
174 ptr1 = kmalloc(size1, GFP_KERNEL); in kmalloc_oob_krealloc_less()
192 ptr1 = kmalloc(sizeof(*ptr1) - 3, GFP_KERNEL); in kmalloc_oob_16()
193 ptr2 = kmalloc(sizeof(*ptr2), GFP_KERNEL); in kmalloc_oob_16()
[all …]
Dtest-string_helpers.c67 char *in = kmalloc(q_real, GFP_KERNEL); in test_string_unescape()
68 char *out_test = kmalloc(q_real, GFP_KERNEL); in test_string_unescape()
69 char *out_real = kmalloc(q_real, GFP_KERNEL); in test_string_unescape()
280 char *out_test = kmalloc(out_size, GFP_KERNEL); in test_string_escape()
281 char *out_real = kmalloc(out_size, GFP_KERNEL); in test_string_escape()
282 char *in = kmalloc(256, GFP_KERNEL); in test_string_escape()
Dtest_string.c12 p = kmalloc(256 * 2 * 2, GFP_KERNEL); in memset16_selftest()
48 p = kmalloc(256 * 2 * 4, GFP_KERNEL); in memset32_selftest()
84 p = kmalloc(256 * 2 * 8, GFP_KERNEL); in memset64_selftest()
Dtest_memcat_p.c36 in0[i] = kmalloc(sizeof(**in0), GFP_KERNEL); in test_memcat_p_init()
40 in1[i] = kmalloc(sizeof(**in1), GFP_KERNEL); in test_memcat_p_init()
Dtest_meminit.c102 buf = kmalloc(size, GFP_KERNEL); in do_kmalloc_size()
106 buf = kmalloc(size, GFP_KERNEL); in do_kmalloc_size()
225 buf_copy = kmalloc(size, GFP_ATOMIC); in do_kmem_cache_size()
266 buf_contents = kmalloc(size, GFP_KERNEL); in do_kmem_cache_rcu_persistent()
Dtest_user_copy.c112 umem_src = kmalloc(size, GFP_KERNEL); in test_copy_struct_from_user()
117 expected = kmalloc(size, GFP_KERNEL); in test_copy_struct_from_user()
194 kmem = kmalloc(PAGE_SIZE * 2, GFP_KERNEL); in test_user_copy_init()
Dstring_helpers.c581 dst = kmalloc(dlen + 1, gfp); in kstrdup_quotable()
602 buffer = kmalloc(PAGE_SIZE, GFP_KERNEL); in kstrdup_quotable_cmdline()
638 temp = kmalloc(PATH_MAX + 11, GFP_KERNEL); in kstrdup_quotable_file()
Ddecompress_unxz.c153 #undef kmalloc
157 #define kmalloc(size, flags) malloc(size) macro
Donce.c26 w = kmalloc(sizeof(*w), GFP_ATOMIC); in once_disable_jump()
Dtest_list_sort.c84 el = kmalloc(sizeof(*el), GFP_KERNEL); in list_sort_test()
Dtest_printf.c579 cmp_buffer = kmalloc(BUF_SIZE, GFP_KERNEL); in flags()
622 alloced_buffer = kmalloc(BUF_SIZE + 2*PAD_SIZE, GFP_KERNEL); in selftest()
Derror-inject.c76 ent = kmalloc(sizeof(*ent), GFP_KERNEL); in populate_error_injection_list()
Dkobject.c511 devpath_string = kmalloc(strlen(devpath) + 15, GFP_KERNEL); in kobject_rename()
577 devpath_string = kmalloc(strlen(devpath) + 15, GFP_KERNEL); in kobject_move()
Dnlattr.c550 dst = kmalloc(srclen + 1, flags); in nla_strdup()
Dtest_overflow.c543 DEFINE_TEST_ALLOC(kmalloc, kfree, 0, 1, 0);
Dinflate.c273 #define malloc(a) kmalloc(a, GFP_KERNEL)
Dtest_rhashtable.c541 rhlt = kmalloc(sizeof(*rhlt), GFP_KERNEL); in test_insert_dup()
/lib/zlib_inflate/
Dinfutil.c17 strm = kmalloc(sizeof(*strm), GFP_KERNEL); in zlib_inflate_blob()
20 strm->workspace = kmalloc(zlib_inflate_workspacesize(), GFP_KERNEL); in zlib_inflate_blob()
/lib/mpi/
Dmpiutil.c34 a = kmalloc(sizeof *a, GFP_KERNEL); in mpi_alloc()
64 return kmalloc(len, GFP_KERNEL); in mpi_alloc_limb_space()
Dmpicoder.c217 buf = kmalloc(n, GFP_KERNEL); in mpi_get_buffer()
/lib/math/
Dprime_numbers.c128 new = kmalloc(sizeof(*new) + bitmap_size(sz), in expand_to_next_prime()
249 buf = kmalloc(PAGE_SIZE, GFP_KERNEL); in dump_primes()
/lib/livepatch/
Dtest_klp_shadow_vars.c45 sp = kmalloc(sizeof(*sp), GFP_ATOMIC); in ptr_id()
/lib/xz/
Dxz_dec_bcj.c529 struct xz_dec_bcj *s = kmalloc(sizeof(*s), GFP_KERNEL); in xz_dec_bcj_create()
Dxz_dec_stream.c788 struct xz_dec *s = kmalloc(sizeof(*s), GFP_KERNEL); in xz_dec_init()
Dxz_dec_lzma2.c1111 struct xz_dec_lzma2 *s = kmalloc(sizeof(*s), GFP_KERNEL); in xz_dec_lzma2_create()

12