/lib/ |
D | test_kasan.c | 36 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 …]
|
D | test-string_helpers.c | 67 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()
|
D | test_string.c | 12 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()
|
D | test_memcat_p.c | 36 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()
|
D | test_meminit.c | 102 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()
|
D | test_user_copy.c | 112 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()
|
D | string_helpers.c | 581 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()
|
D | decompress_unxz.c | 153 #undef kmalloc 157 #define kmalloc(size, flags) malloc(size) macro
|
D | once.c | 26 w = kmalloc(sizeof(*w), GFP_ATOMIC); in once_disable_jump()
|
D | test_list_sort.c | 84 el = kmalloc(sizeof(*el), GFP_KERNEL); in list_sort_test()
|
D | test_printf.c | 579 cmp_buffer = kmalloc(BUF_SIZE, GFP_KERNEL); in flags() 622 alloced_buffer = kmalloc(BUF_SIZE + 2*PAD_SIZE, GFP_KERNEL); in selftest()
|
D | error-inject.c | 76 ent = kmalloc(sizeof(*ent), GFP_KERNEL); in populate_error_injection_list()
|
D | kobject.c | 511 devpath_string = kmalloc(strlen(devpath) + 15, GFP_KERNEL); in kobject_rename() 577 devpath_string = kmalloc(strlen(devpath) + 15, GFP_KERNEL); in kobject_move()
|
D | nlattr.c | 550 dst = kmalloc(srclen + 1, flags); in nla_strdup()
|
D | test_overflow.c | 543 DEFINE_TEST_ALLOC(kmalloc, kfree, 0, 1, 0);
|
D | inflate.c | 273 #define malloc(a) kmalloc(a, GFP_KERNEL)
|
D | test_rhashtable.c | 541 rhlt = kmalloc(sizeof(*rhlt), GFP_KERNEL); in test_insert_dup()
|
/lib/zlib_inflate/ |
D | infutil.c | 17 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/ |
D | mpiutil.c | 34 a = kmalloc(sizeof *a, GFP_KERNEL); in mpi_alloc() 64 return kmalloc(len, GFP_KERNEL); in mpi_alloc_limb_space()
|
D | mpicoder.c | 217 buf = kmalloc(n, GFP_KERNEL); in mpi_get_buffer()
|
/lib/math/ |
D | prime_numbers.c | 128 new = kmalloc(sizeof(*new) + bitmap_size(sz), in expand_to_next_prime() 249 buf = kmalloc(PAGE_SIZE, GFP_KERNEL); in dump_primes()
|
/lib/livepatch/ |
D | test_klp_shadow_vars.c | 45 sp = kmalloc(sizeof(*sp), GFP_ATOMIC); in ptr_id()
|
/lib/xz/ |
D | xz_dec_bcj.c | 529 struct xz_dec_bcj *s = kmalloc(sizeof(*s), GFP_KERNEL); in xz_dec_bcj_create()
|
D | xz_dec_stream.c | 788 struct xz_dec *s = kmalloc(sizeof(*s), GFP_KERNEL); in xz_dec_init()
|
D | xz_dec_lzma2.c | 1111 struct xz_dec_lzma2 *s = kmalloc(sizeof(*s), GFP_KERNEL); in xz_dec_lzma2_create()
|