Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 16 files:
- drivers/block/zloop.c, line 1025
- drivers/gpu/drm/drm_crtc.c, line 286
- drivers/gpu/drm/drm_encoder.c, line 120
- drivers/gpu/drm/drm_plane.c, line 439
- drivers/gpu/drm/vmwgfx/vmwgfx_msg.c, line 483
- drivers/gpu/drm/xe/xe_devcoredump.c, line 394
- drivers/iio/industrialio-trigger.c
- drivers/pci/irq.c, line 49
- drivers/xen/xenbus/xenbus_client.c, line 190
- drivers/xen/xenbus/xenbus_xs.c, line 614
- fs/configfs/item.c, line 66
- kernel/cgroup/dmem.c, line 579
- kernel/kthread.c, line 491
- lib/kasprintf.c
- lib/tests/printf_kunit.c, line 138
- sound/hda/common/codec.c, line 710
Smatch caller information:
drivers/block/zloop.c zloop_filp_open_fmt() -> kvasprintf()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | gfp | 3264 |
| PARAM_VALUE | 1 | fmt | 4640443383898284032,8135326525252521984,9170357744303521792 |
| PARAM_VALUE | 2 | *ap | 4640443383898284032,9170357744303521792,8135326525252521984 |
| BUF_SIZE | 1 | fmt | 6,15 |
| BUF_SIZE | 1 | fmt | 6,15 |
| BUF_SIZE | 2 | ap | 8 |
| BUF_SIZE | 2 | ap | 8 |
| DATA_SOURCE | 1 | fmt | $2 |
| PARAM_COMPARE | 1 | &fmt | == $2 |
| TERMINATED | 1 | fmt | 1 |
| TERMINATED | 2 | *ap | 1 |
drivers/pci/irq.c pci_request_irq() -> kvasprintf()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | gfp | 3264 |
| PARAM_VALUE | 1 | fmt | 0,4096-ptr_max |
| BUF_SIZE | 1 | fmt | 6,9-10,12,14,40,64 |
| BUF_SIZE | 1 | fmt | 6,9-10,12,14,40,64 |
| BUF_SIZE | 2 | ap | 8 |
| BUF_SIZE | 2 | ap | 8 |
| DATA_SOURCE | 1 | fmt | $5 |
| STR_LEN | 0 | gfp | (-1),39 |
| STR_LEN | 1 | fmt | (-1),39 |
| STR_LEN | 2 | *ap | (-1),39 |
| PARAM_COMPARE | 1 | &fmt | == $2 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
fs/configfs/item.c config_item_set_name() -> kvasprintf()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | gfp | 3264 |
| PARAM_VALUE | 1 | fmt | 483552465123852288,8347350738675638272 |
| PARAM_VALUE | 2 | *ap | 483552465123852288,8347350738675638272 |
| BUF_SIZE | 1 | fmt | 3,13 |
| BUF_SIZE | 1 | fmt | 3,13 |
| BUF_SIZE | 2 | ap | 8 |
| BUF_SIZE | 2 | ap | 8 |
| DATA_SOURCE | 1 | fmt | $1 |
| STR_LEN | 0 | gfp | (-1),2,8,31,39,63 |
| STR_LEN | 1 | fmt | (-1),2,8,31,39,63 |
| STR_LEN | 2 | *ap | (-1),2,8,31,39,63 |
| PARAM_COMPARE | 1 | &fmt | == $2 |
| TERMINATED | 1 | fmt | 1 |
| TERMINATED | 2 | *ap | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &subsys->su_mutex | ||
| HALF_LOCKED2 | global &func_lock |
lib/kasprintf.c kasprintf() -> kvasprintf()
| Type | Parameter | Key | Value |
|---|---|---|---|
| BUF_SIZE | 2 | ap | 8 |
| BUF_SIZE | 2 | ap | 8 |
| DATA_SOURCE | 0 | gfp | $0 |
| DATA_SOURCE | 1 | fmt | $1 |
| PARAM_COMPARE | 1 | &fmt | == $2 |
lib/kasprintf.c kvasprintf_const() -> kvasprintf()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | gfp | 3264 |
| PARAM_VALUE | 1 | *fmt | 0 |
| BUF_SIZE | 1 | fmt | s32min,(-10),(-1),1-s32max |
| BUF_SIZE | 1 | fmt | s32min,(-10),(-1),1-s32max |
| BUF_SIZE | 2 | ap | 8 |
| BUF_SIZE | 2 | ap | 8 |
| DATA_SOURCE | 0 | gfp | $0 |
| DATA_SOURCE | 1 | fmt | $1 |
| DATA_SOURCE | 2 | ap | $2 |
| STR_LEN | 0 | gfp | (-1),3-8,10-12,14,16,20,31 |
| STR_LEN | 1 | fmt | (-1),3-8,10-12,14,16,20,31 |
| STR_LEN | 1 | fmt | (-1),3-8,10-12,14,16,20,31 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &hdev->req_lock |
kernel/kthread.c __kthread_create_on_node() -> kvasprintf()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | gfp | 3264 |
| BUF_SIZE | 1 | fmt | s32min,(-10),(-1),1-s32max |
| BUF_SIZE | 2 | ap | s32min,(-10),(-1),1-s32max |
| BUF_SIZE | 2 | ap | s32min,(-10),(-1),1-s32max |
| DATA_SOURCE | 1 | fmt | $3 |
| DATA_SOURCE | 2 | ap | $4 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/gpu/drm/xe/xe_devcoredump.c xe_devcoredump() -> kvasprintf()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | gfp | 2080 |
| PARAM_VALUE | 1 | fmt | 3289922190266777600,6868714769780576256 |
| PARAM_VALUE | 2 | *ap | 6868714769780576256,3289922190266777600 |
| BUF_SIZE | 1 | fmt | 62,67 |
| BUF_SIZE | 1 | fmt | 62,67 |
| BUF_SIZE | 2 | ap | 8 |
| BUF_SIZE | 2 | ap | 8 |
| DATA_SOURCE | 1 | fmt | $2 |
| PARAM_COMPARE | 1 | &fmt | == $2 |
| TERMINATED | 1 | fmt | 1 |
| TERMINATED | 2 | *ap | 1 |
| LOCK2 | &coredump->lock | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct xe_devcoredump)->lock |
drivers/xen/xenbus/xenbus_xs.c xenbus_printf() -> kvasprintf()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | gfp | 3104 |
| PARAM_VALUE | 1 | fmt | 4096-ptr_max |
| BUF_SIZE | 1 | fmt | 2-5,8,10,20 |
| BUF_SIZE | 1 | fmt | 2-5,8,10,20 |
| BUF_SIZE | 2 | ap | 8 |
| BUF_SIZE | 2 | ap | 8 |
| DATA_SOURCE | 1 | fmt | $3 |
| PARAM_COMPARE | 1 | &fmt | == $2 |
| TERMINATED | 1 | fmt | 1 |
| TERMINATED | 2 | *ap | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &dev->reclaim_sem | ||
| HALF_LOCKED2 | &pdev->dev_lock | ||
| HALF_LOCKED2 | &sdev->request_queue->limits_lock | ||
| HALF_LOCKED2 | &shost->scan_mutex | ||
| HALF_LOCKED2 | &xdev->reclaim_sem | ||
| HALF_LOCKED2 | global &pcistub_sem | ||
| HALF_LOCKED2 | global &xenwatch_mutex |
drivers/gpu/drm/drm_encoder.c __drm_encoder_init() -> kvasprintf()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | gfp | 3264 |
| PARAM_VALUE | 1 | fmt | 1-u64max |
| BUF_SIZE | 2 | ap | 8 |
| BUF_SIZE | 2 | ap | 8 |
| DATA_SOURCE | 1 | fmt | $4 |
| DATA_SOURCE | 2 | ap | $5 |
| RX_PATH |
drivers/xen/xenbus/xenbus_client.c xenbus_watch_pathfmt() -> kvasprintf()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | gfp | 3104 |
| PARAM_VALUE | 1 | fmt | 72086420647104512 |
| PARAM_VALUE | 2 | *ap | 72086420647104512 |
| BUF_SIZE | 1 | fmt | 6 |
| BUF_SIZE | 1 | fmt | 6 |
| BUF_SIZE | 2 | ap | 8 |
| BUF_SIZE | 2 | ap | 8 |
| DATA_SOURCE | 1 | fmt | $4 |
| PARAM_COMPARE | 1 | &fmt | == $2 |
| TERMINATED | 1 | fmt | 1 |
| TERMINATED | 2 | *ap | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &dev->reclaim_sem | ||
| HALF_LOCKED2 | global &xenwatch_mutex |
drivers/iio/industrialio-trigger.c iio_alloc_pollfunc() -> kvasprintf()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | gfp | 3264 |
| PARAM_VALUE | 1 | fmt | 7715569252591706112 |
| PARAM_VALUE | 2 | *ap | 7715569252591706112 |
| BUF_SIZE | 1 | fmt | 14 |
| BUF_SIZE | 1 | fmt | 14 |
| BUF_SIZE | 2 | ap | 8 |
| BUF_SIZE | 2 | ap | 8 |
| DATA_SOURCE | 1 | fmt | $4 |
| PARAM_COMPARE | 1 | &fmt | == $2 |
| TERMINATED | 1 | fmt | 1 |
| TERMINATED | 2 | *ap | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/iio/industrialio-trigger.c viio_trigger_alloc() -> kvasprintf()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | gfp | 3264 |
| BUF_SIZE | 1 | fmt | (-1),3,8-12,14-17,20 |
| BUF_SIZE | 1 | fmt | (-1),3,8-12,14-17,20 |
| BUF_SIZE | 2 | ap | 8 |
| BUF_SIZE | 2 | ap | 8 |
| DATA_SOURCE | 1 | fmt | $2 |
| DATA_SOURCE | 2 | ap | $3 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
kernel/cgroup/dmem.c dmem_cgroup_register_region() -> kvasprintf()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | gfp | 3264 |
| PARAM_VALUE | 1 | fmt | 799944127388209152,9065598344121188352 |
| PARAM_VALUE | 2 | *ap | 9065598344121188352,799944127388209152 |
| BUF_SIZE | 1 | fmt | 10,12 |
| BUF_SIZE | 1 | fmt | 10,12 |
| BUF_SIZE | 2 | ap | 8 |
| BUF_SIZE | 2 | ap | 8 |
| DATA_SOURCE | 1 | fmt | $1 |
| STR_LEN | 0 | gfp | (-1),5 |
| STR_LEN | 1 | fmt | (-1),5 |
| STR_LEN | 2 | *ap | (-1),5 |
| PARAM_COMPARE | 1 | &fmt | == $2 |
| TERMINATED | 1 | fmt | 1 |
| TERMINATED | 2 | *ap | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/gpu/drm/drm_plane.c __drm_universal_plane_init() -> kvasprintf()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | gfp | 3264 |
| PARAM_VALUE | 1 | fmt | 1-u64max |
| BUF_SIZE | 2 | ap | 8 |
| BUF_SIZE | 2 | ap | 8 |
| DATA_SOURCE | 1 | fmt | $8 |
| DATA_SOURCE | 2 | ap | $9 |
| RX_PATH |
drivers/gpu/drm/vmwgfx/vmwgfx_msg.c vmw_host_printf() -> kvasprintf()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | gfp | 3264 |
| PARAM_VALUE | 1 | fmt | 2208083549885923328,3180127597319065600,8319580863327649792 |
| PARAM_VALUE | 2 | *ap | 2208083549885923328,8319580863327649792,3180127597319065600 |
| BUF_SIZE | 1 | fmt | 46,89,256 |
| BUF_SIZE | 1 | fmt | 46,89,256 |
| BUF_SIZE | 2 | ap | 8 |
| BUF_SIZE | 2 | ap | 8 |
| DATA_SOURCE | 1 | fmt | $0 |
| STR_LEN | 0 | gfp | 45,88,255 |
| STR_LEN | 1 | fmt | 45,88,255 |
| STR_LEN | 2 | *ap | 45,88,255 |
| PARAM_COMPARE | 1 | &fmt | == $2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &gman->lock |
lib/tests/printf_kunit.c __test() -> kvasprintf()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | gfp | 3264 |
| PARAM_VALUE | 1 | fmt | 4096-ptr_max |
| BUF_SIZE | 1 | fmt | (-1),3-14,16,18,20,22-23,25-26,28 |
| BUF_SIZE | 1 | fmt | (-1),3-14,16,18,20,22-23,25-26,28 |
| BUF_SIZE | 2 | ap | 8 |
| BUF_SIZE | 2 | ap | 8 |
| DATA_SOURCE | 1 | fmt | $5 |
| STR_LEN | 0 | gfp | (-1),1,6 |
| STR_LEN | 1 | fmt | (-1),1,6 |
| STR_LEN | 2 | *ap | (-1),1,6 |
| PARAM_COMPARE | 1 | &fmt | == $2 |
drivers/gpu/drm/drm_crtc.c __drm_crtc_init_with_planes() -> kvasprintf()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | gfp | 3264 |
| PARAM_VALUE | 1 | fmt | 1-u64max |
| BUF_SIZE | 2 | ap | 8 |
| BUF_SIZE | 2 | ap | 8 |
| DATA_SOURCE | 1 | fmt | $5 |
| DATA_SOURCE | 2 | ap | $6 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
sound/hda/common/codec.c snd_hda_codec_pcm_new() -> kvasprintf()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | gfp | 3264 |
| PARAM_VALUE | 1 | fmt | 4096-ptr_max |
| BUF_SIZE | 1 | fmt | 3,7-8,13-15,18-19,22 |
| BUF_SIZE | 1 | fmt | 3,7-8,13-15,18-19,22 |
| BUF_SIZE | 2 | ap | 8 |
| BUF_SIZE | 2 | ap | 8 |
| DATA_SOURCE | 1 | fmt | $1 |
| PARAM_COMPARE | 1 | &fmt | == $2 |
| TERMINATED | 1 | fmt | 1 |
| TERMINATED | 2 | *ap | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &card->mutex | ||
| HALF_LOCKED2 | _T->lock |