Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 19 files:

Smatch caller information:

kernel/debug/debug_core.c kgdb_arch_remove_breakpoint() -> copy_to_kernel_nofault()

Type Parameter Key Value
PARAM_VALUE 0 dst 0-3556549974045937663,6432617772963328000-u64max
PARAM_VALUE 2 size 1
BUF_SIZE 1 src 1
UNITS 0 dst unit_byte
HALF_LOCKED2 rcu_read

kernel/debug/debug_core.c kgdb_arch_set_breakpoint() -> copy_to_kernel_nofault()

Type Parameter Key Value
PARAM_VALUE 0 dst 0-3556549974045937663,6432617772963328000-u64max
PARAM_VALUE 2 size 1
BUF_SIZE 1 src 1
UNITS 0 dst unit_byte
HALF_LOCKED2 rcu_read

arch/x86/kernel/kgdb.c kgdb_arch_remove_breakpoint() -> copy_to_kernel_nofault()

Type Parameter Key Value
PARAM_VALUE 0 dst 0-3556549974045937663,6432617772963328000-u64max
PARAM_VALUE 2 size 1
BUF_SIZE 1 src 1
UNITS 0 dst unit_byte
HALF_LOCKED2 rcu_read

arch/x86/kernel/kgdb.c kgdb_arch_set_breakpoint() -> copy_to_kernel_nofault()

Type Parameter Key Value
PARAM_VALUE 0 dst 0-3556549974045937663,6432617772963328000-u64max
PARAM_VALUE 2 size 1
BUF_SIZE 1 src 1
UNITS 0 dst unit_byte
HALF_LOCKED2 rcu_read

mm/kasan/kasan_test_c.c copy_to_kernel_nofault_oob() -> copy_to_kernel_nofault()

Type Parameter Key Value
PARAM_VALUE 0 dst 4752867932641849344
PARAM_VALUE 0 *dst 0-255
PARAM_VALUE 2 size 128
BUF_SIZE 0 dst 128
NOCHECK_CALL
UNITS 2 size unit_byte

mm/kasan/kasan_test_c.c copy_to_kernel_nofault_oob() -> copy_to_kernel_nofault()

Type Parameter Key Value
PARAM_VALUE 1 src 4752867932641849344
PARAM_VALUE 1 *src 0-255
PARAM_VALUE 2 size 128
BUF_SIZE 1 src 128
NOCHECK_CALL
UNITS 2 size unit_byte

kernel/debug/gdbstub.c kgdb_ebin2mem() -> copy_to_kernel_nofault()

Type Parameter Key Value
PARAM_VALUE 1 src 4098-18446744073709547521
PARAM_VALUE 2 size 0-s32max
DATA_SOURCE 0 dst $1
LOCK2 rcu_read
HALF_LOCKED2 flags
HALF_LOCKED2 global &dbg_master_lock
HALF_LOCKED2 global &dbg_slave_lock

kernel/debug/gdbstub.c kgdb_hex2mem() -> copy_to_kernel_nofault()

Type Parameter Key Value
PARAM_VALUE 1 src 4096-ptr_max
PARAM_VALUE 1 *src 0-255
PARAM_VALUE 2 size 0-s32max,18446744071562067968-u64max
BUF_SIZE 0 dst (-1),160,1024
DATA_SOURCE 0 dst $1
DATA_SOURCE 2 size $2
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 flags
HALF_LOCKED2 rcu_read

mm/rodata_test.c rodata_test() -> copy_to_kernel_nofault()

Type Parameter Key Value
PARAM_VALUE 0 dst 4096-ptr_max
PARAM_VALUE 1 src 7339127068312084480
PARAM_VALUE 1 *src 0
PARAM_VALUE 2 size 4
BUF_SIZE 0 dst 4
BUF_SIZE 1 src 4
UNITS 2 size unit_byte

kernel/debug/kdb/kdb_support.c kdb_putarea_size() -> copy_to_kernel_nofault()

Type Parameter Key Value
PARAM_VALUE 1 src 3805303209004810240,4847589887401697280,7364480873659797504,7601890500999745536
PARAM_VALUE 2 size 1-2,4,8
BUF_SIZE 1 src (-1),2,4,8
BUF_SIZE 1 src (-1),2,4,8
DATA_SOURCE 0 dst $0
DATA_SOURCE 1 src $1
DATA_SOURCE 2 size $2
HARD_MAX 2 size 8
UNITS 2 size unit_byte
HALF_LOCKED2 rcu_read