/kernel/linux/linux-5.10/samples/kmemleak/ |
D | kmemleak-test.c | 43 pr_info("kmalloc(32) = %p\n", kmalloc(32, GFP_KERNEL)); in kmemleak_test_init() 44 pr_info("kmalloc(32) = %p\n", kmalloc(32, GFP_KERNEL)); in kmemleak_test_init() 45 pr_info("kmalloc(1024) = %p\n", kmalloc(1024, GFP_KERNEL)); in kmemleak_test_init() 46 pr_info("kmalloc(1024) = %p\n", kmalloc(1024, GFP_KERNEL)); in kmemleak_test_init() 47 pr_info("kmalloc(2048) = %p\n", kmalloc(2048, GFP_KERNEL)); in kmemleak_test_init() 48 pr_info("kmalloc(2048) = %p\n", kmalloc(2048, GFP_KERNEL)); in kmemleak_test_init() 49 pr_info("kmalloc(4096) = %p\n", kmalloc(4096, GFP_KERNEL)); in kmemleak_test_init() 50 pr_info("kmalloc(4096) = %p\n", kmalloc(4096, GFP_KERNEL)); in kmemleak_test_init() 77 per_cpu(kmemleak_test_pointer, i) = kmalloc(129, GFP_KERNEL); in kmemleak_test_init()
|
/kernel/linux/linux-5.10/lib/ |
D | test_kasan.c | 83 ptr = kmalloc(size, GFP_KERNEL); in kmalloc_oob_right() 95 ptr = kmalloc(size, GFP_KERNEL); in kmalloc_oob_left() 127 ptr = kmalloc(size, GFP_KERNEL); in kmalloc_pagealloc_oob_right() 144 ptr = kmalloc(size, GFP_KERNEL); in kmalloc_pagealloc_uaf() 161 ptr = kmalloc(size, GFP_KERNEL); in kmalloc_pagealloc_invalid_free() 174 ptr = kmalloc(size, GFP_KERNEL); in kmalloc_large_oob_right() 187 ptr1 = kmalloc(size1, GFP_KERNEL); in kmalloc_oob_krealloc_more() 203 ptr1 = kmalloc(size1, GFP_KERNEL); in kmalloc_oob_krealloc_less() 225 ptr1 = kmalloc(sizeof(*ptr1) - 3, GFP_KERNEL); in kmalloc_oob_16() 228 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() 302 char *out_test = kmalloc(out_size, GFP_KERNEL); in test_string_escape() 303 char *out_real = kmalloc(out_size, GFP_KERNEL); in test_string_escape() 304 char *in = kmalloc(256, GFP_KERNEL); in test_string_escape() 424 dst = kmalloc(len, GFP_KERNEL); in test_string_upper_lower() 442 dst = kmalloc(len, GFP_KERNEL); in test_string_upper_lower()
|
/kernel/linux/linux-5.10/drivers/staging/rtl8712/ |
D | rtl871x_cmd.c | 55 pcmdpriv->cmd_allocated_buf = kmalloc(MAX_CMDSZ + CMDBUFF_ALIGN_SZ, in r8712_init_cmd_priv() 62 pcmdpriv->rsp_allocated_buf = kmalloc(MAX_RSPSZ + 4, GFP_ATOMIC); in r8712_init_cmd_priv() 80 pevtpriv->evt_allocated_buf = kmalloc(MAX_EVTSZ + 4, GFP_ATOMIC); in r8712_init_evt_priv() 180 ph2c = kmalloc(sizeof(*ph2c), GFP_ATOMIC); in r8712_sitesurvey_cmd() 183 psurveyPara = kmalloc(sizeof(*psurveyPara), GFP_ATOMIC); in r8712_sitesurvey_cmd() 215 ph2c = kmalloc(sizeof(*ph2c), GFP_ATOMIC); in r8712_setdatarate_cmd() 218 pbsetdataratepara = kmalloc(sizeof(*pbsetdataratepara), GFP_ATOMIC); in r8712_setdatarate_cmd() 237 ph2c = kmalloc(sizeof(*ph2c), GFP_ATOMIC); in r8712_set_chplan_cmd() 240 psetchplanpara = kmalloc(sizeof(*psetchplanpara), GFP_ATOMIC); in r8712_set_chplan_cmd() 257 ph2c = kmalloc(sizeof(*ph2c), GFP_ATOMIC); in r8712_setrfreg_cmd() [all …]
|
/kernel/linux/linux-5.10/drivers/misc/lkdtm/ |
D | heap.c | 22 u32 *data = kmalloc(len, GFP_KERNEL); in lkdtm_OVERWRITE_ALLOCATION() 41 base = kmalloc(len, GFP_KERNEL); in lkdtm_WRITE_AFTER_FREE() 50 again = kmalloc(len, GFP_KERNEL); in lkdtm_WRITE_AFTER_FREE() 68 base = kmalloc(len, GFP_KERNEL); in lkdtm_READ_AFTER_FREE() 74 val = kmalloc(len, GFP_KERNEL); in lkdtm_READ_AFTER_FREE() 130 val = kmalloc(1024, GFP_KERNEL); in lkdtm_READ_BUDDY_AFTER_FREE()
|
/kernel/linux/linux-5.10/scripts/coccinelle/api/alloc/ |
D | alloc_cast.cocci | 3 /// like kmalloc, kzalloc, kmem_cache_alloc, kmem_cache_zalloc etc. 6 //# kmalloc, kzalloc, kcalloc, kmem_cache_alloc, kmem_cache_zalloc, 34 \(kmalloc\|kzalloc\|kcalloc\|kmem_cache_alloc\|kmem_cache_zalloc\| 57 \(kmalloc\|kzalloc\|kcalloc\|kmem_cache_alloc\|kmem_cache_zalloc\| 80 \(kmalloc\|kzalloc\|kcalloc\|kmem_cache_alloc\|kmem_cache_zalloc\| 97 \(kmalloc\|kzalloc\|kcalloc\|kmem_cache_alloc\|kmem_cache_zalloc\|
|
/kernel/linux/linux-5.10/scripts/coccinelle/api/ |
D | kvmalloc.cocci | 3 /// Find if/else condition with kmalloc/vmalloc calls. 35 * E = \(kmalloc\|kzalloc\|kcalloc\|kmalloc_node\|kzalloc_node\| 45 * E = \(kmalloc\|kzalloc\|kcalloc\|kmalloc_node\|kzalloc_node\| 57 * T x = \(kmalloc\|kzalloc\|kcalloc\|kmalloc_node\|kzalloc_node\| 95 - E = kmalloc(size, flags); 101 - E = kmalloc(size, \(GFP_KERNEL\|GFP_KERNEL|__GFP_NOWARN\)); 106 - E = kmalloc(size, flags | __GFP_NOWARN); 111 - E = kmalloc(size, \(GFP_KERNEL\|GFP_KERNEL|__GFP_NOWARN\)); 116 - T x = kmalloc(size, flags | __GFP_NOWARN); 121 - T x = kmalloc(size, \(GFP_KERNEL\|GFP_KERNEL|__GFP_NOWARN\));
|
D | memdup.cocci | 23 to = \(kmalloc@p\|kzalloc@p\)(strlen(from) + 1,flag); 33 to = \(kmalloc@p\|kzalloc@p\)(x,flag); 41 - to = \(kmalloc@p\|kzalloc@p\)(size,flag); 52 * to = \(kmalloc@p\|kzalloc@p\)(size,flag);
|
D | kfree_mismatch.cocci | 25 E = \(kmalloc\|kzalloc\|krealloc\|kcalloc\| 38 E = \(kmalloc\|kzalloc\|krealloc\|kcalloc\|kmalloc_node\|kzalloc_node\| 68 * E = \(kmalloc\|kzalloc\|krealloc\|kcalloc\|kmalloc_node\| 82 E = \(kmalloc\|kzalloc\|krealloc\|kcalloc\|kmalloc_node\| 169 msg = "WARNING kmalloc is used to allocate this memory at line %s" % (a[0].line) 177 msg = "WARNING kmalloc is used to allocate this memory at line %s" % (a[0].line) 218 msg = "WARNING kmalloc (line %s) && vmalloc (line %s) are used to allocate this memory" % (ka[0].li… 227 msg = "WARNING kmalloc (line %s) && vmalloc (line %s) are used to allocate this memory" % (ka[0].li…
|
D | kstrdup.cocci | 23 - to = kmalloc(strlen(from) + 1,flag); 38 - to = \(kmalloc\|kzalloc\)(x,flag); 54 * to = kmalloc@p1(strlen(from) + 1,flag); 69 * to = \(kmalloc@p1\|kzalloc@p1\)(x,flag);
|
/kernel/linux/linux-5.10/drivers/usb/misc/ |
D | cytherm.c | 84 buffer = kmalloc(8, GFP_KERNEL); in brightness_store() 127 buffer = kmalloc(8, GFP_KERNEL); in temp_show() 162 buffer = kmalloc(8, GFP_KERNEL); in button_show() 191 buffer = kmalloc(8, GFP_KERNEL); in port0_show() 216 buffer = kmalloc(8, GFP_KERNEL); in port0_store() 246 buffer = kmalloc(8, GFP_KERNEL); in port1_show() 271 buffer = kmalloc(8, GFP_KERNEL); in port1_store()
|
/kernel/linux/linux-5.10/tools/virtio/linux/ |
D | kernel.h | 54 static inline void *kmalloc(size_t s, gfp_t gfp) in kmalloc() function 62 return kmalloc(n * s, gfp); in kmalloc_array() 67 void *p = kmalloc(s, gfp); in kzalloc() 75 return kmalloc(s, gfp); in alloc_pages_exact()
|
/kernel/linux/linux-5.10/scripts/coccinelle/null/ |
D | kmerr.cocci | 2 /// This semantic patch looks for kmalloc etc that are not followed by a 5 /// in determining what the error handling code for the call to kmalloc etc 38 *x@p1 = \(kmalloc\|kzalloc\|kcalloc\)(...); 54 x@p1 = \(kmalloc\|kzalloc\|kcalloc\)(...);
|
/kernel/linux/linux-5.10/drivers/staging/hievent/ |
D | hiview_hievent.c | 54 payload = kmalloc(sizeof(*payload), GFP_KERNEL); in hievent_payload_create() 110 event = kmalloc(sizeof(*event), GFP_KERNEL); in hievent_create() 143 payload->value = kmalloc(INT_TYPE_MAX_LEN, GFP_KERNEL); in hievent_put_integer() 183 payload->value = kmalloc(len + 1, GFP_KERNEL); in hievent_put_string() 275 regular = kmalloc(regular_len, GFP_KERNEL); in hievent_make_regular() 301 char *buffer = kmalloc(buf_len, GFP_KERNEL); in logbuff_to_exception() 378 char *buf = kmalloc(EVENT_INFO_BUF_LEN, GFP_KERNEL); in hievent_convert_string()
|
/kernel/linux/linux-5.10/net/bluetooth/ |
D | ecdh_helper.c | 69 tmp = kmalloc(64, GFP_KERNEL); in compute_ecdh_secret() 132 tmp = kmalloc(32, GFP_KERNEL); in set_ecdh_privkey() 141 buf = kmalloc(buf_len, GFP_KERNEL); in set_ecdh_privkey() 176 tmp = kmalloc(64, GFP_KERNEL); in generate_ecdh_public_key()
|
/kernel/linux/linux-5.10/tools/testing/radix-tree/linux/ |
D | slab.h | 12 void *kmalloc(size_t size, gfp_t); 17 return kmalloc(size, gfp | __GFP_ZERO); in kzalloc()
|
/kernel/linux/linux-5.10/sound/soc/sof/ |
D | probe.c | 36 msg = kmalloc(size, GFP_KERNEL); in sof_ipc_probe_init() 157 msg = kmalloc(size, GFP_KERNEL); in sof_ipc_probe_dma_add() 191 msg = kmalloc(size, GFP_KERNEL); in sof_ipc_probe_dma_remove() 245 msg = kmalloc(size, GFP_KERNEL); in sof_ipc_probe_points_add() 277 msg = kmalloc(size, GFP_KERNEL); in sof_ipc_probe_points_remove()
|
/kernel/linux/linux-5.10/drivers/xen/ |
D | sys-hypervisor.c | 105 extra = kmalloc(XEN_EXTRAVERSION_LEN, GFP_KERNEL); in extra_show() 183 info = kmalloc(sizeof(struct xen_compile_info), GFP_KERNEL); in compiler_show() 201 info = kmalloc(sizeof(struct xen_compile_info), GFP_KERNEL); in compiled_by_show() 219 info = kmalloc(sizeof(struct xen_compile_info), GFP_KERNEL); in compile_date_show() 256 caps = kmalloc(XEN_CAPABILITIES_INFO_LEN, GFP_KERNEL); in capabilities_show() 274 cset = kmalloc(XEN_CHANGESET_INFO_LEN, GFP_KERNEL); in changeset_show() 292 parms = kmalloc(sizeof(struct xen_platform_parameters), GFP_KERNEL); in virtual_start_show() 368 buildid = kmalloc(sizeof(*buildid) + ret, GFP_KERNEL); in buildid_show()
|
/kernel/linux/linux-5.10/drivers/infiniband/hw/mlx5/ |
D | mad.c | 296 out_mad = kmalloc(sizeof(*out_mad), GFP_KERNEL); in mlx5_query_ext_port_caps() 343 out_mad = kmalloc(sizeof(*out_mad), GFP_KERNEL); in mlx5_query_mad_ifc_system_image_guid() 365 out_mad = kmalloc(sizeof(*out_mad), GFP_KERNEL); in mlx5_query_mad_ifc_max_pkeys() 387 out_mad = kmalloc(sizeof(*out_mad), GFP_KERNEL); in mlx5_query_mad_ifc_vendor_id() 410 out_mad = kmalloc(sizeof(*out_mad), GFP_KERNEL); in mlx5_query_mad_ifc_node_desc() 435 out_mad = kmalloc(sizeof(*out_mad), GFP_KERNEL); in mlx5_query_mad_ifc_node_guid() 461 out_mad = kmalloc(sizeof(*out_mad), GFP_KERNEL); in mlx5_query_mad_ifc_pkey() 490 out_mad = kmalloc(sizeof(*out_mad), GFP_KERNEL); in mlx5_query_mad_ifc_gids() 533 out_mad = kmalloc(sizeof(*out_mad), GFP_KERNEL); in mlx5_query_mad_ifc_port()
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/tools/virtio/ringtest/ |
D | ptr_ring.c | 27 static void *kmalloc(unsigned size, gfp_t gfp) in kmalloc() function 40 return kmalloc(size, flags | __GFP_ZERO); in kzalloc() 47 return kmalloc(n * size, flags); in kmalloc_array()
|
/kernel/linux/linux-5.10/drivers/pci/hotplug/ |
D | cpqphp_pci.c | 163 fakedev = kmalloc(sizeof(*fakedev), GFP_KERNEL); in cpqhp_set_irq() 164 fakebus = kmalloc(sizeof(*fakebus), GFP_KERNEL); in cpqhp_set_irq() 731 bus_node = kmalloc(sizeof(*bus_node), GFP_KERNEL); in cpqhp_save_used_resources() 746 io_node = kmalloc(sizeof(*io_node), GFP_KERNEL); in cpqhp_save_used_resources() 762 mem_node = kmalloc(sizeof(*mem_node), GFP_KERNEL); in cpqhp_save_used_resources() 778 p_mem_node = kmalloc(sizeof(*p_mem_node), GFP_KERNEL); in cpqhp_save_used_resources() 809 io_node = kmalloc(sizeof(*io_node), in cpqhp_save_used_resources() 827 p_mem_node = kmalloc(sizeof(*p_mem_node), in cpqhp_save_used_resources() 844 mem_node = kmalloc(sizeof(*mem_node), in cpqhp_save_used_resources() 881 io_node = kmalloc(sizeof(*io_node), in cpqhp_save_used_resources() [all …]
|
/kernel/linux/linux-5.10/drivers/gpu/drm/ |
D | drm_format_helper.c | 109 buf = kmalloc(len, GFP_KERNEL); in drm_fb_swab() 183 sbuf = kmalloc(src_len, GFP_KERNEL); in drm_fb_xrgb8888_to_rgb565() 223 dbuf = kmalloc(dst_len, GFP_KERNEL); in drm_fb_xrgb8888_to_rgb565_dstclip() 275 dbuf = kmalloc(dst_len, GFP_KERNEL); in drm_fb_xrgb8888_to_rgb888_dstclip() 322 buf = kmalloc(len, GFP_KERNEL); in drm_fb_xrgb8888_to_gray8()
|
/kernel/linux/linux-5.10/tools/testing/selftests/ftrace/test.d/trigger/ |
D | trigger-hist-mod.tc | 45 echo 'hist:keys=bytes_req.log2' > events/kmem/kmalloc/trigger 47 grep 'bytes_req: ~ 2^[0-9]*' events/kmem/kmalloc/hist > /dev/null || \
|
/kernel/linux/linux-5.10/drivers/acpi/ |
D | processor_pdc.c | 78 obj_list = kmalloc(sizeof(struct acpi_object_list), GFP_KERNEL); in acpi_processor_alloc_pdc() 82 obj = kmalloc(sizeof(union acpi_object), GFP_KERNEL); in acpi_processor_alloc_pdc() 88 buf = kmalloc(12, GFP_KERNEL); in acpi_processor_alloc_pdc()
|