Defined in 4 files as a prototype:
- arch/alpha/include/asm/string.h, line 53 (as a prototype)
- arch/s390/include/asm/string.h, line 40 (as a prototype)
- arch/x86/include/asm/string_32.h, line 16 (as a prototype)
- include/linux/string.h, line 152 (as a prototype)
Defined in 2 files as a label:
Defined in 5 files as a function:
- arch/s390/lib/string.c, line 326 (as a function)
- arch/x86/lib/string_32.c, line 51 (as a function)
- include/linux/fortify-string.h, line 394 (as a function)
- lib/string.c, line 214 (as a function)
- tools/include/nolibc/string.h, line 256 (as a function)
Referenced in 32 files:
- arch/alpha/lib/ev67-strncat.S
- arch/alpha/lib/strncat.S
- arch/s390/lib/string.c, line 335
- arch/x86/lib/string_32.c, line 70
- drivers/acpi/acpica/utnonansi.c, line 163
- drivers/gpu/drm/scheduler/tests/tests_scheduler.c, line 820
- drivers/net/ethernet/broadcom/bnge/bnge_devlink.c
- drivers/net/ethernet/broadcom/bnxt/bnxt_devlink.c
- drivers/net/ethernet/broadcom/tg3.c, line 15890
- drivers/net/ethernet/cavium/liquidio/octeon_console.c, line 907
- drivers/tty/serial/serial_core.c
- fs/nfs/sysfs.c
- include/linux/fortify-string.h
- lib/string.c, line 230
- lib/tests/fortify_kunit.c
- lib/tests/string_kunit.c
- scripts/kconfig/confdata.c
- scripts/kconfig/preprocess.c
- tools/accounting/delaytop.c
- tools/bpf/bpftool/gen.c
- tools/bpf/bpftool/main.c
- tools/hv/hv_kvp_daemon.c
- tools/net/ynl/ynltool/main.c
- tools/perf/tests/hwmon_pmu.c, line 102
- tools/power/x86/intel-speed-select/isst-display.c, line 74
- tools/testing/selftests/arm64/signal/test_signals_utils.c, line 52
- tools/testing/selftests/bpf/prog_tests/btf_dump.c, line 336
- tools/testing/selftests/bpf/test_sockmap.c, line 1265
- tools/testing/selftests/liveupdate/init.c, line 74
- tools/testing/selftests/powerpc/utils.c
- tools/testing/selftests/x86/amx.c, line 59
- tools/testing/selftests/x86/xstate.c, line 366
Smatch caller information:
drivers/tty/serial/serial_core.c uart_line_info() -> strncat()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dest | 4096-ptr_max |
| PARAM_VALUE | 1 | src | 1815323180014583808 |
| PARAM_VALUE | 2 | count | 0-30,u64max |
| BUF_SIZE | 0 | dest | 32 |
| BUF_SIZE | 1 | src | 5 |
| STR_LEN | 0 | dest | 0-31 |
| STR_LEN | 1 | src | 4 |
| CAPABLE | 0 | 21 | |
| TERMINATED | 0 | dest | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 2 | count | unit_byte |
| LOCK2 | &m->lock | ||
| LOCK2 | &uport->lock | ||
| LOCK2 | _T->lock | ||
| TYPE_LOCK | (struct seq_file)->lock |
drivers/tty/serial/serial_core.c uart_line_info() -> strncat()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dest | 4096-ptr_max |
| PARAM_VALUE | 1 | src | 7152481798191202304 |
| PARAM_VALUE | 2 | count | 0-30,u64max |
| BUF_SIZE | 0 | dest | 32 |
| BUF_SIZE | 1 | src | 5 |
| STR_LEN | 0 | dest | 0-31 |
| STR_LEN | 1 | src | 4 |
| CAPABLE | 0 | 21 | |
| TERMINATED | 0 | dest | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 2 | count | unit_byte |
| LOCK2 | &m->lock | ||
| LOCK2 | &uport->lock | ||
| LOCK2 | _T->lock | ||
| TYPE_LOCK | (struct seq_file)->lock |
drivers/tty/serial/serial_core.c uart_line_info() -> strncat()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dest | 4096-ptr_max |
| PARAM_VALUE | 1 | src | 895052570704961536 |
| PARAM_VALUE | 2 | count | 0-30,u64max |
| BUF_SIZE | 0 | dest | 32 |
| BUF_SIZE | 1 | src | 5 |
| STR_LEN | 0 | dest | 0-31 |
| STR_LEN | 1 | src | 4 |
| CAPABLE | 0 | 21 | |
| TERMINATED | 0 | dest | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 2 | count | unit_byte |
| LOCK2 | &m->lock | ||
| LOCK2 | &uport->lock | ||
| LOCK2 | _T->lock | ||
| TYPE_LOCK | (struct seq_file)->lock |
drivers/tty/serial/serial_core.c uart_line_info() -> strncat()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dest | 4096-ptr_max |
| PARAM_VALUE | 1 | src | 940328053954084864 |
| PARAM_VALUE | 2 | count | 0-30,u64max |
| BUF_SIZE | 0 | dest | 32 |
| BUF_SIZE | 1 | src | 5 |
| STR_LEN | 0 | dest | 0-31 |
| STR_LEN | 1 | src | 4 |
| CAPABLE | 0 | 21 | |
| TERMINATED | 0 | dest | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 2 | count | unit_byte |
| LOCK2 | &m->lock | ||
| LOCK2 | &uport->lock | ||
| LOCK2 | _T->lock | ||
| TYPE_LOCK | (struct seq_file)->lock |
drivers/tty/serial/serial_core.c uart_line_info() -> strncat()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dest | 4096-ptr_max |
| PARAM_VALUE | 1 | src | 2194961780115312640 |
| PARAM_VALUE | 2 | count | 0-30,u64max |
| BUF_SIZE | 0 | dest | 32 |
| BUF_SIZE | 1 | src | 4 |
| STR_LEN | 0 | dest | 0-31 |
| STR_LEN | 1 | src | 3 |
| CAPABLE | 0 | 21 | |
| TERMINATED | 0 | dest | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 2 | count | unit_byte |
| LOCK2 | &m->lock | ||
| LOCK2 | &uport->lock | ||
| LOCK2 | _T->lock | ||
| TYPE_LOCK | (struct seq_file)->lock |
drivers/tty/serial/serial_core.c uart_line_info() -> strncat()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dest | 4096-ptr_max |
| PARAM_VALUE | 1 | src | 1385027728038567936 |
| PARAM_VALUE | 2 | count | 0-30,u64max |
| BUF_SIZE | 0 | dest | 32 |
| BUF_SIZE | 1 | src | 4 |
| STR_LEN | 0 | dest | 0-31 |
| STR_LEN | 1 | src | 3 |
| CAPABLE | 0 | 21 | |
| TERMINATED | 0 | dest | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 2 | count | unit_byte |
| LOCK2 | &m->lock | ||
| LOCK2 | &uport->lock | ||
| LOCK2 | _T->lock | ||
| TYPE_LOCK | (struct seq_file)->lock |
lib/tests/string_kunit.c string_test_strncat() -> strncat()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dest | 1037267761143304192 |
| PARAM_VALUE | 1 | src | 4602998933304729600 |
| PARAM_VALUE | 2 | count | 0 |
| BUF_SIZE | 0 | dest | 8 |
| STR_LEN | 0 | dest | 0-7 |
| STR_LEN | 1 | src | 0 |
| TERMINATED | 1 | src | 1 |
lib/tests/string_kunit.c string_test_strncat() -> strncat()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dest | 1037267761143304192 |
| PARAM_VALUE | 1 | src | 4602998933304729600 |
| PARAM_VALUE | 2 | count | 1 |
| BUF_SIZE | 0 | dest | 8 |
| STR_LEN | 0 | dest | 0-7 |
| STR_LEN | 1 | src | 0 |
| TERMINATED | 1 | src | 1 |
lib/tests/string_kunit.c string_test_strncat() -> strncat()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dest | 1037267761143304192 |
| PARAM_VALUE | 1 | src | 4179992343711313920 |
| PARAM_VALUE | 2 | count | 0 |
| BUF_SIZE | 0 | dest | 8 |
| BUF_SIZE | 1 | src | 5 |
| STR_LEN | 0 | dest | 0-7 |
| STR_LEN | 1 | src | 4 |
| TERMINATED | 1 | src | 1 |
lib/tests/string_kunit.c string_test_strncat() -> strncat()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dest | 1037267761143304192 |
| PARAM_VALUE | 1 | src | 8570528380950990848 |
| PARAM_VALUE | 2 | count | 8 |
| BUF_SIZE | 0 | dest | 8 |
| BUF_SIZE | 1 | src | 9 |
| STR_LEN | 0 | dest | 0-7 |
| STR_LEN | 1 | src | 8 |
| TERMINATED | 1 | src | 1 |
lib/tests/string_kunit.c string_test_strncat() -> strncat()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dest | 1037267761143304192 |
| PARAM_VALUE | 1 | src | 8816130519009292288 |
| PARAM_VALUE | 2 | count | 2 |
| BUF_SIZE | 0 | dest | 8 |
| BUF_SIZE | 1 | src | 5 |
| STR_LEN | 0 | dest | 0-7 |
| STR_LEN | 1 | src | 4 |
| TERMINATED | 1 | src | 1 |
drivers/acpi/acpica/utnonansi.c acpi_ut_safe_strncat() -> strncat()
| Type | Parameter | Key | Value |
|---|---|---|---|
| DATA_SOURCE | 0 | dest | $0 |
| DATA_SOURCE | 1 | src | $2 |
| DATA_SOURCE | 2 | count | $3 |
| STR_LEN | 0 | dest | 0-18446744073709551613 |
| NOCHECK_CALL |
drivers/net/ethernet/broadcom/bnge/bnge_devlink.c bnge_devlink_info_get() -> strncat()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dest | 1997946782113779712 |
| PARAM_VALUE | 2 | count | 16 |
| BUF_SIZE | 0 | dest | 32 |
| BUF_SIZE | 1 | src | 16 |
| TERMINATED | 0 | dest | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &devlink->lock |
drivers/net/ethernet/broadcom/bnge/bnge_devlink.c bnge_devlink_info_get() -> strncat()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dest | 1997946782113779712 |
| PARAM_VALUE | 2 | count | 16 |
| BUF_SIZE | 0 | dest | 32 |
| BUF_SIZE | 1 | src | 16 |
| TERMINATED | 0 | dest | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &devlink->lock |
drivers/net/ethernet/broadcom/bnxt/bnxt_devlink.c bnxt_dl_info_get() -> strncat()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dest | 6151835442003714048 |
| PARAM_VALUE | 2 | count | 16 |
| BUF_SIZE | 0 | dest | 32 |
| BUF_SIZE | 1 | src | 16 |
| TERMINATED | 0 | dest | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &dl->lock |
drivers/net/ethernet/broadcom/bnxt/bnxt_devlink.c bnxt_dl_info_get() -> strncat()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dest | 6151835442003714048 |
| PARAM_VALUE | 2 | count | 16 |
| BUF_SIZE | 0 | dest | 32 |
| BUF_SIZE | 1 | src | 16 |
| TERMINATED | 0 | dest | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &dl->lock |
fs/nfs/sysfs.c nfs_sysfs_link_rpc_client() -> strncat()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dest | 4270254627110154240 |
| PARAM_VALUE | 1 | src | 4602998933304729600,7270039232639864832 |
| BUF_SIZE | 0 | dest | 64 |
| BUF_SIZE | 1 | src | 1,7 |
| STR_LEN | 0 | dest | 0-18446744073709551613 |
| STR_LEN | 1 | src | (-1)-0 |
| BIT_INFO | 1 | src | 0x24e0022060210000,0x7fe57f2deda77000 |
| TERMINATED | 1 | src | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 2 | count | unit_byte |
fs/nfs/sysfs.c nfs_sysfs_link_rpc_client() -> strncat()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dest | 4270254627110154240 |
| PARAM_VALUE | 1 | src | 3730623960556646400 |
| BUF_SIZE | 0 | dest | 64 |
| BUF_SIZE | 1 | src | 8 |
| STR_LEN | 0 | dest | 0-18446744073709551613 |
| STR_LEN | 1 | src | 7 |
| TERMINATED | 1 | src | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 2 | count | unit_byte |
drivers/net/ethernet/cavium/liquidio/octeon_console.c octeon_download_firmware() -> strncat()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | src | 5973414491359678464 |
| PARAM_VALUE | 2 | count | 0-1024 |
| BUF_SIZE | 0 | dest | 1024 |
| BUF_SIZE | 1 | src | 80 |
| CAPPED_DATA | 2 | count | 1 |
| STR_LEN | 0 | dest | 79 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 2 | count | unit_byte |
| HALF_LOCKED2 | &pool->lock |
drivers/net/ethernet/broadcom/tg3.c tg3_read_sb_ver() -> strncat()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dest | 4096-ptr_max |
| PARAM_VALUE | 1 | src | 6091421656922738688 |
| BUF_SIZE | 0 | dest | 32 |
| BUF_SIZE | 1 | src | 3 |
| STR_LEN | 0 | dest | 0-18446744073709551613 |
| STR_LEN | 1 | src | 2 |
| TERMINATED | 1 | src | 1 |
| NOCHECK_CALL |
drivers/gpu/drm/scheduler/tests/tests_scheduler.c drm_sched_scheduler_many_clients_test() -> strncat()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dest | 16,4096-ptr_max |
| PARAM_VALUE | 1 | src | 7785243628420575232 |
| PARAM_VALUE | 2 | count | 4096 |
| BUF_SIZE | 0 | dest | 4096 |
| BUF_SIZE | 0 | dest | 4096 |
| BUF_SIZE | 1 | src | 16 |
| DATA_SOURCE | 0 | dest | r kunit_kmalloc |
| STR_LEN | 0 | dest | 15 |
| MEM_ZERO | 0 | dest | |
| NOCHECK_CALL | |||
| UNITS | 2 | count | unit_byte |
lib/tests/fortify_kunit.c fortify_test_strncat() -> strncat()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dest | 4096-ptr_max |
| PARAM_VALUE | 1 | src | 4096-ptr_max |
| PARAM_VALUE | 2 | count | 15 |
| BUF_SIZE | 0 | dest | 32 |
| BUF_SIZE | 1 | src | 32 |
lib/tests/fortify_kunit.c fortify_test_strncat() -> strncat()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dest | 4096-ptr_max |
| PARAM_VALUE | 1 | src | 4096-ptr_max |
| PARAM_VALUE | 2 | count | 15 |
| BUF_SIZE | 0 | dest | 32 |
| BUF_SIZE | 1 | src | 32 |
lib/tests/fortify_kunit.c fortify_test_strncat() -> strncat()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dest | 4096-ptr_max |
| PARAM_VALUE | 1 | src | 4096-ptr_max |
| PARAM_VALUE | 2 | count | 1 |
| BUF_SIZE | 0 | dest | 32 |
| BUF_SIZE | 1 | src | 32 |
lib/tests/fortify_kunit.c fortify_test_strncat() -> strncat()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dest | 4096-ptr_max |
| PARAM_VALUE | 1 | src | 4096-ptr_max |
| PARAM_VALUE | 2 | count | 1 |
| BUF_SIZE | 0 | dest | 32 |
| BUF_SIZE | 1 | src | 32 |