Documented in 1 files:

Defined in 17 files as a prototype:

Defined in 4 files as a function:

Referenced in 10 files:

Smatch caller information:

fs/binfmt_elf.c create_elf_tables() -> strnlen_user()

Type Parameter Key Value
PARAM_VALUE 1 count 131072

fs/binfmt_elf.c create_elf_tables() -> strnlen_user()

Type Parameter Key Value
PARAM_VALUE 1 count 131072

mm/maccess.c strnlen_user_nofault() -> strnlen_user()

Type Parameter Key Value
PARAM_VALUE 1 count 4096
DATA_SOURCE 0 str $0
DATA_SOURCE 1 count $1
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
UNITS 0 str unit_byte

kernel/auditsc.c audit_log_execve_info() -> strnlen_user()

Type Parameter Key Value
PARAM_VALUE 1 count 131072
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING

mm/util.c strndup_user() -> strnlen_user()

Type Parameter Key Value
PARAM_VALUE 1 count 0-4294967295,s64max
BUF_SIZE 0 str (-1),512
BUF_SIZE 0 str (-1),512
CAPPED_DATA 1 count 1
CAPPED_DATA 1 count 1
DATA_SOURCE 0 str $0
DATA_SOURCE 1 count $1
RX_PATH
TASK_NOT_RUNNING
USER_DATA 0 str 0-u64max
USER_DATA 1 count 3-1023[c]
UNITS 1 count unit_byte
HALF_LOCKED2 &group->reg_mutex
HALF_LOCKED2 &udev->mutex
HALF_LOCKED2 _T->lock

kernel/trace/trace_uprobe.c fetch_store_strlen() -> strnlen_user()

Type Parameter Key Value
PARAM_VALUE 0 str 0-18446744073709551545,(-69)-(-1)
PARAM_VALUE 1 count 4096
DATA_SOURCE 0 str $0
RX_PATH
TASK_NOT_RUNNING
UNITS 0 str unit_byte
HALF_LOCKED2 &ucb->mutex

fs/compat_binfmt_elf.c create_elf_tables() -> strnlen_user()

Type Parameter Key Value
PARAM_VALUE 1 count 131072

fs/compat_binfmt_elf.c create_elf_tables() -> strnlen_user()

Type Parameter Key Value
PARAM_VALUE 1 count 131072

fs/exec.c copy_strings() -> strnlen_user()

Type Parameter Key Value
PARAM_VALUE 0 str 0-ptr_max
PARAM_VALUE 1 count 131072
DATA_SOURCE 0 str r get_user_arg_ptr