Documented in 1 files:
Defined in 2 files as a prototype:
- arch/arm/boot/compressed/decompress.c, line 36 (as a prototype)
- include/linux/string.h, line 173 (as a prototype)
Defined in 1 files as a function:
Referenced in 44 files:
- drivers/accel/habanalabs/common/firmware_if.c, line 112
- drivers/base/property.c, line 701
- drivers/bluetooth/hci_bcm4377.c, line 2018
- drivers/clk/microchip/clk-mpfs-ccc.c, line 206
- drivers/clk/qcom/a53-pll.c, line 125
- drivers/clk/qcom/apcs-msm8916.c, line 67
- drivers/gpu/drm/i915/intel_wakeref.c, line 219
- drivers/iio/adc/qcom-spmi-adc5.c, line 644
- drivers/media/pci/intel/ipu-bridge.c, line 742
- drivers/media/platform/renesas/vsp1/vsp1_pipe.c, line 445
- drivers/net/ethernet/mellanox/mlx5/core/devlink.c, line 62
- drivers/net/ethernet/mellanox/mlx5/core/sh_devlink.c, line 42
- drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c, line 1970
- drivers/of/base.c
- drivers/of/fdt.c, line 971
- drivers/pci/endpoint/pci-epf-core.c, line 542
- drivers/pci/pci.c, line 278
- drivers/platform/x86/lenovo/think-lmi.c, line 617
- drivers/remoteproc/imx_dsp_rproc.c, line 713
- drivers/remoteproc/imx_rproc.c, line 668
- drivers/remoteproc/st_remoteproc.c, line 117
- drivers/remoteproc/stm32_rproc.c, line 213
- drivers/remoteproc/xlnx_r5_remoteproc.c, line 481
- fs/namespace.c, line 5476
- fs/overlayfs/namei.c, line 370
- fs/overlayfs/util.c, line 1330
- fs/smb/client/cifsroot.c, line 55
- fs/smb/server/vfs.c, line 1180
- kernel/debug/kdb/kdb_io.c, line 861
- kernel/module/main.c, line 1190
- lib/string.c, line 336
- lib/vsprintf.c, line 2241
- mm/slub.c, line 2012
- net/dsa/conduit.c, line 354
- scripts/mod/modpost.c, line 1753
- security/integrity/ima/ima_template.c, line 232
- security/tomoyo/util.c, line 163
- sound/soc/codecs/rt1320-sdw.c
- tools/bpf/bpftool/gen.c, line 448
- tools/perf/util/print-events.c, line 100
- tools/power/x86/turbostat/turbostat.c
- tools/testing/selftests/bpf/prog_tests/reg_bounds.c, line 1388
- tools/testing/selftests/net/netfilter/audit_logread.c, line 121
- tools/testing/selftests/wireguard/qemu/init.c, line 144
Smatch caller information:
drivers/media/pci/intel/ipu-bridge.c ipu_bridge_instantiate_vcm() -> strchrnul()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | c | 45 |
| BUF_SIZE | 0 | s | 20 |
| STR_LEN | 0 | s | 19 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | global &list_lock |
drivers/platform/x86/lenovo/think-lmi.c kbdlang_store() -> strchrnul()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | s | 4096-ptr_max |
| PARAM_VALUE | 1 | c | 10 |
| DATA_SOURCE | 0 | s | $2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &of->mutex | ||
| HALF_LOCKED2 | &of->prealloc_mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct kernfs_open_file)->mutex |
fs/smb/client/cifsroot.c cifs_root_setup() -> strchrnul()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | s | 4096-ptr_max |
| PARAM_VALUE | 1 | c | 44 |
| DATA_SOURCE | 0 | s | r strchr |
| HALF_LOCKED2 | irq |
drivers/remoteproc/stm32_rproc.c stm32_rproc_prepare() -> strchrnul()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | c | 64 |
| BUF_SIZE | 0 | s | s32min,(-10),1-s32max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &rproc->lock | ||
| HALF_LOCKED2 | &of->mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct rproc)->lock |
mm/slub.c kmem_cache_flags() -> strchrnul()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | s | 4096-ptr_max |
| PARAM_VALUE | 0 | *s | 1-255 |
| PARAM_VALUE | 1 | c | 44 |
| HALF_LOCKED2 | global &slab_mutex |
net/dsa/conduit.c tagging_store() -> strchrnul()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | s | 4096-ptr_max |
| PARAM_VALUE | 1 | c | 10 |
| DATA_SOURCE | 0 | s | $2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &of->mutex | ||
| HALF_LOCKED2 | &of->prealloc_mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct kernfs_open_file)->mutex |
lib/vsprintf.c device_node_string() -> strchrnul()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | c | 64 |
| STR_LEN | 0 | s | (-1) |
| STR_LEN | 0 | s | (-1) |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/net/ethernet/mellanox/mlx5/core/sh_devlink.c mlx5_shd_init() -> strchrnul()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | s | 4096-ptr_max |
| PARAM_VALUE | 1 | c | 32 |
| DATA_SOURCE | 0 | s | r kstrndup |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/accel/habanalabs/common/firmware_if.c extract_u32_until_given_char() -> strchrnul()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | s | 4096-18446744073709547521 |
| PARAM_VALUE | 1 | c | 45-46 |
| BUF_SIZE | 0 | s | (-1),128 |
| BUF_SIZE | 0 | s | (-1),128 |
| DATA_SOURCE | 0 | s | $0 |
| DATA_SOURCE | 1 | c | $2 |
| HARD_MAX | 1 | c | 46 |
drivers/of/fdt.c early_init_dt_scan_chosen_stdout() -> strchrnul()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | s | 1-18446744073709547519 |
| PARAM_VALUE | 1 | c | 58 |
| CAPPED_DATA | 0 | s | 1 |
fs/overlayfs/util.c ovl_get_redirect_xattr() -> strchrnul()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | s | 4097-u64max |
| PARAM_VALUE | 1 | c | 47 |
drivers/pci/endpoint/pci-epf-core.c pci_epf_create() -> strchrnul()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | s | 1-u64max |
| PARAM_VALUE | 1 | c | 46 |
| BUF_SIZE | 0 | s | 0-s32max |
| BUF_SIZE | 0 | s | 0-s32max |
| CAPPED_DATA | 0 | s | 1 |
| DATA_SOURCE | 0 | s | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &subsys->su_mutex | ||
| HALF_LOCKED2 | &dentry->d_lockref.lock | ||
| TYPE_LOCK | (struct configfs_subsystem)->su_mutex |
drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c brcmf_pcie_parse_otp_sys_vendor() -> strchrnul()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | s | 4098-u64max |
| PARAM_VALUE | 1 | c | 32 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/clk/qcom/apcs-msm8916.c qcom_apcs_msm8916_clk_probe() -> strchrnul()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | c | 64 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
fs/namespace.c statmount_opt_process() -> strchrnul()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | s | 0-18446744073709551614 |
| PARAM_VALUE | 1 | c | 44 |
| CAPPED_DATA | 0 | s | 1 |
| UNITS | 0 | s | unit_byte |
| LOCK2 | global &namespace_sem |
drivers/media/platform/renesas/vsp1/vsp1_pipe.c __vsp1_pipeline_dump() -> strchrnul()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | c | 32 |
| BUF_SIZE | 0 | s | 52 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | _T->lock |
kernel/debug/kdb/kdb_io.c vkdb_printf() -> strchrnul()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | s | 9051535239494746112 |
| PARAM_VALUE | 1 | c | 10 |
| BUF_SIZE | 0 | s | 256 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | flags |
drivers/pci/pci.c pci_dev_str_match_path() -> strchrnul()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | c | 59 |
| DATA_SOURCE | 0 | s | $1 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &dev->dev.mutex | ||
| HALF_LOCKED2 | global &resource_alignment_lock |
drivers/net/ethernet/mellanox/mlx5/core/devlink.c mlx5_devlink_serial_numbers_put() -> strchrnul()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | s | 4096-ptr_max |
| PARAM_VALUE | 1 | c | 32 |
| DATA_SOURCE | 0 | s | r kstrndup |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &devlink->lock |
fs/smb/server/vfs.c __ksmbd_vfs_kern_path() -> strchrnul()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | c | 47 |
| HALF_LOCKED2 | &pool->lock |
drivers/bluetooth/hci_bcm4377.c bcm4377_parse_otp_str() -> strchrnul()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | s | 4098-u64max |
| PARAM_VALUE | 1 | c | 32 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &pool->lock |
fs/overlayfs/namei.c ovl_lookup_layer() -> strchrnul()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | c | 47 |
| UNITS | 0 | s | unit_byte |
drivers/of/base.c __of_find_node_by_full_path() -> strchrnul()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | s | 4097-u64max |
| PARAM_VALUE | 1 | c | 47 |
| DATA_SOURCE | 0 | s | $1 [m] |
| STR_LEN | 0 | s | (-1) |
| STR_LEN | 0 | s | (-1) |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | flags | ||
| HALF_LOCKED2 | global &devtree_lock | ||
| HALF_LOCKED2 | global &of_mutex | ||
| HALF_LOCKED2 | global &of_overlay_phandle_mutex |
drivers/of/base.c of_find_node_opts_by_path() -> strchrnul()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | s | 4096-ptr_max |
| PARAM_VALUE | 0 | *s | 0-46,48-255 |
| PARAM_VALUE | 1 | c | 47 |
| BUF_SIZE | 0 | s | s32min-s32max |
| DATA_SOURCE | 0 | s | $0 |
| STR_LEN | 0 | s | (-1),1,4-9,12-16,24-34,37-39,41,43-44,46,51-53,55,62,71,81,84 |
| STR_LEN | 0 | s | (-1),1,4-9,12-16,24-34,37-39,41,43-44,46,51-53,55,62,71,81,84 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | s | unit_array_size |
| HALF_LOCKED2 | global &of_mutex | ||
| HALF_LOCKED2 | global &of_overlay_phandle_mutex | ||
| HALF_LOCKED2 | global &wtd_deferred_reg_mutex | ||
| HALF_LOCKED2 | irq |
drivers/of/base.c of_node_name_eq() -> strchrnul()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | c | 64 |
| DATA_SOURCE | 0 | s | r kbasename |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &device->clients_lock | ||
| HALF_LOCKED2 | flags | ||
| HALF_LOCKED2 | global &component_mutex | ||
| HALF_LOCKED2 | global &devfreq_event_list_lock | ||
| HALF_LOCKED2 | global &devtree_lock | ||
| HALF_LOCKED2 | global &gpd_list_lock | ||
| HALF_LOCKED2 | global &of_overlay_phandle_mutex |
drivers/base/property.c fwnode_name_eq() -> strchrnul()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | s | 1-u64max |
| PARAM_VALUE | 1 | c | 64 |
| DATA_SOURCE | 0 | s | r fwnode_get_name |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/clk/microchip/clk-mpfs-ccc.c mpfs_ccc_register_plls() -> strchrnul()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | c | 64 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/clk/qcom/a53-pll.c qcom_a53pll_probe() -> strchrnul()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | c | 64 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/iio/adc/qcom-spmi-adc5.c adc5_get_fw_channel_data() -> strchrnul()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | s | 1-u64max |
| PARAM_VALUE | 1 | c | 64 |
| BUF_SIZE | 0 | s | 0-s32max |
| BUF_SIZE | 0 | s | 0-s32max |
| CAPPED_DATA | 0 | s | 1 |
| DATA_SOURCE | 0 | s | r devm_kasprintf |
| TERMINATED | 0 | s | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
security/integrity/ima/ima_template.c template_desc_init_fields() -> strchrnul()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | c | 124 |
| BUF_SIZE | 0 | s | (-1),69 |
| BUF_SIZE | 0 | s | (-1),69 |
drivers/gpu/drm/i915/intel_wakeref.c intel_ref_tracker_show() -> strchrnul()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | s | 4096-ptr_max |
| PARAM_VALUE | 0 | *s | 1-255 |
| PARAM_VALUE | 1 | c | 10 |
| BUF_SIZE | 0 | s | 4096,u64max |
| BUF_SIZE | 0 | s | 4096,u64max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &m->lock | ||
| TYPE_LOCK | (struct seq_file)->lock |
security/tomoyo/util.c tomoyo_get_domainname() -> strchrnul()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | s | 4097-u64max |
| PARAM_VALUE | 1 | c | 32 |
sound/soc/codecs/rt1320-sdw.c rt1320_dspfw_load_code() -> strchrnul()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | s | 1-u64max |
| PARAM_VALUE | 1 | c | 32 |
| DATA_SOURCE | 0 | s | r dmi_get_system_info |
| RX_PATH | |||
| TASK_NOT_RUNNING |
sound/soc/codecs/rt1320-sdw.c rt1320_dspfw_load_code() -> strchrnul()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | s | 1-u64max |
| PARAM_VALUE | 1 | c | 32 |
| DATA_SOURCE | 0 | s | r dmi_get_system_info |
| RX_PATH | |||
| TASK_NOT_RUNNING |
sound/soc/codecs/rt1320-sdw.c rt1320_dspfw_load_code() -> strchrnul()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | s | 1-u64max |
| PARAM_VALUE | 1 | c | 32 |
| DATA_SOURCE | 0 | s | r dmi_get_system_info |
| RX_PATH | |||
| TASK_NOT_RUNNING |
sound/soc/codecs/rt1320-sdw.c rt1320_rae_load() -> strchrnul()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | s | 1-u64max |
| PARAM_VALUE | 1 | c | 32 |
| DATA_SOURCE | 0 | s | r dmi_get_system_info |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &card->controls_rwsem | ||
| HALF_LOCKED2 | &card->mutex | ||
| HALF_LOCKED2 | _T->lock |
sound/soc/codecs/rt1320-sdw.c rt1320_rae_load() -> strchrnul()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | s | 1-u64max |
| PARAM_VALUE | 1 | c | 32 |
| DATA_SOURCE | 0 | s | r dmi_get_system_info |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &card->controls_rwsem | ||
| HALF_LOCKED2 | &card->mutex | ||
| HALF_LOCKED2 | _T->lock |
sound/soc/codecs/rt1320-sdw.c rt1320_rae_load() -> strchrnul()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | s | 1-u64max |
| PARAM_VALUE | 1 | c | 32 |
| DATA_SOURCE | 0 | s | r dmi_get_system_info |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &card->controls_rwsem | ||
| HALF_LOCKED2 | &card->mutex | ||
| HALF_LOCKED2 | _T->lock |
kernel/module/main.c verify_module_namespace() -> strchrnul()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | s | 4096-ptr_max |
| PARAM_VALUE | 0 | *s | 1-255 |
| PARAM_VALUE | 1 | c | 44 |
| BUF_SIZE | 0 | s | s32min,(-10),(-1)-s32max |
| BUF_SIZE | 0 | s | s32min,(-10),(-1)-s32max |
| DATA_SOURCE | 0 | s | $0 [m] |
| TASK_NOT_RUNNING | |||
| LOCK2 | global &module_mutex |