Defined in 13 files as a prototype:
- arch/alpha/include/asm/string.h, line 20 (as a prototype)
- arch/arm/boot/compressed/string.c, line 25 (as a prototype)
- arch/arm/include/asm/string.h, line 21 (as a prototype)
- arch/arm64/include/asm/string.h, line 36 (as a prototype)
- arch/loongarch/include/asm/string.h, line 15 (as a prototype)
- arch/powerpc/include/asm/string.h, line 39 (as a prototype)
- arch/riscv/include/asm/string.h, line 17 (as a prototype)
- arch/s390/include/asm/string.h, line 65 (as a prototype)
- arch/x86/boot/compressed/string.c, line 80 (as a prototype)
- arch/x86/include/asm/string_64.h, line 19 (as a prototype)
- arch/xtensa/include/asm/string.h, line 90 (as a prototype)
- drivers/firmware/efi/libstub/intrinsics.c, line 13 (as a prototype)
- include/asm-generic/asm-prototypes.h, line 6 (as a prototype)
Defined in 1 files as a macro:
Defined in 1 files as a label:
Defined in 5 files as a function:
- arch/arm/lib/memcpy.S, line 58 (as a function)
- arch/csky/abiv2/memcpy.S, line 7 (as a function)
- arch/s390/lib/string.c, line 150 (as a function)
- arch/x86/include/asm/string_32.h, line 30 (as a function)
- arch/xtensa/lib/memcopy.S, line 112 (as a function)
Defined in 3 files as a define:
- arch/alpha/lib/ev6-memcpy.S, line 249 (as a define)
- arch/mips/lib/memcpy.S, line 276 (as a define)
- arch/mips/lib/memcpy.S, line 539 (as a define)
Referenced in 35 files:
- arch/arm/include/asm/string.h, line 65
- arch/arm/kernel/head-common.S, line 98
- arch/arm/lib/memcpy.S, line 66
- arch/arm/lib/memmove.S, line 33
- arch/arm/lib/uaccess_with_memcpy.c, line 122
- arch/arm64/include/asm/string.h, line 59
- arch/arm64/kernel/image-vars.h, line 128
- arch/arm64/lib/memcpy.S
- arch/csky/abiv2/memcpy.S, line 104
- arch/loongarch/include/asm/string.h, line 30
- arch/loongarch/lib/memcpy.S
- arch/loongarch/lib/memmove.S, line 16
- arch/mips/cavium-octeon/octeon-memcpy.S, line 449
- arch/mips/lib/memcpy.S
- arch/powerpc/include/asm/string.h, line 46
- arch/riscv/include/asm/string.h, line 44
- arch/riscv/kernel/riscv_ksyms.c, line 16
- arch/riscv/lib/memcpy.S
- arch/s390/lib/string.c
- arch/x86/kernel/cfi.c, line 107
- arch/x86/kernel/machine_kexec_64.c, line 363
- arch/x86/kernel/traps.c
- arch/x86/lib/memcpy_32.c, line 11
- arch/x86/lib/memcpy_64.S
- arch/x86/power/hibernate.c, line 166
- arch/xtensa/include/asm/string.h, line 103
- arch/xtensa/kernel/traps.c, line 596
- arch/xtensa/lib/memcopy.S
- include/asm-generic/asm-prototypes.h, line 5
- mm/kasan/shadow.c
- mm/kmsan/init.c, line 196
- mm/kmsan/instrumentation.c, line 190
- mm/kmsan/shadow.c
- tools/arch/x86/lib/memcpy_64.S
- tools/perf/bench/mem-memcpy-x86-64-asm-def.h, line 9
Smatch caller information:
arch/x86/power/hibernate.c relocate_restore_code() -> __memcpy()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | $ | 4096-ptr_max |
| PARAM_VALUE | 1 | $ | 8986533176029167616 |
| PARAM_VALUE | 2 | $ | 4096 |
| CAPPED_DATA | 0 | $ | 1 |
| CAPPED_DATA | 0 | $ | 1 |
| DATA_SOURCE | 0 | $ | r get_safe_page |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 2 | $ | unit_byte |
| LOCK2 | global &device_hotplug_lock | ||
| LOCK2 | global &system_transition_mutex | ||
| LOCK2 | irq |
arch/x86/kernel/machine_kexec_64.c machine_kexec_prepare() -> __memcpy()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | $ | 18379471554275704832,18446612682070032384 |
| PARAM_VALUE | 1 | $ | 8491383795608334336 |
| PARAM_VALUE | 2 | $ | 12846114712822149120 |
| CAPPED_DATA | 0 | $ | 1 |
| DATA_SOURCE | 0 | $ | r lowmem_page_address |
| NOCHECK_CALL |
arch/x86/kernel/traps.c fixup_bad_iret() -> __memcpy()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | $ | 164202032399941760 |
| PARAM_VALUE | 2 | $ | 40 |
| BUF_SIZE | 0 | $ | 8 |
| NOCHECK_CALL |
arch/x86/kernel/traps.c fixup_bad_iret() -> __memcpy()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | $ | 164202032399941632 |
| PARAM_VALUE | 1 | $ | 4096-ptr_max |
| PARAM_VALUE | 2 | $ | 128 |
| BUF_SIZE | 0 | $ | 168 |
| DATA_SOURCE | 1 | $ | $0 |
| NOCHECK_CALL |
arch/x86/kernel/traps.c fixup_bad_iret() -> __memcpy()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | $ | 164202032399941632 |
| PARAM_VALUE | 2 | $ | 168 |
| BUF_SIZE | 1 | $ | 168 |
| NOCHECK_CALL | |||
| UNITS | 2 | $ | unit_byte |
mm/kasan/shadow.c __asan_memcpy() -> __memcpy()
| Type | Parameter | Key | Value |
|---|---|---|---|
| DATA_SOURCE | 0 | $ | $0 |
| DATA_SOURCE | 1 | $ | $1 |
| DATA_SOURCE | 2 | $ | $2 |
| NO_OVERFLOW_SIMPLE | 0 | $ | |
| NO_OVERFLOW_SIMPLE | 1 | $ | |
| NO_OVERFLOW_SIMPLE | 2 | $ |